/* Conocete bien — landings claras (inicio, vocacional, astral).
   CSS nativo, colores planos, sin gradientes, sin etiquetas tipo cápsula.
   Las fuentes son las mismas de /landing (self-hosted). */
@font-face { font-family: "Cormorant"; src: url(/landing/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/landing/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/landing/fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/landing/fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/landing/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F6F4EF;     /* fondo general, blanco cálido */
  --white: #FFFFFF;
  --ink: #0F1E33;       /* azul marino: texto y botones */
  --ink-2: #1D3557;
  --muted: #4F5B6B;
  --dim: #7C8594;
  --hair: #DCD8CE;      /* filetes */
  --accent: #1F4E8C;    /* azul de acento */
  --green: #2F6B45;     /* estrella del logo: marca y vocacional */
  --lavender: #5B4BA6;  /* estrella del logo: astral */
  --serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 2.2vw, 28px);
  --max: 1320px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--hair); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 25px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 19px; height: 19px; flex: none; fill: var(--green); }
.logo-astral .logo-mark { fill: var(--lavender); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--ink); }

/* ── botones ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, transform .3s var(--ease); }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn::after { content: "→"; font-weight: 400; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-sm::after { content: none; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--white); }
.btn-lg { padding: 20px 34px; font-size: 19px; }

/* ── hero: caja con el video dibujado como grilla ── */
.hero { padding: 6px var(--pad) var(--pad); }
.hero-box {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--white);
  width: 100%; aspect-ratio: 16 / 9;
}
/* el video es 16:9 y no se recorta: la caja tiene esa proporción y entra entera en la pantalla */
.hero-wrap { position: relative; width: min(100%, calc((100svh - 92px) * 16 / 9)); margin: 0 auto; }
.hero-box video, .hero-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.js .hero-box video { opacity: 0; pointer-events: none; } /* con JS se ve la grilla; sin JS, el video común */
.hero-box canvas { display: none; cursor: crosshair; }
.js .hero-box canvas { display: block; }
.hero-copy {
  position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: min(820px, 66%);
  padding: clamp(22px, 2.6vw, 38px); border-radius: 12px; background: rgba(246, 244, 239, .92);
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 3.8vw, 60px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: lining-nums; padding-bottom: clamp(16px, 2vw, 28px); }
.title span { display: block; }
.hero-rule { height: 1px; background: var(--ink); transform-origin: left; }
.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: clamp(16px, 2vw, 28px); }
.lead { max-width: 34em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; color: var(--ink); }
.lead b { font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag { position: absolute; top: clamp(14px, 2vw, 24px); left: clamp(20px, 3.4vw, 48px); right: clamp(20px, 3.4vw, 48px); display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); pointer-events: none; font-variant-numeric: tabular-nums; }
.hero-tag b { font-weight: 600; }
.hero-note { max-width: var(--max); margin: 12px auto 0; font-size: 13px; color: var(--dim); }
.hero-note b { font-weight: 500; color: var(--muted); }

/* entrada del hero */
.js .title span, .js .lead, .js .cta, .js .hero-tag { opacity: 0; transform: translateY(14px); animation: up 1.1s var(--ease) forwards; }
.js .title span:nth-child(2) { animation-delay: .1s; }
.js .lead { animation-delay: .35s; }
.js .cta { animation-delay: .45s; }
.js .hero-tag { animation-delay: .6s; }
.js .hero-rule { transform: scaleX(0); animation: draw 1.3s var(--ease) .25s forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }

/* ── secciones ── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--pad); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.015em; margin-top: clamp(24px, 3vw, 40px); max-width: 15em; font-variant-numeric: lining-nums; }

/* pasos: número, título grande, una línea y la imagen del paso */
.steps { list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 72px); display: grid; gap: clamp(56px, 7vw, 110px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -.01em; margin-top: 24px; font-variant-numeric: lining-nums; }
.step p { margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 26em; }
.js .step { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .step.on { opacity: 1; transform: none; }

/* imagen de cada paso: una hoja blanca con un ejemplo */
.card { background: var(--white); border: 1px solid var(--hair); border-radius: 16px; padding: clamp(22px, 3vw, 40px); }
.card-tag { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--hair); }
.card-tag b { font-weight: 500; color: var(--accent); }
.card-foot { margin-top: 18px; font-size: 13px; color: var(--dim); }

.q-text { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; margin-bottom: 22px; }
.options { list-style: none; padding: 0; display: grid; gap: 8px; }
.options li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px; font-size: 15px; color: var(--muted); }
.options li::before { content: ""; width: 13px; height: 13px; flex: none; border: 1px solid var(--dim); border-radius: 3px; }
.options li.sel { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.options li.sel::before { background: var(--ink); border-color: var(--ink); }

progress { appearance: none; -webkit-appearance: none; height: 6px; border: 0; border-radius: 2px; background: #E9E5DC; color: var(--accent); overflow: hidden; }
progress::-webkit-progress-bar { background: #E9E5DC; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.bars { list-style: none; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 7.8em 1fr 2.2em; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.bars li.top-score { color: var(--ink); font-weight: 500; }
.bars progress { width: 100%; }
.bars output { text-align: right; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

.rows { list-style: none; padding: 0; display: grid; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.rows li:last-child { border-bottom: 0; }
.rows li span { color: var(--muted); }
.rows li b { font-weight: 500; text-align: right; }
.rows.ranked li { justify-content: flex-start; }
.rows li i { font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1; color: var(--accent); width: 1.6em; flex: none; font-variant-numeric: lining-nums tabular-nums; }

.prod { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.facts { display: grid; margin-top: 14px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); }
.excerpt { margin-top: 14px; font-size: 16px; color: var(--muted); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-variant-numeric: lining-nums; }
.quote span { color: var(--accent); }

.wheel { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.wheel text { font-family: var(--sans); text-anchor: middle; }
.w-ring, .w-div, .w-house { fill: none; stroke: var(--hair); stroke-width: 1; }
.w-axis { fill: none; stroke: var(--dim); stroke-width: 1; }
.w-sign text { font-size: 8.5px; letter-spacing: .14em; fill: var(--muted); }
.w-num text { font-size: 8px; fill: var(--dim); }
.w-aspect { fill: none; stroke: var(--lavender); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.w-planet circle { fill: var(--ink); }
.w-planet:nth-child(-n+2) circle { fill: var(--lavender); }
.w-planet text { font-size: 9px; fill: var(--ink); }
.wheel .w-asc { font-size: 8px; letter-spacing: .14em; fill: var(--lavender); text-anchor: start; }

/* ── productos (inicio): dos tarjetas grandes con imagen ── */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: clamp(36px, 4vw, 56px); }
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; text-decoration: none; transition: border-color .2s; }
.product:hover { border-color: var(--ink); }
.product img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.product-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 36px); flex: 1; }
.product h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.product p { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.product .price { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink); }
.product .price b { font-weight: 600; }
.product .go { font-size: 17px; font-weight: 600; color: var(--accent); }

/* ── qué recibís ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: clamp(36px, 4vw, 56px); }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hair); border-radius: 16px; padding: clamp(24px, 3vw, 44px); }
.plan.paid { border-color: var(--ink); }
.plan-label { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.05; margin-top: 12px; }
.plan-price { font-family: var(--serif); font-size: clamp(52px, 5.6vw, 76px); line-height: 1; margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; }
.plan-price small { font-family: var(--sans); font-size: 14px; letter-spacing: .12em; color: var(--muted); margin-right: 8px; }
.list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; }
.list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--hair); font-size: 17px; color: var(--muted); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 13px; height: 1px; background: var(--ink); }
.list li b { font-weight: 500; color: var(--ink); }
.plan .btn, .plan-note { margin-top: auto; }
.plan .btn { align-self: flex-start; }
.plan-note { font-size: 15px; color: var(--muted); }
.plan-note b { font-weight: 500; color: var(--ink); }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--dim); }

/* ── preguntas frecuentes ── */
.faq { margin-top: clamp(30px, 4vw, 52px); max-width: 900px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 44em; padding-bottom: 14px; font-size: 16px; }
.faq details p:last-child { padding-bottom: 26px; }
.faq a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── cierre: banda azul marino ── */
.final { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(80px, 11vw, 150px) var(--pad); margin: 0 var(--pad); border-radius: 16px; }
.final-title { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 88px); line-height: 1; letter-spacing: -.015em; }
.final em { color: #A9C4E8; }
.final .btn { margin-top: 36px; background: var(--paper); color: var(--ink); }
.final .btn:hover { background: var(--white); }
.final-note { margin-top: 18px; font-size: 15px; color: #B9C2CF; }

/* ── pie ── */
.foot { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 56px; display: grid; gap: 18px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot nav a:hover { color: var(--accent); }
.foot .copy { color: var(--dim); }

/* ── celular ── */
@media (max-width: 800px) {
  .nav-link { display: none; }
  .hero-wrap { width: 100%; }
  /* en celular el texto va arriba de la caja (la caja 16:9 queda chica para escribir encima) */
  .hero-copy { position: static; width: auto; padding: 18px 2px 22px; background: none; border-radius: 0; pointer-events: auto; }
  .hero-wrap { display: flex; flex-direction: column-reverse; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-tag { font-size: 10.5px; top: 10px; left: 12px; right: 12px; }
  .hero-tag span:last-child { display: none; }
  .step, .products, .plans { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .btn { white-space: normal; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .facts div { grid-template-columns: 8em 1fr; }
}

/* ── movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .title span, .js .lead, .js .cta, .js .hero-tag, .js .hero-rule, .js .step { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ── cómo funciona (inicio): tres columnas con número grande ── */
.how { list-style: none; padding: 0; margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.how li { border-top: 1px solid var(--ink); padding-top: 18px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.how span { display: block; font-family: var(--serif); font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.how b { display: block; margin: 14px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; color: var(--ink); }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } }
.hero-tag i { font-style: normal; }
@media (max-width: 699px) { .solo-grande { display: none; } }

/* ── astral: mapa del cielo (SVG generado por scripts/mapa-landing.ts) ── */
.mapa-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(28px, 3vw, 44px); }
.mapa-texto .section-title { margin-top: 0; }
.mapa-lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 28em; }
.mapa-claves { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.mapa-claves li { display: flex; align-items: center; gap: 12px; }
.mapa-claves i { flex: none; width: 22px; margin: 0; }
.mapa-claves .k-violeta { width: 10px; height: 10px; margin: 0 6px; border-radius: 50%; background: #6B4FC8; }
.k-linea-violeta, .k-linea-marino { height: 2px; background: #6B4FC8; }
.k-linea-marino { background: var(--ink); }
.mapa-nota { margin-top: 22px; font-size: 13px; color: var(--dim); max-width: 34em; }
.mapa-card { display: block; background: var(--white); border: 1px solid var(--hair); border-radius: 16px; padding: clamp(10px, 2vw, 28px); transition: border-color .2s; }
.mapa-card:hover { border-color: #6B4FC8; }
.mapa-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mapa-svg line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.mapa-svg .m-aspectos line { stroke-width: 1.4; }
.mapa-svg line.t-m { stroke: var(--ink); }
.mapa-svg line.t-a { stroke: #6B4FC8; }
.mapa-svg line.t-t { stroke: var(--dim); }
.mapa-svg circle.t-m, .mapa-svg text.t-m { fill: var(--ink); }
.mapa-svg circle.t-a, .mapa-svg text.t-a { fill: #6B4FC8; }
.mapa-svg circle.t-t, .mapa-svg text.t-t { fill: var(--dim); }
.mapa-svg text { text-anchor: middle; dominant-baseline: central; }
.mapa-svg .n-c { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.mapa-svg .n-p { font-family: var(--sans); font-size: 12px; font-weight: 500; }

/* Entrada: las constelaciones se dibujan, después aparecen los planetas y los aspectos. */
.js .mapa-card .m-cons line, .js .mapa-card .m-aspectos line, .js .mapa-card .m-ejes line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.js .mapa-card .m-estrellas, .js .mapa-card .m-nombres, .js .mapa-card .m-planetas, .js .mapa-card .m-nombres-p { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .mapa-card.on .m-cons line, .js .mapa-card.on .m-estrellas, .js .mapa-card.on .m-nombres { stroke-dashoffset: 0; opacity: 1; }
.js .mapa-card.on .m-planetas, .js .mapa-card.on .m-nombres-p { opacity: 1; transition-delay: 1.1s; }
.js .mapa-card.on .m-ejes line, .js .mapa-card.on .m-aspectos line { stroke-dashoffset: 0; transition-delay: 1.6s; }
@media (max-width: 800px) { .mapa-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .js .mapa-card .m-cons line, .js .mapa-card .m-aspectos line, .js .mapa-card .m-ejes line { stroke-dashoffset: 0; transition: none; }
  .js .mapa-card .m-estrellas, .js .mapa-card .m-nombres, .js .mapa-card .m-planetas, .js .mapa-card .m-nombres-p { opacity: 1; transition: none; }
}
