/* =============================================================================
   Echa las Cuentas — hoja de estilos única
   ============================================================================= */

/* =============================================================
   0. Tipografía autoalojada (una sola familia, un solo archivo)
   ============================================================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f4f1;
  --bg-2:      #efece8;
  --paper:     #ffffff;
  --ink:       #16203a;
  --ink-soft:  #5a6480;
  --ink-mute:  #8b93a8;
  --accent:    #4f46e5;
  --accent-ink:#3730a3;
  --accent-2:  #0d9488;
  --accent-3:  #f59e0b;
  --danger:    #dc2626;
  --line:      rgba(22, 32, 58, 0.10);
  --line-2:    rgba(22, 32, 58, 0.06);
  --glass:     rgba(255, 255, 255, 0.55);
  --glass-2:   rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 1px 2px rgba(22,32,58,.06), 0 4px 12px rgba(22,32,58,.05);
  --shadow-md: 0 2px 4px rgba(22,32,58,.05), 0 12px 32px rgba(22,32,58,.08);
  --shadow-lg: 0 24px 70px rgba(22,32,58,.14);

  /* Una sola familia en todo el sitio */
  --sans:    Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --mono:    var(--sans);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-family: var(--display); font-weight: 800; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .5rem;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
h1, .h1 { font-size: clamp(2.1rem, 5.4vw, 3.65rem); }
h2, .h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }
.prose p { margin-bottom: 1.05rem; color: var(--ink-soft); }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 1.9rem 0 .7rem; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; padding-left: .25rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: rgba(79,70,229,.05); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* =============================================================
   5. Fondo mesh
   ============================================================= */
.mesh {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none;
  /* Sin filter ni animación: se pinta una vez y no vuelve a costar nada.
     Los degradados se apagan en su propio color para que no aparezcan grises. */
  background:
    radial-gradient(60% 65% at 15% 20%, rgba(199,210,254,.72) 0%, rgba(199,210,254,0) 70%),
    radial-gradient(55% 60% at 85% 12%, rgba(153,246,228,.62) 0%, rgba(153,246,228,0) 70%),
    radial-gradient(65% 60% at 55% 58%, rgba(253,230,138,.45) 0%, rgba(253,230,138,0) 72%);
}

/* =============================================================
   6. Navegación
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,244,241,.72);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@supports (backdrop-filter: blur(18px)) {
  .nav { background: rgba(246,244,241,.6); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(22,32,58,.06); }
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.06rem; letter-spacing: -0.03em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(79,70,229,.32);
}
.nav-links { display: none; margin-left: auto; align-items: center; gap: .35rem; }
.nav-link {
  position: relative; padding: .5rem .8rem; border-radius: 9px; font-size: .93rem; font-weight: 550;
  color: var(--ink-soft); transition: color .25s var(--ease-out), background .25s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.7); }
.nav-cta {
  margin-left: .4rem; padding: .55rem 1.05rem; border-radius: 100px; font-size: .9rem; font-weight: 650;
  background: var(--ink); color: #fff; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1.5px); box-shadow: 0 10px 24px rgba(22,32,58,.22); }
.nav-toggle { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.nav-toggle span { display: block; width: 17px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle span + span { margin-top: 4.5px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }
.nav-drawer {
  display: grid; gap: .15rem; max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.nav.is-open .nav-drawer { max-height: 80vh; overflow-y: auto; }
.nav-drawer-inner { padding: .5rem 0 1.2rem; border-top: 1px solid var(--line); }
.nav-drawer a { display: block; padding: .68rem .2rem; font-size: .97rem; font-weight: 550; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.nav-drawer a:hover { color: var(--accent); }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer { display: none; }
}

/* =============================================================
   7. Botones y píldoras
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: 100px; font-weight: 650; font-size: .97rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(79,70,229,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(79,70,229,.36); background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(22,32,58,.24); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .82rem;
  border-radius: 100px; font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--ink-soft);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* =============================================================
   8. Glass card
   ============================================================= */
.glass {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* =============================================================
   9. Hero
   ============================================================= */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-inner { max-width: 780px; }
.hero h1 { margin: 1rem 0 1.1rem; }
.hero .lead { max-width: 62ch; }
.hero .pill-row { margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.hero-home { padding: clamp(3.4rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.4rem); }
.hero-home h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero-home h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: rgba(245,158,11,.35); border-radius: 3px; z-index: -1;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2.6rem; }
.hero-stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.hero-stat span { font-size: .85rem; color: var(--ink-mute); }

/* =============================================================
   10. Calculadora
   ============================================================= */
.calc { padding-bottom: clamp(2.5rem, 6vw, 4rem); scroll-margin-top: 84px; }
.calc-grid { display: grid; gap: 1.15rem; align-items: start; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: 1.15fr .85fr; gap: 1.4rem; } }

.calc-panel { padding: clamp(1.35rem, 3vw, 2.1rem); }
.calc-panel h2 { font-size: 1.22rem; margin-bottom: .3rem; }
.calc-panel > p.calc-hint { font-size: .89rem; color: var(--ink-mute); margin-bottom: 1.5rem; }

.field-grid { display: grid; gap: 1.05rem 1.2rem; align-items: stretch; }
@media (min-width: 620px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field {
  display: grid; grid-template-rows: auto 1fr auto; gap: .3rem;
  min-width: 0; height: 100%;
}
/* Cada pieza en su fila fija: así el control queda SIEMPRE abajo y todos
   los campos de una misma fila se alinean, tengan ayuda o no. */
.field > label      { grid-row: 1; }
.field > .help      { grid-row: 2; align-self: start; margin-bottom: .1rem; }
.field > .input-wrap,
.field > select,
.field > input      { grid-row: 3; align-self: end; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: .4rem; }
.field .help { font-size: .78rem; color: var(--ink-mute); font-weight: 450; line-height: 1.45; }
.input-wrap { position: relative; display: flex; align-items: center; }
.field input, .field select {
  width: 100%; padding: .78rem .9rem; font-size: 1rem; font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.field select {
  appearance: none; padding-right: 2.3rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235a6480' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.input-wrap .suffix {
  position: absolute; right: .9rem; font-size: .9rem; color: var(--ink-mute); pointer-events: none; font-weight: 550;
}
.input-wrap:has(.suffix) input { padding-right: 3rem; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.calc-actions .btn { flex: 1 1 auto; }
.btn-reset { background: none; color: var(--ink-mute); font-size: .88rem; font-weight: 550; padding: .9rem .4rem; }
.btn-reset:hover { color: var(--danger); }

/* Panel de resultado */
.result {
  position: relative; overflow: hidden;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, #1b2444 0%, #232f5c 52%, #1d3a52 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) { .result { position: sticky; top: 88px; } }
.result::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.55) 0%, transparent 70%); pointer-events: none;
}
.result-label { font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 650; }
.result-value {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.35rem, 6.5vw, 3.1rem); line-height: 1.02; margin: .4rem 0 .1rem;
  font-variant-numeric: tabular-nums; word-break: break-word;
}
.result-value.is-updating { animation: pop .45s var(--ease-bounce); }
@keyframes pop { 0% { transform: scale(.965); opacity: .55; } 100% { transform: scale(1); opacity: 1; } }
.result-sub { font-size: .87rem; color: rgba(255,255,255,.6); }
.result-list { list-style: none; margin: 1.5rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .05rem; }
.result-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .58rem 0; font-size: .91rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.result-list li:last-child { border-bottom: 0; }
.result-list .l { color: rgba(255,255,255,.68); line-height: 1.35; }
.result-list .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-list li.destacado { background: rgba(255,255,255,.07); margin-inline: -.7rem; padding-inline: .7rem; border-radius: 10px; }
.result-list li.destacado .l { color: #fff; }
.result-list li.destacado .v { color: #6ee7b7; }
.result-empty { color: rgba(255,255,255,.55); font-size: .93rem; margin-top: .8rem; }
.result-error {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .9rem;
  background: rgba(220,38,38,.16); border: 1px solid rgba(248,113,113,.35); color: #fecaca;
}
.result-notes { margin-top: 1.35rem; display: grid; gap: .6rem; }
.result-note {
  font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.66);
  padding-left: 1.1rem; position: relative;
}
.result-note::before { content: ""; position: absolute; left: 0; top: .52em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-3); }

/* CTA de monetización contextual */
.cta-slot {
  margin-top: 1.15rem; padding: 1.15rem 1.25rem; border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(245,158,11,.14), rgba(79,70,229,.1));
  border: 1px solid rgba(245,158,11,.28);
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; justify-content: space-between;
}
.cta-slot p { font-size: .93rem; font-weight: 600; margin: 0; max-width: 46ch; }
.cta-slot small { display: block; font-weight: 450; color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }
.cta-slot .btn { padding: .68rem 1.25rem; font-size: .89rem; }

/* Bloque de anuncio */
.ad-slot {
  margin: clamp(2rem, 5vw, 3rem) 0; min-height: 96px; border-radius: var(--r-md);
  border: 1px dashed var(--line); display: grid; place-items: center;
  color: var(--ink-mute); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.35);
}

/* =============================================================
   11. Secciones de contenido
   ============================================================= */
.section { padding: clamp(2.8rem, 7vw, 4.6rem) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head h2 { margin: .8rem 0 .7rem; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.55) 12%, rgba(255,255,255,.55) 88%, transparent); }

/* Fórmula */
.formula {
  margin: 1.6rem 0; padding: 1.3rem 1.4rem; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .93rem; line-height: 1.95; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.005em;
  overflow-x: auto;
}
.formula span { color: var(--accent); }

/* Grid de calculadoras */
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  will-change: transform;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(79,70,229,.28); }
.card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(13,148,136,.14));
  font-size: 1.15rem; margin-bottom: .35rem;
}
.card h3 { font-size: 1.06rem; }
.card p { font-size: .89rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.card-foot { display: flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 650; color: var(--accent); margin-top: .5rem; }
.card-foot svg { transition: transform .35s var(--ease-out); }
.card:hover .card-foot svg { transform: translateX(4px); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card.is-hidden { display: none; }

/* Buscador */
.finder { position: relative; max-width: 480px; margin-bottom: 1.6rem; }
.finder input {
  width: 100%; padding: .95rem 1.1rem .95rem 2.9rem; font-size: 1rem; font-family: var(--sans);
  border-radius: 100px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.finder input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.finder svg { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.finder-empty { display: none; padding: 1.2rem 0; color: var(--ink-mute); font-size: .93rem; }
.finder-empty.is-on { display: block; }

/* Pasos */
.steps { display: grid; gap: 1.6rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; color: var(--accent); letter-spacing: .02em;
}
.step::after { content: ""; position: absolute; top: .85rem; left: 2.4rem; right: 0; height: 1px; background: var(--line); }
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p { font-size: .92rem; color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq-item { border-radius: var(--r-md); background: rgba(255,255,255,.62); border: 1px solid var(--line); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; text-align: left; font-weight: 650; font-size: 1rem; color: var(--ink);
  font-family: var(--display); letter-spacing: -.01em;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-icon { flex: none; width: 20px; height: 20px; position: relative; margin-top: .28rem; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% 2px auto 2px; height: 1.9px; background: var(--accent);
  border-radius: 2px; transition: transform .35s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.25rem 1.2rem; font-size: .95rem; color: var(--ink-soft); margin: 0; }
.faq-a p + p { padding-top: .6rem; }

/* Aviso legal en línea */
.disclaimer {
  margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.6); border: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-mute); line-height: 1.6;
}
.disclaimer strong { color: var(--ink-soft); }

/* Tabla de datos */
.data-note {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-mute);
  padding: .4rem .8rem; border-radius: 100px; background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.2);
}

/* =============================================================
   12. Pie
   ============================================================= */
.footer { margin-top: clamp(3rem, 8vw, 5rem); padding: clamp(2.6rem, 6vw, 4rem) 0 2rem; background: #101a34; color: rgba(255,255,255,.72); }
.footer a { color: rgba(255,255,255,.72); transition: color .25s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer h4 { font-family: var(--display); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); margin-bottom: .9rem; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: .5rem; font-size: .91rem; }
.footer p { font-size: .89rem; line-height: 1.65; max-width: 40ch; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.45);
}

/* =============================================================
   13. Reveals
   ============================================================= */
.reveal { transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .07s; }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .21s; }

/* =============================================================
   14. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .mesh { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   15. Impresión
   ============================================================= */
@media print {
  .nav, .footer, .cta-slot, .ad-slot, .calc-actions, .mesh { display: none !important; }
  .result { background: #fff !important; color: #000 !important; box-shadow: none; border: 1px solid #ccc; }
  .result-list .l, .result-sub, .result-label { color: #444 !important; }
  .result-list .v, .result-value { color: #000 !important; }
  body { background: #fff; }
}
