/* ============================================================
   DEVUÉLVAME LA PLATA — estilos
   Oscuro + un acento ámbar. La portada lleva la escena 3D; el resto
   son secciones con fondo propio para dar ritmo. Un solo archivo.
   ============================================================ */

:root {
  --bg:        #05070c;
  --bg-2:      #0a0f19;
  --ink:       #f3f5f9;
  --ink-dim:   #b9c2d1;
  --ink-faint: #8a98ac;
  --gold:      #ffb020;
  --gold-soft: #ffd27a;
  --red:       #ff5a4e;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);
  --panel:     rgba(9, 13, 21, .78);
  --radius:    6px;
  --maxw:      1120px;
  --display:   'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --sans:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; }
.muted { color: var(--ink-faint); }
.pendiente { background: var(--gold); color: #14100a; padding: 0 5px; border-radius: 3px; font-weight: 600; }
.enlace { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.enlace:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

/* ---------- escena 3D (solo portada) ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 10%, transparent 40%, rgba(5,7,12,.55) 85%),
    linear-gradient(90deg, rgba(5,7,12,.6) 0%, rgba(5,7,12,.15) 55%, transparent 100%);
}
.flashlayer {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 60% at var(--fx, 50%) var(--fy, 50%), rgba(255,255,255,.85), rgba(255,214,140,.30) 30%, transparent 65%);
}
.flashlayer.on  { animation: shot .42s ease-out; }
.flashlayer.hit { animation: shot-hit .5s ease-out; }
@keyframes shot     { 0% { opacity: 0; } 8% { opacity: .9; } 100% { opacity: 0; } }
@keyframes shot-hit { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: .25; } 100% { opacity: 0; } }

/* visor AF */
.af {
  position: fixed; left: 0; top: 0; width: 74px; height: 52px; z-index: 40;
  pointer-events: none; opacity: 0; will-change: transform;
  transition: opacity .25s ease;
}
.af.on { opacity: .8; } .af.locked { opacity: .9; }
.af-corner { position: absolute; width: 11px; height: 11px; border: 2px solid var(--gold); }
.af-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.af-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.af-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.af-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.af-dot { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: var(--gold); border-radius: 50%; }
@media (hover: none), (pointer: coarse) { .af { display: none; } }

#filewarn { position: fixed; top: 0; left: 0; right: 0; z-index: 60; margin: 0; padding: 14px 22px; background: var(--gold); color: #14100a; font-size: 14px; }
#filewarn code { background: rgba(0,0,0,.15); padding: 1px 5px; border-radius: 3px; }
#dbg {
  position: fixed; left: 10px; bottom: 10px; z-index: 70; background: rgba(0,0,0,.72);
  border: 1px solid var(--line-2); color: var(--ink); font: 500 11px/1.5 ui-monospace, Consolas, monospace;
  padding: 8px 10px; pointer-events: none; white-space: pre;
}
#dbg b { color: var(--gold); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--gold); color: #000; padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- barra superior + navegación ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 3.5vw, 36px);
  background: rgba(5,7,12,.9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sigla {
  font: 400 15px/1 var(--display); letter-spacing: .04em; color: #0d0f14;
  background: linear-gradient(180deg, #ffe46b 0%, #f7c81a 55%, #dba400 100%);
  border: 2px solid #111318; border-radius: 6px; padding: 5px 8px 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.brand-txt { font: 400 16px/1 var(--display); letter-spacing: -.01em; color: var(--ink); }
@media (max-width: 420px) {
  .brand { gap: 8px; } .sigla { font-size: 13px; padding: 4px 6px 3px; } .brand-txt { font-size: 13.5px; }
}
.rec { display: none; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.topnav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.topnav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.topnav .cta-mini { padding: 9px 16px; border-radius: var(--radius); background: var(--gold); color: #14100a; font-weight: 700; border-bottom: 0; }
.topnav .cta-mini:hover { background: var(--gold-soft); color: #14100a; }

.navbtn { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--radius); padding: 8px 14px; font: 600 14px/1 var(--sans); cursor: pointer; }
@media (max-width: 880px) {
  .navbtn { display: inline-block; }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px clamp(16px, 4vw, 36px) 18px; background: #05070c; border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 40px rgba(0,0,0,.6);
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .topnav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold); }
  .topnav .cta-mini { margin-top: 14px; text-align: center; padding: 14px 16px; border: 0; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius);
  color: var(--ink); font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .18s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost:hover { border-color: var(--ink-dim); background: rgba(255,255,255,.05); }
.btn-link { border: 0; background: none; padding: 15px 8px; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.btn-link:hover { color: var(--ink); transform: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.shutter { position: absolute; inset: 0; background: rgba(255,255,255,.5); transform: translateY(101%); }
.btn.shooting .shutter { animation: shut .5s ease-out; }
@keyframes shut { 0% { transform: translateY(101%); } 40% { transform: translateY(0); } 100% { transform: translateY(-101%); } }
.mas { color: var(--gold-soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.mas:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.mas-wrap { margin: 28px 0 0; }

/* ---------- secciones ---------- */
main { position: relative; z-index: 5; }
.sec { padding-block: clamp(56px, 8vw, 104px); position: relative; background: var(--bg); }
.sec-panel { background: var(--bg-2); }
.h1 { font: 400 clamp(32px, 5.4vw, 64px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.h2 { font: 400 clamp(26px, 3.8vw, 44px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.h3 { font: 400 20px/1.25 var(--display); letter-spacing: -.01em; margin: 28px 0 10px; }
.sub, .lead-sm { color: var(--ink-dim); max-width: 66ch; margin: 0 0 36px; font-size: 17px; }
.lead-sm { margin-bottom: 32px; }
.lead-sm strong, .sub strong { color: var(--ink); }

/* ---------- portada ---------- */
.hero { position: relative; z-index: 5; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 70px; }
.hero .wrap { width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--sans); color: var(--ink-dim); margin: 0 0 22px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
h1 { font-family: var(--display); font-weight: 400; margin: 0 0 28px; line-height: .98; letter-spacing: -.025em; }
h1 span { display: block; }
h1 .l1, h1 .l2 { font-size: clamp(38px, 8.6vw, 112px); color: var(--ink); }
h1 .l3 { font-size: clamp(30px, 6.9vw, 90px); color: var(--gold); }
.lede { max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); margin: 0 0 32px; }
.lede strong { color: var(--ink); font-weight: 700; }
.lede em { color: var(--gold-soft); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
@media (max-width: 560px) { .hero-actions { flex-direction: column; } .hero-actions .btn { width: 100%; } }
.live { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live-num { font: 400 clamp(26px, 3.5vw, 36px)/1 var(--display); color: var(--gold); }
.live-txt { font-size: 15px; color: var(--ink-dim); }

/* ---------- fondos claros: cifras y caminos ---------- */
.sec-claro, .sec-blanco { color: #0d1220; }
.sec-claro { background: #eef1f6; }
.sec-blanco { background: #fff; }
.sec-claro .h2, .sec-blanco .h2 { color: #0d1220; }
.sec-claro .sub, .sec-blanco .sub { color: #46506a; }
.sec-claro .mas, .sec-blanco .mas {
  color: #0d1220; text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.sec-claro .mas:hover, .sec-blanco .mas:hover { text-decoration-color: #0d1220; }

/* cifras: cada número es una placa */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 4px 26px 8px; border-left: 1px solid #c4ccdb; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; max-width: 100%; margin: 0 0 18px;
  padding: 10px 15px 8px; border: 4px solid #111318; border-radius: 12px; color: #0d0f14;
  background: linear-gradient(180deg, #ffe46b 0%, #f7c81a 48%, #dba400 100%);
  font: 400 clamp(22px, 2.3vw, 32px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55);
}
.stat-num .pre, .stat-num .suf { font-size: .5em; color: #0d0f14; letter-spacing: 0; }
.stat-num .suf { margin-left: .25em; }
.stat-lbl { margin: 0 0 10px; color: #0d1220; font-size: 16px; line-height: 1.5; }
.stat-est { margin: 0; color: #4a556d; font-size: 14px; line-height: 1.5; }
.stat-est b { color: #0d1220; }
.stat-alert { color: #8a1c12; } .stat-alert b { color: #b42318; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 38px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-num { font-size: clamp(26px, 5vw, 34px); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stat { border-left: 0; border-top: 1px solid #c4ccdb; padding: 26px 0 26px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
}

/* dos caminos: bloques abiertos con regla negra, sin tarjetas */
.grid2 { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 60px; }
.card { border-top: 4px solid #0d1220; padding-top: 22px; }
.card h3 { font: 400 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 12px; color: #0d1220; }
.card p { color: #2c3550; font-size: 17px; margin: 0 0 12px; max-width: 48ch; }
.card strong { color: #0d1220; }
.card .muted { color: #59647c; font-size: 15px; }
.card-ref { margin: 0 0 6px; color: #8a5a00; font-size: 14px; font-weight: 700; }
.steps-titulo { font: 400 clamp(20px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 30px; color: #0d1220; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding-top: 30px; border-top: 1px solid #c4ccdb; }
.step-n { position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #111318; color: var(--gold); font: 400 15px/1 var(--display); }
.step h3 { font: 400 18px/1.25 var(--display); margin: 0 0 8px; color: #0d1220; }
.step p { margin: 0; color: #2c3550; font-size: 16px; max-width: 40ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 38px; } }

/* quién promueve */
.sec-promotor { background: var(--bg); overflow: hidden; }
.promotor { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.promotor-txt .promotor-nombre { font: 400 clamp(22px, 2.6vw, 32px)/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 14px; color: var(--gold); }
.promotor-txt p { color: var(--ink-dim); max-width: 56ch; font-size: 17px; }
.promotor-txt .hero-actions { margin: 26px 0 0; }
.promotor-foto {
  margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 36%, #ffe98a 0%, #f7c81a 58%, #dba400 100%);
}
.promotor-foto img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .promotor { grid-template-columns: 1fr; } .promotor-foto { max-width: 440px; } }

/* ---------- formulario (sobre ámbar) ---------- */
.sec-form {
  color: #14100a;
  background:
    repeating-linear-gradient(135deg, rgba(20,16,10,.07) 0 14px, transparent 14px 28px),
    var(--gold);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.sec-form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(135deg, #14100a 0 14px, var(--gold) 14px 28px);
}
.sec-form .h2 { color: #14100a; }
.sec-form .sub { color: #3a2c0a; } .sec-form .sub strong { color: #14100a; }
.formwrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .formwrap { grid-template-columns: 1fr; } }

.form, .success, .formside {
  background: #0b101a; color: var(--ink); border: 1px solid rgba(20,16,10,.5);
  border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(20,16,10,.7);
}
.form { padding: clamp(20px, 3vw, 34px); }

.stepper { list-style: none; display: none; gap: 10px; margin: 0 0 24px; padding: 0; }
.form.wizard .stepper { display: flex; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.stepper li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); color: var(--ink); font-size: 12px; flex: none; }
.stepper li small { font-weight: 400; color: var(--ink-faint); }
.stepper li.on { border-color: var(--gold); color: var(--ink); }
.stepper li.on span { background: var(--gold); color: #14100a; }
.stepper li.done span { background: var(--gold-soft); color: #14100a; }
@media (max-width: 520px) { .stepper li small { display: none; } }

.paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.form.wizard .paso { display: none; }
.form.wizard .paso.on { display: block; }
.paso-ayuda { margin: 0 0 18px; color: var(--ink-dim); font-size: 14.5px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 18px; }
.lbl { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.lbl b { color: var(--gold); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; padding: 13px 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  border-radius: var(--radius); color: var(--ink); font: 400 16px/1.4 var(--sans); outline: none; text-overflow: ellipsis;
  transition: border-color .18s, background .18s, box-shadow .18s; color-scheme: dark;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: .85; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); background: rgba(255,176,32,.06); box-shadow: 0 0 0 3px rgba(255,176,32,.18); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.selectwrap { position: relative; }
.selectwrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; font-size: 14px; }
select option { background: #0b1018; color: var(--ink); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: rgba(255,90,78,.07); }
.err { display: block; color: #ff8a80; font-size: 13px; font-style: normal; margin-top: 6px; }
.err:empty { display: none; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.acciones .btn-primary { min-width: 180px; }
@media (max-width: 520px) { .acciones { flex-direction: column-reverse; align-items: stretch; } .acciones .btn { width: 100%; } }

.filefield input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.03); color: var(--ink-dim); font: 400 14px/1.4 var(--sans); }
.file-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-faint); }
.filelist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.filelist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-dim); }
.filelist li.bad { color: #ff8a80; } .fsize { color: var(--ink-faint); }

.aviso-priv { margin: 22px 0 6px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255,255,255,.04); }
.aviso-priv p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }
.aviso-priv strong { color: var(--ink); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 20px 0 4px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255,255,255,.05); cursor: pointer; position: relative; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #14100a; font-size: 13px; font-weight: 700; }
.check span { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
.check strong { color: var(--ink); }
.check.invalid input { border-color: var(--red); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.micro { font-size: 13px; color: var(--ink-faint); margin: 16px 0 0; }
.micro strong { color: var(--ink-dim); }
.status { margin: 14px 0 0; font-size: 14px; min-height: 20px; }
.status.error { color: #ff8a80; } .status.ok { color: var(--gold); }

.success { padding: clamp(26px, 3vw, 40px); text-align: center; border-color: var(--gold); animation: pop .5s cubic-bezier(.2,.9,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.success-badge { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--gold); color: #14100a; font-size: 28px; font-weight: 700; border-radius: 50%; }
.success h3 { font: 400 clamp(24px, 3vw, 30px)/1.15 var(--display); margin: 0 0 12px; }
.success p { color: var(--ink-dim); margin: 0 auto 22px; max-width: 46ch; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success code { color: var(--gold); word-break: break-all; font-size: 13px; }

.formside { padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.formside h4 { font: 400 15px/1.3 var(--display); margin: 8px 0 0; }
.formside h4:first-child { margin-top: 0; }
.formside p, .formside li { color: var(--ink-dim); font-size: 15px; margin: 0 0 6px; }
.formside ul { margin: 0 0 6px; padding-left: 18px; }

/* ---------- páginas internas ---------- */
body.inner { background: var(--bg); }
.pagehead { padding-top: 128px; padding-bottom: 36px; }
.pagehead .lead { max-width: 64ch; color: var(--ink-dim); font-size: clamp(16px, 1.7vw, 19px); margin: 0 0 22px; }
.pagehead .lead strong { color: var(--ink); }
.saltos { display: flex; flex-wrap: wrap; gap: 8px; }
.saltos a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-dim); }
.saltos a:hover { border-color: var(--gold); color: var(--gold-soft); }
.ref { margin: 0 0 8px; font-size: 14px; color: var(--gold-soft); font-weight: 600; }

.cols3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }
.bloque { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sec-panel .bloque { background: rgba(255,255,255,.03); }
.bloque h3 { font: 400 18px/1.25 var(--display); margin: 0 0 14px; }
.bloque-limite { border-color: rgba(255,90,78,.45); }
.bloque-limite h3 { color: #ffb4ad; }
.lista { margin: 0; padding-left: 20px; color: var(--ink-dim); font-size: 15.5px; }
.lista li { margin-bottom: 10px; }
.lista strong { color: var(--ink); }
.lista.num { list-style: decimal; }

.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.tabla-simple { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.tabla-simple th, .tabla-simple td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabla-simple thead th { background: rgba(255,255,255,.05); font-weight: 700; color: var(--ink); }
.tabla-simple tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.tabla-simple td { color: var(--ink-dim); }
.tabla-simple tbody tr:last-child > * { border-bottom: 0; }

.cita { margin: 44px 0 0; border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; max-width: 70ch; }
.cita blockquote { margin: 0 0 10px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--ink); }
.cita figcaption { font-size: 14px; color: var(--ink-faint); }

.comp { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .comp { grid-template-columns: 1fr; } }
.comp p { color: var(--ink-dim); } .comp strong { color: var(--ink); }
.pregunta-caja { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
@media (max-width: 860px) { .pregunta-caja { position: static; } }
.pregunta { font: 400 clamp(19px, 2.2vw, 24px)/1.3 var(--display); margin: 0 0 14px; }
.acento { color: var(--gold); }
.pregunta-caja .btn { margin-top: 10px; }

.datos { display: grid; gap: 14px; }
.dato { display: grid; grid-template-columns: minmax(190px, 390px) 1fr; gap: 24px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.dato-fuerte { border-color: var(--gold); }
.dato-n { font: 400 clamp(26px, 3vw, 38px)/1.05 var(--display); color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dato-l { margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.dato-e { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.etiqueta { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255,176,32,.15); color: var(--gold-soft); font-size: 12px; font-weight: 700; }
.etiqueta-alerta { background: rgba(255,90,78,.16); color: #ffb4ad; }
@media (max-width: 700px) { .dato { grid-template-columns: 1fr; gap: 8px; } }
.fuente { margin-top: 24px; max-width: 66ch; }

.nota { margin-top: 44px; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.nota .h3 { margin-top: 0; }
.nota .lista { margin-bottom: 12px; }

.cta-caja { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: var(--radius); background: var(--gold); color: #14100a; }
.cta-caja p { margin: 0; max-width: 60ch; }
.cta-caja .btn-primary { background: #14100a; border-color: #14100a; color: var(--gold); }
.cta-caja .btn-primary:hover { background: #2a2113; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.doc { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.doc .meta { margin: 0; font-size: 13px; color: var(--gold-soft); font-weight: 600; }
.doc h3 { font: 400 18px/1.3 var(--display); margin: 0; }
.doc p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.doc .enlace { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }
.doc-pendiente { border-style: dashed; }
.pendiente-txt { color: var(--ink-faint) !important; font-style: italic; }
.espacio { margin-top: 44px; }

.avance { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 72ch; }
.avance li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.avance li:first-child { border-top: 0; }
.avance p { margin: 0; color: var(--ink-dim); }
.cuando { align-self: start; text-align: center; padding: 3px 10px; border-radius: 999px; background: rgba(255,176,32,.18); color: var(--gold-soft); font-size: 12px; font-weight: 700; }
.cuando-sig { background: rgba(255,255,255,.08); color: var(--ink-dim); }

.faq { display: grid; gap: 10px; max-width: 78ch; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--line-2); }
.respuesta { padding: 0 20px 18px; color: var(--ink-dim); }
.respuesta p { margin: 0; } .respuesta strong { color: var(--ink); }

.texto-largo { max-width: 78ch; }
.texto-largo .h3 { margin-top: 36px; }
.texto-largo p { color: var(--ink-dim); } .texto-largo strong { color: var(--ink); }

/* ---------- barra fija inferior ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(5,7,12,.96); border-top: 1px solid var(--line-2); padding: 10px clamp(16px, 4vw, 36px) calc(10px + env(safe-area-inset-bottom)); transform: translateY(0); transition: transform .25s ease; }
.sticky[hidden] { display: block; transform: translateY(110%); visibility: hidden; }
.sticky-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-txt { margin: 0; font-size: 15px; line-height: 1.35; }
.sticky-meta { display: block; font-size: 13px; color: var(--ink-faint); }
.sticky .btn { padding: 12px 20px; white-space: nowrap; }
@media (max-width: 560px) { .sticky-meta { display: none; } .sticky-txt { font-size: 14px; } }

/* ---------- pie ---------- */
.foot { position: relative; z-index: 5; border-top: 1px solid var(--line); background: #04060a; padding: 56px clamp(18px, 4vw, 40px) 110px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot-brand { font: 400 16px/1 var(--display); margin: 0 0 12px; }
.foot-h { font: 600 13px/1.2 var(--sans); color: var(--gold); margin: 0 0 10px; }
.foot a { color: var(--ink); text-decoration-color: var(--gold); }
.foot-legal { max-width: var(--maxw); margin: 36px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }
.foot p { color: var(--ink-dim); } .foot .muted { color: var(--ink-faint); }

/* ---------- aparición al hacer scroll (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- sin WebGL ---------- */
body.no-webgl #bg { display: none; }
body.home.no-webgl::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 20% 15%, rgba(255,176,32,.12), transparent 60%), radial-gradient(60% 45% at 85% 45%, rgba(77,163,255,.08), transparent 60%), #05070c;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec, .flashlayer, .success { animation: none !important; }
  .btn:hover { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PÁGINAS INTERNAS — tema claro
   Cabecera y pie siguen oscuros (marca); el contenido es blanco y gris
   claro. Se redefinen las variables solo dentro de <main>, así los
   componentes se invierten sin tocar su CSS; abajo van los ajustes finos.
   ============================================================ */
body.inner { background: #fff; }
body.inner main {
  --bg: #fff; --bg-2: #eef1f6;
  --ink: #0d1220; --ink-dim: #46506a; --ink-faint: #66718a;
  --line: rgba(13,18,32,.12); --line-2: rgba(13,18,32,.22);
  --panel: #fff;
  --gold-soft: #8a5a00;
  color: #0d1220;
}
body.inner .enlace { color: #0d1220; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
body.inner .enlace:hover { text-decoration-color: #0d1220; color: #0d1220; }

/* banda del título: gris muy claro con la cinta de precaución abajo */
.sec-head { background: #f3f5f9; position: relative; padding-bottom: 12px; }
.sec-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(135deg, #14100a 0 14px, var(--gold) 14px 28px);
}
.sec-head .pagehead { padding-bottom: 40px; }
.sec-head .h1 { color: #0d1220; max-width: 20ch; }
.saltos a { background: #fff; border-color: #cdd5e3; color: #2c3550; }
.saltos a:hover { border-color: #0d1220; color: #0d1220; background: #fff; }
.ref { color: #8a5a00; }

/* bloques: regla negra arriba, como en la portada */
.bloque, .sec-panel .bloque { background: #fff; border: 1px solid #d9dfeb; border-top: 4px solid #0d1220; border-radius: 6px; }
.bloque h3 { color: #0d1220; }
.bloque-limite, .sec-panel .bloque-limite { border-top-color: #b42318; }
.bloque-limite h3 { color: #b42318; }
.lista li::marker { color: #b87800; }

/* tablas */
.tabla-scroll { background: #fff; border-color: #d9dfeb; }
.tabla-simple thead th { background: #0d1220; color: #fff; }
.tabla-simple th, .tabla-simple td { border-bottom-color: #e3e8f1; }
.tabla-simple tbody th { color: #0d1220; background: #f7f9fc; }

.cita { border-left-color: var(--gold); }
.pregunta-caja { background: #fff; border: 2px solid #0d1220; box-shadow: 8px 8px 0 var(--gold); }
.acento { color: #0d1220; background: linear-gradient(transparent 58%, #ffd93d 58%); }

/* cifras: el número es una placa, como en la portada */
.dato { background: #fff; border-color: #d9dfeb; }
.dato-fuerte { border-color: #0d1220; box-shadow: 6px 6px 0 var(--gold); }
.dato-n {
  justify-self: start; padding: 10px 15px 8px; border: 4px solid #111318; border-radius: 12px; color: #0d0f14;
  background: linear-gradient(180deg, #ffe46b 0%, #f7c81a 48%, #dba400 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.55);
}
.dato-l { color: #0d1220; } .dato-e { color: #46506a; }
.etiqueta { background: #fff0c2; color: #7a5200; }
.etiqueta-alerta { background: #fde4e1; color: #b42318; }
.nota { background: #fff8e6; border-color: #f0d38a; }
.nota .h3 { color: #0d1220; }

/* documentos y seguimiento */
.doc { background: #fff; border-color: #d9dfeb; border-top: 4px solid #0d1220; border-radius: 6px; }
.doc .meta { color: #8a5a00; }
.doc-pendiente { border-top-style: dashed; border-top-color: #8a93a8; background: #fafbfd; }
.pendiente-txt { color: #66718a !important; }
.cuando { background: #fff0c2; color: #7a5200; }
.cuando-sig { background: #e6eaf2; color: #46506a; }

/* preguntas */
.faq details { background: #fff; border-color: #d9dfeb; border-radius: 6px; }
.faq details[open] { border-color: #0d1220; box-shadow: 5px 5px 0 var(--gold); }
.faq summary::after { color: #b87800; }
.respuesta, .respuesta p { color: #3a4560; }

/* texto largo (datos personales) */
.texto-largo .h3 { padding-top: 24px; border-top: 1px solid #d9dfeb; }
.texto-largo .h3:first-child { border-top: 0; padding-top: 0; }

.sec-panel { border-top: 1px solid #e3e8f1; }

/* ---------- aviso de analítica (consentimiento) ---------- */
.consent {
  position: fixed; z-index: 80; left: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  max-width: 560px; padding: 20px 22px; background: #0b101a; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.consent-t { margin: 0 0 6px; font: 400 18px/1.25 var(--display); }
.consent-p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); }
.consent-p strong { color: var(--ink); }
.consent-p .enlace { color: var(--gold-soft); }
.consent-b { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-b .btn { padding: 11px 18px; font-size: 14px; flex: 1 1 140px; }
.enlace-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.enlace-btn:hover { color: var(--gold-soft); }
body.inner .consent .enlace, .consent .enlace { color: var(--gold-soft); text-decoration-color: var(--gold); }
body.inner .consent .enlace:hover { color: var(--gold); }
