@charset "utf-8";
/* ============================================================================
   Visionary Real Estate — «Papel y oro»
   Un prospecto de inversión bellamente impreso. Fondo papel, filetes de oro,
   un solo bloque en negativo (el simulador). Sin degradados, sin glow,
   sin sombras difusas de tarjeta, sin dorado metálico.
   Móvil primero. CSS a mano, sin framework.
   ========================================================================= */

/* ---------- FUENTES AUTOHOSPEDADAS (variables) ---------- */
@font-face {
  font-family: 'Petrona';
  src: url('fonts/petrona-var.woff2?v=20260915') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Petrona';
  src: url('fonts/petrona-var-italic.woff2?v=20260915') format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/intertight-var.woff2?v=20260915') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --paper:   #EFEBE4;
  --paper-2: #E6E1D8;
  --ink:     #16181C;
  --ink-70:  #4A4E56;
  --ink-50:  #5C6068;
  --gold:    #A07A2E;          /* filetes, flor de lis, fondos: uso NO textual */
  --gold-txt:#7E5D1E;          /* mismo oro, oscurecido para TEXTO sobre papel (AA 5,2:1) */
  --gold-30: rgba(160,122,46,.34);
  --gold-16: rgba(160,122,46,.18);
  --night:   #0F1726;
  --night-2: #17223A;
  --on-night:#E8E4DC;
  --on-night-dim: #A9B2C4;
  --green:   #3C6B4F;
  --green-on-night: #8FC7A4;

  --serif: 'Petrona', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --gut: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
  /* Altura reservada para la barra de propuesta. Valor por defecto generoso para
     que la página funcione SIN JS; main.js lo mide y lo ajusta al píxel. */
  --pbar-h: 104px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--pbar-h);   /* la barra de propuesta va abajo en móvil */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.012em; margin: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- FLOR DE LIS (SVG dibujada a mano) ---------- */
.lis { width: 11px; height: auto; fill: var(--gold); flex: 0 0 auto; display: inline-block; vertical-align: -1px; }
.lis-big { width: 26px; margin: 0 auto 1.2rem; }

/* ---------- FILETES ---------- */
.rule { border: 0; height: 1px; background: var(--gold-30); margin: 0 auto; width: calc(100% - var(--gut) * 2); max-width: var(--maxw); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.45rem; border: 1px solid var(--ink); background: transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: .005em; cursor: pointer;
  border-radius: 1px; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #05070A; transform: translateY(-1px); }
.btn-line { border-color: var(--gold); color: var(--ink); }
.btn-line:hover { background: var(--gold-16); transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0E1219; }
.btn-gold:hover { background: #B08935; transform: translateY(-1px); }
.btn-sm { padding: .5rem .95rem; font-size: .82rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ============================================================
   CAPA DE PROPUESTA — lenguaje visual AJENO al sitio (sistema, neutro)
   ============================================================ */
.pbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem;
  padding: .7rem var(--gut);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: #1B1D21; color: #D6D8DC;
  border-top: 1px solid #34373D;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: .78rem; line-height: 1.4;
}
.pbar-txt { margin: 0; flex: 1 1 260px; }
.pbar-txt strong { color: #fff; font-weight: 600; }
.pbar-acts { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.pbar-btn {
  background: #2E3238; color: #fff; border: 1px solid #454A52; border-radius: 4px;
  padding: .42rem .8rem; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.pbar-btn:hover { background: #3A3F47; }
.pbar-x {
  background: transparent; border: 1px solid #45484F; color: #9EA2A9; border-radius: 4px;
  width: 27px; height: 27px; line-height: 1; font-size: 1.05rem; cursor: pointer;
}
.pbar-x:hover { color: #fff; border-color: #6B7078; }
.pbar-reopen {
  position: fixed; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  background: #1B1D21; color: #C8CBD0; border: 1px solid #3A3E45; border-radius: 4px;
  padding: .4rem .7rem; font-family: system-ui, sans-serif; font-size: .7rem; cursor: pointer;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gut);
  background: rgba(239,235,228,.93);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--gold-16);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand .lis { width: 14px; }
.brand-t { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.brand-t em {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: .56rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-txt); margin-top: .22rem;
}
.nav-links { display: none; gap: 1.5rem; font-size: .86rem; }
.nav-links a { color: var(--ink-70); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* ============================================================
   1 · APERTURA
   ============================================================ */
.hero { padding: clamp(2.2rem, 7vw, 4.6rem) 0 clamp(2.4rem, 7vw, 4.4rem); }
.hero-grid { display: grid; row-gap: 0; align-items: start; }
.hero-plate { margin: 1.6rem 0 .3rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .48rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-txt); margin: 0 0 1.05rem;
}
.hero h1 { font-size: clamp(2.45rem, 9.2vw, 4.3rem); font-weight: 500; letter-spacing: -.022em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.answer-first {
  margin: 1.5rem 0 1rem; font-size: clamp(1.03rem, 2.4vw, 1.16rem); line-height: 1.58; max-width: 40ch;
}
.answer-first strong { font-weight: 600; }
.hero-sub { color: var(--ink-70); max-width: 44ch; font-size: .97rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

/* ---------- LÁMINA (plate): la foto va insertada, con filete de oro ---------- */
.plate { margin: 0; }
.plate-img { position: relative; padding: 9px; border: 1px solid var(--gold-30); background: var(--paper); }
.plate-img::after {
  content: ''; position: absolute; inset: 9px; border: 1px solid rgba(22,24,28,.12); pointer-events: none;
}
.plate img { width: 100%; }
.plate figcaption {
  margin-top: .85rem; font-size: .8rem; line-height: 1.5; color: var(--ink-50);
  font-family: var(--serif); font-style: italic;
}
.plate figcaption span { display: block; font-style: normal; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-txt); margin-top: .35rem; }

/* Entrada del hero: barrido de la lámina — CSS puro, sin depender de JS. */
@media (prefers-reduced-motion: no-preference) {
  .hero-plate .plate-img img { animation: plate-in .9s var(--ease) both; }
  .hero-plate .plate-img { animation: plate-rule .7s var(--ease) both; }
  @keyframes plate-in { from { opacity: 0; transform: translateY(14px) scale(1.015); } to { opacity: 1; transform: none; } }
  @keyframes plate-rule { from { opacity: 0; } to { opacity: 1; } }
}

/* ============================================================
   2 · ★ SIMULADOR — el único bloque en negativo
   ============================================================ */
.sim-shell { padding: clamp(2.2rem, 6vw, 3.6rem) 0; }
.sim { background: var(--night); color: var(--on-night); border: 1px solid #2A3550; padding: clamp(1.4rem, 5vw, 2.8rem); }
.sim-head { max-width: 58ch; }
.sim-kicker {
  display: inline-flex; align-items: center; gap: .48rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #C79B45; margin: 0 0 .8rem;
}
.sim-kicker .lis { fill: #C79B45; }
.sim h2 { font-size: clamp(1.95rem, 6.4vw, 3rem); font-weight: 500; color: var(--on-night); }
.sim-lead { margin-top: .95rem; color: var(--on-night-dim); font-size: .96rem; }
.sim-lead strong { color: var(--on-night); font-weight: 600; }

.sim-body { display: grid; gap: clamp(1.6rem, 5vw, 2.6rem); margin-top: clamp(1.7rem, 5vw, 2.6rem); }

/* ---------- Controles ---------- */
.sim-controls { display: grid; gap: 1.6rem; }
.field-lab {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: #C79B45; margin-bottom: .6rem;
}
.amount { display: flex; align-items: baseline; gap: .3rem; border-bottom: 1px solid #2E3A56; padding-bottom: .35rem; }
.amount-cur { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2rem); color: #7C8AA6; }
.amount-in {
  flex: 1 1 auto; min-width: 0; width: 100%;
  background: transparent; border: 0; padding: 0;
  font-family: var(--serif); font-size: clamp(1.55rem, 6.2vw, 2.25rem); font-weight: 600;
  color: var(--on-night); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.amount-in:focus { outline: none; }
.amount:focus-within { border-bottom-color: var(--gold); }
.amount-cop { font-size: .7rem; letter-spacing: .16em; color: #7C8AA6; }

.slider {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 1.1rem 0 .3rem;
  background: transparent; cursor: pointer; height: 44px;
}
.slider::-webkit-slider-runnable-track { height: 2px; background: #2E3A56; }
.slider::-moz-range-track { height: 2px; background: #2E3A56; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -9px;
  border-radius: 50%; background: var(--gold); border: 2px solid var(--night);
  box-shadow: 0 0 0 1px var(--gold);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--night); box-shadow: 0 0 0 1px var(--gold);
}
.slider:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.field-hint {
  display: flex; justify-content: space-between; margin: 0;
  font-size: .7rem; color: #7C8AA6; font-variant-numeric: tabular-nums;
}

/* Pestañas de modelo */
.tabs { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.tab {
  text-align: left; background: transparent; color: var(--on-night-dim);
  border: 1px solid #2E3A56; border-radius: 1px; padding: .72rem .9rem;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.tab span { display: block; font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #7C8AA6; margin-top: .15rem; }
.tab:hover { border-color: #4B5878; color: var(--on-night); }
.tab.is-on { background: rgba(160,122,46,.14); border-color: var(--gold); color: var(--on-night); }
.tab.is-on span { color: #C79B45; }

/* Supuestos */
.sup { border: 1px solid #2E3A56; padding: .9rem 1rem; }
.sup > summary {
  cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #C79B45; list-style: none;
}
.sup > summary::-webkit-details-marker { display: none; }
.sup > summary span { letter-spacing: .04em; text-transform: none; font-weight: 400; color: #7C8AA6; }
.sup > summary::after { content: ' ▸'; color: #7C8AA6; }
.sup[open] > summary::after { content: ' ▾'; }
.sup-grid { display: grid; gap: 1.05rem; margin-top: 1.1rem; }
.sup-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem .8rem; margin: 0; }
.sup-row label { font-size: .88rem; color: var(--on-night); }
.sup-in { display: inline-flex; align-items: baseline; gap: .25rem; border-bottom: 1px solid #2E3A56; padding-bottom: .2rem; }
.sup-in:focus-within { border-bottom-color: var(--gold); }
.sup-in input {
  min-height: 44px; width: 4.6rem; background: transparent; border: 0; padding: 0; text-align: right;
  font-size: 16px; font-weight: 600; color: var(--on-night); font-variant-numeric: tabular-nums;
}
.sup-in input:focus { outline: none; }
.sup-in i, .sup-in .pre { font-style: normal; font-size: .8rem; color: #7C8AA6; white-space: nowrap; }
.sup-row small { grid-column: 1 / -1; font-size: .8rem; line-height: 1.45; color: #8791A6; }

/* ---------- Resultados ---------- */
.sim-out { display: grid; gap: 1.5rem; }
.outs { display: grid; gap: 1.2rem; border-top: 1px solid var(--gold-30); padding-top: 1.4rem; }
.out-lab { margin: 0 0 .25rem; font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #8791A6; }
.out-num {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 7.4vw, 2.5rem); line-height: 1.05;
  color: var(--on-night); font-variant-numeric: tabular-nums; letter-spacing: -.015em;
}
.out-pos { color: var(--green-on-night); }
.out-for { margin: .4rem 0 0; font-size: .78rem; line-height: 1.45; color: #8791A6; }

/* Comparativo */
.cmp { border-top: 1px solid #2E3A56; padding-top: 1.3rem; }
.cmp-t { margin: 0 0 .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #C79B45; }
.cmp-t small { display: block; letter-spacing: .02em; text-transform: none; font-weight: 400; color: #8791A6; margin-top: .2rem; font-size: .74rem; }
.cmp-list { display: grid; gap: .8rem; }
.cmp-item { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; align-items: center; }
.cmp-n { font-size: .84rem; color: var(--on-night-dim); }
.cmp-v { font-size: .95rem; font-weight: 600; color: var(--on-night); font-variant-numeric: tabular-nums; }
.cmp-track { grid-column: 1 / -1; height: 6px; background: #1C2740; overflow: hidden; }
.cmp-bar { display: block; height: 100%; background: #4B5878; transform-origin: left center; transform: scaleX(0); }
.cmp-item.is-on .cmp-n { color: var(--on-night); }
.cmp-item.is-on .cmp-bar { background: var(--gold); }

.sim-note {
  margin: 0; border-left: 2px solid var(--gold); padding: .7rem 0 .7rem .9rem;
  font-size: .84rem; line-height: 1.5; color: #B6BECD;
}
.sim-note strong { color: var(--on-night); font-weight: 600; }
.sim-cta { margin: 0; }
.sim-cta .btn { width: 100%; }

/* Firma de motion: «las cifras que se asientan» */
html.is-anim .cmp-bar { transition: transform .62s var(--ease); }
html.is-anim .sim:not(.in) .cmp-bar { transform: scaleX(0) !important; }

/* ============================================================
   SECCIONES DE PAPEL
   ============================================================ */
.sec { padding: clamp(2.8rem, 8vw, 5rem) 0; }
.sec-head { max-width: 46ch; margin-bottom: clamp(1.8rem, 5vw, 2.8rem); }
.sec-head h2 { font-size: clamp(1.85rem, 6vw, 2.7rem); font-weight: 500; }
.sec-lead { margin-top: 1rem; color: var(--ink-70); }

/* ---------- 3 · Las tres claves ---------- */
.claves-grid { display: grid; gap: clamp(2rem, 6vw, 3rem); }
.claves-list { display: grid; gap: 1.9rem; }
.claves-list li { border-top: 1px solid var(--gold-30); padding-top: 1.1rem; }
.clave-n { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.clave-n i {
  font-style: normal; font-family: var(--serif); font-size: .95rem; font-weight: 600;
  color: var(--gold-txt); font-variant-numeric: tabular-nums;
}
.claves-list h3 { font-size: clamp(1.18rem, 3.6vw, 1.4rem); font-weight: 600; margin-bottom: .5rem; }
.claves-list p { margin: 0; color: var(--ink-70); font-size: .95rem; }
.claves-list em { font-style: italic; color: var(--ink); }

.tesis {
  margin: clamp(2.4rem, 7vw, 3.6rem) 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 5.6vw, 2.5rem); line-height: 1.16; letter-spacing: -.015em;
  text-align: center; border-top: 1px solid var(--gold-30); padding-top: clamp(1.6rem, 5vw, 2.4rem);
}
.tesis span {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-txt); margin-top: .9rem;
}

/* ---------- 4 · Las tres formas ---------- */
.formas-grid { display: grid; gap: 1.5rem; }
.forma { border: 1px solid var(--gold-30); padding: clamp(1.2rem, 4vw, 1.8rem); background: rgba(255,255,255,.28); }
.forma-k { margin: 0 0 .45rem; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-txt); }
.forma h3 { font-size: clamp(1.35rem, 4.4vw, 1.7rem); font-weight: 600; margin-bottom: .8rem; }
.forma p { font-size: .93rem; color: var(--ink-70); }
.forma p strong { color: var(--ink); font-weight: 600; }
.forma p:last-child { margin-bottom: 0; }
.forma-dato {
  border-left: 2px solid var(--gold); padding: .5rem 0 .5rem .8rem;
  font-size: .88rem !important; color: var(--ink) !important;
}
.forma-dato span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-txt); }
.forma-nota { font-family: var(--serif); font-style: italic; color: var(--ink) !important; }
.formas-plate { margin-top: clamp(2rem, 6vw, 3rem); }

/* ---------- 5 · Acompañamiento ---------- */
.acomp-grid { display: grid; gap: clamp(2rem, 6vw, 3.4rem); align-items: center; }
.acomp-copy h2 { font-size: clamp(1.8rem, 5.8vw, 2.5rem); font-weight: 500; margin-bottom: 1.2rem; }
.acomp-copy p { color: var(--ink-70); font-size: .97rem; }
.acomp-copy p strong { color: var(--ink); font-weight: 600; }
.acomp-copy em { font-style: italic; }
.cita { margin: 1.8rem 0 0; border-top: 1px solid var(--gold-30); padding-top: 1.3rem; }
.cita p {
  margin: 0 0 .7rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3.8vw, 1.42rem);
  line-height: 1.32; color: var(--ink) !important;
}
.cita cite { font-style: normal; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-txt); }

/* ---------- 6 · FAQ ---------- */
.faq-list { display: grid; }
.qa { border-top: 1px solid var(--gold-30); }
.qa:last-child { border-bottom: 1px solid var(--gold-30); }
.qa > summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative;
}
.qa > summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--serif); font-size: clamp(1.05rem, 3.4vw, 1.22rem); font-weight: 600; line-height: 1.3; }
.qa > summary::after {
  content: ''; position: absolute; right: 4px; top: 1.55rem;
  width: 11px; height: 11px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.qa[open] > summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 1.2rem; max-width: 62ch; }
.faq-a p { margin: 0; color: var(--ink-70); font-size: .94rem; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ---------- 7 · Cierre ---------- */
.cierre { text-align: center; }
.cierre-in { max-width: 34rem; margin-inline: auto; }
.cierre h2, .cierre-in > p:not(.cierre-cta) { max-width: 30rem; margin-inline: auto; }
.cierre h2 { font-size: clamp(1.9rem, 6.4vw, 2.8rem); font-weight: 500; margin-bottom: 1rem; }
.cierre p { color: var(--ink-70); }
.cierre-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1.8rem 0 1.2rem; }
.cierre-tel { font-size: .82rem; letter-spacing: .1em; color: var(--ink-50); font-variant-numeric: tabular-nums; }

/* ---------- FOOTER ---------- */
.foot { background: var(--night); color: var(--on-night); padding: clamp(2.4rem, 7vw, 3.6rem) 0 clamp(2rem, 6vw, 3rem); }
.foot-in { display: grid; gap: 1.3rem; }
.foot-brand { display: flex; align-items: center; gap: .55rem; }
.foot-brand .lis { width: 15px; fill: #C79B45; }
.foot-brand .brand-t { color: var(--on-night); }
.foot-brand .brand-t em { color: #C79B45; }
.foot-links { display: grid; gap: .4rem; font-size: .88rem; color: var(--on-night-dim); }
.foot-links a { border-bottom: 1px solid rgba(199,155,69,.4); padding-bottom: 1px; }
.foot-links a:hover { color: var(--on-night); border-bottom-color: var(--gold); }
.foot-legal { margin: 0; font-size: .76rem; line-height: 1.55; color: #7C8AA6; max-width: 62ch; border-top: 1px solid #2A3550; padding-top: 1.2rem; }
.foot-legal strong { color: var(--on-night-dim); font-weight: 600; }
.foot-sig { margin: 0; font-size: .86rem; color: var(--on-night-dim); }
.foot-sig a { color: #C79B45; border-bottom: 1px solid rgba(199,155,69,.5); padding-bottom: 1px; }
.foot-sig a:hover { color: var(--on-night); }

/* ============================================================
   MODAL QR WHATSAPP  — PATRÓN A PRUEBA DE FALLOS: oculto por defecto
   ============================================================ */
.wa-modal { display: none; position: fixed; inset: 0; z-index: 120; place-items: center; padding: 1.1rem; }
.wa-modal:not([hidden]) { display: grid; }
.wa-overlay { position: absolute; inset: 0; background: rgba(15,23,38,.72); backdrop-filter: blur(5px); }
.wa-card {
  position: relative; z-index: 1; width: min(400px, 94vw);
  background: var(--paper); color: var(--ink); border: 1px solid var(--gold-30);
  padding: 2rem 1.6rem 1.7rem; text-align: center;
}
.wa-close {
  position: absolute; top: .4rem; right: .5rem; width: 34px; height: 34px;
  background: transparent; border: 0; font-size: 1.5rem; line-height: 1; color: var(--ink-50); cursor: pointer;
}
.wa-close:hover { color: var(--ink); }
.wa-k { margin: 0 0 .3rem; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-txt); }
.wa-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .4rem; }
.wa-sub { font-size: .87rem; color: var(--ink-70); margin-bottom: 1.1rem; }
.wa-qr { display: grid; place-items: center; min-height: 168px; padding: 10px; background: #fff; border: 1px solid var(--gold-30); }
.wa-qr img { width: 168px; height: auto; image-rendering: pixelated; }
.wa-preview { margin: .8rem 0 1rem; font-size: .8rem; font-style: italic; color: var(--ink-50); }
.wa-card .btn { width: 100%; }

/* ============================================================
   MODAL DE LA CAPA DE PROPUESTA (lenguaje del sistema, no del sitio)
   ============================================================ */
.pmodal { display: none; position: fixed; inset: 0; z-index: 130; place-items: center; padding: 1.1rem; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.pmodal:not([hidden]) { display: grid; }
.pmodal-overlay { position: absolute; inset: 0; background: rgba(10,11,13,.76); backdrop-filter: blur(5px); }
.pmodal-card {
  position: relative; z-index: 1; width: min(520px, 94vw); max-height: 86vh; overflow-y: auto;
  background: #1B1D21; color: #D6D8DC; border: 1px solid #3A3E45; border-radius: 6px; padding: 1.9rem 1.5rem 1.6rem;
}
.pmodal-close { position: absolute; top: .3rem; right: .45rem; width: 34px; height: 34px; background: transparent; border: 0; color: #9EA2A9; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pmodal-close:hover { color: #fff; }
.pmodal-k { margin: 0 0 .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8A8F97; }
.pmodal-card h3 { font-family: inherit; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .7rem; letter-spacing: 0; }
.pmodal-lead { font-size: .88rem; line-height: 1.55; }
.pmodal-list { display: grid; gap: .6rem; margin: 1rem 0 1.2rem; font-size: .87rem; line-height: 1.5; }
.pmodal-list li { padding-left: 1.05rem; position: relative; }
.pmodal-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: #6B7078; border-radius: 50%; }
.pmodal-list strong { color: #fff; font-weight: 600; }
.pmodal-foot { margin: 0; font-size: .84rem; border-top: 1px solid #34373D; padding-top: .9rem; }
.pmodal-foot a { color: #fff; border-bottom: 1px solid #55595F; }

/* ============================================================
   REVEAL (gated por .is-anim; sin JS → todo visible)
   ============================================================ */
html.is-anim [data-r] { opacity: 0; will-change: opacity, transform; }
html.is-anim [data-r="fade"] { transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.is-anim [data-r="plate"] { transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.is-anim [data-r].in { opacity: 1; transform: none; }
/* el hero se revela de forma síncrona en main.js */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab { text-align: center; }
  .outs { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .sim-cta .btn { width: auto; }
  .cmp-item { grid-template-columns: 13rem 1fr 5.4rem; }
  .cmp-track { grid-column: auto; }
  .cmp-v { text-align: right; }
  .foot-links { grid-auto-flow: column; justify-content: start; gap: 1.6rem; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; column-gap: clamp(2rem, 5vw, 3.6rem); }
  .hero-grid > :not(.hero-plate) { grid-column: 1; }
  /* span explícito: `-1` resolvería contra la rejilla explícita (inexistente) y la
     lámina caería solo en la fila 1, empujando el titular hacia abajo. */
  .hero-plate { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
  .sim-body { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
  /* En dos columnas los tres resultados se apilan: cada cifra necesita su ancho
     completo (un «$1.468.378.952» no cabe en un tercio de media columna). */
  .outs { grid-template-columns: 1fr; gap: 1.5rem; border-top: 0; padding-top: 0; }
  .out-num { font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
  .claves-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .claves-plate { position: sticky; top: 92px; }
  .formas-grid { grid-template-columns: repeat(2, 1fr); }
  .forma-wide { grid-column: 1 / -1; }
  .acomp-grid { grid-template-columns: .85fr 1.15fr; }

  /* La capa de propuesta pasa ARRIBA en escritorio */
  :root { --pbar-h: 56px; }
  body { padding-bottom: 0; padding-top: var(--pbar-h); }
  .pbar { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid #34373D; padding-bottom: .7rem; }
  .pbar-reopen { top: 10px; bottom: auto; }
  .nav { top: var(--pbar-h); }
}

@media (min-width: 1040px) {
  .sup-row { grid-template-columns: 1fr 7rem; }
}

/* ---------- MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.is-anim [data-r] { opacity: 1 !important; transform: none !important; }
  .cmp-bar { transition: none !important; }
}

/* ---------- IMPRESIÓN (es un prospecto, después de todo) ---------- */
@media print {
  .pbar, .pbar-reopen, .nav, .wa-modal, .pmodal { display: none !important; }
  body { padding: 0; background: #fff; }
  .sim { background: #fff; color: #000; border-color: #999; }
  .sim h2, .out-num, .amount-in { color: #000; }
}

/* Nota de honestidad al pie de cada lámina: las 4 imágenes son generadas. */
figcaption .gen-note {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  letter-spacing: .04em;
  color: #8A8578;
  font-style: normal;
}

/* Pulido 390px: en «Renta corta frente a la tradicional» el label envuelve y el
   prefijo x quedaba separado del numero por el ancho del campo alineado a la derecha. */
#sMult { text-align: left; width: 3.2rem; }
/* El campo del monto tambien a 44px de area tactil. */
#montoTxt { min-height: 44px; }
