/* ============================================================
   PAMPA BRAVA — Sitio institucional V8
   Azul Industrial #1C3D5A · Negro Taller #161616 · Gris Placa #54585C
   Lenguaje: placa de fábrica (remaches en esquinas), líneas de cota, regla de precisión.
   Look deliberado: claro, con bandas oscuras.
   ============================================================ */
:root {
  --azul: #1C3D5A;
  --azul-2: #274a6b;
  --azul-claro: #9AB2C4;
  --azul-hielo: #CFE0EE;
  --negro: #161616;
  --negro-2: #202427;
  --blanco: #FFFFFF;
  --gris: #54585C;
  --gris-claro: #8A8A8A;
  --fondo: #F5F5F5;
  --linea: #E5E5E5;
  --tint: #EDF2F6;
  --maxw: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --hdr: 72px;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --head: 'Archivo', 'Arial Black', Arial, sans-serif;
  --body: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--negro); background: var(--blanco);
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; color: var(--azul); margin: 0 0 .5em; line-height: 1.08; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.6vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; }
h4 { font-size: 15px; letter-spacing: .02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--azul); color: #fff; padding: 10px 16px; z-index: 300; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { padding-block: clamp(64px, 9vw, 120px); }
.bg-fondo { background: var(--fondo); }
.bg-tint { background: var(--tint); }
.bg-negro { background: var(--negro); color: #e8ecef; }
.bg-negro h2, .bg-negro h3, .bg-negro h4 { color: #fff; }
.bg-azul { background: var(--azul); color: #fff; }
.bg-azul h2, .bg-azul h3 { color: #fff; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gris-claro); font-weight: 500; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.on-dark .eyebrow, .eyebrow.on-dark, .bg-negro .eyebrow, .bg-azul .eyebrow { color: var(--azul-claro); }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--gris); line-height: 1.55; max-width: 62ch; }
.bg-negro .lead, .bg-azul .lead, .on-dark .lead { color: var(--azul-hielo); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.note { font-size: 13.5px; color: var(--gris-claro); line-height: 1.5; }
.bg-negro .note, .bg-azul .note { color: var(--azul-claro); }
.mono { font-family: var(--mono); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 2px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-2); }
.btn-outline { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-outline:hover { background: var(--azul); color: #fff; }
.btn-light { background: #fff; color: var(--azul); }
.btn-light:hover { background: var(--azul-hielo); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--azul); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; color: var(--azul); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; display: inline-block; }
.link-arrow:hover { color: var(--azul-2); }
.bg-negro .link-arrow, .bg-azul .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 200; background: #fff; border-bottom: 1px solid var(--linea); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(22,22,22,.08); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 18px; color: var(--negro); letter-spacing: .6px; flex: none; }
.brand .logo-mark { width: 36px; height: 36px; color: var(--azul); flex: none; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.main-nav > a, .nav-drop > button { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--negro); position: relative; padding: 6px 0; background: none; border: 0; cursor: pointer; font-family: inherit; }
.main-nav > a:hover, .nav-drop > button:hover, .main-nav a.active, .nav-drop.active > button { color: var(--azul); }
.main-nav > a.active::after, .nav-drop.active > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--azul); }
.nav-drop { position: relative; }
.nav-drop > button::after { }
.nav-drop .menu { position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff; border: 1px solid var(--linea); box-shadow: 0 18px 40px rgba(22,22,22,.12); padding: 10px; display: none; margin-top: 10px; }
.nav-drop .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .menu, .nav-drop:focus-within .menu, .nav-drop.open .menu { display: block; }
.nav-drop .menu a { display: block; padding: 11px 14px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--negro); border-left: 2px solid transparent; }
.nav-drop .menu a small { display: block; color: var(--gris-claro); font-size: 12.5px; font-weight: 400; }
.nav-drop .menu a:hover, .nav-drop .menu a.active { background: var(--tint); border-left-color: var(--azul); color: var(--azul); }
.nav-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; color: var(--azul); font-weight: 600; padding: 10px 0; }
@media (max-width: 1040px) {
  .main-nav { display: none; position: fixed; inset: calc(var(--hdr) + env(safe-area-inset-top, 0px)) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gut) 40px; overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { font-size: 20px; padding: 18px 0; border-bottom: 1px solid var(--linea); text-align: left; width: 100%; font-family: var(--head); font-weight: 900; }
  .main-nav > a.active::after, .nav-drop.active > button::after { display: none; }
  .nav-drop .menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; margin: 0; min-width: 0; }
  .nav-drop .menu::before { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Placa / remaches ---------- */
.brackets { position: relative; }
.brackets::before, .brackets::after, .brackets > .bl, .brackets > .br { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--azul); pointer-events: none; z-index: 3; }
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brackets::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.brackets > .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.brackets > .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.brackets.light::before, .brackets.light::after, .brackets.light > .bl, .brackets.light > .br { border-color: #fff; }
.figure { position: relative; overflow: hidden; background: var(--negro-2); margin: 0; }
.figure img, .figure video { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption, .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(22,22,22,.78), transparent); z-index: 2; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--negro); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,22,30,.86) 0%, rgba(22,40,58,.62) 46%, rgba(22,22,22,.18) 100%), linear-gradient(to top, rgba(14,18,22,.85) 0%, transparent 38%); }
.hero-main { min-height: min(86vh, 800px); display: flex; flex-direction: column; justify-content: center; padding-block: 72px 150px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .45em; }
.hero .lead { color: var(--azul-hielo); margin-bottom: 34px; max-width: 54ch; }
.hero.small .hero-main { min-height: 0; padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px); }
.hero.small h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 20ch; }
.hero-tools { position: absolute; right: var(--gut); top: 20px; display: flex; gap: 8px; z-index: 5; }
.vbtn { width: 40px; height: 40px; border-radius: 2px; border: 1px solid rgba(255,255,255,.5); background: rgba(22,22,22,.35); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vbtn:hover { background: #fff; color: var(--azul); }
.vbtn svg { width: 16px; height: 16px; }

/* Regla de cota 0 → 10 días */
.cota { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-top: 1px solid rgba(255,255,255,.28); background: linear-gradient(to top, rgba(14,18,22,.7), rgba(14,18,22,.0)); }
.cota-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gut) 22px; }
.cota-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--azul-claro); display: flex; justify-content: space-between; margin-bottom: 12px; }
.cota-label b { color: #fff; font-weight: 500; }
.cota-line { position: relative; height: 22px; border-top: 2px solid #fff; display: grid; grid-template-columns: repeat(5, 1fr); }
.cota-line::before, .cota-line::after { content: ""; position: absolute; top: -12px; width: 2px; height: 22px; background: #fff; }
.cota-line::before { left: 0; } .cota-line::after { right: 0; }
.cota-line span { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: #fff; padding: 12px 8px 0 0; border-left: 1px solid rgba(255,255,255,.35); margin-top: -2px; }
.cota-line span:first-child { border-left: 0; }
.cota-line span::before { content: ""; position: absolute; left: -1px; top: -4px; width: 1px; height: 8px; background: #fff; }
.cota-line span:first-child::before { display: none; }
@media (max-width: 760px) {
  .cota-line span { font-size: 0; }
  .cota-line span::after { content: attr(data-n); font-size: 12px; font-family: var(--mono); letter-spacing: 1px; }
  .hero-main { padding-block: 56px 130px; }
}

/* ---------- Ruteador de audiencias ---------- */
.router { margin-top: -1px; background: var(--negro); color: #fff; }
.router-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.router a { display: block; padding: 30px clamp(18px, 2.4vw, 34px); text-decoration: none; border-left: 1px solid rgba(255,255,255,.14); transition: background .2s; position: relative; }
.router a:first-child { border-left: 0; padding-left: 0; }
.router a:hover { background: var(--azul); }
.router .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--azul-claro); display: block; margin-bottom: 10px; }
.router .what { font-family: var(--head); font-weight: 900; font-size: clamp(19px, 2vw, 24px); line-height: 1.15; display: block; margin-bottom: 8px; }
.router .more { font-size: 14.5px; color: var(--azul-hielo); display: block; }
.router .go { position: absolute; right: 22px; top: 30px; width: 22px; height: 22px; opacity: .6; }
@media (max-width: 860px) { .router-grid { grid-template-columns: 1fr; } .router a, .router a:first-child { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 26px 40px 26px 0; } .router a:first-child { border-top: 0; } .router .go { right: 0; top: 28px; } }

/* ---------- Datos / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.stat { background: #fff; padding: clamp(22px, 3vw, 36px); }
.stat .n { font-family: var(--head); font-weight: 900; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; color: var(--azul); letter-spacing: -.02em; display: block; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .42em; letter-spacing: 0; margin-left: 4px; }
.stat .l { display: block; margin-top: 14px; font-size: 15px; color: var(--gris); line-height: 1.4; }
.stat .norm { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; color: var(--gris-claro); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.inti-line { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--gris); }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; padding: 6px 10px; border: 1px solid var(--linea); background: #fff; color: var(--azul); }

/* ---------- Layouts ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.split.rev > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.ratio-43 { aspect-ratio: 4/3; } .ratio-169 { aspect-ratio: 16/9; } .ratio-45 { aspect-ratio: 4/5; } .ratio-916 { aspect-ratio: 9/16; } .ratio-32 { aspect-ratio: 3/2; } .ratio-11 { aspect-ratio: 1/1; }
.figure.portrait { max-width: 400px; margin-inline: auto; width: 100%; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 2px; background: var(--azul); }
.ticks li b { color: var(--negro); font-weight: 600; }
.bg-negro .ticks li b, .bg-azul .ticks li b { color: #fff; }
.bg-negro .ticks li::before, .bg-azul .ticks li::before { background: var(--azul-claro); }

/* ---------- Contraste (alternativa vs necesidad) ---------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; }
.contrast > div { padding: clamp(28px, 4vw, 52px); }
.contrast .bad { background: var(--fondo); }
.contrast .good { background: var(--azul); color: #fff; }
.contrast h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 500; margin-bottom: 26px; }
.contrast .bad h3 { color: var(--gris); }
.contrast .good h3 { color: var(--azul-hielo); }
.contrast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contrast li { padding-left: 30px; position: relative; font-size: 18px; line-height: 1.4; }
.contrast li::before { content: "—"; position: absolute; left: 0; }
.contrast .bad li { color: #3a3a3a; }
.contrast .good li { font-weight: 600; }
.contrast .good li::before { color: var(--azul-claro); }
@media (max-width: 800px) { .contrast { grid-template-columns: 1fr; } }

/* ---------- Tabla comparativa ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--linea); vertical-align: top; line-height: 1.45; }
.cmp thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris-claro); font-weight: 500; border-bottom: 2px solid var(--negro); }
.cmp thead th.pb { color: var(--azul); }
.cmp tbody th { font-weight: 600; color: var(--negro); width: 17%; }
.cmp td.pb { background: var(--tint); color: #14324a; font-weight: 600; }
.cmp td { color: #3a3a3a; }
@media (max-width: 860px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border: 1px solid var(--linea); margin-bottom: 14px; background: #fff; }
  .cmp tbody th { width: 100%; background: var(--negro); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; padding: 12px 16px; }
  .cmp td { border-bottom: 1px solid var(--linea); padding: 14px 16px; }
  .cmp td::before { content: attr(data-l); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gris-claro); margin-bottom: 4px; font-weight: 500; }
  .cmp td.pb::before { color: var(--azul); }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--linea); padding: clamp(24px, 3vw, 36px); position: relative; }
.card.fill { background: var(--fondo); border-color: var(--fondo); }
.card .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--azul); margin-bottom: 18px; display: block; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--gris); font-size: 16px; }
.card.link { text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; padding: 0; overflow: hidden; }
.card.link:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(22,22,22,.12); border-color: var(--azul); }
.card.link .ph { aspect-ratio: 16/10; overflow: hidden; background: var(--negro-2); }
.card.link .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card.link:hover .ph img { transform: scale(1.05); }
.card.link .tx { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card.link .tx p { flex: 1; }

.sector-icon { width: 76px; height: 52px; object-fit: contain; object-position: left; margin-bottom: 18px; }

/* ---------- Proceso / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 22px 0 0; position: relative; }
.step .num { font-family: var(--head); font-weight: 900; font-size: 40px; color: #AEC6D6; line-height: 1; display: block; margin-bottom: 14px; }
.step::before { content: ""; display: block; height: 2px; background: var(--negro); margin-bottom: 18px; position: relative; }
.step h3 { font-size: 18px; margin-bottom: 10px; color: var(--negro); }
.step p { font-size: 15px; color: var(--gris); line-height: 1.5; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr; gap: 0; } .step { padding: 0 0 30px 64px; } .step::before { display: none; } .step .num { position: absolute; left: 0; top: 0; font-size: 36px; } .step { border-left: 0; } .steps { position: relative; } }
.steps.vert { grid-template-columns: 1fr; }
.v-step { display: grid; grid-template-columns: 110px 1fr minmax(0, 420px); gap: clamp(20px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--linea); align-items: start; }
.v-step:last-child { border-bottom: 1px solid var(--linea); }
.v-step .num { font-family: var(--head); font-weight: 900; font-size: clamp(48px, 6vw, 80px); color: #AEC6D6; line-height: .9; }
.v-step h3 { font-size: clamp(22px, 2.4vw, 30px); }
.v-step p { color: var(--gris); max-width: 56ch; }
.v-step .figure { aspect-ratio: 4/3; }
@media (max-width: 900px) { .v-step { grid-template-columns: 1fr; } .v-step .num { font-size: 52px; } }

/* ---------- Banda de números grandes (planta) ---------- */
.ribbon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--negro); }
.ribbon .figure { aspect-ratio: 4/5; }
@media (max-width: 760px) { .ribbon { grid-template-columns: 1fr; } .ribbon .figure { aspect-ratio: 4/3; } }

/* ---------- Casos ---------- */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.case > * { min-width: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
.case-block { padding: 20px 0; border-top: 1px solid var(--linea); display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.case-block:last-of-type { border-bottom: 1px solid var(--linea); margin-bottom: 26px; }
.case-block .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--azul); padding-top: 3px; }
.case-block p { margin: 0; color: #333; }
@media (max-width: 520px) { .case-block { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--negro); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; font-family: var(--head); font-weight: 900; font-size: clamp(18px, 1.8vw, 22px); color: var(--azul); position: relative; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: linear-gradient(var(--azul), var(--azul)) center/100% 2px no-repeat, linear-gradient(var(--azul), var(--azul)) center/2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 56px 26px 0; color: #333; max-width: 72ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Glosario normas ---------- */
.norms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.norms > div { background: #fff; padding: 22px 24px; }
.norms dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px; color: var(--azul); margin-bottom: 6px; font-weight: 500; }
.norms dd { margin: 0; font-size: 15px; color: var(--gris); }
@media (max-width: 700px) { .norms { grid-template-columns: 1fr; } }

/* ---------- Ficha técnica ---------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 18px 16px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.spec thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris-claro); border-bottom: 2px solid var(--negro); font-weight: 500; }
.spec td.v { font-family: var(--head); font-weight: 900; font-size: 26px; color: var(--azul); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec td.m { font-family: var(--mono); font-size: 13px; color: var(--gris); }
@media (max-width: 760px) {
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec td, .spec th { display: block; width: 100%; }
  .spec tr { border: 1px solid var(--linea); margin-bottom: 14px; padding: 6px 0; }
  .spec td, .spec th { border: 0; padding: 6px 16px; }
}
.scroll-x { overflow-x: auto; }

/* ---------- Planner / formulario ---------- */
.planner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.planner > * { min-width: 0; }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--linea); padding: clamp(22px, 3vw, 36px); }
.panel.dark { background: var(--negro); color: #e8ecef; border-color: var(--negro); }
.panel h3 { font-size: 20px; margin-bottom: 18px; }
.panel.dark h3 { color: #fff; }
.mix { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.mix-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.mix-row b { display: block; font-size: 16.5px; font-weight: 600; }
.mix-row small { color: var(--gris-claro); font-size: 13.5px; display: block; line-height: 1.35; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--azul); }
.stepper button { width: 42px; height: 42px; background: #fff; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--azul); font-family: var(--body); }
.stepper button:hover { background: var(--azul); color: #fff; }
.stepper output { min-width: 46px; text-align: center; font-family: var(--head); font-weight: 900; font-size: 20px; color: var(--azul); font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span, .fieldset-l { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid #cfd4d8; border-radius: 2px; background: #fff; color: var(--negro); width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(28,61,90,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 14px; border: 1.5px solid #cfd4d8; font-size: 14.5px; font-weight: 500; transition: all .15s; background: #fff; }
.pills input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--azul-claro); outline-offset: 2px; }
.summary { font-family: var(--mono); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 18px; margin: 0 0 18px; color: #e8ecef; user-select: all; min-height: 140px; }
.summary-light { background: var(--fondo); border: 1px solid var(--linea); color: var(--negro); }
.sticky-col { position: sticky; top: calc(var(--hdr) + 20px); }
@media (max-width: 960px) { .sticky-col { position: static; } }
.status { font-size: 14px; color: var(--azul-hielo); min-height: 22px; margin-top: 12px; }
.panel:not(.dark) .status { color: var(--azul); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--azul); color: #fff; padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: var(--azul-hielo); max-width: 56ch; font-size: 19px; }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta-band .mark-bg { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(520px, 60vw); color: #fff; opacity: .06; z-index: 1; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--negro); color: #aeb6bc; padding-block: 72px 28px; }
.site-footer a { text-decoration: none; display: block; padding: 5px 0; color: #cdd3d8; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--head); font-weight: 900; font-size: 20px; letter-spacing: .6px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 40px; height: 40px; }
.footer-tag { font-family: var(--head); font-weight: 900; font-size: 20px; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .6px; color: #8c969d; }

/* ---------- Barra móvil ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--linea); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(22,22,22,.1); }
  .mbar .btn { width: 100%; justify-content: center; }
  body { padding-bottom: 72px; }
}

/* ---------- Varios ---------- */
.rule { height: 1px; background: var(--linea); border: 0; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; font-size: 15.5px; margin: 0 0 20px; }
.kv dt { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gris-claro); padding-top: 3px; }
.kv dd { margin: 0; color: #333; }
.quote { font-family: var(--head); font-weight: 900; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; color: var(--azul); max-width: 24ch; }
.bg-negro .quote { color: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--azul-claro); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; opacity: .8; } .breadcrumb a:hover { opacity: 1; }
.subnav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--linea); background: #fff; position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); z-index: 90; }
.subnav .wrap { display: flex; gap: clamp(14px, 3vw, 34px); overflow-x: auto; }
.subnav a { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris); padding: 16px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--azul); border-bottom-color: var(--azul); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.split .section-head { margin-bottom: 22px; }
.cota-label b { letter-spacing: 3px; }

@media (max-width: 760px) { .cota-label span { display: none; } .cota-label { justify-content: center; text-align: center; } .cota-label b { letter-spacing: 1.2px; line-height: 1.5; } }

@media (max-width: 760px) { .cota-line span { text-align: center; padding-right: 0; } .cota-line span::after { display: block; } }

.cota-note { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .3px; color: var(--azul-claro); line-height: 1.5; max-width: 920px; }
@media (max-width: 760px) { .cota-note { font-size: 10.5px; } }
/* regla 0→10 días en la sección "Cómo trabajamos" (fondo claro) */
.cota.cota-static { position: static; border-top: 0; background: none; margin: 8px 0 28px; }
.cota-static .cota-inner { padding: 0; max-width: none; }
.cota-static .cota-label { color: var(--gris); }
.cota-static .cota-label b { color: var(--azul); }
.cota-static .cota-line { border-top-color: var(--azul); height: 18px; }
.cota-static .cota-line::before, .cota-static .cota-line::after { background: var(--azul); }
.cota-static .cota-line span { border-left-color: rgba(28,61,90,.35); padding: 0; }
.cota-static .cota-line span::before { background: var(--azul); }
.hero-media img { object-position: 62% 55%; }
@media (max-width: 760px) { .hero-media img { object-position: 70% 50%; } }
/* portada con foto: velo más liviano a la derecha para que se vean nítidos los módulos */
@media (min-width: 761px) { .hero:not(.small)::before { background: linear-gradient(100deg, rgba(14,22,30,.84) 0%, rgba(18,32,46,.55) 38%, rgba(14,18,22,.04) 72%, rgba(14,18,22,0) 100%), linear-gradient(to top, rgba(14,18,22,.72) 0%, transparent 28%); } }

/* Página legal */
.legal h2 { font-size: clamp(20px, 2vw, 24px); margin: 2em 0 .6em; }
.legal p { color: var(--gris); line-height: 1.65; max-width: 68ch; margin: 0 0 1em; }
.legal a { color: var(--azul); }
.footer-bottom a { font-size: 12px; color: inherit; text-decoration: underline; text-underline-offset: 3px; } .footer-bottom a:hover { color: #fff; }
