/*
 * Domina la IA · «Cristal de día y de noche» — ver DESIGN.md.
 * 1. Tokens · 2. Base · 3. Bandas y temas · 4. Cristal · 5. Componentes comunes · 6. Bloques · 7. Movimiento
 * REGLA: animaciones ligadas al scroll solo con longhands; hover con translate/scale (ver CLAUDE.md).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Superficies */
  --night: #061c22;
  --night-2: #0a2a33;
  --night-3: #0c3540;
  --day: #ffffff;
  --mist: #f6f5f0;
  --dawn-top: #fff7d6;

  /* Texto */
  --ink: #08262e;
  --ink-2: #3d5961;
  --ink-3: #5a7178;
  --gold-ink: #7a5c00;
  --snow: #f3f6f7;
  --snow-2: #b5bdc0;
  --snow-3: #949fa2;

  /* Acentos */
  --sun: #ffcf26;
  --sun-soft: #ffe27a;
  --teal: #1f7a8c;

  /* Tipografía (del sistema) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --fs-display: clamp(2.9rem, 1.6rem + 4.6vw, 6rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.3vw, 3.5rem);
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.5vw, 1.6875rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-kicker: 0.8125rem;

  /* Forma y ritmo */
  --r-pill: 999px;
  --r-chip: 18px;
  --r-card: 28px;
  --r-media: 32px;
  --r-band: 40px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 5vw + 40px, 140px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tema por defecto: día */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --accent: var(--gold-ink);
  --em: var(--ink);
  --line: rgba(8, 38, 46, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-spec: rgba(255, 255, 255, 0.6);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 22px rgba(255, 255, 255, 0.35),
    0 10px 34px -12px rgba(8, 38, 46, 0.25);
  --glass-blur: blur(16px) saturate(170%);
  --glass-solid: rgba(255, 255, 255, 0.94);

  interpolate-size: allow-keywords;
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 207, 38, 0.45); color: var(--ink); }

h1, h2, h3 { margin: 0; color: var(--fg); font-weight: 650; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong { font-weight: 650; color: var(--fg); }

/* Acento editorial: la palabra que importa, en serif itálica */
h1 em, h2 em, h3 em, .serif, .normal__title em, .price-card__name em, .orbit__chip em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--em);
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-kicker); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.7; transform-origin: left; }
.kicker--center { display: flex; justify-content: center; text-align: center; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font-weight: 650; }
.skip:focus { top: 16px; }

/* ============ 3. Bandas y temas (día / noche) ============ */
.band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--section);
  background: var(--day);
}
/* Las bandas se montan unas sobre otras */
.band + .band { margin-top: calc(var(--r-band) * -1); border-radius: var(--r-band) var(--r-band) 0 0; padding-top: calc(var(--section) + var(--r-band)); }
.band--day { background: var(--day); }
.band--mist { background: var(--mist); }
.band--dawn { background: linear-gradient(180deg, var(--dawn-top) 0%, #fffdf3 40%, var(--day) 100%); }
.band--night, .band--night2 {
  background: var(--night);
  --fg: var(--snow);
  --fg-2: var(--snow-2);
  --fg-3: var(--snow-3);
  --accent: var(--sun);
  --em: var(--sun);
  --line: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-spec: rgba(255, 236, 170, 0.2);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 30px rgba(255, 207, 38, 0.05),
    0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --glass-solid: rgba(12, 53, 64, 0.94);
  color: var(--snow-2);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.35);
}
.band--night2 { background: var(--night-2); }
.band > .wrap { z-index: 1; }

/* Auras: manchas de luz que derivan para que el cristal tenga algo detrás */
.aura {
  position: absolute; z-index: -1; pointer-events: none;
  left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; opacity: 0.55;
}
.aura--sun { background: radial-gradient(circle, rgba(255, 207, 38, 0.38), rgba(255, 207, 38, 0) 65%); }
.aura--teal { background: radial-gradient(circle, rgba(31, 122, 140, 0.75), rgba(31, 122, 140, 0) 65%); }
.aura--sun-day { background: radial-gradient(circle, rgba(255, 207, 38, 0.55), rgba(255, 226, 122, 0) 65%); opacity: 0.6; }

.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ============ 4. Cristal líquido ============ */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}
/* Reflejo que sigue al puntero (--mx/--my desde main.js) + brillo diagonal */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(240px circle at var(--mx, 30%) var(--my, 0%), var(--glass-spec), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 42%);
  opacity: 0.55; transition: opacity 0.4s;
}
.band--night .glass::before, .band--night2 .glass::before { background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%), var(--glass-spec), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 40%); }
.glass:hover::before { opacity: 1; }

/* Cristal esmerilado (sobre foto o aura) con texto blanco */
.glass--frost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(6, 28, 34, 0.2));
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.75);
  backdrop-filter: blur(20px) saturate(160%) brightness(0.75);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 40px rgba(255, 255, 255, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}
/* Brillo que recorre el cristal */
.sheen { overflow: hidden; }
.sheen::after {
  content: ''; position: absolute; inset: -40% -60%; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-70%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass--frost { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass--frost { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ============ 5. Componentes comunes ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  font: 600 1rem/1.15 var(--font-sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 0; color: var(--fg);
  transition: translate 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255, 207, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn--sun:hover, .btn--sun:focus-visible { translate: 0 -2px; box-shadow: 0 0 0 6px rgba(255, 207, 38, 0.25), 0 16px 36px -12px rgba(255, 207, 38, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn--glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn--glass:hover { translate: 0 -2px; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--fg); }
.link-arrow::after { content: '→'; transition: translate 0.25s var(--ease-out); }
.link-arrow:hover::after { translate: 4px 0; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.actions--center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 16px; border-radius: var(--r-chip);
  font-size: 0.9375rem; font-weight: 550; line-height: 1.25; color: var(--fg);
}
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; line-height: 1.3;
  background: var(--line); color: var(--fg-2);
}
.tag--new { background: var(--sun); color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 207, 38, 0.25); flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; background: rgba(8, 38, 46, 0.07); color: var(--ink); }

/* Barra de progreso de lectura */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--sun), var(--sun-soft));
  transform-origin: left; transform: scaleX(var(--p, 0)); will-change: transform;
}

/* ============ Navegación ============ */
.nav { position: fixed; z-index: 50; inset: 12px 0 auto 0; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  padding: 6px 8px 6px 14px; border-radius: var(--r-pill);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav[data-theme="night"] .nav__inner {
  --glass-spec: rgba(255, 236, 170, 0.2);
  background: rgba(6, 28, 34, 0.5); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  color: var(--snow);
}
.nav[data-theme="night"] .nav__inner::before { opacity: 0.25; }
.nav[data-theme="day"] .nav__inner { color: var(--ink); }

.nav.is-scrolled[data-theme="day"] .nav__inner { background: rgba(255, 255, 255, 0.72); }
.nav.is-scrolled[data-theme="night"] .nav__inner { background: rgba(6, 28, 34, 0.7); }
.nav__brand { display: block; flex: none; }
.nav__logo { height: 46px; width: auto; }
.nav__logo--day { display: none; }
.nav[data-theme="day"] .nav__logo--day { display: block; }
.nav[data-theme="day"] .nav__logo--night { display: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 550; text-decoration: none; opacity: 0.85; transition: background-color 0.25s, opacity 0.25s; }
.nav__links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.nav .btn { color: var(--ink); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .nav__logo { height: 40px; }
}

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  --glass-bg: rgba(37, 211, 102, 0.85); --glass-border: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: opacity 0.4s, translate 0.4s var(--ease-out), scale 0.3s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { scale: 1.08; }
.wa-float.is-hidden { opacity: 0; translate: 0 20px; pointer-events: none; }

/* ============ 6. Bloques ============ */

/* --- 1 · Portada --- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: clamp(110px, 12vh, 150px); padding-bottom: clamp(80px, 10vh, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; }
.hero__title em { display: block; }
.hero .lead { max-width: 34em; }
.hero .lead strong { color: var(--sun); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 24px; width: 100%; margin-top: 8px; }
.facts li { display: grid; gap: 2px; padding: 16px 16px; align-content: start; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.2; color: var(--snow); }
.facts .facts__price { color: var(--sun); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--fs-small); color: var(--snow-3); line-height: 1.35; }

.hero__visual { position: relative; }
.orbit { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit__rings { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; color: var(--sun); opacity: 0.85; }
.orbit__rings--2 { inset: 2%; width: 96%; height: 96%; opacity: 0.25; }
.orbit__photo {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 10px rgba(255, 255, 255, 0.05), 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 120px -20px rgba(255, 207, 38, 0.35);
}
.orbit__photo img { width: 100%; height: 100%; object-fit: cover; }
.orbit__chip { position: absolute; z-index: 2; white-space: nowrap; }
.orbit__chip--1 { left: -6%; top: 16%; }
.orbit__chip--2 { right: -8%; top: 58%; display: block; text-align: left; line-height: 1.3; }
.orbit__chip--2 em { font-size: 1.1em; }
.orbit__chip--3 { left: 2%; bottom: 4%; }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .orbit { width: min(440px, 88%); }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .orbit__chip { font-size: 0.8125rem; padding: 8px 12px; }
  .orbit__chip--1 { left: -4%; top: 6%; }
  .orbit__chip--2 { right: -4%; }
}

/* --- 2 · Herramientas --- */
.tools { padding-bottom: calc(var(--section) * 0.8); }
.tools .kicker { margin-bottom: 32px; }
.marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 10px; }
.marquee__track { display: flex; gap: 14px; width: max-content; padding-inline: 7px; }
.logo-pill {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: 72px; padding: 0 26px; border-radius: var(--r-pill);
  --glass-bg: rgba(255, 255, 255, 0.7);
  border-color: rgba(8, 38, 46, 0.07);
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink);
  transition: scale 0.35s var(--ease-out);
}
.logo-pill img { height: 32px; width: auto; max-width: 170px; object-fit: contain; }
.logo-pill img.inv { filter: invert(1); }
.logo-pill img:has(+ span) { height: 34px; }
.logo-pill img.tall { height: 46px; }
@media (max-width: 600px) { .logo-pill { height: 60px; padding: 0 20px; } .logo-pill img { height: 26px; } .logo-pill img.tall { height: 40px; } }
.logo-pill:hover { scale: 1.08; }
.tools::before { /* gotas de cristal de fondo */
  content: ''; position: absolute; z-index: -1; inset: 30% -10% 0; pointer-events: none;
  background: radial-gradient(40% 60% at 20% 60%, rgba(255, 207, 38, 0.22), transparent 70%), radial-gradient(35% 60% at 80% 40%, rgba(31, 122, 140, 0.12), transparent 70%);
}

/* --- 3 · ¿Te identificas? --- */
.identify__stage { position: relative; }
.identify .particles { top: -60px; left: calc(var(--gutter) * -1); width: calc(100% + 2 * var(--gutter)); height: calc(100% + 120px); }
.situations { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.situation { border-radius: var(--r-card); padding: clamp(22px, 2.2vw, 32px); display: grid; gap: 10px; align-content: start; }
.situation__n { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sun); }
.situation p { color: var(--snow-2); }
.normal {
  position: relative; z-index: 1;
  max-width: 820px; margin: clamp(56px, 8vw, 110px) auto 0; padding: clamp(28px, 4vw, 52px);
  border-radius: 36px; text-align: center; display: grid; gap: 16px; justify-items: center;
}
.normal__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; color: var(--snow); text-wrap: balance; }
.normal p:last-child { color: var(--snow-2); font-size: 1.125rem; max-width: 36em; }
@media (max-width: 960px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .situations { grid-template-columns: 1fr; } }

/* --- 4 · Los 3 niveles (pila) --- */
.stack { display: grid; gap: 22vh; padding-bottom: 4vh; }
.level {
  position: sticky; top: calc(100px + var(--i) * 26px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  min-height: min(420px, 62vh); padding: clamp(28px, 4vw, 56px);
  border-radius: 36px; overflow: hidden;
  --glass-bg: rgba(255, 255, 255, 0.72);
}
.level--2 { --glass-bg: rgba(255, 246, 214, 0.82); }
.level--3 {
  background: radial-gradient(120% 120% at 100% 0%, #124452, var(--night) 60%);
  color: var(--snow-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -30px rgba(6, 28, 34, 0.7);
  --fg: var(--snow); --accent: var(--sun); --em: var(--sun);
}
.level__num {
  font-size: clamp(6rem, 4rem + 9vw, 13rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: 0.9;
}
.level--3 .level__num { -webkit-text-stroke-color: var(--sun); }
.level__body { display: grid; gap: 16px; max-width: 560px; position: relative; z-index: 1; }
.level__body h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.03em; }
.level__body p { font-size: 1.125rem; color: var(--fg-2); }
.level--3 .level__body p { color: var(--snow-2); }
.level--3 .pills li { background: rgba(255, 207, 38, 0.16); color: var(--sun); }
.level__rings { position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; color: var(--sun); opacity: 0.18; }
@media (max-width: 640px) {
  .level { grid-template-columns: 1fr; gap: 8px; top: calc(84px + var(--i) * 18px); align-content: start; }
  .level__num { font-size: 5rem; }
  .stack { gap: 14vh; }
}

/* --- 5 · Temario --- */
.syllabus__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.syllabus__aside { position: sticky; top: 110px; }
.particles--orb { inset: -120px -80px auto auto; width: 460px; height: 460px; opacity: 0.85; z-index: -1; }
.syllabus .section-head { margin-bottom: 28px; }
.news { border-radius: var(--r-card); padding: 24px 26px; display: grid; gap: 14px; }
.news ul { display: grid; gap: 10px; }
.news li { display: flex; gap: 10px; align-items: start; color: var(--snow-2); font-size: 0.975rem; }
.news svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--sun); }

.timeline { position: relative; padding-left: 0; }
.timeline__track { position: absolute; left: 31px; top: 30px; bottom: 90px; width: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.timeline__fill { will-change: transform; position: absolute; inset: 0; background: linear-gradient(180deg, var(--sun), var(--sun-soft)); transform-origin: top; transform: scaleY(var(--tp, 1)); border-radius: 2px; box-shadow: 0 0 16px rgba(255, 207, 38, 0.6); }
.js .timeline__fill { transform: scaleY(var(--tp, 0)); }
.lessons { display: grid; gap: 12px; position: relative; }
.lesson details { border-radius: 24px; }
.lesson summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px 14px 12px; cursor: pointer; list-style: none; color: var(--snow);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em;
}
.lesson summary::-webkit-details-marker { display: none; }
.lesson__n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  background: var(--night-2); color: var(--snow-2); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.lesson.is-lit .lesson__n, .js .lesson.is-lit .lesson__n { background: var(--sun); color: var(--ink); border-color: var(--sun); box-shadow: 0 0 0 5px rgba(255, 207, 38, 0.18); }
.no-js .lesson__n, html:not(.js) .lesson__n { background: var(--sun); color: var(--ink); }
.lesson__t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lesson__tags { display: inline-flex; gap: 6px; }
.lesson__chev { width: 20px; height: 20px; color: var(--snow-3); transition: rotate 0.35s var(--ease-out); }
.lesson details[open] .lesson__chev { rotate: 180deg; color: var(--sun); }
.lesson__list { padding: 0 22px 20px 68px; display: grid; gap: 8px; color: var(--snow-2); }
.lesson__list li { position: relative; padding-left: 16px; }
.lesson__list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); opacity: 0.8; }
.lesson__soon { font-style: italic; color: var(--snow-3); }
.lesson--agent details { --glass-bg: rgba(255, 207, 38, 0.07); --glass-border: rgba(255, 207, 38, 0.3); }
.lesson details:hover { --glass-border: rgba(255, 255, 255, 0.3); }
.lesson--agent details:hover { --glass-border: rgba(255, 207, 38, 0.55); }
/* Apertura suave donde el navegador lo permite */
.lesson details::details-content, .qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.lesson details[open]::details-content, .qa[open]::details-content { block-size: auto; }
.not-covered { margin-top: 20px; border-radius: 20px; padding: 16px 20px; font-size: 0.9375rem; color: var(--snow-2); }
@media (max-width: 960px) {
  .syllabus__grid { grid-template-columns: 1fr; }
  .syllabus__aside { position: relative; top: 0; }
  .particles--orb { width: 320px; height: 320px; inset: -80px -60px auto auto; }
}
@media (max-width: 600px) {
  .lesson summary { gap: 12px; font-size: 1rem; }
  .lesson__list { padding: 0 18px 18px 26px; }
  .timeline__track { left: 31px; }
}

/* --- 6 · Qué conseguirás --- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.bento__item { border-radius: var(--r-card); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; --glass-bg: rgba(255, 255, 255, 0.66); }
.bento__item--big { grid-row: span 2; grid-column: span 2; align-content: end; background: linear-gradient(160deg, rgba(255, 226, 122, 0.85), rgba(255, 207, 38, 0.65)); --accent: var(--ink); }
.bento__item--big p { color: var(--ink); font-size: 1.125rem; max-width: 26em; }
.bento .bento__item .bento__stat { font-size: clamp(5rem, 3rem + 8vw, 10rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bento .bento__item .bento__unit { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; margin-top: -4px; }
.bento__item h3 { font-size: 1.375rem; }
.bento__item p { color: var(--fg-2); }
.method { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.method__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.method__steps::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--sun), var(--teal)); transform-origin: left; opacity: 0.6;
}
.method__steps li { position: relative; display: grid; gap: 4px; justify-items: start; }
.method__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); font-weight: 700; margin-bottom: 10px; box-shadow: 0 0 0 6px var(--day); }
.method__steps strong { font-size: 1.1875rem; letter-spacing: -0.015em; }
.method__steps span:last-child { color: var(--fg-2); font-size: 0.975rem; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__item--big { grid-column: span 2; grid-row: span 1; }
  .method__steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .method__steps::before { display: none; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__item--big { grid-column: span 1; } }

/* --- 7 · Tu Yo Digital --- */
.digital { padding-block: 0; }
.digital.band { padding-top: var(--r-band); }
.digital__frame { position: relative; isolation: isolate; padding-block: var(--section) calc(var(--section) + 60px); }
.digital__bg {
  position: absolute; inset: 0; z-index: -2; border-radius: 48px;
  background: radial-gradient(80% 60% at 50% 100%, #12404c, #0d3640 45%, var(--night-2) 80%);
  transform-origin: 50% 30%; will-change: transform;
}
.js .digital__bg { transform: scale(calc(0.9 + var(--open, 0) * 0.1)); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; margin-top: 16px; }
.gallery__item { position: relative; border-radius: var(--r-media); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); transition: box-shadow 0.5s var(--ease-out); }
.gallery__item:nth-child(2) { margin-top: 80px; }
.gallery__item:nth-child(3) { margin-top: 24px; }
.gallery__item:nth-child(4) { margin-top: 140px; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; }
.gallery__item--sq img { aspect-ratio: 4 / 5; }
.gallery__cap { position: absolute; left: 12px; bottom: 12px; font-size: 0.875rem; transition: translate 0.5s var(--ease-out); }
.gallery__item:hover .gallery__cap { translate: 0 -6px; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:nth-child(n) { margin-top: 0; }
  .gallery__item:nth-child(even) { margin-top: 48px; }
}

/* --- 8 · Qué incluye y precio --- */
.pricing__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.include { border-radius: 24px; padding: 22px; display: grid; gap: 12px; align-content: start; --glass-bg: rgba(255, 255, 255, 0.72); }
.include svg { width: 30px; height: 30px; color: var(--ink); padding: 6px; box-sizing: content-box; border-radius: 12px; background: var(--sun); }
.include h3 { font-size: 1.125rem; margin-bottom: 4px; }
.include p { color: var(--fg-2); font-size: 0.975rem; }
.devices { margin-top: 28px; }
.devices img { width: 100%; filter: drop-shadow(0 30px 40px rgba(8, 38, 46, 0.2)); }
.pricing__side { position: sticky; top: 100px; isolation: isolate; }
.price-card { position: relative; z-index: 1; border-radius: 36px; padding: 2px; overflow: hidden; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(8, 38, 46, 0.35); }
/* Borde de luz amarilla que gira (rotación en GPU, sin repintar) */
.price-card::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(rgba(255, 207, 38, 0.15), var(--sun), rgba(255, 207, 38, 0.15) 30%, rgba(31, 122, 140, 0.4) 60%, rgba(255, 207, 38, 0.15));
  will-change: transform;
}
.price-card__rings { position: absolute; z-index: 0; width: 360px; height: 360px; right: -120px; top: -120px; color: var(--sun); opacity: 0.45; }
.price-card__inner {
  position: relative; z-index: 1; border-radius: 34px; padding: clamp(26px, 3vw, 40px); display: grid; gap: 18px;
  background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.price-card__name { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__amount { font-size: clamp(4rem, 3rem + 3vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__note { font-size: 1rem; color: var(--ink-2); font-weight: 550; }
.price-card__small { font-size: var(--fs-small); color: var(--ink-3); text-align: center; margin-top: -6px; }
.guarantee { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(8, 38, 46, 0.05); }
.guarantee img { width: 76px; }
.guarantee p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.price-card__meta { display: grid; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.price-card__meta li { display: flex; gap: 8px; align-items: start; }
.price-card__meta svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--teal); }
@media (max-width: 960px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing__side { position: relative; top: 0; order: -1; }
}
@media (max-width: 600px) { .includes { grid-template-columns: 1fr; } }

/* --- 9 · Tu instructor --- */
.instructor__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.instructor__photo .parallax { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.instructor__photo img { width: 100%; height: 118%; max-width: none; object-fit: cover; object-position: center 20%; }
.prose { display: grid; gap: 14px; font-size: 1.0625rem; color: var(--snow-2); max-width: 640px; }
.mission { margin: 24px 0 0; border-radius: 24px; padding: 20px 24px; font-size: 1.125rem; color: var(--snow); border-left: 3px solid var(--sun); }
.channel { margin-top: clamp(56px, 7vw, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border-radius: 24px; padding: 22px 24px; display: grid; gap: 4px; }
.stat strong { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.stat span { color: var(--snow-2); font-size: 0.9375rem; }
.channel__foot { margin-top: 16px; font-size: var(--fs-small); color: var(--snow-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.channel__foot .link-arrow { color: var(--snow); font-size: 0.9375rem; }
.clients { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 28px; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px clamp(24px, 3.4vw, 48px); }
.clients__list img { height: 40px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 0.3s, scale 0.35s var(--ease-out); }
.clients__list li:hover img { opacity: 1; scale: 1.08; }
.clients__list img[alt="Nature"] { height: 28px; }
.clients__list img[alt="IPP Formación"], .clients__list img[alt="Freepik"] { height: 30px; }
@media (max-width: 860px) {
  .instructor__grid { grid-template-columns: 1fr; }
  .instructor__photo { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .clients__list img { height: 32px; }
}

/* --- 10 · Testimonios --- */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-card); padding: clamp(22px, 2.4vw, 30px); --glass-bg: rgba(255, 255, 255, 0.7); display: block; }
.quote:first-child { --glass-bg: rgba(255, 246, 214, 0.85); }
.quote blockquote { margin: 0; display: grid; gap: 12px; }
.quote__hl { font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.quote blockquote p:not(.quote__hl) { color: var(--ink-2); font-size: 0.975rem; }
.quote figcaption { margin-top: 18px; display: flex; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.35; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(8, 38, 46, 0.4); }
.quote figcaption strong { display: block; font-size: 1rem; color: var(--ink); }

/* --- 11 · Preguntas frecuentes --- */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 20px; }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; color: var(--snow);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; flex: none; color: var(--snow-3); transition: rotate 0.35s var(--ease-out); }
.qa[open] summary svg { rotate: 180deg; color: var(--sun); }
.qa p { padding: 0 22px 20px; color: var(--snow-2); }
.qa:hover { --glass-border: rgba(255, 255, 255, 0.3); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: relative; top: 0; }
}

/* --- 12 · Llamada final y pie --- */
.final { padding-bottom: calc(var(--section) + 20px); }
.final__card { max-width: 880px; margin-inline: auto; text-align: center; display: grid; gap: 20px; justify-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 40px; --glass-bg: rgba(255, 255, 255, 0.6); }
.final__card h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.final__card .lead { max-width: 32em; }
.footer { background: var(--mist); color: var(--ink-2); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; color: var(--ink); }
.footer__brand img { height: 56px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__links svg { width: 18px; height: 18px; }
.footer__copy { font-size: var(--fs-small); color: var(--ink-3); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ============ 7. Movimiento ============ */

/* 7.1 Entradas ligadas al scroll */
@keyframes in-up { from { opacity: 0; transform: translate3d(0, 70px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes in-left { from { opacity: 0; transform: translate3d(-120px, 24px, 0) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes in-right { from { opacity: 0; transform: translate3d(120px, 24px, 0) rotate(2deg); } to { opacity: 1; transform: none; } }
/* Para contenedores con cristal dentro: solo movimiento (la opacidad del padre desactiva el cristal de los hijos) */
@keyframes in-right-solid { from { transform: translate3d(120px, 24px, 0) rotate(2deg); } to { transform: none; } }
@keyframes in-zoom { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes in-tilt { from { opacity: 0; transform: perspective(900px) rotateX(18deg) translate3d(0, 90px, 0); } to { opacity: 1; transform: none; } }
@keyframes title-in { from { opacity: 0; transform: translate3d(0, 46px, 0); filter: blur(10px); letter-spacing: 0.01em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.no-sda) :is(.reveal, .from-left, .from-right, .zoom-in, .tilt-in, .reveal-stagger > *, .section-head h2, .kicker::before, .method__steps::before) {
      animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view();
    }
    html:not(.no-sda) .reveal { animation-name: in-up; animation-range: entry 0% entry 260px; }
    html:not(.no-sda) .from-left { animation-name: in-left; animation-range: entry 0% entry 300px; }
    html:not(.no-sda) .from-right { animation-name: in-right; animation-range: entry 0% entry 300px; }
    html:not(.no-sda) :is(.hero__visual, .price-card).from-right { animation-name: in-right-solid; }
    html:not(.no-sda) .zoom-in { animation-name: in-zoom; animation-range: entry 0% entry 320px; }
    html:not(.no-sda) .tilt-in { animation-name: in-tilt; animation-range: entry 0% entry 220px; }
    html:not(.no-sda) .section-head h2 { animation-name: title-in; animation-range: entry 0% entry 220px; }
    html:not(.no-sda) .kicker::before { animation-name: line-in; animation-range: entry 0% entry 160px; }
    html:not(.no-sda) .method__steps::before { animation-name: line-in; animation-range: entry 30% cover 50%; }
    /* En las cabeceras se animan el título y la entradilla por separado */
    html:not(.no-sda) .section-head.reveal { animation-name: none; }
    html:not(.no-sda) .section-head.reveal .lead { animation-name: in-up; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: entry 20px entry 260px; }
    /* Rejillas: cada hijo entra desde una dirección y un poco después */
    html:not(.no-sda) .reveal-stagger > * { animation-name: in-up; animation-range: entry 0% entry 260px; }
    html:not(.no-sda) .reveal-stagger > :nth-child(3n + 1) { animation-name: in-left; }
    html:not(.no-sda) .reveal-stagger > :nth-child(3n) { animation-name: in-right; }
    html:not(.no-sda) .reveal-stagger > :nth-child(3n + 2) { animation-range: entry 30px entry 290px; }
    html:not(.no-sda) .reveal-stagger > :nth-child(3n) { animation-range: entry 60px entry 320px; }
    /* Las rejillas en columnas (testimonios) y las fichas pequeñas suben sin girar */
    html:not(.no-sda) :is(.quotes, .clients__list, .stats) > * { animation-name: in-up; }
  }
}

/* 7.2 Modo alternativo (Safari/iOS, Firefox): solo opacidad y desplazamiento */
@media (prefers-reduced-motion: no-preference) {
  .io-reveal :is(.reveal, .from-left, .from-right, .zoom-in, .tilt-in, .reveal-stagger > *, .section-head h2) {
    opacity: 0; transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .io-reveal :is(.hero__visual, .price-card).from-right { opacity: 1; }
  .io-reveal :is(.reveal, .reveal-stagger > *, .section-head h2, .zoom-in, .tilt-in) { transform: translate3d(0, 48px, 0); }
  .io-reveal :is(.from-left, .reveal-stagger > :nth-child(3n + 1)) { transform: translate3d(-90px, 16px, 0); }
  .io-reveal :is(.from-right, .reveal-stagger > :nth-child(3n)) { transform: translate3d(90px, 16px, 0); }
  .io-reveal :is(.quotes, .clients__list, .stats) > * { transform: translate3d(0, 48px, 0); }
  .io-reveal .reveal-stagger > :nth-child(3n + 2) { transition-delay: 0.06s; }
  .io-reveal .reveal-stagger > :nth-child(3n) { transition-delay: 0.12s; }
  .io-reveal .is-in { opacity: 1 !important; transform: none !important; }
  .io-reveal .section-head.reveal { opacity: 1; transform: none; }
}

/* 7.1 bis · Entrada al cargar: la cabecera sube en cascada */
@keyframes intro { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-safe { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .intro > * { animation: intro 1.1s var(--ease-out) both; }
  .intro > :nth-child(2) { animation-delay: 0.08s; }
  .intro > :nth-child(3) { animation-delay: 0.18s; }
  .intro > :nth-child(4) { animation-delay: 0.28s; }
  .intro > :nth-child(5) { animation-delay: 0.42s; }
  .webkit .intro > *, .intro > .glass { animation-name: intro-safe; }
  .hero .particles { animation: fade-in 2s ease-out both; }
}

/* 7.5 Ambiente continuo */
@keyframes bob { from { translate: 0 -7px; } to { translate: 0 7px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheen { 0%, 62% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }

@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 5.5s ease-in-out infinite alternate; }
  .bob--slow { animation-duration: 8s; }
  .bob--late { animation-delay: -2.7s; }
  .orbit__rings { animation: spin 60s linear infinite; }
  .orbit__rings--2 { animation-duration: 90s; animation-direction: reverse; }
  .level__rings, .price-card__rings { animation: spin 70s linear infinite; }
  .js .marquee__track { animation: marquee 40s linear infinite; }
  .js .marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .sheen::after { animation: sheen 7s ease-in-out infinite; }
  .price-card::before { animation: spin 8s linear infinite; }
}
/* Sin movimiento: la cinta se convierte en una fila desplazable */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* 7.6 Hover: elevación y zoom (translate/scale para sumarse a las entradas) */
.lift { transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.lift:hover, .lift:focus-within { translate: 0 -8px; box-shadow: var(--glass-shadow), 0 30px 60px -30px rgba(8, 38, 46, 0.45); }
.band--night .lift:hover, .band--night2 .lift:hover { box-shadow: var(--glass-shadow), 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 207, 38, 0.25); }
.zoom-media img { transition: scale 0.8s var(--ease-out); }
.zoom-media:hover img { scale: 1.07; }

/* ============ 8. Rendimiento ============ */
/* Cristal «ligero»: mismo aspecto (fondo, borde de luz, brillo interior y reflejo) pero SIN desenfoque.
   El desenfoque se recalcula en cada fotograma por cada elemento visible; solo compensa donde hay algo detrás
   que desenfocar (partículas, fotos, el contenido que pasa bajo la navegación). Sobre fondo liso no se nota. */
.logo-pill, .level, .bento__item, .include, .quote, .lesson details, .qa, .news, .not-covered, .mission, .faq__contact .btn--glass {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.logo-pill { --glass-bg: rgba(255, 255, 255, 0.92); }
.level--1 { --glass-bg: rgba(255, 255, 255, 0.9); }
.level--2 { --glass-bg: rgba(255, 247, 220, 0.96); }
.bento__item, .include { --glass-bg: rgba(255, 255, 255, 0.86); }
.quote { --glass-bg: rgba(255, 255, 255, 0.88); }
.quote:first-child { --glass-bg: rgba(255, 246, 214, 0.95); }
