/* =========================================================
   SOLVER GROUP — Hoja de estilos principal
   Concepto: conexión, cercanía, claridad y progreso.
   Paleta: Petróleo 70% · Grafito 20% · Menta 10%
   ========================================================= */

/* ---------- 1. Tipografía (auto-alojada, sin terceros) ---------- */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-sans-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/nunito-sans-latin-wght.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  --petroleo: #075563;
  --petroleo-900: #04404A;
  --petroleo-800: #04404A; /* Petróleo oscuro (estándar SOLVER) */
  --petroleo-600: #04404A;
  --petroleo-50: #E2EEF0;
  --menta: #48c6a0;
  --menta-600: #48C6A0;
  --menta-100: #E3F6EF;
  --grafito: #263238;
  --muted: #5F7379;
  --bg: #f7faf9;
  --surface: #ffffff;
  --line: #DCE5E3;
  --danger: #C62828;

  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.35rem, 1.4rem + 4.2vw, 4.6rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(3, 50, 59, .06), 0 2px 8px rgba(3, 50, 59, .05);
  --shadow-md: 0 10px 30px -12px rgba(3, 50, 59, .22);
  --shadow-lg: 0 30px 60px -24px rgba(3, 50, 59, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--grafito);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petroleo); text-underline-offset: 3px; }
a:hover { color: var(--petroleo-600); }
h1, h2, h3, h4 { color: var(--petroleo); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--menta); color: var(--petroleo-900); }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 6px; }

/* Scrollbar personalizada */
html { scrollbar-color: var(--petroleo) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--petroleo); border-radius: 10px; border: 2px solid var(--bg); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--petroleo); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 999; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--white { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--petroleo);
  letter-spacing: .02em; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 8px; border-radius: 8px; background: var(--menta); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.text-menta { color: var(--menta-600); }

/* ---------- 4. Botones ---------- */
.btn {
  --_bg: var(--menta); --_fg: var(--petroleo-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 600 1rem/1.2 var(--font);
  color: var(--_fg); background: var(--_bg);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { color: var(--_fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(72, 198, 160, .7); background: #5bd3ae; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --_bg: transparent; --_fg: var(--petroleo); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--petroleo); box-shadow: var(--shadow-sm); }
.btn--light { --_bg: #fff; --_fg: var(--petroleo); }
.btn--light:hover { background: var(--menta-100); box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 5. Header / navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .35s var(--ease), background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(247, 250, 249, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 45px; width: auto; }
.brand__logo--foot { height: 72px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: var(--petroleo); }
.brand__name span { color: var(--menta-600); }
.brand__tag { font-size: .72rem; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; color: var(--grafito); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--petroleo-50); color: var(--petroleo); }
.nav__link[aria-current="page"] { color: var(--petroleo); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 4px; margin-left: -9px; border-radius: 4px; background: var(--menta); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__intranet {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--petroleo);
  border: 2px solid var(--line); transition: border-color .2s, background .2s;
}
.nav__intranet:hover { border-color: var(--petroleo); background: var(--surface); }
.nav__intranet svg { width: 16px; height: 16px; }
.nav__cta { min-height: 44px; padding: 10px 20px; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--petroleo); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed; inset: var(--header-h) 12px auto 12px;
    background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: 14px; display: grid; gap: 12px;
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu { flex-direction: column; align-items: stretch; }
  .nav__link { display: flex; padding: 14px 16px; border-radius: var(--r-md); font-size: 1.05rem; }
  .nav__link[aria-current="page"] { background: var(--petroleo-50); }
  .nav__link[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav__intranet, .nav__cta { justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1041px) { .nav__panel { display: flex; align-items: center; gap: 18px; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(7, 85, 99, .13) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 600; color: var(--petroleo);
}
.hero__badge b { background: var(--menta-100); color: var(--petroleo-800); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.hero h1 { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 3.6vw, 4.1rem); }
.hero h1 .hl { position: relative; color: var(--petroleo); }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; background: var(--menta); opacity: .55; border-radius: 6px; z-index: -1; transform-origin: left; animation: grow 1.1s .5s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__slogan { font-size: var(--fs-lg); font-style: italic; color: var(--petroleo-600); margin-bottom: 8px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--menta-600); flex: none; }

/* Composición visual modular */
.flow { position: relative; aspect-ratio: 1 / 1.02; max-width: 540px; margin-left: auto; width: 100%; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__lines path { fill: none; stroke: var(--petroleo); stroke-opacity: .25; stroke-width: 2; stroke-dasharray: 6 8; }
.flow__lines .pulse { stroke: var(--menta); stroke-opacity: 1; stroke-width: 3; stroke-dasharray: 18 400; stroke-linecap: round; animation: dash 3.8s linear infinite; }
@keyframes dash { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.card-f {
  position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--line); padding: 18px 20px;
  animation: float 7s ease-in-out infinite;
}
.card-f:nth-of-type(2) { animation-delay: -2s; }
.card-f:nth-of-type(3) { animation-delay: -4s; }
.card-f:nth-of-type(4) { animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card-f__label { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.card-f__title { font-weight: 700; color: var(--petroleo); font-size: 1.02rem; line-height: 1.25; }
.card-f--a { top: 2%; left: 0; width: 56%; }
.card-f--b { top: 30%; right: 0; width: 52%; background: var(--petroleo); border-color: transparent; color: #fff; }
.card-f--b .card-f__label { color: #9fd8d0; }
.card-f--b .card-f__title { color: #fff; }
.card-f--c { bottom: 18%; left: 4%; width: 50%; }
.card-f--d { bottom: 0; right: 6%; width: 44%; background: var(--menta); border-color: transparent; }
.card-f--d .card-f__label { color: var(--petroleo-800); }
.card-f--d .card-f__title { color: var(--petroleo-900); }
.steps-mini { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; font-size: .9rem; }
.steps-mini li { display: flex; align-items: center; gap: 10px; }
.steps-mini i { width: 20px; height: 20px; border-radius: 7px; background: var(--menta-100); display: grid; place-items: center; flex: none; }
.steps-mini i::after { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--menta-600); }
.steps-mini li.todo i { background: var(--petroleo-50); }
.steps-mini li.todo i::after { background: #b7cdd0; }
.progress { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--menta); animation: fill 1.8s .6s var(--ease) forwards; }
@keyframes fill { to { width: var(--w, 72%); } }
.card-f__meta { display: flex; justify-content: space-between; font-size: .82rem; color: #b8e3dd; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 12px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--petroleo-50); }
.bars span.on { background: var(--petroleo); }
.bars span.hi { background: var(--menta); }
.big-num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--petroleo-900); margin-top: 6px; letter-spacing: -.03em; }

/* ---------- 7. Tarjetas y rejillas ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon-box {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--petroleo-50); color: var(--petroleo); transition: background .3s, color .3s;
}
.icon-box svg { width: 26px; height: 26px; }
.card:hover .icon-box { background: var(--petroleo); color: var(--menta); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; text-decoration: none; }
.card__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: 1 / -1; }
.card--dark { background: var(--petroleo); border-color: transparent; color: #d7ecea; }
.card--dark h3, .card--dark h2 { color: #fff; }
.card--dark p { color: #b9dcd8; }
.card--dark .icon-box { background: rgba(255, 255, 255, .1); color: var(--menta); }
.card--dark:hover .icon-box { background: var(--menta); color: var(--petroleo-900); }
.card--menta { background: var(--menta-100); border-color: transparent; }

/* Proceso / pasos */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--menta) 0 var(--p, 0%), var(--line) var(--p, 0%)); transition: --p 1s; }
.process li { position: relative; counter-increment: step; }
.process__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 3px solid var(--menta); color: var(--petroleo); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.process__num::before { content: "0" counter(step); }
.process h3 { font-size: 1.15rem; margin-bottom: .35em; }
.process p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Bandas oscuras con grano sutil */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petroleo); color: #cfe7e4; border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; z-index: -1; border-radius: 120px; transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(72, 198, 160, .35), rgba(72, 198, 160, 0));
}
.band h2 { color: #fff; }
.band .lead { color: #b9dcd8; }
.band .eyebrow { color: #9fe0cb; }
.band__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Valores / pills */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--petroleo); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--menta); }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 8px; background: var(--menta-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075563' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.card--dark .check-list li::before { background-color: rgba(72, 198, 160, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348C6A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* Encabezado de páginas internas */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(7, 85, 99, .12) 1px, transparent 0); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); max-width: 18ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a9bcbf; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--petroleo); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }

/* Servicios detallados */
.service {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service + .service { margin-top: 20px; }
.service__n { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--petroleo); letter-spacing: -.04em; }
.service h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .4em; }
.service p { color: var(--muted); }
.service__box { background: var(--bg); border-radius: var(--r-lg); padding: 22px 24px; }
.service__box h3 { font-size: 1rem; margin-bottom: 4px; }
.result {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--menta-100); color: var(--petroleo-900); font-weight: 600; font-size: .98rem;
}
.result svg { width: 22px; height: 22px; flex: none; color: var(--petroleo); margin-top: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips li { font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--petroleo-50); color: var(--petroleo); }
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.service-nav a { text-decoration: none; }

/* Planes */
.plan { display: flex; flex-direction: column; }
.plan .check-list { margin-bottom: 24px; flex: 1; }
.plan__tag { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--menta); color: var(--petroleo-900); margin-bottom: 16px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--petroleo); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--petroleo-50); font-size: 1.3rem; font-weight: 600; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--menta); color: var(--petroleo-900); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- 8. Formularios ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--petroleo); }
.req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--grafito);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075563' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9cfcb; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petroleo); background: #fff; box-shadow: 0 0 0 4px rgba(72, 198, 160, .25); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { display: none; font-size: .85rem; color: var(--danger); font-weight: 600; }
.field.has-error .error { display: block; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; }

/* Selector de tipo PQRS (tarjetas radio) */
.type-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 0; padding: 0; margin: 0; }
.type-picker legend { margin-bottom: 10px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-opt span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 700; color: var(--petroleo); transition: border-color .2s, background .2s, box-shadow .2s;
}
.type-opt small { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.type-opt input:checked + span { border-color: var(--petroleo); background: #fff; box-shadow: 0 0 0 4px rgba(72, 198, 160, .28); }
.type-opt input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--petroleo-50); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--petroleo); cursor: pointer; }
.consent label { font-size: .93rem; font-weight: 400; color: var(--grafito); line-height: 1.5; }
.consent.has-error { box-shadow: inset 0 0 0 1.5px var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.form-foot small { color: var(--muted); }

.alert { display: none; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); margin-top: 18px; font-size: .98rem; }
.alert.is-visible { display: flex; }
.alert svg { width: 24px; height: 24px; flex: none; }
.alert--ok { background: var(--menta-100); color: var(--petroleo-900); }
.alert--err { background: #FDECEC; color: #C62828; }
.alert strong { display: block; margin-bottom: 2px; }

/* Panel de confirmación PQRS */
.receipt { text-align: center; padding: clamp(24px, 4vw, 40px) 8px; }
.receipt__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: var(--menta); color: var(--petroleo-900); }
.receipt__icon svg { width: 38px; height: 38px; }
.receipt__code { display: inline-block; margin: 8px 0 18px; padding: 10px 18px; border-radius: 14px; background: var(--petroleo); color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 1.15rem; }
.receipt p { color: var(--muted); max-width: 56ch; margin-inline: auto; }

/* Info de contacto */
.info-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.info-item .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.info-item strong { display: block; color: var(--petroleo); }
.info-item a, .info-item span { color: var(--muted); text-decoration: none; word-break: break-word; }
.info-item a:hover { color: var(--petroleo); }

/* Tabla de plazos */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--petroleo-50); color: var(--petroleo); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- 9. Páginas legales ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; font-size: .92rem; }
.legal__toc strong { display: block; color: var(--petroleo); margin-bottom: 10px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--petroleo); }
.legal__body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); }
.legal__body h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body li { margin-bottom: .4em; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.note { padding: 16px 18px; border-left: 4px solid var(--menta); background: var(--menta-100); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 18px 0; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--petroleo-900); color: #a9cbc8; padding-top: clamp(56px, 7vw, 88px); margin-top: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.site-footer a { color: #d6ece9; text-decoration: none; }
.site-footer a:hover { color: var(--menta); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #8fbcb7; }
.footer__brand p { margin-top: 18px; max-width: 36ch; }
.footer__slogan { font-style: italic; color: var(--menta); }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .01em; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__legal-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__legal-links a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--menta); flex: none; }
.sic-link {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s, border-color .2s;
}
.sic-link:hover { background: rgba(72, 198, 160, .12); border-color: var(--menta); }
.sic-link svg { width: 32px; height: 32px; flex: none; color: var(--menta); }
.sic-link small { display: block; color: #8fbcb7; font-size: .78rem; }
.sic-link span { color: #fff; font-weight: 600; font-size: .95rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }

/* ---------- 11. WhatsApp flotante ---------- */
.wa { position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa__btn {
  width: 62px; height: 62px; border-radius: 22px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .3s var(--ease), border-radius .3s var(--ease);
}
.wa__btn:hover { transform: translateY(-3px) scale(1.04); }
.wa__btn svg { width: 32px; height: 32px; transition: transform .3s var(--ease), opacity .2s; }
.wa__btn .ico-close { position: absolute; opacity: 0; transform: rotate(-90deg); width: 26px; height: 26px; }
.wa__btn[aria-expanded="true"] { border-radius: 50%; background: var(--petroleo); box-shadow: var(--shadow-md); }
.wa__btn[aria-expanded="true"] .ico-wa { opacity: 0; transform: rotate(90deg); }
.wa__btn[aria-expanded="true"] .ico-close { opacity: 1; transform: none; }
.wa__btn::before { content: ""; position: absolute; width: 62px; height: 62px; border-radius: 22px; border: 2px solid #25d366; animation: ring 2.6s ease-out infinite; pointer-events: none; }
.wa__btn[aria-expanded="true"]::before { display: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.wa__menu {
  width: min(320px, calc(100vw - 28px)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.95);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.wa__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.wa__head { background: var(--petroleo); color: #fff; padding: 18px 20px; }
.wa__head strong { display: block; font-size: 1.05rem; }
.wa__head span { font-size: .88rem; color: #b9dcd8; display: inline-flex; align-items: center; gap: 6px; }
.wa__head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--menta); }
.wa__list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; }
.wa__opt {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--grafito);
  transition: background .2s;
}
.wa__opt:hover { background: var(--bg); color: var(--grafito); }
.wa__opt .icon-box { margin: 0; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.wa__opt .icon-box svg { width: 22px; height: 22px; }
.wa__opt:hover .icon-box { background: var(--petroleo); color: var(--menta); }
.wa__opt strong { display: block; color: var(--petroleo); font-size: .98rem; }
.wa__opt small { color: var(--muted); font-size: .84rem; }
.wa__opt > svg { width: 18px; height: 18px; margin-left: auto; color: var(--menta-600); flex: none; }
.wa__foot { padding: 0 20px 14px; font-size: .78rem; color: var(--muted); }

/* ---------- 12. Banner de cookies ---------- */
.cookie {
  position: fixed; left: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); z-index: 110;
  width: min(440px, calc(100vw - 100px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px; font-size: .92rem; display: none;
}
.cookie.is-visible { display: block; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie strong { color: var(--petroleo); display: block; margin-bottom: 6px; font-size: 1rem; }
.cookie p { color: var(--muted); margin-bottom: 14px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { min-height: 42px; padding: 8px 18px; font-size: .92rem; }

/* ---------- 13. Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; }
  .service__n { font-size: 2.4rem; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .band__grid { grid-template-columns: 1fr; }
  .flow { margin: 12px auto 0; max-width: 480px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .bento .span-6 { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process::before { display: none; }
  .band__actions { justify-content: flex-start; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .type-picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .grid--2, .grid--3, .grid--4, .form-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: auto; }
  .process { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__logo { height: 38px; }
  .flow { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow__lines { display: none; }
  .card-f { position: static; width: auto !important; padding: 14px 15px; border-radius: 18px; animation: none; }
  .card-f__title { font-size: .92rem; }
  .steps-mini { font-size: .8rem; gap: 6px; }
  .big-num { font-size: 1.7rem; }
  .bars { height: 44px; }
  .cookie { width: calc(100vw - 24px); bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.receipt__logo { display: none; height: 56px; width: auto; margin: 0 auto 20px; }
.receipt__date { font-size: .92rem; }
.receipt__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

@media print {
  .site-header, .wa, .cookie, .site-footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Constancia de PQRS: al imprimir solo sale el recuadro del radicado */
  body:has(#pqrs-receipt:not([hidden])) main > section:not(#formulario),
  body:has(#pqrs-receipt:not([hidden])) #formulario .split > div:first-child,
  .receipt__logo { display: none; height: 56px; width: auto; margin: 0 auto 20px; }
.receipt__date { font-size: .92rem; }
.receipt__actions { display: none !important; }
  body:has(#pqrs-receipt:not([hidden])) #formulario .split { display: block; }
  .form-card { box-shadow: none; border: 1px solid #DCE5E3; }
  .receipt__logo { display: block; }
}

/* Las tablas largas se desplazan dentro de su recuadro, no la página */
.legal > * { min-width: 0; }
