/* La Bóveda de Ascendent · sistema "Air" (ver DESIGN.md) */
:root {
  --whiteout: #ffffff;
  --haze: #f5f5f5;
  --ink: #1b1b1b;
  --void: #000000;
  --twilight: #426188;
  --signal: #2b7fff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", "Druk Wide", Impact, sans-serif;
  --font-cursive: "Caveat", "Reenie Beanie", cursive;

  --page-max: 1150px;
  --gutter: 24px;
  --r-input: 4px;
  --r-btn: 8px;
  --r-img: 11px;
  --r-card: 12px;
  --r-pill: 9999px;

  --line-dark: rgba(255, 255, 255, 0.14);
  --text-dim: rgba(255, 255, 255, 0.64);
  --ink-dim: rgba(27, 27, 27, 0.62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--whiteout);
  font: 500 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--twilight); color: var(--whiteout); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(92px, 21vw, 259px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin: 8px 0 24px;
}
.h-xl { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.h-lg { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.025em; }
.h-md { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.cursiva {
  font-family: var(--font-cursive);
  font-style: normal;
  font-weight: 500;
  font-size: 1.18em;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--twilight);
}
.hero .cursiva, .closing .cursiva, .r-hero .cursiva { color: var(--whiteout); }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }
.sub { font-size: 20px; line-height: 1.4; color: var(--text-dim); max-width: 640px; margin-top: 16px; }
.center .sub, .sub.center { margin-left: auto; margin-right: auto; }

/* ---------- Botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font: 500 15px/1.2 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--whiteout); border-color: var(--whiteout); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-haze { background: var(--haze); color: var(--ink); border-color: var(--haze); }
.btn-haze:hover { background: var(--whiteout); }
.btn-ink { background: var(--ink); color: var(--haze); border-color: var(--ink); }
.btn-ink:hover { background: var(--void); }
.link { color: var(--signal); border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center-row { justify-content: center; margin-top: 48px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-in {
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { font-size: 17px; letter-spacing: -0.02em; }
.logo span { color: var(--text-dim); margin-left: 6px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); margin-right: auto; }
.nav-links a:hover { color: var(--whiteout); }

/* ---------- Hero fotográfico ---------- */
.hero, .closing, .r-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--void) url("/assets/hero-cielo.jpg") center 40% / cover no-repeat;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.38); }
.hero { min-height: calc(100svh - 64px); display: flex; align-items: flex-end; }
.hero-in { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 120px var(--gutter) 80px; }
.hero-sub { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 720px; }
.hero-copy { font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin-top: 16px; font-weight: 400; }
.closing { text-align: center; }
.closing .hero-in { padding: 140px var(--gutter); }
.closing .hero-copy, .closing .actions { margin-left: auto; margin-right: auto; justify-content: center; }
.closing .hero-bg { background-position: center 70%; }

/* ---------- Credibilidad ---------- */
.cred { border-bottom: 1px solid var(--line-dark); }
.cred-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--text-dim); }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line-dark); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Bóveda: filtros y tarjetas ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 40px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--whiteout);
  font: 500 14px/1 var(--font);
  padding: 10px 16px;
  cursor: pointer;
}
.pill:hover { border-color: rgba(255, 255, 255, 0.4); }
.pill.is-on { background: var(--haze); color: var(--ink); border-color: var(--haze); }
.search, .input {
  background: var(--haze); color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--r-input);
  padding: 10px 12px;
  font: 500 16px/1.4 var(--font);
}
.search { width: 300px; max-width: 100%; }
.cards { margin-top: 32px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--haze); color: var(--ink);
  border-radius: var(--r-card);
  padding: 24px;
  min-height: 260px;
  transition: background-color .2s, transform .2s;
}
a.card:hover { background: var(--whiteout); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.card-format { color: var(--ink-dim); }
.card-key { color: var(--signal); letter-spacing: 0.06em; }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.card p { font-size: 15px; line-height: 1.45; color: var(--ink-dim); font-weight: 400; }
.card-link { margin-top: auto; font-size: 14px; padding-top: 8px; }
.card.is-soon { background: transparent; color: var(--whiteout); border: 1px dashed rgba(255, 255, 255, 0.24); }
.card.is-soon .card-format, .card.is-soon p { color: var(--text-dim); }
.card.is-soon .card-key { color: rgba(255, 255, 255, 0.85); }
.card.is-soon .card-link { color: var(--text-dim); }
.empty { margin-top: 32px; color: var(--text-dim); }

/* ---------- Espejo / puertas / motores ---------- */
.section-photo .mirror { margin-top: 48px; margin-bottom: 48px; }
.mirror-card { border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 28px 24px; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.door { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 28px 24px; }
.door:first-child { background: var(--haze); color: var(--ink); border-color: var(--haze); }
.door-tag { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.door:first-child .door-tag, .door:first-child .door-for, .door:first-child > p { color: var(--ink-dim); }
.door:first-child .door-for strong, .door:first-child .door-price { color: var(--ink); }
.door:first-child .btn-haze { background: var(--ink); color: var(--haze); border-color: var(--ink); }
.door h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.door > p { font-size: 15px; color: var(--text-dim); font-weight: 400; }
.door-for strong { color: var(--whiteout); font-weight: 500; }
.door-price { font-size: 14px; color: var(--whiteout) !important; margin-top: auto; padding-top: 8px; }
.door .btn { width: 100%; }
.engine { border-top: 1px solid var(--whiteout); padding-top: 20px; }
.engine span { font-size: 13px; color: var(--text-dim); }
.engine h3 { font-size: 26px; margin: 8px 0 12px; letter-spacing: -0.02em; }
.engine p { color: var(--text-dim); font-size: 15px; font-weight: 400; }
.engines + .sub { margin-top: 48px; }

/* ---------- Quién soy / prueba / FAQ ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.prose-dark p { font-size: 18px; line-height: 1.55; font-weight: 400; color: rgba(255, 255, 255, 0.86); margin-bottom: 18px; }
.prose-dark p.small { font-size: 14px; color: var(--text-dim); }
.quote { margin: 0; background: var(--haze); color: var(--ink); border-radius: var(--r-card); padding: 32px; }
.quote blockquote { margin: 0 0 20px; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
.quote figcaption { font-size: 14px; color: var(--ink-dim); }
.clients { margin-top: 32px; font-size: 14px; }
.faq { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 32px 22px 0; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--text-dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--text-dim); font-weight: 400; max-width: 680px; }

/* ---------- Página de recurso ---------- */
.r-hero-in { padding-top: 88px; padding-bottom: 88px; }
.r-hero .h-xl { margin-bottom: 8px; }
.back { display: inline-block; font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; }
.back:hover { color: var(--whiteout); }
.r-body { padding-top: 64px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; margin-bottom: 32px; background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.doc {
  background: var(--haze); color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 5vw, 56px);
  font-weight: 400; font-size: 17px; line-height: 1.6;
}
.doc > * + * { margin-top: 18px; }
.doc .lead { font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.doc h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 48px; }
.doc strong { font-weight: 500; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--ink-dim); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); vertical-align: top; }
.doc th { font-weight: 500; color: var(--ink-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.nota { background: var(--whiteout); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--r-btn); padding: 18px 20px; font-size: 16px; }

.prompt { background: var(--ink); color: var(--haze); border-radius: var(--r-btn); overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.btn-copy { background: transparent; color: var(--whiteout); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-btn); padding: 6px 14px; font: 500 13px/1 var(--font); cursor: pointer; }
.btn-copy:hover { background: rgba(255, 255, 255, 0.1); }
.btn-copy.is-done { background: var(--haze); color: var(--ink); border-color: var(--haze); }
.prompt pre { margin: 0; padding: 20px 18px; white-space: pre-wrap; word-break: break-word; font: 400 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; max-height: 560px; overflow: auto; }

.gate { background: var(--haze); color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 5vw, 48px); display: grid; gap: 12px; max-width: 520px; }
.gate p { color: var(--ink-dim); font-weight: 400; }
.muted-ink { color: var(--ink-dim); }

.cta-box { margin-top: 48px; border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: clamp(24px, 5vw, 48px); }
.cta-box p:not(.eyebrow) { color: var(--text-dim); font-weight: 400; font-size: 17px; margin-top: 14px; max-width: 600px; }
.cta-box .actions { margin-top: 28px; }

/* ---------- Setter ---------- */
.table-wrap { margin-top: 40px; overflow-x: auto; }
.setter { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.setter th, .setter td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-dark); vertical-align: middle; }
.setter th { font-size: 13px; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.setter tr.is-soon td { color: var(--text-dim); }
.setter-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-dark); padding: 48px 0; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--whiteout); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero-in { padding: 96px var(--gutter) 56px; }
  .search { width: 100%; }
  .card { min-height: 0; }
  .actions .btn { flex: 1 1 100%; }
  .doc { font-size: 16px; }
  .cred-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   MOVIMIENTO
   ========================================================= */
/* Fondo del hero: zoom lento + parallax (JS mueve --py) */
.hero-bg { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); animation: respirar 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes respirar { from { scale: 1; } to { scale: 1.06; } }

/* Formas de vidrio flotantes */
.orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute; display: block; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: flotar 9s ease-in-out infinite;
}
.o1 { width: 220px; height: 220px; top: 14%; right: 8%; }
.o2 { width: 120px; height: 120px; top: 52%; right: 26%; animation-duration: 11s; animation-delay: -3s; border-radius: 40% 60% 55% 45%; }
.o3 { width: 70px; height: 70px; top: 24%; right: 38%; animation-duration: 7s; animation-delay: -5s; }
.r-hero .o1 { width: 160px; height: 160px; top: 18%; right: 6%; }
.r-hero .o2 { top: 60%; right: 18%; }
.r-hero .o3 { display: none; }
.closing .o1 { left: 6%; right: auto; top: 20%; }
.closing .o2 { right: 8%; top: 55%; }
@keyframes flotar {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(-14px, -22px, 0) rotate(6deg); }
  66% { transform: translate3d(10px, -10px, 0) rotate(-4deg); }
}

/* Entrada del hero */
.hero-in > *, .r-hero-in > * { position: relative; z-index: 2; animation: subir 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > *:nth-child(2), .r-hero-in > *:nth-child(2) { animation-delay: .12s; }
.hero-in > *:nth-child(3), .r-hero-in > *:nth-child(3) { animation-delay: .24s; }
.hero-in > *:nth-child(4), .r-hero-in > *:nth-child(4) { animation-delay: .36s; }
.hero-in > *:nth-child(5) { animation-delay: .48s; }
@keyframes subir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.display { animation: subir 1.1s cubic-bezier(.2, .7, .2, 1) both, flotar-suave 7s ease-in-out 1.2s infinite; }
@keyframes flotar-suave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Aparición al hacer scroll (JS agrega .reveal y luego .is-in) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Cinta de credenciales */
.cred-in { display: none; }
.marquee { overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; animation: cinta 38s linear infinite; font-size: 15px; color: var(--text-dim); white-space: nowrap; }
.marquee-track b { color: var(--whiteout); font-weight: 400; font-size: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Tarjetas: brillo que sigue al mouse */
a.card, .door, .mirror-card, .quote { position: relative; overflow: hidden; }
a.card::after, .door::after, .mirror-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 60%);
}
a.card:hover::after, .door:hover::after, .mirror-card:hover::after { opacity: 1; }
a.card::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.9), transparent 60%); }
.door, .mirror-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.door:hover, .mirror-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); }
.card-link span { display: inline-block; transition: transform .25s; }
a.card:hover .card-link span { transform: translateX(5px); }

/* Motores: la línea superior se dibuja al aparecer */
.engine { border-top: 0; position: relative; }
.engine::before { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: var(--whiteout); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.engine.is-in::before, html:not(.js) .engine::before { transform: scaleX(1); }

/* Palabra en cursiva: leve balanceo */
.cursiva { display: inline-block; animation: balanceo 5s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes balanceo { 0%, 100% { rotate: 0deg; } 50% { rotate: -3deg; } }

@media (max-width: 640px) {
  .o1 { width: 140px; height: 140px; top: 10%; right: -30px; }
  .o2 { width: 80px; height: 80px; top: 30%; right: 50%; }
  .o3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .orb, .display, .cursiva, .marquee-track, .hero-in > *, .r-hero-in > * { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .engine::before { transform: scaleX(1); }
}
.js a.card.reveal.is-in:hover { transform: translateY(-4px); }
.js .door.reveal.is-in:hover, .js .mirror-card.reveal.is-in:hover { transform: translateY(-4px); }

/* =========================================================
   MARCA ASCENDENT (colores y tipografía de ascendentinc.netlify.app)
   ========================================================= */
:root {
  --accent: #d0d95a;
  --accent-dark: #b8c04a;
  --dark-card: #161616;
  /* los azules del sistema Air pasan a verde */
  --twilight: var(--accent);
  --signal: var(--accent);
}
::selection { background: var(--accent); color: var(--void); }
:focus-visible { outline-color: var(--accent); }
.cursiva, .hero .cursiva, .closing .cursiva, .r-hero .cursiva { color: var(--accent); font-weight: 500; }
.eyebrow { color: var(--accent); }
.eyebrow.light { color: var(--accent); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img, .logo-img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.logo-img { height: 20px; margin-bottom: 8px; }
.logo span { margin-left: 0; padding-left: 10px; border-left: 1px solid var(--line-dark); font-size: 14px; color: var(--accent); line-height: 1; }

/* Botón principal en verde de marca (forma Air: 8px) */
.btn-haze { background: var(--accent); border-color: var(--accent); color: var(--void); }
.btn-haze:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-haze:hover, .btn-ink:hover { transform: translateY(-2px); }
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-copy.is-done { background: var(--accent); border-color: var(--accent); color: var(--void); }
.link { color: var(--accent); }

/* Hero con video */
.hero-video { background: var(--void) url("/assets/hero-poster.jpg") center / cover no-repeat; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 45%); }
.closing .hero-video::after { background: rgba(0, 0, 0, 0.62); }
/* Héroes de recursos: fotograma del video + esferas verdes */
.r-hero .hero-bg { background-image: url("/assets/hero-poster.jpg"); background-position: center; }
.r-hero .hero-bg::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55)); }
.orb { background: rgba(208, 217, 90, 0.10); border-color: rgba(208, 217, 90, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 60px rgba(208, 217, 90, 0.12); }

/* Bóveda */
.pill { font-weight: 500; }
.pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--void); }
.pill:hover { border-color: var(--accent); }
.search:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-key { background: var(--ink); color: var(--accent); padding: 3px 8px; border-radius: var(--r-input); font-size: 12px; }
a.card:hover { background: var(--accent); }
a.card:hover p, a.card:hover .card-format { color: rgba(0, 0, 0, 0.7); }
a.card::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.45), transparent 60%); }


.door::after, .mirror-card::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(208, 217, 90, 0.16), transparent 60%); }
.door:hover, .mirror-card:hover { border-color: var(--accent); }
.door:first-child { background: var(--accent); border-color: var(--accent); }
.door:first-child .door-tag, .door:first-child .door-for, .door:first-child > p { color: rgba(0, 0, 0, 0.68); }
.door:first-child::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.4), transparent 60%); }
.door:first-child .btn-haze { background: var(--void); color: var(--accent); border-color: var(--void); }
.door-tag { color: var(--accent); }
.engine span { color: var(--accent); }
.engine::before { background: var(--accent); }
.marquee-track b { color: var(--accent); }
.quote { background: var(--dark-card); color: var(--whiteout); border: 1px solid var(--line-dark); }
.quote blockquote::before { content: "“"; display: block; font-size: 64px; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quote blockquote { font-weight: 500; }
.quote figcaption { color: var(--text-dim); }
.faq summary::after { color: var(--accent); }
.cta-box { background: var(--dark-card); border-color: rgba(208, 217, 90, 0.35); }

/* Contenido del recurso */
.doc ol li::marker { color: var(--ink); }
.nota { border-left: 4px solid var(--accent); }
.btn-ink { background: var(--void); color: var(--accent); border-color: var(--void); }

/* Setter */
.setter td strong { color: var(--accent); }

/* Cifras de credibilidad (Quién soy) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.stat { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: .9; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-dim); }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Código en línea dentro de los recursos */
.doc code { font: 400 0.88em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(0, 0, 0, 0.06); padding: 2px 6px; border-radius: var(--r-input); }
.nota code { background: rgba(0, 0, 0, 0.06); }
.link-ink { color: var(--ink); border-bottom: 2px solid var(--accent); font-weight: 500; }
.doc .actions { margin-top: 24px; }

/* Diagnóstico de los 4 Motores */
.quiz { display: grid; gap: 12px; }
.quiz h2 { margin-top: 32px !important; }
.q { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--r-btn); background: var(--whiteout); padding: 16px 18px; margin: 0; transition: border-color .2s; }
.q.is-missing { border-color: #d64545; }
.q legend { float: left; width: 100%; padding: 0; font-weight: 500; font-size: 16px; line-height: 1.45; display: flex; gap: 12px; }
.q legend span { color: var(--ink-dim); font-size: 13px; padding-top: 2px; }
.q-opts { clear: both; display: flex; gap: 8px; padding-top: 14px; flex-wrap: wrap; }
.q-opts label { cursor: pointer; }
.q-opts input { position: absolute; opacity: 0; pointer-events: none; }
.q-opts span { display: inline-block; padding: 8px 18px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: var(--r-btn); font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s; }
.q-opts label:hover span { border-color: var(--ink); }
.q-opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.q-opts input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.quiz-error { color: #b03030; font-weight: 500; }
.quiz .btn { justify-self: start; margin-top: 16px; }
.quiz-out { display: grid; gap: 24px; }
.bars { display: grid; gap: 12px; background: var(--ink); color: var(--whiteout); border-radius: var(--r-btn); padding: 24px; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar i { height: 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.bar.is-low b { background: #e06c5a; }
.bar em { font-style: normal; text-align: right; color: rgba(255, 255, 255, 0.7); }
.quiz-result { border-left: 4px solid var(--accent); padding-left: 20px; }
.quiz-result > * + * { margin-top: 14px; }
.quiz-result h2 { margin-top: 0 !important; font-size: clamp(32px, 5vw, 48px); }
.quiz-result h3 { font-size: 18px; font-weight: 500; margin-top: 24px; }
.quiz-result .eyebrow { color: var(--ink-dim); margin-bottom: 0; }
.quiz-reset { justify-self: start; }

/* Descargas */
.r-hero .dl { margin-top: 28px; }
.dl-note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.prompt-btns { display: flex; gap: 6px; }
.btn-dl { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); }

/* =========================================================
   IPHONE / CELULAR
   ========================================================= */
html { overflow-x: clip; }
.doc, .cta-box, .prompt-head span, .setter td { overflow-wrap: break-word; }
.btn { white-space: nowrap; }
.btn-sm { white-space: nowrap; }
.footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.prompt-head { flex-wrap: wrap; gap: 8px; }
.tabla { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* en pantallas táctiles no dejamos efectos "pegados" tras tocar una tarjeta */
@media (hover: none) {
  a.card:hover, .js a.card.reveal.is-in:hover { background: var(--haze); transform: none; }
  a.card:hover p, a.card:hover .card-format { color: var(--ink-dim); }
  .door:hover, .mirror-card:hover, .js .door.reveal.is-in:hover, .js .mirror-card.reveal.is-in:hover { transform: none; }
  .door:hover:not(:first-child), .mirror-card:hover { border-color: var(--line-dark); }
  a.card:hover::after, .door:hover::after, .mirror-card:hover::after { opacity: 0; }
  .btn-haze:hover, .btn-ink:hover { transform: none; }
}

@media (max-width: 640px) {
  .sm-hide { display: none; }
  .nav-in { gap: 12px; }
  .logo img { height: 15px; }
  .logo span { font-size: 13px; padding-left: 8px; }

  /* el encabezado de cada recurso: sin esferas encima del texto */
  .r-hero .orbs { display: none; }
  .r-hero-in { padding-top: 56px; padding-bottom: 56px; }
  .back { margin-bottom: 28px; }
  .h-xl { font-size: clamp(34px, 10.5vw, 44px); }
  .eyebrow { letter-spacing: 0.1em; }
  .hero-copy { font-size: 17px; }

  .doc { padding: 22px 18px; }
  .doc .lead { font-size: 19px; }
  .doc h2 { font-size: 23px; margin-top: 36px; }
  .prompt pre { font-size: 13px; padding: 16px 14px; max-height: 480px; }
  .prompt-head { padding: 10px 10px 10px 14px; }

  /* tablas del contenido: una tarjeta por fila, con el nombre de cada columna */
  .doc .tabla { overflow: visible; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { background: var(--whiteout); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--r-btn); padding: 14px 16px; margin-top: 10px; }
  .doc td { border: 0; padding: 6px 0; font-size: 15px; line-height: 1.45; }
  .doc td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1px; }
  .doc td.td-titulo { font-size: 17px; font-weight: 500; padding-top: 0; }

  .cta-box { padding: 24px 18px; }
  .quiz .q-opts span { padding: 10px 16px; }
  .bar { grid-template-columns: 96px 1fr 40px; gap: 8px; font-size: 13px; }
  .bars { padding: 18px 16px; }
  .quiz-result { padding-left: 14px; }

  .toolbar { gap: 12px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: calc(100% + var(--gutter) * 2); }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: none; }
  .stats { gap: 20px; margin-top: 48px; }
  .stat strong { font-size: 52px; }
  .door, .mirror-card { padding: 22px 18px; }
  .mirror-card { font-size: 18px; }
  .sub { font-size: 18px; }
  .faq summary { font-size: 17px; }
}

/* página del setter: una tarjeta por recurso, con los botones a todo el ancho */
@media (max-width: 720px) {
  .table-wrap { overflow: visible; margin-top: 28px; }
  .setter { min-width: 0; }
  .setter thead { display: none; }
  .setter, .setter tbody, .setter tr, .setter td { display: block; width: 100%; }
  .setter tr { background: var(--dark-card); border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 16px; margin-bottom: 12px; }
  .setter td { border: 0; padding: 2px 0; }
  .setter td:nth-child(1) { font-size: 12px; letter-spacing: 0.1em; }
  .setter td:nth-child(2) { font-size: 17px; line-height: 1.3; margin: 4px 0 6px; }
  .setter td:nth-child(3) { font-size: 14px; }
  .setter-actions { justify-content: stretch; margin-top: 14px; }
  .setter-actions .btn { flex: 1; }
}
.footer-links { flex-wrap: wrap; gap: 8px 24px; }

/* =========================================================
   ASCENDENT ACADEMY · barra, presentación, filtros, página de la Academy
   ========================================================= */
.display { font-size: clamp(60px, 16.5vw, 230px); }
.hero-sm { min-height: 640px; }
.hero-sm .hero-in { padding-top: 96px; padding-bottom: 72px; }
.price-line { margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.price-line strong { color: var(--accent); font-weight: 500; }
.closing .price-line { text-align: center; }

/* Barra de arriba con la oferta */
.bar { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 9px var(--gutter); background: var(--accent); color: var(--void); font-size: 14px; line-height: 1.3; text-align: center; }
.bar p { margin: 0; }
.bar strong { font-weight: 500; }
.bar a { color: var(--void); font-weight: 500; border-bottom: 1px solid currentColor; white-space: nowrap; }
.bar-count { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .bar { font-size: 12.5px; gap: 12px; padding: 8px var(--gutter); }
  .bar-sep { display: none; }
  .bar-free::before { content: " · "; }
}

/* Presentación (Hola, soy Vanessa) */
.intro-grid { display: grid; gap: 40px; align-items: center; }
.intro-grid.con-foto { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.retrato { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--r-card); }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-dark); border-radius: var(--r-pill); padding: 8px 14px; font-size: 14px; color: var(--whiteout); }
.prose-lead { font-size: 18px; line-height: 1.55; font-weight: 400; color: rgba(255, 255, 255, 0.86); margin-top: 20px; max-width: 640px; }
.intro .actions { margin-top: 28px; }

/* Franja de herramientas */
.tools { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0; }
.tools .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.tools p { margin: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; color: rgba(255, 255, 255, 0.82); }

/* Filtros de la biblioteca */
.filters { display: grid; gap: 14px; margin-top: 36px; }
.filter-row { display: flex; align-items: center; gap: 16px; }
.filter-label { flex: none; width: 96px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.filters .search { width: 100%; max-width: 420px; }
.card-format { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; font-weight: 500; }
.card-promo { background: var(--accent); }
.card-promo .card-key { background: var(--void); color: var(--accent); }
.card-promo p, .card-promo .card-format { color: rgba(0, 0, 0, 0.7); }
a.card-promo:hover { background: var(--accent-dark); }
a.card-promo:hover p, a.card-promo:hover .card-format { color: rgba(0, 0, 0, 0.78); }

/* Dos caminos */
.doors.grid-2 { align-items: stretch; }
.door-more { align-self: flex-start; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.door:first-child .door-more { color: var(--ink); }
.door:not(:first-child) .door-more { color: var(--accent); }

/* Página de la Academy */
.pillars { margin-top: 48px; }
.pillar { border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 28px 24px; background: var(--dark-card); }
.pillar span { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.pillar h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin: 12px 0 14px; }
.pillar p { color: var(--text-dim); font-size: 16px; font-weight: 400; }
.route { margin-top: 56px; border-top: 1px solid var(--line-dark); padding-top: 32px; }
.route h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 20px; }
.route ol { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: paso; display: grid; gap: 0; }
.route li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.route li::before { content: counter(paso, decimal-leading-zero); grid-row: span 2; color: var(--accent); font-size: 14px; padding-top: 3px; }
.route li strong { font-weight: 500; font-size: 18px; }
.route li span { color: var(--text-dim); font-size: 15px; font-weight: 400; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--void); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.deal { margin-top: 36px; border: 1px solid rgba(208, 217, 90, 0.4); border-radius: var(--r-card); padding: 24px; background: var(--dark-card); }
.deal h3 { font-size: 18px; margin-bottom: 14px; }
.deal ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--text-dim); font-weight: 400; }
.deal li strong { color: var(--whiteout); font-weight: 500; }
.price-box { background: var(--haze); color: var(--ink); border-radius: var(--r-card); padding: clamp(28px, 6vw, 56px) 24px; }
.price-box .eyebrow { color: var(--ink-dim); }
.price { margin: 8px 0 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; }
.price s { font-size: 28px; color: var(--ink-dim); }
.price strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 14vw, 120px); line-height: 0.9; }
.price span { font-size: 18px; color: var(--ink-dim); }
.price-points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; }
.price-points li::before { content: "✓ "; font-weight: 500; }
.price-box .btn-haze { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.price-box .btn-haze:hover { background: var(--void); border-color: var(--void); }
.price-box .small { margin-top: 16px; color: var(--ink-dim); }
.fit { margin-top: 48px; }
.fit-col { border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 28px 24px; background: var(--dark-card); }
.fit-col h3 { font-size: 22px; margin-bottom: 18px; }
.fit-yes { border-color: rgba(208, 217, 90, 0.45); }
.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.crosses li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.crosses li::before { content: "×"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); display: grid; place-items: center; font-size: 15px; line-height: 1; padding-bottom: 2px; color: rgba(255, 255, 255, 0.7); }
.fit-note { margin-top: 24px; font-size: 14px; }
.ps .firma { font-family: var(--font-cursive); font-size: 40px; color: var(--accent); line-height: 1; margin-top: 8px; }
.section-price { background: var(--void); }
.hero-sm .h-xl { max-width: 880px; }

@media (max-width: 960px) {
  .intro-grid.con-foto { grid-template-columns: 1fr; gap: 28px; }
  .retrato { max-height: 420px; }
}
@media (max-width: 640px) {
  .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-label { width: auto; }
  .filter-row .pills { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; width: calc(100% + var(--gutter) * 2); }
  .hero-sm { min-height: 0; }
  .hero-sm .hero-in { padding-top: 64px; padding-bottom: 48px; }
  .pillar { padding: 24px 18px; }
  .fit-col { padding: 24px 18px; }
  .deal { padding: 20px 16px; }
  .prose-lead { font-size: 17px; }
  .tools ul { gap: 6px 20px; font-size: 16px; }
  .price-box { padding: 28px 18px; }
}
.display { line-height: 0.9; }
.h-lg + .prose-dark, .h-lg + .prose-lead { margin-top: 24px; }
.cta-box .h-md { margin-bottom: 4px; }
.filters { grid-template-columns: minmax(0, 1fr); }
.filter-row { min-width: 0; }
.filters .search { max-width: 100%; }
@media (min-width: 641px) { .filters .search { max-width: 420px; } }

.route li .tag { grid-column: 2; justify-self: start; font-style: normal; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--void); background: var(--accent); border-radius: var(--r-input); padding: 2px 8px; margin: 2px 0 4px; }
.retrato { object-position: center 22%; }
.route li span { grid-column: 2; }
.chips + .prose-dark { margin-top: 20px; }
.intro-grid.con-foto { align-items: start; }

/* Enlaces dentro de los recursos: subrayados y que se puedan romper en pantallas angostas */
.doc a:not(.btn):not(.link-ink) { text-decoration: underline; text-decoration-color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 500; overflow-wrap: anywhere; }
.doc a:not(.btn):hover { text-decoration-color: var(--ink); }
.doc td { overflow-wrap: break-word; }
.doc a:not(.btn):not(.link-ink) { overflow-wrap: break-word; }
@media (min-width: 641px) { .doc td[data-label="Enlace"] { min-width: 8.5rem; } }
