/* ============================================================
   MI NUEVO DEPTO — minuevodepto.cl
   Registro visual: "nocturno financiero"
   Índigo profundo como base, violeta de marca como fuente de luz.
   Tipografía única: Archivo variable (ejes wdth + wght).
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Superficies oscuras */
  --void:        oklch(0.145 0.042 279);
  --void-deep:   oklch(0.112 0.038 279);
  --surface:     oklch(0.196 0.048 279);
  --surface-2:   oklch(0.252 0.052 281);
  --line:        oklch(0.34 0.045 281 / 0.55);
  --line-strong: oklch(0.42 0.05 283 / 0.8);

  /* Tinta sobre oscuro */
  --ink:         oklch(0.975 0.006 280);
  --ink-soft:    oklch(0.815 0.022 282);
  --ink-mute:    oklch(0.675 0.028 283);

  /* Marca (anclada en #474aa7 · #8240cb · #3649d1) */
  --brand-violet: #8240cb;
  --brand-indigo: #474aa7;
  --brand-blue:   #3649d1;
  --violet:       oklch(0.49 0.198 299);   /* acción sólida, blanco 4.6:1 */
  --violet-band:  oklch(0.44 0.190 297);   /* banda saturada, blanco 5.5:1 */
  --violet-lit:   oklch(0.735 0.165 298);  /* texto violeta sobre índigo */
  --violet-deep:  oklch(0.455 0.198 300);  /* texto violeta sobre papel */
  --blue-lit:     oklch(0.70 0.155 268);

  /* Isla clara */
  --paper:       oklch(0.985 0.003 285);
  --paper-2:     oklch(0.955 0.007 288);
  --paper-line:  oklch(0.885 0.012 288);
  --paper-ink:   oklch(0.205 0.035 280);
  --paper-mute:  oklch(0.415 0.028 283);

  /* Semánticos */
  --gain:        oklch(0.52 0.135 155);
  --gain-lit:    oklch(0.755 0.155 158);
  --gain-bg:     oklch(0.955 0.028 158);

  /* Tipografía */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --read: 68ch;

  /* Ritmo */
  --gap:      clamp(1.5rem, 3.2vw, 2.5rem);
  --section:  clamp(4.5rem, 10vw, 8.5rem);
  --pad-x:    clamp(1.15rem, 4.5vw, 3rem);
  --max:      1200px;

  /* Radios: tope 16px en paneles, pill sólo en chips */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;

  /* Movimiento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
  --mid:  380ms;
  --slow: 720ms;

  /* Capas. El header va sobre el botón flotante porque al abrirse
     despliega el menú a pantalla completa. */
  --z-sticky: 100;
  --z-float:  300;
  --z-nav:    400;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue-lit);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--violet); color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: calc(var(--z-nav) + 10);
  background: var(--ink);
  color: var(--void);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- 3. TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-stretch: 92%;
}

h1 {
  font-size: clamp(2.15rem, 1.28rem + 3.15vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  font-stretch: 88%;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.65rem, 1.22rem + 1.85vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 { font-size: clamp(1.12rem, 1.02rem + 0.42vw, 1.34rem); }

p { text-wrap: pretty; }

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.42vw, 1.28rem);
  line-height: 1.6;
  max-width: 58ch;
}

b, strong { font-weight: 700; }

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

.sec__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec__head h2 { max-width: 20ch; }
.sec__head .lead { margin-top: 1.15rem; }
.sec__head--center { text-align: center; }
.sec__head--center h2, .sec__head--center .lead { margin-inline: auto; }

/* ---------- 4. BOTONES ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  font-stretch: 96%;
  letter-spacing: -0.008em;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--fast) var(--ease),
              transform var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.btn i { font-size: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--violet); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: oklch(0.56 0.20 300); }

.btn--ghost {
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { --btn-bg: oklch(0.28 0.05 281); }

.btn--dark { --btn-bg: var(--void); --btn-fg: var(--ink); }
.btn--dark:hover { --btn-bg: var(--void-deep); }

.btn--lg { min-height: 56px; padding: 1rem 1.85rem; font-size: 1.06rem; }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.94rem; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--violet-lit);
  font-weight: 600;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- 5. NAVEGACIÓN ---------- */
/* El desenfoque vive en un pseudo-elemento: aplicado sobre .nav
   convertiría al header en bloque contenedor de sus hijos position:fixed,
   y el panel del menú móvil quedaría recortado a la altura de la barra. */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: oklch(0.145 0.042 279 / 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background-color var(--mid) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav.is-stuck::before { background: oklch(0.128 0.04 279 / 0.94); }

.nav__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.7rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand img {
  width: auto;
  height: 40px;
}
.nav__brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-txt strong {
  font-size: 0.98rem;
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.01em;
}
.nav__brand-txt .dot { color: var(--violet-lit); }
.nav__brand-txt small {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.nav__links {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 340px);
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 5.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(101%);
  visibility: hidden;
  transition: transform var(--mid) var(--ease), visibility var(--mid);
}
.nav__links.is-open { transform: none; visibility: visible; }
.nav__links a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-top: 1.25rem; border-bottom: 0 !important; color: #fff !important; }

.nav__toggle {
  position: relative;
  z-index: 4;
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: oklch(0.08 0.03 279 / 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mid) var(--ease), visibility var(--mid);
}
.nav__scrim.is-on { opacity: 1; visibility: visible; }

@media (min-width: 1000px) {
  .nav__toggle { display: none; }
  .nav__brand img { height: 44px; }
  .nav__links {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
  }
  .nav__scrim { display: none; }
  .nav__links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    border-bottom: 0;
    border-radius: var(--r-sm);
  }
  .nav__links a:not(.nav__cta):hover { background: oklch(0.26 0.05 281 / 0.7); }
  .nav__cta { margin-top: 0; margin-left: 0.6rem; }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -35%; right: -25%;
  width: min(120vw, 1000px);
  aspect-ratio: 1;
  background: radial-gradient(circle at center,
              oklch(0.49 0.198 299 / 0.42) 0%,
              oklch(0.45 0.17 275 / 0.18) 42%,
              transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
}

.hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--violet-lit);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.35rem;
}

.hero__title { margin-bottom: 1.5rem; }
.hero__title .ln { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--violet-lit);
}

.hero__sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.24rem);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.hero__actions .btn { flex: 1 1 260px; }

.hero__note { color: var(--ink-mute); font-size: 0.92rem; }

.hero__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.92);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
              oklch(0.42 0.17 290 / 0.30) 0%,
              transparent 45%,
              oklch(0.112 0.038 279 / 0.85) 100%);
}
.hero__chip {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 1.1rem;
  background: oklch(0.145 0.042 279 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
}
.hero__chip-k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__chip-v {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  color: var(--violet-lit);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.hero__chip-n { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .hero__frame img { aspect-ratio: 4 / 5; max-height: 62vh; }
  .hero__actions .btn { flex: 0 1 auto; }
}

/* ---------- 7. CINTA DE CONDICIONES ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--void-deep);
}
.ticker__list {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.ticker__list li {
  padding: 1.4rem 0.9rem 1.4rem 0;
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
}
.ticker__list li:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.ticker__list li:nth-child(even) { padding-left: 1.1rem; }
.ticker__list li:nth-last-child(-n+2) { border-bottom: 0; }
.ticker__list b {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ticker__list span { font-size: 0.86rem; color: var(--ink-mute); line-height: 1.4; }

@media (min-width: 760px) {
  .ticker__list { grid-template-columns: repeat(4, 1fr); }
  .ticker__list li { border-bottom: 0; padding-block: 1.9rem; }
  .ticker__list li:not(:last-child) { border-right: 1px solid var(--line); }
  .ticker__list li:nth-child(n+2) { padding-left: 1.6rem; }
}

/* ---------- 8. ISLA DE DATOS (fondo claro) ---------- */
.island {
  background: var(--paper);
  color: var(--paper-ink);
  padding-block: var(--section);
}
.island h2, .island h3 { color: var(--paper-ink); }
.island .lead { color: var(--paper-mute); }

.island__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.island__head h2 { max-width: 18ch; }
.island__head .lead { margin-top: 1.1rem; }

/* Mito vs realidad */
.versus {
  display: grid;
  gap: 1.15rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.versus__side {
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: var(--r-lg);
}
.versus__side h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.versus__side h3 i {
  display: grid;
  place-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  flex: none;
}
.versus__side p { font-size: 1.02rem; line-height: 1.6; }
.versus__pts { margin-top: 1.15rem; display: grid; gap: 0.7rem; }
.versus__pts li {
  padding-top: 0.7rem;
  border-top: 1px solid;
  font-size: 0.95rem;
  line-height: 1.55;
}

.versus__side--myth { background: oklch(0.955 0.022 300); }
.versus__side--myth h3 { color: var(--violet-deep); }
.versus__side--myth h3 i { background: var(--violet-deep); }
.versus__side--myth .versus__pts li { border-top-color: oklch(0.87 0.035 300); color: var(--paper-mute); }

.versus__side--real { background: var(--gain-bg); }
.versus__side--real h3 { color: var(--gain); }
.versus__side--real h3 i { background: var(--gain); }
.versus__side--real .versus__pts li { border-top-color: oklch(0.87 0.05 158); color: oklch(0.40 0.05 158); }

@media (min-width: 800px) {
  .versus { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}

/* Ejemplo real */
.example {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.example__head { padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper-2); }
.example__head h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); }
.example__head p { margin-top: 0.4rem; color: var(--paper-mute); font-size: 0.98rem; }

.example__table { display: grid; }
.example__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.05rem clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--paper-line);
}
.example__row > span:first-child {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.example__row b {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.example__row i { font-style: normal; font-size: 0.88rem; color: var(--paper-mute); }
.example__row [role="cell"].is-myth b { color: var(--violet-deep); }
.example__row [role="cell"].is-real b { color: var(--gain); }

.example__row--head { background: var(--paper); border-top: 0; }
.example__row--head span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.example__row--head .is-myth { color: var(--violet-deep); }
.example__row--head .is-real { color: var(--gain); }
.example__row--head span:first-child { color: var(--paper-mute); }

.example__foot {
  padding: 1.1rem clamp(1.4rem, 3vw, 2rem) 1.4rem;
  border-top: 1px solid var(--paper-line);
  font-size: 0.86rem;
  color: var(--paper-mute);
  max-width: 78ch;
}

@media (min-width: 720px) {
  .example__row { grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; align-items: baseline; }
  .example__row > span:first-child { font-size: 0.86rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
  .example__row--head span:first-child { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
}

/* Simulador */
.sim {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--void);
  color: var(--ink);
  border-radius: var(--r-lg);
}
.sim h3 { color: var(--ink); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); }
.sim__intro p { color: var(--ink-soft); margin-top: 0.7rem; max-width: 46ch; }
.sim__uf { font-size: 0.86rem; color: var(--ink-mute) !important; }
.sim__uf b { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.sim__panel { display: grid; gap: 1.5rem; align-content: start; }
.sim__field { display: grid; gap: 0.4rem; }
.sim__field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.sim__out {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.sim__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-mute);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
/* --fill lo escribe main.js con el porcentaje recorrido. */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
              var(--violet) 0 var(--fill, 0%),
              var(--surface-2) var(--fill, 0%) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
              var(--violet) 0 var(--fill, 0%),
              var(--surface-2) var(--fill, 0%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--ink);
  transition: transform var(--fast) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--ink);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline-offset: 6px; }

.sim__results { display: grid; gap: 1.15rem; align-content: start; }
.sim__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.sim__stat {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding: 1.05rem 1.1rem;
  background: var(--surface);
}
.sim__k {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.sim__v {
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.45rem);
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.sim__v--myth { color: var(--violet-lit); }
.sim__v--real { color: var(--gain-lit); }
.sim__n { font-size: 0.78rem; color: var(--ink-mute); line-height: 1.4; }

.sim__verdict {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.sim__verdict i { color: var(--violet-lit); margin-top: 0.2rem; flex: none; }
.sim__verdict.is-good { background: oklch(0.30 0.075 158); color: oklch(0.95 0.03 158); }
.sim__verdict.is-good i { color: var(--gain-lit); }
.sim__verdict.is-warn { background: oklch(0.30 0.07 60); color: oklch(0.95 0.03 75); }
.sim__verdict.is-warn i { color: oklch(0.82 0.14 78); }

.sim__legal { font-size: 0.79rem; color: var(--ink-mute); line-height: 1.5; }

@media (min-width: 940px) {
  .sim {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    column-gap: clamp(2rem, 4vw, 3rem);
  }
  .sim__intro  { grid-column: 1; grid-row: 1; }
  .sim__panel  { grid-column: 1; grid-row: 2; }
  .sim__results { grid-column: 2; grid-row: 1 / span 2; }
  .sim__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 9. ESTRATEGIAS ---------- */
.strategies { padding-block: var(--section); }
.strat { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.strat__list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.strat__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.6rem 0.25rem;
  background: var(--void);
  transition: background-color var(--mid) var(--ease);
}
.strat__item:hover { background: var(--surface); }
.strat__n {
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  padding-top: 0.35rem;
  min-width: 1.6rem;
}
.strat__item h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.strat__item h3 i { color: var(--violet-lit); font-size: 1.05em; flex: none; }
.strat__item p { color: var(--ink-soft); max-width: 62ch; font-size: 0.99rem; }

.strat__aside { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.strat__aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.7) contrast(1.1);
}
.strat__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.44 0.19 297 / 0.28) 0%, oklch(0.112 0.038 279 / 0.92) 78%);
}
.strat__quote {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.strat__quote p {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 940px) {
  .strat { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
  .strat__aside { position: sticky; top: 110px; }
  .strat__aside img { aspect-ratio: 4 / 5; }
  .strat__item { grid-template-columns: 2.5rem 1fr; padding: 1.75rem 1rem 1.75rem 0.5rem; }
}

/* ---------- 10. OFERTA (banda violeta) ---------- */
.offer {
  background: var(--violet-band);
  color: #fff;
  padding-block: var(--section);
}
.offer__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.offer h2 { max-width: 16ch; margin-bottom: 1.15rem; }
.offer__copy > p { color: oklch(0.93 0.03 300); max-width: 52ch; font-size: 1.06rem; }

.offer__tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.16);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer__pts { display: grid; gap: 0.75rem; margin: 1.75rem 0 2rem; }
.offer__pts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid oklch(1 0 0 / 0.22);
  font-size: 1rem;
  line-height: 1.5;
}
.offer__pts i { margin-top: 0.3rem; flex: none; font-size: 0.85rem; }
.offer__legal { margin-top: 1.1rem; font-size: 0.82rem; color: oklch(0.90 0.04 300); }

.offer__pic { border-radius: var(--r-lg); overflow: hidden; }
.offer__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 900px) {
  .offer__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .offer__pic img { aspect-ratio: 1 / 1; }
}

/* ---------- 11. BENEFICIOS ---------- */
.benefits { padding-block: var(--section); }
.ben {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ben__item {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--void);
  transition: background-color var(--mid) var(--ease);
}
.ben__item:hover { background: var(--surface); }
.ben__item > i {
  display: block;
  font-size: 1.85rem;
  color: var(--violet-lit);
  margin-bottom: 1.1rem;
}
.ben__item h3 { margin-bottom: 0.6rem; }
.ben__item p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- 12. PROCESO ---------- */
.process { padding-block: var(--section); background: var(--void-deep); }
.process__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.process h2 { margin-bottom: 1rem; max-width: 15ch; }

.steps { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0; counter-reset: paso; }
.steps__i {
  position: relative;
  counter-increment: paso;
  padding: 1.75rem 0 1.75rem 3.5rem;
  border-top: 1px solid var(--line);
}
.steps__i:last-child { border-bottom: 1px solid var(--line); }
.steps__i::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--violet-lit);
  letter-spacing: 0.02em;
}
.steps__i h3 { margin-bottom: 0.5rem; }
.steps__i p { color: var(--ink-soft); max-width: 58ch; font-size: 0.99rem; }
.steps__meta {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.83rem;
  color: var(--ink-mute);
}

.process__pic { border-radius: var(--r-lg); overflow: hidden; }
.process__pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.82) contrast(1.05);
}

@media (min-width: 940px) {
  .process__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); }
  .process__pic { position: sticky; top: 110px; }
  .process__pic img { aspect-ratio: 3 / 4; }
}

/* ---------- 13. TESTIMONIOS ---------- */
.voices { padding-block: var(--section); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}
.voice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.voice blockquote p {
  font-size: 1.06rem;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.voice blockquote p::before { content: "“"; }
.voice blockquote p::after { content: "”"; }
.voice figcaption { display: grid; gap: 0.15rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.voice__n { font-weight: 700; font-size: 0.98rem; }
.voice__m { font-size: 0.85rem; color: var(--ink-mute); }
.voices__note { margin-top: 1.5rem; font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- 14. NOSOTROS ---------- */
.about { padding-block: var(--section); background: var(--void-deep); }
.about__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about h2 { margin-bottom: 1.35rem; max-width: 17ch; }
.about__copy > p { color: var(--ink-soft); max-width: 58ch; }
.about__copy > p + p { margin-top: 1rem; }

.about__pic { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.about__pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.72) contrast(1.12) hue-rotate(-8deg);
}
.about__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, oklch(0.44 0.19 297 / 0.32), oklch(0.145 0.042 279 / 0.55));
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.15rem;
  margin: 2rem 0 1.75rem;
}
.about__facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.3rem;
}
.about__facts dd { font-size: 0.97rem; font-weight: 600; margin: 0; }

@media (min-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 5vw, 4rem); }
  .about__pic img { aspect-ratio: 3 / 4; }
}

/* ---------- 15. FAQ ---------- */
.faq { padding-block: var(--section); }
.faq__inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.faq__head h2 { margin-bottom: 1rem; }
.faq__head .lead { margin-bottom: 1.75rem; }

.faq__list { display: grid; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
  transition: color var(--fast) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--violet-lit); }
.qa summary i {
  flex: none;
  display: grid;
  place-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--violet-lit);
  font-size: 0.75rem;
  transition: transform var(--mid) var(--ease), background-color var(--fast) var(--ease);
}
.qa[open] summary i { transform: rotate(45deg); background: var(--violet); color: #fff; }
.qa__a { padding: 0 0 1.5rem; }
.qa__a p { color: var(--ink-soft); max-width: var(--read); font-size: 0.99rem; }

@media (min-width: 940px) {
  .faq__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .faq__head { position: sticky; top: 110px; }
}

/* ---------- 16. CTA FINAL + FORMULARIO ---------- */
.final {
  position: relative;
  padding-block: var(--section);
  background: var(--void-deep);
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: -20%; bottom: -40%;
  width: min(110vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle at center, oklch(0.49 0.198 299 / 0.30) 0%, transparent 66%);
  pointer-events: none;
}
.final__inner { position: relative; display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: start; }
.final h2 { margin-bottom: 1.15rem; max-width: 16ch; }
.final__copy > p { color: var(--ink-soft); max-width: 50ch; font-size: 1.06rem; }

.final__pts { display: grid; gap: 0.65rem; margin: 1.85rem 0; }
.final__pts li { display: flex; gap: 0.75rem; align-items: center; color: var(--ink-soft); font-size: 0.97rem; }
.final__pts i { color: var(--violet-lit); width: 1.1rem; flex: none; }

.final__direct { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.final__direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--fast) var(--ease);
}
.final__direct a:hover { background: var(--surface-2); }
.final__direct i { color: var(--violet-lit); }

/* Formulario */
.lform {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.lform__t { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); margin-bottom: 0.25rem; }

.fld { display: grid; gap: 0.4rem; }
.fld label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.fld__opt { font-weight: 400; color: var(--ink-mute); }

.fld input, .fld select, .fld textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  background: var(--void);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.fld textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-mute); opacity: 1; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--ink-mute); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--violet-lit); outline-offset: 1px; }

.fld select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23aba4c4' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.fld select option { background: var(--void); color: var(--ink); }

.fld__err { font-size: 0.82rem; color: oklch(0.78 0.16 25); min-height: 0; }
.fld.has-error input,
.fld.has-error select { border-color: oklch(0.68 0.19 25); }

.lform__legal { font-size: 0.79rem; color: var(--ink-mute); line-height: 1.5; }
.lform__ok {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: oklch(0.30 0.075 158);
  color: oklch(0.95 0.03 158);
  font-size: 0.92rem;
}
.lform__ok[hidden] { display: none; }
.lform__ok a { text-decoration: underline; font-weight: 600; }

@media (min-width: 940px) {
  .final__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ---------- 17. FOOTER ---------- */
.foot {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--void);
  border-top: 1px solid var(--line);
}
.foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.foot__brand img {
  width: 158px;
  height: auto;
  margin-bottom: 1.25rem;
}
.foot__claim { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.foot__desc { font-size: 0.9rem; color: var(--ink-mute); max-width: 34ch; line-height: 1.55; }

.foot__col h2 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}
.foot__col ul { display: grid; gap: 0.65rem; }
.foot__col a, .foot__col span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: color var(--fast) var(--ease);
}
.foot__col a:hover { color: var(--violet-lit); }
.foot__col i { color: var(--ink-mute); width: 1.05rem; text-align: center; flex: none; }

.foot__legal {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 92ch;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.foot__by a { color: var(--violet-lit); font-weight: 600; }
.foot__by a:hover { text-decoration: underline; }

/* ---------- 18. WHATSAPP FLOTANTE ---------- */
.wafloat {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.5rem);
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px oklch(0.145 0.042 279 / 0.55);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease), background-color var(--fast) var(--ease);
}
.wafloat.is-on { transform: none; opacity: 1; }
.wafloat:hover { background: #17924a; }
.wafloat i { font-size: 1.35rem; }

@media (max-width: 480px) {
  .wafloat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wafloat { padding: 0; width: 56px; height: 56px; justify-content: center; }
}

/* ---------- 19. MOVIMIENTO ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .ln,
  .hero__flag,
  .hero__sub,
  .hero__actions,
  .hero__note {
    animation: rise var(--slow) var(--ease) both;
  }
  .hero__flag        { animation-delay: 40ms; }
  .hero__title .ln:nth-child(1) { animation-delay: 110ms; }
  .hero__title .ln:nth-child(2) { animation-delay: 190ms; }
  .hero__title .ln:nth-child(3) { animation-delay: 270ms; }
  .hero__sub         { animation-delay: 380ms; }
  .hero__actions     { animation-delay: 460ms; }
  .hero__note        { animation-delay: 540ms; }
  .hero__frame       { animation: frame 1.1s var(--ease) both 160ms; }

  html.js .reveal { opacity: 0; transform: translateY(22px); }
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
    transition-delay: var(--d, 0ms);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes frame {
  from { opacity: 0; transform: translateY(30px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- 20. IMPRESIÓN ---------- */
@media print {
  .nav, .wafloat, .sim__panel, .hero__glow { display: none; }
  body { background: #fff; color: #000; }
}
