/* ============================================================================
 * aiPatri · Landing — estilos (vanilla CSS, sin build, sin Tailwind)
 * Paleta y tokens derivados 1:1 de src/index.css de la app.
 * Tipografía: Syne (display) · Manrope (cuerpo) · Space Mono (cifras).
 * Acento ámbar "bellota" propio de la landing para romper el monocromo verde.
 * ========================================================================== */

:root {
  /* —— Superficie (de la app) —— */
  --bg:    #0c1623;
  --s1:    #111e30;
  --s2:    #162540;
  --bd:    #1e3560;
  --bd2:   #2a4a7a;

  /* —— Texto (de la app) —— */
  --t1:    #c8deff;
  --t2:    #94a3b8;
  --t3:    #64748b;

  /* —— Marca verde (de la app) —— */
  --mint:    #34d399;
  --mint-dk: #1f9e74;
  --red:     #f87171;

  /* —— Acento ámbar bellota (propio de la landing) —— */
  --acorn:    #f0a93b;
  --acorn-dk: #c97a2c;
  --acorn-gl: rgba(240, 169, 59, 0.16);

  /* —— Colores de clase de activo (de projections.ts) —— */
  --c-liquidez:   #34d399;
  --c-rfija:      #60a5fa;
  --c-rvar:       #f0b429;
  --c-inmo:       #a78bfa;
  --c-cripto:     #fb923c;
  --c-matprimas:  #fbbf24;
  --c-alt:        #f472b6;
  --c-jub:        #94a3b8;

  /* —— Tipografía —— */
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, monospace;

  /* —— Forma —— */
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  /* —— Layout —— */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
}

/* ───────────────────────── Base ───────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmósfera de fondo */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60em 40em at 78% -8%, rgba(52, 211, 153, 0.10), transparent 60%),
    radial-gradient(45em 35em at 8% 8%, rgba(240, 169, 59, 0.07), transparent 55%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--mint); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; }

/* ───────────────────────── Botones ───────────────────────── */
.btn {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--r-sm);
  padding: 0.62em 1.15em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em;
}
.btn--solid {
  background: var(--mint); color: #06281d;
  box-shadow: 0 6px 22px -8px rgba(52, 211, 153, 0.55);
}
.btn--solid:hover { background: #46e0a8; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--t1); }
.btn--ghost:hover { color: var(--mint); }
.btn--line {
  background: rgba(255,255,255,0.02); color: var(--t1);
  border: 1px solid var(--bd2);
}
.btn--line:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.btn--lg { font-size: 1rem; padding: 0.8em 1.5em; }
.btn--block { width: 100%; justify-content: center; padding: 0.85em; }

/* ───────────────────────── Glass card ───────────────────────── */
.glass-card {
  background: linear-gradient(160deg, rgba(22, 37, 64, 0.66), rgba(17, 30, 48, 0.78));
  border: 1px solid rgba(120, 160, 220, 0.14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

/* ───────────────────────── Eyebrow / títulos ───────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-mono);
  font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 1.1rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.section-head { text-align: center; max-width: 40ch; margin: 0 auto 3.2rem; position: relative; z-index: 1; }
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #eaf3ff;
}

/* ───────────────────────── NAV ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(12, 22, 35, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-size: 0.9rem; font-weight: 600; color: var(--t2);
  transition: color .15s;
}
.nav__links a:hover { color: var(--t1); }
.nav__cta { display: flex; gap: .6rem; align-items: center; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav__burger span { width: 22px; height: 2px; background: var(--t1); border-radius: 2px; transition: .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────── HERO ───────────────────────── */
.hero { position: relative; padding: 9rem var(--pad) 4rem; z-index: 1; }
.hero__glow {
  position: absolute; top: -10%; right: -5%;
  width: 50em; height: 50em; max-width: 90vw;
  background: radial-gradient(closest-side, rgba(52,211,153,0.12), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f1f7ff;
  margin: 0.4rem 0 1.3rem;
}
.hero__title-accent {
  background: linear-gradient(100deg, var(--mint), var(--acorn));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub { font-size: 1.12rem; color: var(--t2); max-width: 34ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__trust {
  margin-top: 1.3rem; font-size: 0.82rem; color: var(--t3);
  font-family: var(--f-mono); letter-spacing: .02em;
}

/* Visual */
.hero__visual { position: relative; }
.hero__card { padding: 1.5rem 1.6rem; position: relative; z-index: 3; max-width: 23em; }
.hero__card-top { display: flex; justify-content: space-between; align-items: center; }
.hero__card-label { font-size: .8rem; color: var(--t2); font-weight: 600; }
.hero__card-value {
  font-family: var(--f-mono); font-weight: 700;
  font-size: 2.5rem; color: #eaf3ff; letter-spacing: -0.02em;
  margin: .35rem 0 .2rem;
}
.hero__spark { width: 100%; height: 70px; display: block; margin: .4rem 0 .6rem; }
.hero__spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawn .hero__spark-line { animation: draw 1.6s ease forwards; }
.hero__spark-dot { opacity: 0; }
.is-drawn .hero__spark-dot { animation: pop .4s ease 1.5s forwards; }
.hero__card-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--bd); padding-top: .7rem; font-size: .8rem; color: var(--t2);
}
.hero__card-foot b { color: var(--acorn); font-family: var(--f-mono); }
.hero__card-foot-sub { color: var(--mint); font-size: .74rem; }

.hero__patri {
  position: absolute; right: -2.2rem; bottom: -3rem;
  width: 13em; height: auto; z-index: 2;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5));
}

/* ───────────────────────── Burbuja Patri ───────────────────────── */
.speech {
  position: relative;
  background: var(--s2);
  border: 1px solid var(--bd2);
  border-radius: 14px 14px 14px 4px;
  padding: .7rem .9rem;
  font-size: .88rem; color: var(--t1);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
}
.speech b { color: var(--mint); }
.speech--hero {
  position: absolute; left: -1rem; bottom: 1.5rem;
  max-width: 15em; z-index: 4;
}
.speech--inline {
  display: flex; gap: .8rem; align-items: center;
  margin-top: 1.2rem; border-radius: 14px;
}
.speech--inline p { font-size: .85rem; color: var(--t2); }
.speech--inline b { color: var(--mint); }
.speech__patri { width: 3.4em; flex: none; }

/* ───────────────────────── STATS ───────────────────────── */
.stats { position: relative; z-index: 1; padding: 1rem var(--pad) 3rem; }
.stats__row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: linear-gradient(180deg, rgba(22,37,64,.4), rgba(17,30,48,.4));
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1.8rem 1rem;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #eaf3ff;
  letter-spacing: -0.02em;
}
.stat:nth-child(2) .stat__num { color: var(--acorn); }
.stat:nth-child(4) .stat__num { color: var(--mint); }
.stat__label { font-size: .8rem; color: var(--t2); margin-top: .25rem; display: block; }

/* ───────────────────────── Sección base ───────────────────────── */
.position, .features, .how, .reviews, .faq, .cta {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 5rem var(--pad);
}

/* ───────────────────────── POSICIONAMIENTO ───────────────────────── */
.position__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.neg-card {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: var(--r-md); padding: 1.7rem 1.5rem;
  position: relative; overflow: hidden;
}
.neg-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(var(--red), transparent);
}
.neg-card__no {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  color: var(--red); display: block; line-height: 1;
}
.neg-card h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.18rem;
  color: #eaf3ff; margin: .3rem 0 .7rem;
}
.neg-card p { font-size: .92rem; color: var(--t2); }

.yes-card {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, rgba(52,211,153,.10), rgba(22,37,64,.5));
  border: 1px solid rgba(52,211,153,.30);
  border-radius: var(--r-md); padding: 1.9rem 1.8rem;
  margin-top: .4rem;
}
.yes-card__si {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  color: var(--mint); display: block; line-height: 1;
}
.yes-card h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  color: #eaf3ff; margin: .3rem 0 .6rem; letter-spacing: -0.01em;
}
.yes-card > p { font-size: 1rem; color: var(--t1); max-width: 48ch; }

/* ───────────────────────── FEATURES ───────────────────────── */
.features { padding-top: 2rem; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--bd);
}
.feature--rev .feature__text { order: 2; }
.feature__tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(52,211,153,.35); border-radius: 50px;
  padding: .25em .8em; margin-bottom: 1rem;
}
.feature__tag--amber { color: var(--acorn); border-color: rgba(240,169,59,.4); }
.feature__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.1;
  color: #eaf3ff; letter-spacing: -0.02em; margin-bottom: .9rem;
}
.feature__body { color: var(--t2); font-size: 1.02rem; margin-bottom: 1.3rem; max-width: 40ch; }
.feature__list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.feature__list li {
  position: relative; padding-left: 1.7rem; font-size: .92rem; color: var(--t1);
}
.feature__list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: var(--mint); font-weight: 700;
  width: 1.15em; height: 1.15em; line-height: 1.15em; text-align: center;
  background: rgba(52,211,153,.14); border-radius: 50%; font-size: .7rem;
}

/* Viz cards */
.viz-card { padding: 1.4rem 1.5rem; }
.viz-card__head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.viz-card__title { font-size: .9rem; font-weight: 600; color: var(--t1); }
.viz-card__total { font-size: 1.1rem; color: #eaf3ff; }
.viz-card__foot {
  display: flex; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 1rem; font-size: .76rem; color: var(--t2);
}
.viz-card__foot span { display: inline-flex; align-items: center; gap: .4em; }
.swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.swatch--band { background: rgba(52,211,153,.25); }
.swatch--med  { background: var(--mint); }
.swatch--fire { background: var(--acorn); border-radius: 50%; }
.pill {
  font-family: var(--f-mono); font-size: .74rem;
  padding: .25em .7em; border-radius: 50px;
}
.pill--up    { background: rgba(52,211,153,.14); color: var(--mint); }
.pill--amber { background: var(--acorn-gl); color: var(--acorn); }
.pill--amber b { color: var(--acorn); }

/* Donut */
.donut-wrap { position: relative; width: 200px; margin: .5rem auto 1rem; }
.donut { width: 200px; height: 200px; transform: rotate(-90deg); }
.donut__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut__center-pct { font-size: 1.5rem; font-weight: 700; color: #eaf3ff; }
.donut__center-lbl { font-size: .72rem; color: var(--t2); }
.donut [data-seg] {
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 1.1s cubic-bezier(.6,0,.2,1);
}
.legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.legend li { display: flex; align-items: center; gap: .5em; font-size: .8rem; color: var(--t2); }
.legend li i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend li b { color: var(--t1); margin-left: auto; font-family: var(--f-mono); font-size: .76rem; }

/* Monte Carlo */
.montecarlo { width: 100%; height: auto; display: block; }
.montecarlo .mc-band { opacity: 0; transition: opacity 1s ease; }
.montecarlo .mc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.montecarlo.is-drawn .mc-band { opacity: 1; }
.montecarlo.is-drawn .mc-line { animation: draw 1.6s ease .2s forwards; }
.montecarlo .mc-fire { opacity: 0; }
.montecarlo.is-drawn .mc-fire { animation: pop .5s ease 1.4s forwards; }

/* Chat */
.chat { padding: 0; overflow: hidden; }
.chat__head {
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--bd);
  background: rgba(12,22,35,.4);
}
.chat__avatar { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--s2); }
.chat__name { font-weight: 700; color: #eaf3ff; font-size: .92rem; display: block; }
.chat__status { font-size: .74rem; color: var(--mint); display: inline-flex; align-items: center; gap: .4em; }
.chat__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: blink 1.4s infinite; }
.chat__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .65rem; }
.bubble {
  font-size: .88rem; padding: .65rem .85rem; border-radius: 13px;
  max-width: 88%; opacity: 0; transform: translateY(8px);
}
.is-drawn .bubble { animation: rise .5s ease forwards; }
.is-drawn .bubble:nth-child(1) { animation-delay: .1s; }
.is-drawn .bubble:nth-child(2) { animation-delay: .5s; }
.is-drawn .bubble:nth-child(3) { animation-delay: 1s; }
.is-drawn .bubble:nth-child(4) { animation-delay: 1.5s; }
.bubble--ai {
  background: var(--s2); color: var(--t1);
  border: 1px solid var(--bd); border-radius: 13px 13px 13px 4px;
  align-self: flex-start;
}
.bubble--ai b { color: var(--acorn); }
.bubble--data {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(52,211,153,.16), rgba(52,211,153,.04));
  border: 1px solid rgba(52,211,153,.35);
  display: flex; flex-direction: column; gap: .1rem;
  padding: .8rem 1rem;
}
.bubble__data-lbl { font-size: .76rem; color: var(--t2); }
.bubble__data-val { font-size: 1.5rem; font-weight: 700; color: var(--mint); }
.bubble__data-sub { font-size: .72rem; color: var(--t2); }

/* ───────────────────────── CÓMO FUNCIONA ───────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: var(--r-md); padding: 1.8rem 1.5rem; position: relative;
}
.step__n {
  font-size: 2.4rem; font-weight: 700; color: var(--bd2); line-height: 1;
  display: block; margin-bottom: .6rem;
}
.step:nth-child(1) .step__n { color: var(--mint); }
.step:nth-child(2) .step__n { color: var(--acorn); }
.step:nth-child(3) .step__n { color: var(--c-rfija); }
.step h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem;
  color: #eaf3ff; margin-bottom: .5rem;
}
.step p { font-size: .92rem; color: var(--t2); }

.reviews__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.reviews__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bd2); transition: .2s; padding: 0;
}
.reviews__dots button.is-active { background: var(--mint); width: 22px; border-radius: 5px; }

/* ───────────────────────── REVIEWS ───────────────────────── */
.reviews__stage { position: relative; min-height: 16em; max-width: 46em; margin: 0 auto; }
.review {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.1rem; padding: 2rem;
  background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.review.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.review__stars { color: var(--acorn); letter-spacing: .15em; font-size: 1rem; }
.review__text {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.35; color: #eaf3ff;
}
.review__who { display: flex; align-items: center; gap: .7rem; }
.review__avatar {
  width: 2.6em; height: 2.6em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--bg); font-size: .9rem;
}
.review__name { font-weight: 700; color: var(--t1); font-size: .9rem; }
.review__role { font-size: .8rem; color: var(--t2); }

/* ───────────────────────── FAQ ───────────────────────── */
.faq__list { max-width: 46em; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.qa {
  background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r-md);
  overflow: hidden;
}
.qa summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: #eaf3ff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 14px; height: 14px; flex: none; }
.qa__icon::before, .qa__icon::after {
  content: ''; position: absolute; background: var(--mint);
  transition: transform .25s ease;
}
.qa__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.qa__icon::after  { top: 0; left: 6px; width: 2px; height: 14px; }
.qa[open] .qa__icon::after { transform: scaleY(0); }
.qa__a { padding: 0 1.3rem 1.2rem; }
.qa__a p { color: var(--t2); font-size: .95rem; }
.qa[open] summary { color: var(--mint); }

/* ───────────────────────── CTA ───────────────────────── */
.cta { text-align: center; }
.cta__inner {
  background: linear-gradient(150deg, rgba(52,211,153,.12), rgba(240,169,59,.07), var(--s1));
  border: 1px solid rgba(52,211,153,.25);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  position: relative; overflow: hidden;
}
.cta__patri { width: 9em; margin: 0 auto 1.2rem; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }
.cta__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem); color: #f1f7ff; letter-spacing: -0.02em;
}
.cta__sub { color: var(--t2); max-width: 42ch; margin: 1rem auto 1.8rem; font-size: 1.05rem; }
.cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta__patri-say { margin-top: 1.5rem; font-style: italic; color: var(--t2); font-size: .92rem; }

/* ───────────────────────── FOOTER ───────────────────────── */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--bd); margin-top: 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.2rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer__logo img { height: 22px; }
.footer__links { display: flex; gap: 1.4rem; margin-left: auto; }
.footer__links a { font-size: .88rem; color: var(--t2); }
.footer__links a:hover { color: var(--mint); }
.footer__copy { font-size: .82rem; color: var(--t3); width: 100%; }

/* ───────────────────────── MODAL ───────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 12, 22, .72); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 25em;
  padding: 2.2rem 2rem; text-align: center;
  animation: rise .35s ease;
}
.modal__x {
  position: absolute; top: .9rem; right: 1rem;
  background: none; border: none; color: var(--t3); font-size: 1.1rem; cursor: pointer;
}
.modal__x:hover { color: var(--t1); }
.modal__logo { height: 30px; width: auto; margin: 0 auto 1.1rem; }
.modal__title { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: #eaf3ff; margin-bottom: 1.3rem; }
.modal__tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 1.3rem; }
.modal__tab {
  flex: 1; padding: .55em; border: none; background: transparent;
  color: var(--t3); font-family: var(--f-body); font-weight: 600; font-size: .88rem;
  border-radius: 7px; cursor: pointer; transition: .15s;
}
.modal__tab.is-active { background: var(--s2); color: var(--mint); }
.modal__form { display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label { font-size: .72rem; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }
.field__input {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  padding: .65em .8em; color: var(--t1); font-family: var(--f-body); font-size: .92rem;
  transition: border-color .15s;
}
.field__input::placeholder { color: var(--t3); }
.field__input:focus { outline: none; border-color: var(--mint); }
.modal__msg { font-size: .84rem; text-align: center; padding: .4rem 0; }
.modal__msg.is-err { color: var(--red); }
.modal__msg.is-ok  { color: var(--mint); }
.modal__patri {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--bd);
}
.modal__patri img { width: 3em; flex: none; }
.modal__patri p { font-size: .82rem; color: var(--t2); }

/* ───────────────────────── Animaciones ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.float-soft { animation: float 5.5s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes pop   { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rise  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ───────────────────────── Responsive (≤768px) ───────────────────────── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 2rem; max-width: 25em; }
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature__text { order: 0; }
  .position__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(12,22,35,.97); border-bottom: 1px solid var(--bd);
    padding: 1.5rem var(--pad);
  }
  .nav.is-open .nav__cta {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 11.5rem;
    background: rgba(12,22,35,.97); padding: 0 var(--pad) 1.5rem;
  }
  .nav.is-open .nav__cta .btn { width: 100%; justify-content: center; }
  .hero { padding-top: 7rem; }
  .hero__patri { width: 10em; right: 0; bottom: -2rem; }
  .speech--hero { left: 0; }
}

@media (max-width: 460px) {
  .stats__row { grid-template-columns: 1fr 1fr; }
  .hero__card { max-width: 100%; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .float-soft { animation: none; }
  .hero__spark-line, .montecarlo .mc-line { stroke-dashoffset: 0; }
  .hero__spark-dot, .montecarlo .mc-fire, .bubble { opacity: 1; transform: none; }
  .donut [data-seg] { transition: none; }
}
