:root {
  /* Paleta "editorial financiero": negro tinta, marfil, verde esmeralda (alcista) y champán.
     --green es el color de acento principal; --gold es el acento secundario (champán). */
  --bg: #08090b;
  --bg-rgb: 8, 9, 11;
  --bg-2: #0c0e11;
  --card: #101317;
  --card-2: #14181d;
  --border: #1e232a;
  --border-hover: #2e353f;
  --text: #ecebe6;
  --muted: #8a8f98;
  --faint: #5c636e;
  --green: #3ddc97;
  --green-2: #5be6a9;
  --accent-rgb: 61, 220, 151;
  --on-accent: #03140c;
  --gold: #c9b37e;
  --accent2-rgb: 201, 179, 126;
  --red: #f0525c;
  --radius: 12px;
  --max: 1160px;

  /* Tipografía: Geist seminegrita y compacta para titulares y cifras, Geist para lectura, mono para datos */
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 600;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Movimiento: curvas fuertes y duraciones cortas */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;

  /* Profundidad: contorno fino + sombra suave */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 80px -20px rgba(0, 0, 0, .75);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .035);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--accent-rgb), .7);

  /* Papel milimetrado de gráfico (fondo decorativo) */
  --grid-line: rgba(255, 255, 255, .035);
  --chart-paper:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-color: #2e353f #08090b; }
body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(var(--accent-rgb), .28); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { text-wrap: pretty; }
button, input, select, textarea { font-family: inherit; }

/* Foco visible solo con teclado */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
.section-alt {
  /* Semitransparente para que se vea la marca de agua de velas del fondo */
  background: rgba(255, 255, 255, .012);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* Antetítulo estilo "ticker": mono, mayúsculas, con guion de acento */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }

h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 20px; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  letter-spacing: -0.005em; user-select: none;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { border-radius: 8px; }
.btn-primary {
  background: var(--green); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(var(--accent-rgb), .6);
}
.btn-ghost { border-color: var(--border-hover); color: var(--text); background: rgba(255, 255, 255, .015); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--green-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -10px rgba(var(--accent-rgb), .75);
  }
  .btn-ghost:hover { border-color: #46505e; background: rgba(255, 255, 255, .04); }
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), .72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid rgba(var(--accent-rgb), .55);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04));
  display: grid; place-items: center; color: var(--green);
  font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .02em;
  box-shadow: var(--highlight);
}
.nav-links { position: relative; display: flex; gap: 4px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.nav-links a {
  position: relative; z-index: 1; padding: 7px 13px; border-radius: 7px;
  transition: color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.nav-links a:active { transform: scale(.96); }
.nav-links a.active { color: var(--text); }

/* Fondo que sigue al cursor entre enlaces */
.nav-pill, .nav-ink { position: absolute; left: 0; pointer-events: none; }
.nav-pill {
  top: 0; bottom: 0; border-radius: 7px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--border), var(--highlight);
  opacity: 0;
  transition: transform 280ms var(--ease-out), width 280ms var(--ease-out), opacity 160ms ease;
}
.nav-links.hovering .nav-pill { opacity: 1; }

/* Línea verde bajo la sección que se está leyendo */
.nav-ink { bottom: -1px; height: 2px; opacity: 0; }
.nav-ink::before {
  content: ""; position: absolute; left: 13px; right: 13px; top: 0; bottom: 0; border-radius: 2px;
  background: var(--green); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
}
.nav-ink { transition: transform 420ms var(--ease-in-out), width 420ms var(--ease-in-out), opacity 200ms ease; }
.nav-links.has-active .nav-ink { opacity: 1; }
.nav-auth { display: flex; gap: 10px; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px; line-height: 1;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease;
}
.menu-toggle:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
  .menu-toggle:hover { background: rgba(255, 255, 255, .05); }
}

/* Hero: papel de gráfico con resplandor verde */
.hero { position: relative; overflow: hidden; padding: 112px 0 88px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--chart-paper);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 720px; height: 520px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .14), transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); margin-bottom: 28px; line-height: 1.04; letter-spacing: -0.045em; }
.hero h1 span { display: inline; color: var(--green); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stats > div { padding: 0 36px; border-left: 1px solid var(--border); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong {
  display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 2.2rem; line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px; font-variant-numeric: lining-nums;
}
.hero-stats span {
  color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}

.chart-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: var(--highlight), var(--shadow-lg);
}
.chart-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.chart-head .pair { font-weight: 500; color: var(--text); }
.chart-head .up {
  color: var(--green); font-weight: 500; padding: 3px 8px; border-radius: 4px;
  background: rgba(var(--accent-rgb), .1);
}
.chart-card svg { width: 100%; height: auto; }

/* ---------- Hero "pro": viñetas, maqueta de la plataforma y tarjetas flotantes ---------- */
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 9px; }
.hero-checks li::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: .62rem; font-weight: 700; color: var(--green);
  background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35);
}

.hero-visual { position: relative; padding: 36px 0 44px; }
.hero > .container { max-width: 1280px; }
.hero h1 { font-size: clamp(2.6rem, 4.5vw, 4.2rem); }
.app-window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #11151a, #0c0f13);
  border: 1px solid #252b33;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(var(--accent-rgb), .35), var(--highlight);
}
.app-window::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .45), transparent 35%, transparent 70%, rgba(var(--accent-rgb), .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.app-bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015); font-size: .74rem;
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3038; }
.app-dots i:first-child { background: rgba(240, 82, 92, .55); }
.app-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.app-title b {
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .5rem;
  color: var(--green); border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .1);
}
.app-tabs { margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--border); display: flex; gap: 4px; }
.app-tabs em { font-style: normal; padding: 4px 9px; border-radius: 6px; color: var(--faint); font-size: .7rem; }
.app-tabs em.on { color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--border); }
.app-body { display: grid; grid-template-columns: 150px 1fr; }
.app-side { display: grid; align-content: start; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--border); background: rgba(255, 255, 255, .01); }
.app-side span {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  font-size: .68rem; color: var(--muted); white-space: nowrap; position: relative;
}
.app-side span.on { color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--border); }
.app-side span.on::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 2px; background: var(--green); box-shadow: 0 0 8px rgba(var(--accent-rgb), .7); }
.app-side span.on svg { color: var(--green); }
.app-side span svg { width: 13px; height: 13px; flex-shrink: 0; }
.app-side em { font-style: normal; font-family: var(--font-mono); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 9px 8px 3px; }
.app-chip {
  margin-left: auto; font-family: var(--font-mono); font-size: .56rem; font-weight: 600; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 4px; color: var(--green); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .4);
}

/* Contenido de la vista previa del área de miembros */
.app-market {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); background: rgba(0, 0, 0, .25);
  font-family: var(--font-mono); font-size: .54rem; color: var(--muted); white-space: nowrap;
}
.app-market span { overflow: hidden; text-overflow: ellipsis; }
.app-market i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--green); animation: ff-pulse 2s ease-out infinite; }
.app-market.closed i { background: var(--faint); animation: none; }
.app-side u {
  margin-left: auto; text-decoration: none; font-family: var(--font-mono); font-size: .44rem; font-weight: 600; letter-spacing: .08em;
  padding: 1px 4px; border-radius: 3px; color: var(--green); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35);
}
.app-user {
  display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .02); font-size: .62rem; font-weight: 600;
}
.app-user b {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: .56rem; color: var(--green); background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .4);
}
.app-user span { display: grid; line-height: 1.25; }
.app-user small { font-weight: 400; font-size: .52rem; color: var(--faint); }

.pv-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pv-date { display: block; font-family: var(--font-mono); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.pv-hello { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.pv-top > div { flex-shrink: 0; }
.pv-date span { font-variant-numeric: tabular-nums; }
.pv-row { display: grid; grid-template-columns: .9fr 1.4fr; gap: 8px; margin-bottom: 12px; }
.pv-card { position: relative; padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); min-width: 0; overflow: hidden; }
.pv-card small, .pv-label {
  display: block; font-family: var(--font-mono); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px;
}
.pv-card strong { display: block; font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-big-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pv-big { font-family: var(--font-display); font-weight: var(--display-weight) !important; font-size: 1.6rem !important; line-height: 1; }
.pv-delta { font-family: var(--font-mono); font-size: .5rem; color: var(--green); white-space: nowrap; }
.pv-spark { display: block; width: calc(100% + 24px); height: 30px; margin: 6px -12px -10px; }
.pv-spark-fill { fill: url(#pvSpark); }
.pv-spark-line { fill: none; stroke: var(--green); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .7)); }
.pv-cont-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; min-width: 0; }
.pv-cont-row img { width: 46px; aspect-ratio: 16 / 9; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; object-fit: cover; }
.pv-cont-row > div { min-width: 0; }
.pv-sub { display: block; font-size: .54rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-cont-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pv-bar { display: block; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: var(--green); box-shadow: 0 0 8px rgba(var(--accent-rgb), .7); }
.pv-btn {
  display: inline-block; padding: 4px 9px; border-radius: 5px; font-size: .62rem; font-weight: 600; white-space: nowrap;
  background: var(--green); color: var(--on-accent); box-shadow: 0 4px 14px -4px rgba(var(--accent-rgb), .7);
}
.pv-label { margin: 0; }
.pv-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pv-label-row .pv-sub { font-family: var(--font-mono); font-size: .5rem; }
.pv-count { font-family: var(--font-mono); font-size: .5rem; color: var(--faint); white-space: nowrap; }
.pv-count b { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pv-markets { position: relative; display: grid; gap: 3px; margin-bottom: 12px; padding: 5px 0; }
.pv-markets span { position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .04); }
.pv-markets b { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--c); opacity: .4; }
.pv-markets span.open b { opacity: 1; box-shadow: 0 0 6px var(--c); }
.pv-markets i {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8); transition: left 1s linear;
}
.pv-markets i::before { content: ""; position: absolute; top: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.pv-ses {
  position: relative; overflow: hidden; height: 64px; padding: 7px 8px; border-radius: 7px; display: grid; align-content: space-between;
  grid-template-columns: 1fr auto; border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), var(--chart-paper), var(--card);
}
.pv-ses::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 80%); }
.pv-ses b { grid-column: 1 / -1; font-size: .62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-day, .pv-time {
  justify-self: start; font-family: var(--font-mono); font-size: .46rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 99px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1);
}
.pv-time { justify-self: end; letter-spacing: .02em; }
.pv-day.today { background: var(--green); color: var(--on-accent); border-color: transparent; }
.pv-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-courses figure { position: relative; margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.pv-courses img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pv-courses figure i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(0, 0, 0, .55); }
.pv-courses figure i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--green); }

/* Tarjeta flotante de noticias */
.fc-news-list li::before { display: none !important; }
.fc-news-list li { gap: 8px; }
.fc-news-list li i { width: 12px; height: 10px; border-radius: 2px 2px 2px 2px; flex-shrink: 0; position: relative; }
.fc-news-list li i::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 3px; border-radius: 1px 1px 0 0; background: inherit; }
.fc-news-list .f-high { background: var(--red); }
.fc-news-list .f-medium { background: #f59e42; }
.fc-news-list .f-holiday { background: #8a8f98; }
.fc-news-list li b { font-family: var(--font-mono); font-size: .6rem; font-weight: 600; padding: 1px 4px; border-radius: 3px; border: 1px solid var(--border-hover); }
.fc-news-list li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-news-list li time { font-family: var(--font-mono); font-size: .58rem; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-session { display: flex; align-items: center; gap: 11px; }
.fc-session .fc-label { margin-bottom: 3px; }
.fc-check {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  color: var(--on-accent); background: var(--green); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15), 0 0 18px rgba(var(--accent-rgb), .5);
}
.fc-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: check-draw 600ms var(--ease-out) 1300ms backwards; }
@keyframes check-draw { from { stroke-dashoffset: 24; } }
.fc-calc { left: -40px; bottom: 0; width: 168px; }
.fc-calc dl { display: grid; gap: 5px; margin: 2px 0 9px; }
.fc-calc dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .7rem; }
.fc-calc dt { color: var(--muted); }
.fc-calc dd { margin: 0; font-family: var(--font-mono); font-size: .66rem; color: var(--text); }
.fc-lots { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
.fc-lots small { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fc-lots strong { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--green); text-shadow: 0 0 14px rgba(var(--accent-rgb), .5); }
/* Inclinación 3D sutil al mover el ratón sobre la maqueta */
.hero-visual { perspective: 1400px; }
.hero-visual .app-window { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease-out); }
.app-side i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); }
.app-side i.on { color: var(--green); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); }
.app-side svg, .fc-folder svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-main { padding: 14px 16px 16px; min-width: 0; }
.app-main .chart-head { margin-bottom: 10px; }
.chart-area { position: relative; }
.chart-area svg { width: 100%; height: auto; display: block; }
.ann { position: absolute; left: 0; right: 0; pointer-events: none; }
.ann span {
  position: absolute; right: 0; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.ann-liq { top: 17%; border-top: 1px dashed rgba(var(--accent2-rgb), .6); }
.ann-liq span { top: -9px; background: #1b1810; color: var(--gold); border: 1px solid rgba(var(--accent2-rgb), .4); }
.ann-zone {
  top: 58%; height: 13%; left: 40%; right: 14%;
  background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 3px;
}
.ann-zone span { right: auto; left: 6px; top: 4px; color: var(--green); padding: 0; }
.app-tiles { display: grid; grid-template-columns: .8fr .9fr 1.5fr; gap: 8px; margin-top: 12px; }
.app-tiles div { padding: 9px 11px; border-radius: 8px; background: rgba(255, 255, 255, .02); border: 1px solid var(--border); min-width: 0; }
.app-tiles small { display: block; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.app-tiles strong { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.app-tiles .up { color: var(--green); }

/* Tarjetas flotantes sobre la maqueta (efecto cristal) */
.float-card {
  position: absolute; z-index: 2; padding: 13px 15px; border-radius: 12px;
  background: rgba(17, 21, 26, .78); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85), var(--highlight);
  font-size: .8rem; animation: float-y 7s ease-in-out infinite alternate;
}
.float-card strong { display: block; font-weight: 600; font-size: .86rem; color: var(--text); }
.fc-label {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.fc-meta { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ff-pulse 2s ease-out infinite; }
@keyframes ff-pulse { 70%, 100% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); } 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); } }
.fc-session { top: 0; right: -22px; min-width: 210px; animation-delay: -2s; }
.fc-structure { right: -34px; bottom: 0; width: 252px; animation-delay: -4s; }
.fc-structure ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 4px 0 10px; }
.fc-structure li { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: .78rem; }
.fc-structure li::before {
  content: "✓"; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: .55rem; font-weight: 700; color: var(--on-accent); background: var(--green);
}
.fc-foot { display: block; padding-top: 9px; border-top: 1px solid var(--border); color: var(--green); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.fc-news { right: 18px; bottom: 6px; display: flex; align-items: center; gap: 11px; animation-delay: -1s; }
.fc-folder {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--red); background: rgba(240, 82, 92, .12); box-shadow: inset 0 0 0 1px rgba(240, 82, 92, .35);
}
.fc-folder svg { fill: currentColor; fill-opacity: .3; }
@keyframes float-y { from { transform: translateY(-5px); } to { transform: translateY(5px); } }


/* Sobre mí */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--chart-paper), linear-gradient(170deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--highlight), var(--shadow-md);
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.06rem; line-height: 1.75; }
.about-list { list-style: none; margin-top: 32px; display: grid; border-top: 1px solid var(--border); }
.about-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.about-list li::before { content: "▲"; color: var(--green); font-size: .62rem; transform: translateY(-1px); }

/* Tarjetas genéricas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--highlight), var(--shadow-sm);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--highlight), var(--shadow-md); }
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; line-height: 1.65; }

/* Iconos de línea (sprite SVG): heredan el color del texto */
.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Icono en "baldosa": marco fino, degradado tenue y trazo verde */
.icon {
  position: relative; width: 44px; height: 44px; border-radius: 10px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--green); font-size: 1.25rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .02));
  border: 1px solid rgba(var(--accent-rgb), .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px -10px rgba(var(--accent-rgb), .6);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease;
}
.icon .ico { width: 21px; height: 21px; stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .card:hover > .icon { border-color: rgba(var(--accent-rgb), .5); }
}

/* Pilares del método: el emoji se sustituye por un índice "01 ——" estilo informe */
#metodo .grid-3 { counter-reset: pilar; }
#metodo .icon {
  counter-increment: pilar;
  display: flex; align-items: center; gap: 14px; width: 100%; height: auto;
  font-size: 0; margin-bottom: 40px; background: none; border: 0; border-radius: 0; box-shadow: none;
}
#metodo .icon::before {
  content: counter(pilar, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; color: var(--green);
}
#metodo .icon::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-hover), transparent); }

/* Módulos */
.module { display: flex; gap: 20px; }
.module-num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; color: var(--gold);
}
.module ul { list-style: none; margin-top: 12px; color: var(--muted); font-size: .93rem; display: grid; gap: 6px; }
.module ul li::before { content: "— "; color: var(--green); }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  padding: 4px 8px; border-radius: 4px; margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(var(--accent2-rgb), .08); color: var(--gold); border: 1px solid rgba(var(--accent2-rgb), .25);
}
.tag.vip { background: rgba(var(--accent-rgb), .08); color: var(--green); border-color: rgba(var(--accent-rgb), .3); }

/* Biblioteca de cursos (página de inicio) */
.library p { margin-bottom: 22px; }
.library-vip { border-color: rgba(var(--accent-rgb), .35); }
.course-rows { list-style: none; display: grid; }
.course-rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--border); font-weight: 500; font-size: .96rem;
}
.muted-em { color: var(--muted); font-weight: 400; font-style: normal; }
.course-rows small {
  color: var(--muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em; white-space: nowrap;
}

/* Testimonios: cita editorial en serif */
.quote { display: flex; flex-direction: column; }
.quote p {
  color: var(--text); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.45rem; line-height: 1.3;
  letter-spacing: -0.005em; margin-bottom: 28px; flex: 1;
}
.quote .who { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 500; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-2); border: 1px solid rgba(var(--accent2-rgb), .4);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; color: var(--gold);
}
.quote .who small { color: var(--muted); display: block; font-size: .8rem; font-weight: 400; }
figure.quote { margin: 0; }
.quote blockquote { margin: 0; flex: 1; display: flex; }

/* Muro de valoraciones sin texto (opiniones de Whop) */
.review-wall { margin-top: 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.review-wall-title {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.review-wall ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.review-wall li {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-2); font-size: .86rem; font-weight: 500;
}
.review-wall .avatar { width: 30px; height: 30px; font-size: .9rem; }
.review-wall li > span:last-child { display: grid; line-height: 1.2; }
.review-wall li b { color: var(--gold); font-weight: 400; font-size: .68rem; letter-spacing: 2px; }
.review-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: .8rem; }

/* Precios */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 36px; }
.price-card.featured {
  border-color: rgba(var(--accent-rgb), .55);
  background: radial-gradient(120% 60% at 50% 0%, rgba(var(--accent-rgb), .07), transparent 60%), var(--card);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 30px 70px -30px rgba(var(--accent-rgb), .35);
}
@media (hover: hover) and (pointer: fine) {
  .price-card.featured:hover {
    border-color: rgba(var(--accent-rgb), .7);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 34px 80px -30px rgba(var(--accent-rgb), .45);
  }
}
.badge {
  position: absolute; top: -11px; right: 24px; background: var(--green); color: var(--on-accent);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 4px;
}
.price {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 3.1rem; line-height: 1;
  margin: 28px 0 10px; letter-spacing: -0.02em; font-variant-numeric: lining-nums;
}
.price small { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-left: 4px; }
.price-card ul { list-style: none; margin: 28px 0 32px; display: grid; flex: 1; border-top: 1px solid var(--border); }
.price-card li { display: flex; gap: 12px; color: var(--muted); font-size: .94rem; padding: 11px 0; border-bottom: 1px solid var(--border); }
.price-card li::before { content: "▲"; color: var(--green); font-size: .55rem; line-height: 2.6; }
.price-card li strong { color: var(--text); font-weight: 600; }

.price s { font-size: 1.4rem; color: var(--faint); margin-right: 6px; text-decoration-thickness: 1px; }
.save {
  align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(var(--accent-rgb), .1); color: var(--green);
}
.billing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin-top: 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
.billing button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 500;
  padding: 8px 6px; border-radius: 6px; cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.billing button:active { transform: scale(.97); }
.billing button.active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-hover), 0 1px 2px rgba(0, 0, 0, .4); }
@media (hover: hover) and (pointer: fine) {
  .billing button:not(.active):hover { color: var(--text); }
}
.per-month { color: var(--muted); margin-top: 8px; min-height: 1.2em; font-family: var(--font-mono); font-size: .74rem; }
.mini-badge.best { background: var(--green); color: var(--on-accent); }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 32px; }

/* Para quién es */
.fit { margin-top: 20px; }
.fit-yes { box-shadow: inset 2px 0 0 var(--green), var(--highlight); }
.fit-no { box-shadow: inset 2px 0 0 var(--red), var(--highlight); }

/* Calificación */
.stars { color: var(--gold); letter-spacing: 3px; font-size: .9rem; margin-bottom: 18px; }
.rating { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rating-num {
  font-family: var(--font-display); font-size: 5rem; font-weight: var(--display-weight); line-height: .9; margin-bottom: 14px;
  letter-spacing: -0.03em; font-variant-numeric: lining-nums;
}

/* FAQ: filas editoriales con líneas finas */
.faq { max-width: 780px; margin: 0 auto; display: grid; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 24px 4px; transition: background-color var(--dur-fast) ease; }
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 1.06rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color var(--dur-fast) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: 4px; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border-hover);
  color: var(--green); font-family: var(--font-mono); font-size: .9rem; line-height: 1;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease;
}
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); border-color: rgba(var(--accent-rgb), .5); }
.faq details p { color: var(--muted); margin-top: 14px; max-width: 680px; line-height: 1.7; }
.faq details[open] p { animation: faq-in var(--dur-base) var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: #fff; }
  .faq summary:hover::after { border-color: rgba(var(--accent-rgb), .5); }
}

/* CTA final */
.cta-box {
  position: relative; overflow: hidden; text-align: center; border-radius: 16px; padding: 96px 28px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(var(--accent-rgb), .14), transparent 70%), var(--card);
  border: 1px solid var(--border); box-shadow: var(--highlight), var(--shadow-md);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--chart-paper);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.cta-box p { color: var(--muted); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 48px; color: var(--muted); font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .logo { color: var(--text); }
.socials { display: flex; gap: 24px; }
.socials a { transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .socials a:hover { color: var(--text); }
}
.disclaimer {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .76rem; line-height: 1.7; color: var(--faint); max-width: 900px;
}

/* Aviso temporal */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 32px));
  background: var(--card-2); border: 1px solid rgba(var(--accent-rgb), .5); padding: 14px 22px; border-radius: 10px;
  box-shadow: var(--shadow-lg); opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 200ms ease;
  z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Modales de registro / login
   Siempre en el DOM: se ocultan con opacity/visibility para poder animar la entrada y la salida.
   La salida es más rápida que la entrada. */
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(3, 4, 6, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 150ms ease, visibility 0s linear 150ms;
}
.modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 200ms var(--ease-out), visibility 0s;
}
.modal-box {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border-hover); border-radius: 14px; padding: 36px 30px 30px;
  box-shadow: var(--highlight), 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 100px -20px rgba(0, 0, 0, .8);
  transform: scale(.96) translateY(6px);
  transition: transform 150ms ease;
  overscroll-behavior: contain;
}
.modal.open .modal-box { transform: none; transition: transform 260ms var(--ease-out); }
.modal-close {
  position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.modal-close:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
}
.modal h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 8px; }
.modal-sub { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }
.modal-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 20px; }
.modal-foot a { color: var(--green); font-weight: 500; }
.modal .center { text-align: center; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; color: var(--muted); cursor: pointer; margin-top: 14px; font-family: inherit;
  transition: color var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-link:hover { color: var(--text); }
  .modal-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.steps { display: flex; gap: 8px; margin-bottom: 26px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.step {
  flex: 1; padding-top: 10px; border-top: 2px solid var(--border); color: var(--faint);
  transition: border-color var(--dur-base) ease, color var(--dur-base) ease;
}
.step.active { border-color: var(--green); color: var(--text); }
.modal-step:not([hidden]) { animation: step-in var(--dur-base) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } }

.plan-options { display: grid; gap: 10px; margin-bottom: 22px; }
.plan-option {
  display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.plan-option:active { transform: scale(.99); }
.plan-option:has(input:focus-visible) { box-shadow: var(--ring); }
.plan-option:has(input:checked) { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .045); }
@media (hover: hover) and (pointer: fine) {
  .plan-option:hover { border-color: var(--border-hover); }
  .plan-option:has(input:checked):hover { border-color: rgba(var(--accent-rgb), .7); }
}
.plan-option input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.plan-option span { flex: 1; font-weight: 500; }
.plan-option span small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; font-weight: 400; }
.plan-option em { font-style: normal; font-weight: 600; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-option em small { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); font-weight: 400; }
.mini-badge {
  font-family: var(--font-mono); font-size: .6rem; font-weight: 600; letter-spacing: .06em;
  background: var(--green); color: var(--on-accent); padding: 2px 6px; border-radius: 4px; vertical-align: middle;
}

.checkout-box { min-height: 160px; border: 1px dashed var(--border-hover); border-radius: 10px; padding: 20px; }
.demo-pay p, .demo-login p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.demo-pay strong, .demo-login strong { color: var(--green); font-weight: 600; }
.secure { font-size: .8rem; }

.success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .4);
  color: var(--green); font-size: 1.8rem; font-weight: 600;
}
.logo-mark.big { width: 54px; height: 54px; font-size: 1rem; border-radius: 12px; margin: 0 auto 16px; }
.btn-whop { background: #ff6243; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-whop:hover { background: #f04f30; }
}
.demo-login { margin-top: 18px; padding: 16px; border: 1px dashed var(--border-hover); border-radius: 10px; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ---------- Casillas de aceptación ---------- */
.recurring-note {
  font-size: .78rem; line-height: 1.55; color: var(--muted); margin: -6px 0 14px; padding: 10px 12px;
  border-radius: 8px; background: rgba(255, 255, 255, .02); border: 1px solid var(--border);
}
.recurring-note strong { color: var(--text); }
.consent { display: grid; gap: 10px; margin: 4px 0 16px; text-align: left; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .84rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent-row input {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 5px; cursor: pointer;
  border: 1.5px solid var(--border-hover); background: var(--bg-2); display: grid; place-items: center;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.consent-row input::after {
  content: ""; width: 9px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform var(--dur-fast) var(--ease-out);
}
.consent-row input:checked { background: var(--green); border-color: var(--green); }
.consent-row input:checked::after { transform: rotate(-45deg) scale(1); }
.consent-row input:active { transform: scale(.92); }
.consent-row input:focus-visible { box-shadow: var(--ring); }
.consent-row a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .consent-row:hover input:not(:checked) { border-color: #46505e; } }
.consent-error { font-size: .8rem; color: #ff8a92; }
.login-legal { margin-top: 12px; text-align: center; font-size: .76rem; color: var(--faint); }
.login-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Aviso de cookies */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; margin: 0 auto; max-width: 720px;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 12px;
  background: rgba(17, 21, 26, .92); border: 1px solid var(--border-hover);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
  animation: rise-in 400ms var(--ease-out) 800ms backwards; transition: opacity 200ms ease, transform 200ms ease;
}
.cookie-notice.hide { opacity: 0; transform: translateY(8px); }
.cookie-notice p { flex: 1; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.cookie-notice a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice .btn { flex-shrink: 0; }
@media (max-width: 560px) { .cookie-notice { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .cookie-notice { animation-name: fade-in; } }

/* ---------- Contacto ---------- */
.contact-page { position: relative; padding: 80px 0 110px; overflow: hidden; }
.contact-page::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 70%), var(--chart-paper);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.contact-page .container { position: relative; max-width: 760px; }
.contact-head { text-align: center; margin-bottom: 40px; }
.contact-head .eyebrow::before { display: none; }
.contact-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 14px; }
.contact-head p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.65; }
.contact-card {
  padding: 34px; border-radius: 18px; border: 1px solid var(--border-hover);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), var(--card);
  box-shadow: var(--highlight), 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(var(--accent-rgb), .3);
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 22px; }
.cf-field { display: grid; gap: 8px; min-width: 0; }
.cf-wide { grid-column: 1 / -1; }
.cf-field > span { font-size: .82rem; font-weight: 500; color: var(--text); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); color-scheme: dark;
  padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border-hover);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.cf-field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .cf-field input:hover, .cf-field select:hover, .cf-field textarea:hover { border-color: #46505e; } }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); background: var(--card-2); }
.cf-field .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(240, 82, 92, .15) !important; }
.cf-select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px !important;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px !important;
}
.cf-select option { background: var(--card-2); }
.cf-count { justify-self: end; font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }
.cf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card .consent { margin: 0 0 20px; }
.contact-card .btn-lg { gap: 10px; }
.cf-status { margin-top: 12px; text-align: center; font-size: .85rem; color: #ff8a92; }
.cf-status.ok { color: var(--green); }
.cf-foot { margin-top: 16px; text-align: center; font-size: .8rem; color: var(--faint); line-height: 1.6; }
.cf-foot a { color: var(--green); }
.contact-success { text-align: center; padding: 48px 32px; }
.contact-success h2 { font-size: 2rem; margin-bottom: 10px; }
.contact-success p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 640px) {
  .contact-page { padding: 56px 0 80px; }
  .contact-card { padding: 22px 18px; }
  .cf-grid { grid-template-columns: 1fr; }
}

/* ---------- Pie de página con columnas ---------- */
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--faint); font-size: .86rem; margin-top: 14px; max-width: 260px; line-height: 1.6; }
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-col h4 { font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: .9rem; transition: color var(--dur-fast) ease; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--text); } }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: var(--faint); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Páginas legales ---------- */
.legal-page { padding: 72px 0 96px; }
.legal-page .container { max-width: 820px; }
.legal-back { display: inline-flex; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 28px; transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .legal-back:hover { color: var(--text); } }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.legal-toc { display: grid; gap: 6px; padding: 18px 20px; margin-bottom: 36px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); counter-reset: toc; }
.legal-toc a { color: var(--muted); font-size: .92rem; transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--green); } }
.legal-body h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.015em; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 1rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: #c9c8c2; font-size: .98rem; line-height: 1.75; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.legal-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .88rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; color: #c9c8c2; }
.legal-body th { background: var(--card); color: var(--text); font-weight: 600; }
.legal-note { padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(var(--accent2-rgb), .35); background: rgba(var(--accent2-rgb), .06); margin: 16px 0; }
.legal-note p { margin: 0; }
mark.todo { background: rgba(240, 82, 92, .14); color: #ffb3b8; border: 1px dashed rgba(240, 82, 92, .6); border-radius: 4px; padding: 0 4px; font-style: normal; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .84rem; }
.legal-links a { color: var(--muted); transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .legal-links a:hover { color: var(--text); } }

/* Impresión / PDF de los documentos legales: fondo blanco y texto oscuro */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .header .btn, .cookie-notice, .bg-candles { display: none !important; }
  .header .logo-text { display: inline !important; color: #111 !important; }
  .legal-page ~ *, .header { position: static !important; background: #fff !important; border-color: #ddd !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header .logo, .legal-page h1, .legal-body h2, .legal-body h3, .legal-body strong, .legal-body th { color: #111 !important; }
  .logo-mark { color: #0a7a4f !important; border-color: #0a7a4f !important; background: none !important; box-shadow: none !important; }
  .legal-page { padding: 10mm 0 0; }
  .legal-page .eyebrow { color: #0a7a4f !important; }
  .legal-meta { color: #555 !important; border-color: #ccc !important; }
  .legal-toc { background: #f6f6f6 !important; border-color: #ddd !important; break-inside: avoid; }
  .legal-toc a, .legal-links a { color: #333 !important; }
  .legal-body p, .legal-body li, .legal-body td { color: #222 !important; }
  .legal-body a { color: #0a7a4f !important; }
  .legal-body th { background: #f0f0f0 !important; }
  .legal-body th, .legal-body td { border-color: #ccc !important; }
  .legal-note { background: #f7f3ea !important; border-color: #d9c79c !important; break-inside: avoid; }
  .legal-body h2 { break-after: avoid; }
  .legal-body table, .legal-body tr { break-inside: avoid; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
}

/* Animación de aparición
   Se usa una animación (no transición) para no interferir con el hover de las tarjetas */
.reveal:not(.visible) { opacity: 0; transform: translateY(16px); }
.reveal.visible { animation: reveal-in 700ms var(--ease-out) backwards; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } }
/* Tarjetas en rejilla: pequeño escalonado al aparecer */
.grid-3 > .reveal:nth-child(3n + 2), .grid-2 > .reveal:nth-child(2n), .pricing > .reveal:nth-child(2) { animation-delay: 60ms; }
.grid-3 > .reveal:nth-child(3n) { animation-delay: 120ms; }

/* ---------- Marca de agua: velas en estructura alcista/bajista desplazándose sin fin ---------- */
.bg-candles {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  opacity: .065;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
}
.bg-candles-track {
  display: flex; width: max-content; height: 100%;
  animation: wm-scroll 150s linear infinite; will-change: transform;
}
.bg-candles svg { height: 100%; width: auto; flex-shrink: 0; display: block; overflow: visible; }
.bg-candles .wm-up { stroke: var(--green); fill: var(--green); }
.bg-candles .wm-down { stroke: var(--red); fill: var(--red); }
.bg-candles line { stroke-width: 1.5; }
.wm-structure { fill: none; stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 4 6; opacity: .7; }
.wm-label {
  fill: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-anchor: middle;
}
@keyframes wm-scroll { to { transform: translateX(-50%); } }

/* ---------- Animaciones al deslizar ---------- */

/* Barra de progreso de lectura bajo el header (navegadores con scroll-driven animations) */
@supports (animation-timeline: scroll()) {
  .header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--green) 30%, var(--green));
    box-shadow: 0 0 8px rgba(var(--accent-rgb), .7);
    transform-origin: left; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Entrada del hero al cargar: piezas en cascada */
.hero-grid > div:first-child > * { animation: rise-in 800ms var(--ease-out) backwards; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: 80ms; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 160ms; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 240ms; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: 320ms; }
.hero-visual .app-window { animation: chart-in 1000ms var(--ease-out) 200ms backwards; }
.fc-session { animation: fc-in 700ms var(--ease-out) 700ms backwards, float-y 7s ease-in-out -2s infinite alternate; }
.fc-structure { animation: fc-in 700ms var(--ease-out) 850ms backwards, float-y 7s ease-in-out -4s infinite alternate; }
.fc-news { animation: fc-in 700ms var(--ease-out) 1000ms backwards, float-y 7s ease-in-out -1s infinite alternate; }
.fc-calc { animation: fc-in 700ms var(--ease-out) 1000ms backwards, float-y 7s ease-in-out -5s infinite alternate; }
@keyframes fc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes chart-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* Velas del gráfico: crecen desde abajo una tras otra */
#candles .candle {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: candle-in 520ms var(--ease-out) backwards;
  animation-delay: calc(500ms + var(--i) * 32ms);
}
@keyframes candle-in { from { opacity: 0; transform: scaleY(.2); } }

/* El guion del antetítulo se dibuja al aparecer la sección */
.reveal .eyebrow::before { transform-origin: left; }
.reveal.visible .eyebrow::before { animation: line-draw 700ms var(--ease-out) 150ms backwards; }
@keyframes line-draw { from { transform: scaleX(0); } }

/* Filas de listas: entran en cascada cuando su bloque aparece */
.reveal.visible :is(.course-rows, .price-card ul) > li,
.reveal.visible .about-list > li,
.faq.reveal.visible > details {
  animation: row-in 560ms var(--ease-out) backwards;
}
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(1), .faq > details:nth-child(1) { animation-delay: 120ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(2), .faq > details:nth-child(2) { animation-delay: 170ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(3), .faq > details:nth-child(3) { animation-delay: 220ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(4), .faq > details:nth-child(4) { animation-delay: 270ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(5), .faq > details:nth-child(5) { animation-delay: 320ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(6), .faq > details:nth-child(6) { animation-delay: 370ms; }
:is(.course-rows, .about-list, .price-card ul) > li:nth-child(n + 7) { animation-delay: 420ms; }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } }

/* Foto "Sobre mí": se revela de abajo hacia arriba */
.about-grid.reveal.visible .about-photo { animation: photo-in 1100ms var(--ease-out) backwards; }
@keyframes photo-in { from { clip-path: inset(100% 0 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }

/* Calificación 5.0: entra con un ligero zoom */
.rating.reveal.visible .rating-num { animation: num-in 900ms var(--ease-out) 150ms backwards; }
@keyframes num-in { from { opacity: 0; transform: scale(.85); filter: blur(6px); } }

/* Pilares del método: la línea "01 ——" se extiende */
#metodo .reveal.visible .icon::after { transform-origin: left; animation: line-draw 900ms var(--ease-out) 200ms backwards; }

/* Parallax suave del fondo cuadriculado del hero (solo navegadores compatibles) */
@supports (animation-timeline: view()) {
  .hero::before { animation: grid-drift linear both; animation-timeline: view(); animation-range: exit; }
  @keyframes grid-drift { to { transform: translateY(80px); opacity: .3; } }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 48px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-photo { max-width: 360px; }
  .hero-grid { gap: 32px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; padding-left: 24px; }
  .fc-structure { right: -6px; }
  .fc-session { right: -6px; }
  .fc-calc { left: -6px; }
}
@media (max-width: 1080px) {
  .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s;
  }
  .nav-pill, .nav-ink { display: none; }
  .nav-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 24px; border-top: 1px solid var(--border); border-radius: 0;
  }
  .nav-links a::after { content: "→"; color: var(--faint); font-size: .9rem; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) ease; }
  .nav-links a:active { background: rgba(255, 255, 255, .04); transform: none; }
  .nav-links a:active::after { transform: translateX(3px); color: var(--green); }
  .nav-links a.active { color: var(--green); box-shadow: inset 2px 0 0 var(--green); }
  .nav-links a.active::after { color: var(--green); }
  /* Al abrir, los enlaces entran en cascada */
  .nav-links.open a { animation: row-in 360ms var(--ease-out) backwards; }
  .nav-links.open a:nth-of-type(2) { animation-delay: 30ms; }
  .nav-links.open a:nth-of-type(3) { animation-delay: 60ms; }
  .nav-links.open a:nth-of-type(4) { animation-delay: 90ms; }
  .nav-links.open a:nth-of-type(5) { animation-delay: 120ms; }
  .nav-links.open a:nth-of-type(6) { animation-delay: 150ms; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-auth .btn { padding: 9px 13px; font-size: .84rem; }
  .logo-text { display: none; }
  .grid-3, .grid-2, .pricing { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .hero-checks { gap: 10px 16px; font-size: .84rem; }
  .hero-visual { padding: 30px 0 34px; }
  .app-tabs, .app-side { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-main { padding: 12px; }
  .pv-courses figure:last-child, .pv-ses:last-child { display: none; }
  .pv-courses, .pv-sessions { grid-template-columns: 1fr 1fr; }
  .float-card { padding: 10px 12px; }
  .fc-session { min-width: 0; right: -4px; top: 0; }
  .fc-session .fc-meta { display: none; }
  .fc-structure { width: 190px; top: auto; bottom: 0; right: -4px; }
  .fc-structure .fc-foot, .fc-structure li:nth-child(3) { display: none; }
  .fc-news, .fc-calc, .app-market, .fc-check { display: none; }
  .fc-news-list time { display: none; }
  .hero h1 { font-size: clamp(2.4rem, 10.5vw, 3rem); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
  .hero-stats > div { padding: 0 14px; }
  .hero-stats strong { font-size: 1.8rem; }
  .hero-stats span { font-size: .6rem; letter-spacing: .05em; }
  .section-head { margin-bottom: 44px; }
  .card, .price-card { padding: 26px 22px; }
  .quote p { font-size: 1.35rem; }
  .price { font-size: 2.7rem; }
  .cta-box { padding: 64px 22px; }
  .modal-box { padding: 32px 20px 24px; }
}

/* Menos movimiento: se quitan desplazamientos y escalados, se conservan los fundidos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn:active, .billing button:active, .plan-option:active, .menu-toggle:active, .modal-close:active { transform: none; }
  .card:hover { transform: none !important; }
  .reveal:not(.visible) { transform: none; }
  .reveal.visible { animation-name: fade-in; animation-duration: 300ms; }
  .modal-box, .modal.open .modal-box { transform: none; }
  .nav-links, .nav-links.open { transform: none; }
  .toast { transform: translateX(-50%); }
  .faq details[open] p, .modal-step:not([hidden]) { animation-name: fade-in; }
  .faq summary::after { transition: none; }
  .hero-grid > div:first-child > *, .chart-card, #candles .candle,
  .reveal.visible :is(.course-rows, .price-card ul, .about-list) > li, .faq.reveal.visible > details,
  .rating.reveal.visible .rating-num { animation-name: fade-in; }
  .reveal.visible .eyebrow::before, #metodo .reveal.visible .icon::after, .about-grid.reveal.visible .about-photo { animation: none; }
  .hero::before { animation: none; }
  .header::after { display: none; }
  .bg-candles-track { animation: none; }
  .float-card, .fc-session, .fc-structure, .fc-news, .fc-calc { animation: fade-in 400ms ease backwards; }
  .hero-visual .app-window { animation-name: fade-in; transform: none; }
  .live-dot, .app-market i, .fc-check svg { animation: none; }
  .nav-pill, .nav-ink { transition: opacity 200ms ease !important; }
  .nav-links a:active { transform: none; }
  .nav-links.open a { animation-name: fade-in; }
}
@keyframes fade-in { from { opacity: 0; } }
