/* =========================================================
   Mente IA Academy · Hoja de estilos
   Paleta y tipografías compartidas con mcdigitalsystems.com
   (familia MC Digital Systems): base clara + secciones navy,
   degradado azul en botones, acentos cyan y verde del logo.
   Sistema de forma: botones y chips en píldora, tarjetas 16px,
   elementos internos e inputs 12px.
   ========================================================= */

:root {
  /* Familia MC Digital Systems */
  --blue: #1565c0;
  --blue-2: #1e9be0;
  --cyan: #1fc0e8;
  --cyan-2: #5fd6f3;
  --green: #8cc63f;
  --green-2: #4caf50;
  --navy-950: #061629;
  --navy-900: #0a1f38;
  --navy-800: #0b2a48;
  --navy-700: #0e3a5e;
  --sky: #e0f3fc;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 100%);
  --grad-text: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 55%, var(--cyan) 100%);
  --grad-navy: radial-gradient(70% 60% at 50% 0%, #12507a 0%, rgba(18, 80, 122, 0) 70%), linear-gradient(180deg, #0b3352 0%, #082038 100%);
  --grad-cta: radial-gradient(45% 80% at 82% 30%, rgba(31, 192, 232, 0.22), rgba(0, 0, 0, 0) 70%), linear-gradient(115deg, #0a2540 0%, #0c3352 100%);

  /* Tokens de tema (claro por defecto) */
  --bg: #ffffff;
  --bg-soft: #f4f9fd;
  --ink: #0b2340;
  --text: #41536a;
  --muted: #5f7286;
  --line: #e2eaf2;
  --line-strong: #cddbe8;
  --surface: #ffffff;
  --surface-2: #f7fbfe;
  --field: #ffffff;
  --link: var(--blue);
  --accent-soft: rgba(30, 155, 224, 0.1);
  --accent-line: rgba(30, 155, 224, 0.5);
  --ok: #2f8f4e;
  --bad: #c9303d;

  --r-card: 16px;
  --r-inner: 12px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 64, 0.05), 0 8px 22px -12px rgba(11, 35, 64, 0.14);
  --shadow-md: 0 20px 44px -22px rgba(11, 35, 64, 0.3);
  --shadow-lg: 0 36px 80px -30px rgba(6, 22, 41, 0.5);
  color-scheme: light;
}

/* Secciones navy: mismos componentes, tokens invertidos */
.is-dark {
  --ink: #eef5fb;
  --text: #bccbdb;
  --muted: #93a9bf;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --field: rgba(3, 12, 24, 0.55);
  --link: var(--cyan-2);
  --accent-soft: rgba(31, 192, 232, 0.14);
  --accent-line: rgba(31, 192, 232, 0.55);
  --ok: var(--green);
  --bad: #ff8a94;
  color: var(--text);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* `hidden` debe ganar siempre: varias clases de abajo fijan display
   y, sin esto, un elemento oculto se mostraría igual. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-2); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.sec { position: relative; padding-block: clamp(72px, 9vw, 116px); }
.sec-title { max-width: 18ch; margin-bottom: 44px; }
.lead { color: var(--text); font-size: 1.125rem; max-width: 60ch; }
.hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-dark .hl { background: linear-gradient(100deg, var(--cyan-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--link);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Iconos (sprite SVG en linea) ---------- */
.ic {
  width: 1em; height: 1em; flex: none;
  fill: currentColor; display: inline-block; vertical-align: -0.125em;
  pointer-events: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform 160ms var(--ease-out), background-position 400ms var(--ease-out), border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ic { font-size: 1.15em; transition: transform 200ms var(--ease-out); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background-image: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 50%, var(--blue) 100%);
  background-size: 200% 100%; background-position: 0 0;
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(21, 101, 192, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background-color: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.is-dark .btn-ghost { background-color: rgba(255, 255, 255, 0.06); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background-position: 60% 0; box-shadow: 0 16px 30px -12px rgba(21, 101, 192, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  .btn-primary:hover .ph-arrow-right { transform: translateX(3px); }
  .btn-ghost:hover { border-color: var(--accent-line); color: var(--link); }
  .is-dark .btn-ghost:hover { background-color: rgba(255, 255, 255, 0.1); color: var(--ink); }
}

.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease;
}
.chip-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { color: var(--ink); border-color: var(--accent-line); } }

/* ---------- Revelado al hacer scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Aviso superior ---------- */
.announce { background: var(--navy-900); font-size: 0.9rem; color: #bccbdb; }
.announce[hidden] { display: none; }
.announce-in { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.announce-in > .ic { color: var(--cyan); font-size: 1.1rem; }
.announce-in strong { color: #fff; font-weight: 600; }
.announce-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan-2); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.announce-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: #8ea5bc; display: grid; place-items: center;
}
.announce-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11, 35, 64, 0.35);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: auto; filter: drop-shadow(0 4px 8px rgba(11, 35, 64, 0.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.brand-text small { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue-2); margin-top: 5px; }
.nav-links {
  display: flex; gap: 2px; margin-left: auto; padding: 5px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.nav-links a {
  position: relative; padding: 7px 14px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--text); font-size: 0.93rem; font-weight: 500;
  transition: color 200ms ease, background-color 200ms ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.is-active { color: var(--blue); background: var(--sky); }
.burger { display: none; }

.read-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .read-progress { animation: readProgress linear both; animation-timeline: scroll(root); }
  @keyframes readProgress { to { transform: scaleX(1); } }
}

.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100dvh - var(--header-h) - 42px), 860px);
  display: flex; align-items: center;
  padding-block: 32px 80px;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 32px);
  background:
    radial-gradient(900px 500px at 15% 10%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(700px 520px at 85% 40%, rgba(31, 192, 232, 0.16) 0%, rgba(31, 192, 232, 0) 70%),
    linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  align-items: center; gap: 40px;
}
.hero-copy { position: relative; z-index: 2; }
.seal-strip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  color: var(--text); font-size: 0.9rem; text-decoration: none; margin-bottom: 26px;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.seal-strip:active { transform: scale(0.98); }
.seal-strip b { color: var(--ink); font-weight: 600; }
.seal-strip:hover { border-color: var(--accent-line); }
.seal-chip {
  width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
}
.seal-chip img { width: 30px; height: auto; }

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 600;
}
.rotator {
  display: inline-grid; vertical-align: bottom;
  padding-bottom: 0.1em; margin-bottom: -0.1em;
}
.rotator > span {
  grid-area: 1 / 1; white-space: nowrap;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(0.45em); filter: blur(6px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out);
}
.rotator > span.is-on { opacity: 1; transform: none; filter: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-0.45em); filter: blur(6px); }
.hero-sub { color: var(--text); font-size: clamp(1.08rem, 1.35vw, 1.22rem); max-width: 46ch; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Escenario visual del hero */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.08; perspective: 1400px; }
.halo {
  position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(31, 192, 232, 0.32), rgba(30, 155, 224, 0.1) 45%, transparent 68%);
  animation: breathe 6s ease-in-out infinite;
}
.halo::before, .halo::after {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgba(30, 155, 224, 0.28);
}
.halo::after { inset: -4%; border-color: rgba(30, 155, 224, 0.2); border-style: dashed; animation: spin 70s linear infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.8; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hv-audio, .hv-video { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hv-audio {
  width: 41%; left: -2%; top: 9%;
  transform: rotate(-7deg) translateZ(0);
  border: 3px solid #fff;
  animation: floatA 9s ease-in-out infinite;
}
.hv-audio img { width: 100%; height: auto; }
.hv-video {
  width: 56%; right: -4%; bottom: 5%;
  background: rgba(10, 31, 56, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: floatB 8s ease-in-out infinite;
  z-index: 3;
}
.hv-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hv-video figcaption {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 0.84rem; color: #bccbdb;
}
.hv-video figcaption .ic { color: var(--cyan); font-size: 1.3rem; }
.hv-video figcaption b { color: #fff; font-weight: 600; margin-right: 6px; }
.hv-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  animation: floatA 7s ease-in-out infinite;
}
.hv-chip .ic { width: 28px; height: 28px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 0.95rem; }
.hv-chip.c1 { right: 2%; top: 8%; }
.hv-chip.c2 { left: 4%; bottom: 18%; animation-delay: -3s; }
.hv-chip.c2 .ic { background: linear-gradient(100deg, var(--green-2), var(--green)); }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }

/* ---------- Libro 3D ---------- */
.book3d {
  --w: 260px;
  --h: calc(var(--w) * 1.5);
  --t: 34px;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 26deg));
}
.b-face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.b-front, .b-back { inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; }
.b-front { transform: translateZ(calc(var(--t) / 2)); background: #0d1d33; }
.b-front img { width: 100%; height: 100%; object-fit: cover; }
.b-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(255, 255, 255, 0.18) 1.6%, rgba(0, 0, 0, 0.15) 3.2%, transparent 6%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, var(--sheen, 0.08)) 52%, transparent 64%);
}
.b-back {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
  background: linear-gradient(160deg, #10284a, #0a1a31 60%, #081427);
}
.b-spine {
  width: var(--t); height: var(--h); left: calc(50% - var(--t) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #091a30, #12305a 45%, #0b2141);
  display: grid; place-items: center;
}
.b-spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--t) * 0.34);
  letter-spacing: 0.08em; text-transform: uppercase; color: #f4ecdc; white-space: nowrap;
}
.b-spine em { font-style: italic; color: #d9b768; margin-left: 0.4em; }
.b-pages {
  width: var(--t); height: calc(var(--h) - 6px); top: 3px; left: calc(50% - var(--t) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f3f0e9 0 1px, #dfd9cd 1px 2px), #eee9df;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.22);
}
.b-top, .b-bottom {
  width: calc(var(--w) - 3px); height: var(--t); left: 0; top: calc(50% - var(--t) / 2);
  background: repeating-linear-gradient(0deg, #f1ede4 0 1px, #dbd5c9 1px 2px);
}
.b-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

.hero-book {
  --w: clamp(200px, 20vw, 280px);
  position: absolute; left: 50%; top: 50%;
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--h) / -2);
  z-index: 2;
  filter: drop-shadow(0 40px 40px rgba(6, 22, 41, 0.42));
}

/* ---------- Banda de confianza ---------- */
.trust-band { background: #fff; border-top: 1px solid var(--line); }
.trust-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 30px; padding-block: 16px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.92rem; color: var(--muted); text-decoration: none;
}
.trust-item b { color: var(--ink); font-weight: 600; }
.trust-item > .ic { font-size: 1.2rem; color: var(--blue-2); }
.trust-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); flex: none;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.trust-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.trust-logo img { width: 22px; height: auto; }
.trust-link { transition: color 200ms ease; }
.trust-link:hover { color: var(--blue); }
.trust-link:hover b { color: var(--blue); }
.trust-link .ph-arrow-up-right { font-size: 0.95rem; }

/* ---------- Bonos ---------- */
.bonus { background: var(--grad-navy); }
.bonus-head { max-width: 680px; margin-bottom: 40px; }
.bonus-head .lead { margin-top: 14px; }
.bonus-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: 860px; counter-reset: bonus;
}
.bonus-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px 22px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: border-color 300ms ease, background-color 300ms ease, transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bonus-card:hover { border-color: var(--accent-line); background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
}
.bonus-n {
  position: absolute; top: -13px; left: 22px;
  width: 28px; height: 28px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--grad); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  box-shadow: 0 6px 16px -6px rgba(21, 101, 192, 0.8);
}
.bonus-card > .ic { font-size: 1.9rem; color: var(--cyan); }
.bonus-card h3 { font-size: 1.1rem; }
.bonus-card p { font-size: 0.93rem; color: var(--muted); }
.bonus-when {
  margin-top: auto; padding-top: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
}
.bonus-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.bonus-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.bonus-note .ic { color: var(--green); font-size: 1.2rem; }

/* ---------- Testimonios ---------- */
.quotes[hidden] { display: none; }
.quotes-head { max-width: 680px; margin-bottom: 40px; }
.quotes-head .lead { margin-top: 14px; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote-card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote-stars { display: flex; gap: 2px; color: #e8a33d; font-size: 1rem; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-ava {
  width: 42px; height: 42px; border-radius: var(--r-pill); flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--sky); color: var(--blue);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.quote-ava img { width: 100%; height: 100%; object-fit: cover; }
.quote-who b { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.quote-who span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Marquesina ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 18px;
  background: var(--navy-900);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.3rem;
  color: #c6d4e2; white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--cyan); }
.marquee-track span:nth-child(3n)::after { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Objetivos ---------- */
.goals-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.goals-ask h2 { max-width: 14ch; }
.goals-ask .lead { margin-top: 16px; }
.goal-list { display: grid; gap: 10px; margin-top: 32px; }
.goal-list button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 18px; border-radius: var(--r-inner);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 500; font-size: 1.02rem; color: var(--text);
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.goal-list button .ic { font-size: 1.35rem; color: var(--muted); transition: color 200ms ease; }
.goal-list button:active { transform: scale(0.98); }
.goal-list button[aria-checked="true"] { border-color: var(--blue-2); background: var(--sky); color: var(--ink); }
.goal-list button[aria-checked="true"] .ic { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .goal-list button:hover { color: var(--ink); border-color: var(--line-strong); } }

.goal-result {
  position: relative; border-radius: var(--r-card); padding: 30px;
  background: var(--grad-navy);
  box-shadow: var(--shadow-lg);
  min-height: 440px; overflow: hidden;
}
.goal-result::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 192, 232, 0.25), transparent); pointer-events: none;
}
.gr-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.gr-head h3 { font-size: 1.5rem; }
.gr-head span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-2); white-space: nowrap; }
.gr-steps { position: relative; display: grid; gap: 12px; }
.gr-step {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--r-inner); background: var(--surface);
  border: 1px solid var(--line);
  animation: grIn 520ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes grIn { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.gr-ico { width: 44px; height: 44px; border-radius: var(--r-inner); display: grid; place-items: center; background: var(--accent-soft); color: var(--cyan); font-size: 1.4rem; }
.gr-step small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gr-step b { display: block; font-weight: 600; line-height: 1.35; margin-top: 2px; color: var(--ink); }
.gr-step p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.gr-step .btn { height: 38px; }
.gr-thumb { width: 44px; height: 44px; border-radius: var(--r-inner); object-fit: cover; }
.gr-step.gr-mc { background: rgba(140, 198, 63, 0.08); border-color: rgba(140, 198, 63, 0.35); }
.gr-step.gr-mc .gr-ico { background: rgba(140, 198, 63, 0.16); color: var(--green); }

/* ---------- Bento ---------- */
.why { background: var(--bg-soft); }
.bento {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto); gap: 16px;
}
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  padding: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.cell p { color: var(--text); font-size: 0.98rem; }
.cell-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); font-size: 1.6rem; margin-bottom: auto;
}
.cell:nth-of-type(3) .cell-ico { background: rgba(140, 198, 63, 0.16); color: #4f8a1f; }
.cell-hero { grid-column: span 4; grid-row: span 2; padding: 36px; min-height: 440px; border: 0; }
.cell-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 96% 38%; transition: transform 1.2s var(--ease-out); }
.cell-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 41, 0.05) 20%, rgba(6, 22, 41, 0.92) 85%); }
.cell-hero-in { position: relative; z-index: 1; max-width: 520px; }
.cell-hero h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; }
.cell-hero p { margin-top: 12px; color: #c9d7e4; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) { .cell-hero:hover img { transform: scale(1.04); } }
.cell-stats {
  grid-column: span 4; border: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end;
  background: var(--grad-cta);
}
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: #bccbdb; font-size: 0.92rem; line-height: 1.4; }

/* ---------- Biblioteca: estantería de madera ---------- */
.library { background: var(--bg-soft); }
.library-head { max-width: 680px; }
.library-head .lead { margin-top: 14px; }

.shelf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 32px; }
.chip-f {
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font-weight: 500; font-size: 0.93rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.chip-f:active { transform: scale(0.96); }
.chip-f.is-on {
  background-image: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px -12px rgba(21, 101, 192, 0.8);
}
@media (hover: hover) and (pointer: fine) { .chip-f:not(.is-on):hover { border-color: var(--blue-2); color: var(--blue); } }

/* El mueble */
.bookcase { --alto-libro: 290px; max-width: 760px; margin-inline: auto; }
.bookcase-scene {
  position: relative;
  perspective: 1400px; perspective-origin: 50% 46%;
  padding: 52px 42px 0;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 26%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(42% 30% at 22% 62%, rgba(0, 0, 0, 0.3), transparent 70%),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(91deg, rgba(255, 220, 170, 0.035) 0 1px, transparent 1px 13px),
    linear-gradient(170deg, #6a4526 0%, #4c2e12 52%, #3a2209 100%);
  box-shadow:
    inset 0 26px 42px -20px rgba(0, 0, 0, 0.9),
    inset 14px 0 28px -16px rgba(0, 0, 0, 0.75),
    inset -14px 0 28px -16px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 220, 170, 0.08);
}
.bookcase-back {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 214, 160, 0.14), transparent 62%);
}

.bookcase-books {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 5px; min-height: var(--alto-libro);
  transform-style: preserve-3d;
}

/* La tabla de madera */
.bookcase-plank { position: relative; z-index: 3; margin: 0 -32px; }
.plank-face {
  display: block; height: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 236, 205, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(60, 30, 8, 0.4) 0 1px, transparent 1px 17px),
    linear-gradient(180deg, #b07842 0%, #9a6433 38%, #7d4d24 100%);
  box-shadow: inset 0 2px 0 rgba(255, 228, 188, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.42);
}
.plank-edge {
  display: block; height: 16px;
  background: linear-gradient(180deg, #6d4220 0%, #4e2d13 100%);
  box-shadow: 0 16px 30px -12px rgba(49, 26, 8, 0.75);
  border-radius: 0 0 6px 6px;
}
.bookcase-hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 0.88rem; color: var(--muted);
}
.bookcase-hint .ic { color: var(--blue-2); font-size: 1.1rem; }

/* Cada ejemplar */
.tomo {
  position: relative; flex: none; padding: 0; border: 0; background: none;
  width: var(--grosor); height: var(--alto-libro);
  transform-style: preserve-3d;
  transition: margin 560ms var(--ease-out), opacity 300ms ease;
  animation: tomoEntra 700ms var(--ease-out) both;
  animation-delay: calc(var(--orden) * 80ms);
}
@keyframes tomoEntra { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.tomo.oculta { display: none; }
.tomo-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 560ms var(--ease-out);
}
.t-cara { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* Lomo: la cara que se ve en reposo */
.t-lomo {
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 11px 4px;
  border-radius: 3px 2px 2px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(255, 255, 255, 0.1) 16%, rgba(255, 255, 255, 0.02) 52%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(168deg, #1b4f84 0%, #123861 48%, #0d2947 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.tomo:nth-child(2n) .t-lomo {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.16) 15%, rgba(255, 255, 255, 0.03) 54%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(168deg, #e9e2d2 0%, #d8cdb6 46%, #c2b599 100%);
}
.tomo:nth-child(2n) .t-titulo { color: #2a2112; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.tomo:nth-child(3n) .t-lomo {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.14) 15%, rgba(255, 255, 255, 0.03) 54%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(168deg, #16697f 0%, #0f4b5e 48%, #0a3544 100%);
}
.tomo:nth-child(4n) .t-lomo {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.03) 54%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(168deg, #7d2f2a 0%, #5e211d 48%, #431513 100%);
}
.tomo:nth-child(5n) .t-lomo {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.03) 54%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(168deg, #2f5130 0%, #223b23 48%, #182a19 100%);
}
/* Filetes dorados, como los de un libro encuadernado */
.t-lomo::before, .t-lomo::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 198, 130, 0.75), transparent);
}
.t-lomo::before { top: 30px; }
.t-lomo::after { bottom: 44px; }

/* Banda de color: el estado del ejemplar, visible de un vistazo */
.t-marca { width: 100%; height: 7px; border-radius: 2px; flex: none; }
.e-gratis { background: linear-gradient(90deg, #4caf50, #8cc63f); }
.e-preventa { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.e-venta { background: linear-gradient(90deg, var(--blue-2), var(--cyan)); }
.e-proximamente { background: linear-gradient(90deg, #7d8fa2, #aebecd); }

.t-titulo {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  line-height: 1.1; color: #eaf2f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  max-height: calc(var(--alto-libro) - 62px); overflow: hidden;
}
.t-sello {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 32%, #e8cf96, #b2914c 62%, #8a6c32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Portada: aparece al girar el ejemplar */
.t-portada {
  top: 0; left: 0; height: 100%; width: 172px;
  transform-origin: left center;
  transform: rotateY(90deg);
  border-radius: 2px 4px 4px 2px; overflow: hidden;
  background: #0d1d33;
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.4);
}
.t-portada img { width: 100%; height: 100%; object-fit: cover; }
.tomo-generica {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(85% 70% at 50% 28%, rgba(31, 192, 232, 0.22), transparent 68%), linear-gradient(170deg, #10284a, #081427);
}
.tomo-generica img { width: 62%; height: auto; }

.t-hojas {
  top: 2px; right: 0; height: calc(100% - 4px); width: 172px;
  transform-origin: right center; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #f3f0e9 0 1px, #ddd7cb 1px 2px), #eee9df;
}
.t-alto {
  top: 0; left: 0; width: 100%; height: 172px;
  transform-origin: top center; transform: rotateX(-90deg);
  background: repeating-linear-gradient(90deg, #efeae0 0 1px, #d9d3c6 1px 2px);
}

.tomo-sombra {
  position: absolute; left: -6px; right: -6px; bottom: -4px; height: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.6), transparent 72%);
  filter: blur(3px); transition: opacity 400ms ease, transform 400ms ease;
}

/* Al pasar el cursor, el ejemplar asoma, como si fueras a sacarlo */
@media (hover: hover) and (pointer: fine) {
  .tomo:not(.is-abierto):hover .tomo-3d { transform: translateZ(22px) translateY(-9px) rotateY(-13deg); }
  .tomo:not(.is-abierto):hover .tomo-sombra { opacity: 0.55; transform: translateY(5px) scaleX(1.1); }
}
.tomo:focus-visible { outline: none; }
.tomo:focus-visible .t-lomo { box-shadow: 0 0 0 3px var(--cyan), inset 0 1px 0 rgba(255, 255, 255, 0.16); }

/* Seleccionado: sale de la estantería y gira hasta mostrar la portada */
.tomo.is-abierto { margin-right: 182px; z-index: 5; }
.tomo.is-abierto .tomo-3d { transform: translateZ(40px) translateY(-20px) rotateY(-82deg); }
.tomo.is-abierto .tomo-sombra { opacity: 0.75; transform: translateY(16px) scaleX(1.5); }

/* Ficha del ejemplar elegido */
.shelf-detail {
  padding: 28px 30px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  box-shadow: var(--shadow-sm);
}
.shelf-detail[hidden] { display: none; }
.sd-in { display: grid; gap: 10px; max-width: 70ch; animation: grIn 420ms var(--ease-out) both; }
.sd-estado {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 700; color: #fff;
}
.sd-estado.e-proximamente { background: #7d8fa2; }
.sd-estado.e-gratis { color: #06240d; }
.sd-estado.e-venta { color: #04232e; }
.sd-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.shelf-detail h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.sd-desc { color: var(--text); }
.sd-formatos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sd-formatos span {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.sd-in .btn { justify-self: start; margin-top: 10px; }
.shelf-vacio { margin-top: 26px; color: var(--muted); }
.shelf-vacio[hidden] { display: none; }

/* ---------- Fichas de la biblioteca ---------- */
.fichas {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-top: 28px;
}
.ficha {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, border-color 300ms ease;
}
.ficha.oculta { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ficha:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
  .ficha:hover .ficha-cover > img:not(.ficha-emblema) { transform: scale(1.05); }
}
.ficha-cover {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--navy-900); display: grid; place-items: center;
}
.ficha-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform 900ms var(--ease-out); }
.ficha-cover.sin-portada {
  background: radial-gradient(85% 90% at 50% 20%, rgba(31, 192, 232, 0.16), transparent 68%), var(--navy-950);
}
.ficha-emblema { width: 64%; height: auto; object-fit: contain; }

/* La etiqueta de estado, lo primero que salta a la vista */
.ficha-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 15px; border-radius: var(--r-pill);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; box-shadow: 0 6px 18px -6px rgba(6, 22, 41, 0.7);
}
.ficha-badge.e-gratis { color: #06240d; }
.ficha-badge.e-venta { color: #04232e; }
.ficha-badge.e-proximamente { background: rgba(10, 31, 56, 0.9); color: #cfe0ee; border: 1px solid rgba(255, 255, 255, 0.3); }

.ficha-body { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px 22px; flex: 1; }
.ficha-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.ficha h3 { font-size: 1.15rem; line-height: 1.3; }
.ficha-desc { color: var(--text); font-size: 0.94rem; }
.ficha-formatos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ficha-formatos span {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-strong);
  font-size: 0.78rem; color: var(--text);
}
.ficha-body .btn { align-self: flex-start; margin-top: auto; padding-top: 0; margin-top: 14px; }

@media (max-width: 1000px) { .fichas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fichas { grid-template-columns: 1fr; } }

/* La estantería, a escala de teléfono */
@media (max-width: 760px) {
  .bookcase { --alto-libro: 216px; --escala: 0.6; }
  .bookcase-scene { padding: 30px 18px 0; perspective: 900px; }
  .bookcase-plank { margin: 0 -18px; }
  .plank-face { height: 18px; }
  .plank-edge { height: 11px; }
  .bookcase-books { gap: 3px; }
  .tomo { width: calc(var(--grosor) * var(--escala)); }
  .t-lomo { padding: 7px 3px; }
  .t-marca { height: 5px; }
  .t-titulo { font-size: 0.62rem; max-height: calc(var(--alto-libro) - 44px); }
  .t-sello { width: 13px; height: 13px; }
  .t-lomo::before { top: 21px; }
  .t-lomo::after { bottom: 30px; }
  .t-portada, .t-hojas { width: 124px; }
  .t-alto { height: 124px; }
  .tomo.is-abierto { margin-right: 126px; }
  .tomo.is-abierto .tomo-3d { transform: translateZ(22px) translateY(-12px) rotateY(-82deg); }
  .shelf-detail { padding: 22px 20px; }
}

/* ---------- Libro ---------- */
.book { background: var(--grad-navy); overflow: hidden; }
.book-glow {
  position: absolute; left: -10%; top: 10%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(31, 192, 232, 0.18), transparent);
  pointer-events: none;
}
.book-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.book-stage { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.spin-area {
  width: 100%; display: grid; place-items: center; padding-block: 48px;
  perspective: 1600px; cursor: grab; touch-action: pan-y; user-select: none;
}
.spin-area.is-dragging { cursor: grabbing; }
.big-book { --w: clamp(230px, 26vw, 330px); --t: 40px; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.6)); }
.spin-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.spin-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.86rem; }

.b-back { display: flex; flex-direction: column; padding: 9% 9% 8%; gap: 6%; }
.bk-logo { width: 34%; height: auto; }
.bk-quote { font-family: var(--font-display); font-weight: 600; font-size: calc(var(--w) * 0.056); line-height: 1.3; color: #eef4f9; }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; font-size: calc(var(--w) * 0.042); color: #b9cadb; }
.bk-list li { display: flex; gap: 0.6em; }
.bk-list li::before { content: ""; flex: none; width: 0.5em; height: 0.5em; margin-top: 0.45em; border-radius: 2px; background: #d9b768; }
.bk-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; font-size: calc(var(--w) * 0.04); color: #d9b768; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.35; }
.bk-foot img { width: 26%; height: auto; background: #eef4f8; border-radius: 6px; padding: 4px; }

.book-info h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); max-width: 14ch; }
.byline { margin-top: 14px; font-size: 1.05rem; }
.byline b { color: var(--ink); font-weight: 600; }
.book-info .lead { margin-top: 20px; }
.mini-title { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 36px 0 14px; }
.learn { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.learn li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border-radius: var(--r-inner); background: var(--surface); border: 1px solid var(--line);
  font-size: 0.94rem; line-height: 1.45;
}
.learn li .ic { flex: none; font-size: 1.3rem; color: var(--cyan); margin-top: 1px; }
.learn b { color: var(--ink); font-weight: 600; }

.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.formats button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px; border-radius: var(--r-inner);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.formats button:active { transform: scale(0.97); }
.formats .ic { font-size: 1.5rem; color: var(--muted); margin-bottom: 6px; transition: color 200ms ease; }
.formats b { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.formats span { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.formats button[aria-checked="true"] { border-color: var(--cyan); background: var(--accent-soft); }
.formats button[aria-checked="true"] .ic { color: var(--cyan); }
@media (hover: hover) and (pointer: fine) { .formats button:hover { border-color: var(--line-strong); } }
.format-detail { margin-top: 14px; font-size: 0.96rem; min-height: 3.2em; max-width: 62ch; }
.book-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.reserve-flow { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.reserve-flow li { display: flex; gap: 10px; align-items: flex-start; padding: 16px 14px 0 0; font-size: 0.9rem; line-height: 1.45; }
.reserve-flow .ic { flex: none; font-size: 1.2rem; color: var(--green); margin-top: 1px; }
.reserve-flow b { color: var(--ink); font-weight: 600; }

/* ---------- Método ---------- */
.method-head { max-width: 760px; }
.method-head .lead { margin-top: 16px; }
.method-flow {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin-top: 48px;
}
.method-flow::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(30, 155, 224, 0.4), transparent);
}
.m-step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px 18px 24px; text-align: left; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transform: skewX(-6deg);
  transition: transform 300ms var(--ease-out), border-color 300ms ease, background 300ms ease, box-shadow 300ms ease, color 300ms ease;
}
.m-step > * { transform: skewX(6deg); }
.m-step .ic { font-size: 1.7rem; color: var(--blue-2); transition: color 300ms ease; }
.m-step b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); transition: color 300ms ease; }
.m-step small { font-size: 0.74rem; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; transition: color 300ms ease; }
.m-step[aria-selected="true"] {
  border-color: transparent; background: var(--grad-cta);
  box-shadow: 0 22px 40px -18px rgba(11, 51, 82, 0.6);
  transform: skewX(-6deg) translateY(-6px);
}
.m-step[aria-selected="true"] .ic { color: var(--cyan); }
.m-step[aria-selected="true"] b { color: #fff; }
.m-step[aria-selected="true"] small { color: #9fc3dc; }
.m-step .m-bar { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; opacity: 0; transform: skewX(6deg); }
.m-step[aria-selected="true"] .m-bar { opacity: 1; }
.m-step .m-bar::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; }
.m-step[aria-selected="true"].is-auto .m-bar::after { animation: mbar var(--m-dur, 3600ms) linear forwards; }
@keyframes mbar { to { transform: scaleX(1); } }
.method-detail {
  margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: 26px 28px; border-radius: var(--r-card); background: var(--bg-soft); border: 1px solid var(--line);
}
.md-who { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.md-who.you { color: #4f8a1f; }
.method-detail h3 { margin-top: 8px; font-size: 1.5rem; }
.method-detail p { margin-top: 8px; }
.md-example { border-left: 3px solid var(--blue-2); padding-left: 18px; align-self: center; }
.md-example small { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.md-example p { color: var(--ink); font-size: 1rem; }
.md-fade { animation: grIn 420ms var(--ease-out) both; }

/* ---------- Audiolibro ---------- */
.audio { background: var(--grad-cta); }
.audio-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.audio-cover { position: relative; margin: 0; }
.audio-cover img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
.audio-cover::before {
  content: ""; position: absolute; inset: 6% -4% -6% 6%; z-index: 0; border-radius: var(--r-card);
  background: radial-gradient(closest-side, rgba(31, 192, 232, 0.35), transparent);
  filter: blur(20px);
}
.audio-cover img { position: relative; z-index: 1; }
.audio-body .lead { margin-top: 16px; }
.player {
  margin-top: 32px; padding: 22px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.player-top { display: flex; align-items: center; gap: 16px; }
.play-btn {
  flex: none; width: 60px; height: 60px; border-radius: var(--r-pill); border: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 12px 30px -10px rgba(30, 155, 224, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.play-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .play-btn:hover { filter: brightness(1.1); } }
.player-meta { display: flex; flex-direction: column; min-width: 0; }
.player-meta b { font-weight: 600; color: var(--ink); }
.player-meta span { color: var(--muted); font-size: 0.9rem; }
.player-time { margin-left: auto; font-family: var(--font-mono); font-size: 0.86rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wave { margin-top: 18px; height: 72px; border-radius: var(--r-inner); cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; }
.player-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums;
  transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease;
}
.tool:active { transform: scale(0.96); }
.tool:hover { color: var(--ink); border-color: var(--accent-line); }
.tool-cta { margin-left: auto; color: var(--cyan-2); border-color: var(--accent-line); }

/* ---------- Lecciones ---------- */
.lessons { background: var(--bg-soft); }
.lessons-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; margin-bottom: 40px; }
.lessons-head h2, .lessons-head .lead { grid-column: 1; }
.lesson-progress {
  grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ring { width: 52px; height: 52px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .ring-bg { stroke: var(--line); }
.ring .ring-fg { stroke: var(--blue-2); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 600ms var(--ease-out); }
.lesson-progress b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.lesson-progress span { color: var(--muted); font-size: 0.86rem; }

.lessons-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.lesson-feature, .lesson-row {
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-card); overflow: hidden; padding: 0; box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out), border-color 300ms ease, box-shadow 300ms ease;
}
.lesson-feature:active, .lesson-row:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .lesson-feature:hover, .lesson-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .lesson-feature:hover .thumb img, .lesson-row:hover .thumb img { transform: scale(1.05); }
  .lesson-feature:hover .play-dot, .lesson-row:hover .play-dot { transform: scale(1.08); }
}
.thumb { position: relative; display: block; overflow: hidden; background: var(--navy-900); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 900ms var(--ease-out), opacity 300ms ease; }
.thumb img.plate { object-fit: contain; background: #fff; }
.thumb video { opacity: 0; }
.thumb.is-previewing video { opacity: 1; }
.play-dot {
  position: absolute; z-index: 2; width: 56px; height: 56px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.4rem;
  box-shadow: 0 10px 30px -8px rgba(6, 22, 41, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 200ms var(--ease-out);
}
.lesson-feature .thumb { aspect-ratio: 16 / 9; }
.lesson-feature .play-dot { left: 24px; bottom: 24px; width: 64px; height: 64px; font-size: 1.6rem; }
.lesson-feature .lbody { display: block; padding: 24px 26px 26px; }
.lesson-feature h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 10px; }
.lesson-feature p { margin-top: 10px; }
.lesson-list { display: grid; gap: 12px; align-content: start; }
.lesson-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: stretch; }
.lesson-row .thumb { min-height: 112px; }
.lesson-row .play-dot { left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 1rem; }
.lesson-row .lbody { display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; }
.lesson-row h3 { font-size: 1.04rem; line-height: 1.28; margin-top: 6px; }
.lmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.lmeta span { display: inline-flex; align-items: center; gap: 4px; }
.lmeta .lvl { color: var(--blue); font-weight: 700; letter-spacing: 0.04em; }
.lmeta .seen { color: var(--ok); font-weight: 600; }

/* ---------- Últimos videos del canal ---------- */
.channel { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.channel-head h3 { font-size: 1.35rem; }
.channel-head p { font-size: 0.94rem; color: var(--muted); margin-top: 4px; }
.channel-head .ic { color: #ff0033; font-size: 1.25rem; }
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.yt-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out), border-color 300ms ease, box-shadow 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .yt-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
  .yt-card:hover .yt-thumb img { transform: scale(1.05); }
  .yt-card:hover .yt-play { background: #ff0033; }
}
.yt-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.yt-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 52px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(10, 31, 56, 0.82); color: #fff; font-size: 1.1rem;
  transition: background-color 200ms ease;
}
.yt-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.yt-body h4 {
  font-size: 0.98rem; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-date { font-size: 0.8rem; color: var(--muted); }

/* ---------- Redes en el pie ---------- */
.foot-social { display: grid; gap: 10px; align-content: start; }
.soc {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: var(--r-inner); border: 1px solid var(--line); text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.soc:active { transform: scale(0.98); }
.soc .ic { font-size: 1.7rem; flex: none; }
.soc-yt .ic { color: #ff0033; }
.soc-ig .ic { color: #e1306c; }
.soc-fb .ic { color: #1877f2; }
.soc b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.soc em { font-style: normal; font-size: 0.84rem; color: var(--muted); }
.soc:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }

/* ---------- Ruta ---------- */
.route-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.route-side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 20px; justify-items: start; }
.route-now {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: var(--r-inner);
  background: var(--grad-cta); min-width: 260px; box-shadow: var(--shadow-md);
}
.route-now span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9fc3dc; }
.route-now b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #fff; }
.route-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 58px; display: grid; gap: 18px; }
.route-line { position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--line); border-radius: 2px; }
.route-line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); transition: transform 700ms var(--ease-out); border-radius: 2px; }
.r-step {
  position: relative; padding: 24px 26px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color 400ms ease, box-shadow 400ms ease;
}
.r-step::before {
  content: attr(data-n); position: absolute; left: -58px; top: 22px;
  width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: #fff; border: 2px solid var(--line-strong); color: var(--muted);
  transition: background 400ms ease, border-color 400ms ease, color 400ms ease;
}
.r-step.is-done::before, .r-step.is-active::before { background: var(--grad); border-color: transparent; color: #fff; }
.r-step.is-active { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.r-time { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.r-step h3 { margin-top: 6px; font-size: 1.3rem; }
.r-step p { margin-top: 8px; }
.r-wins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.r-wins span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.84rem; color: var(--text); }
.r-wins .ic { color: var(--green-2); }

/* ---------- Práctica ---------- */
.practice { background: linear-gradient(180deg, #ddf1fb 0%, #e9f7fd 100%); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
.panel { border-radius: var(--r-card); padding: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.panel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.panel-ico { flex: none; width: 46px; height: 46px; border-radius: var(--r-inner); display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.4rem; }
.panel-head h3 { font-size: 1.32rem; }
.panel-head p { font-size: 0.94rem; margin-top: 4px; }

.quiz-bar { height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; margin-bottom: 22px; }
.quiz-bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 500ms var(--ease-out); border-radius: 6px; }
.q-count { font-size: 0.76rem; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.q-text { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.32; margin: 6px 0 16px; color: var(--ink); }
.opts { display: grid; gap: 8px; }
.opt {
  text-align: left; padding: 13px 16px; border-radius: var(--r-inner);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-size: 0.96rem; line-height: 1.45;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.opt:active { transform: scale(0.98); }
.opt:hover:not(:disabled) { border-color: var(--accent-line); background: #fff; }
.opt:disabled { cursor: default; }
.opt.right { border-color: rgba(76, 175, 80, 0.7); background: rgba(140, 198, 63, 0.14); }
.opt.wrong { border-color: rgba(201, 48, 61, 0.55); background: rgba(201, 48, 61, 0.07); }
.q-feedback { margin-top: 14px; font-size: 0.95rem; min-height: 1.5em; font-weight: 500; }
.q-feedback.good { color: var(--ok); }
.q-feedback.bad { color: var(--bad); }
.q-next { margin-top: 14px; }
.q-score { font-family: var(--font-display); font-size: 4rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.q-score small { font-size: 1.6rem; color: var(--muted); }
.q-level { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--sky); color: var(--blue); font-weight: 600; font-size: 0.88rem; }
.q-result p { margin: 14px 0 20px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.lab-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lab-cats button {
  height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); font-weight: 500; font-size: 0.9rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.lab-cats button:active { transform: scale(0.96); }
.lab-cats button[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.terminal { border-radius: var(--r-inner); overflow: hidden; background: var(--navy-950); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.terminal-bar span:nth-child(1) { background: #ff6b6b; }
.terminal-bar span:nth-child(2) { background: #f9c74f; }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-bar em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: #8ea5bc; }
.terminal-out {
  margin: 0; padding: 18px; min-height: 196px; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.7; color: #d9f3fb;
}
.terminal-out .ph-hint { color: #8ea5bc; }
.terminal-out .hl-br { color: var(--cyan-2); }
.caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: text-bottom; background: var(--cyan); margin-left: 2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Noticias ---------- */
.news-banner { position: relative; overflow: hidden; border-radius: var(--r-card); min-height: 300px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); }
.news-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 22, 41, 0.95) 0%, rgba(6, 22, 41, 0.72) 45%, rgba(6, 22, 41, 0.1) 100%); }
.news-banner-in { position: relative; z-index: 1; padding: 40px; max-width: 620px; }
.news-banner-in h2 { color: #fff; }
.news-banner-in .eyebrow { color: var(--cyan-2); }
.news-banner-in p { color: #c9d7e4; margin-top: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 300ms ease, box-shadow 300ms ease; }
.news-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.news-card.featured { grid-column: span 2; grid-row: span 2; }
.news-img { overflow: hidden; aspect-ratio: 16 / 10; }
.news-card.featured .news-img { aspect-ratio: 16 / 9; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .news-card:hover .news-img img { transform: scale(1.04); } }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.news-card.featured .news-body { padding: 24px 26px 26px; gap: 12px; }
.news-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.news-meta b { color: var(--blue); font-weight: 700; }
.news-card h3 { font-size: 1.04rem; line-height: 1.32; }
.news-card.featured h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.news-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.news-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-foot { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.news-foot a { color: var(--link); font-weight: 600; }

/* ---------- Sello + MC Digital Systems ---------- */
.seal { background: var(--grad-navy); overflow: hidden; }
.seal::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1000px; height: 700px; translate: -50% -30%;
  background: radial-gradient(closest-side, rgba(31, 192, 232, 0.14), transparent);
  pointer-events: none;
}
.seal-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.seal-badge {
  width: 132px; height: 132px; border-radius: 32px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 24px 60px -20px rgba(31, 192, 232, 0.55), inset 0 -4px 0 rgba(11, 35, 64, 0.08);
  margin-bottom: 30px;
}
.seal-badge img { width: 112px; height: auto; }
.seal-in h2 { max-width: 16ch; }
.seal-in .lead { margin-top: 18px; max-width: 58ch; }
.seal-values { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.seal-values li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.seal-values .ic { color: var(--cyan); font-size: 1.15rem; }
.family { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: stretch; margin-top: 56px; }
.fam-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.fam-card.mc { background: linear-gradient(160deg, rgba(140, 198, 63, 0.12), rgba(31, 192, 232, 0.08)); border-color: rgba(140, 198, 63, 0.35); }
.fam-top { display: flex; align-items: center; gap: 14px; }
.fam-logo { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #fff; flex: none; }
.fam-logo img { width: 44px; height: auto; }
.fam-card small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-2); }
.fam-card.mc small { color: var(--green); }
.fam-card h3 { font-size: 1.35rem; }
.fam-card p { font-size: 0.98rem; }
.fam-card .btn { align-self: flex-start; margin-top: auto; }
.fam-link { display: grid; place-items: center; color: var(--cyan); font-size: 1.8rem; }
.fam-link .ic { width: 54px; height: 54px; border-radius: var(--r-pill); display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-side .lead { margin-top: 16px; }
.faq-groups { display: grid; gap: 36px; }
.faq-group h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  transition: color 200ms ease;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform 300ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.faq-group details[open] summary::after { transform: rotate(45deg); background-color: var(--sky); border-color: var(--accent-line); }
.faq-group summary:hover { color: var(--blue); }
.faq-a { padding: 0 48px 22px 0; }
@supports (interpolate-size: allow-keywords) {
  .faq-group { interpolate-size: allow-keywords; }
  .faq-group details::details-content { height: 0; overflow: clip; transition: height 360ms var(--ease-out), content-visibility 360ms allow-discrete; }
  .faq-group details[open]::details-content { height: auto; }
}

/* ---------- Guía gratuita ---------- */
.guide { background: var(--grad-cta); overflow: hidden; isolation: isolate; }
.guide-bg { position: absolute; inset: 0; z-index: -1; }
.guide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; mix-blend-mode: screen; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.guide-copy h2 { max-width: 15ch; }
.guide-copy .lead { margin-top: 16px; }
.guide-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.guide-list li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; color: var(--ink); }
.guide-list .ic { color: var(--green); font-size: 1.3rem; }

.guide-form, .rm-form { display: grid; gap: 16px; }
.guide-form {
  --ink: #0b2340; --text: #41536a; --muted: #5f7286; --line: #e2eaf2; --line-strong: #cddbe8; --field: #fff; --ok: #2f8f4e; --bad: #c9303d;
  padding: 32px; border-radius: var(--r-card);
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field input {
  height: 50px; padding: 0 16px; border-radius: var(--r-inner);
  border: 1px solid var(--line-strong); background: var(--field); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input::placeholder { color: #7d8fa2; }
.field input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(30, 155, 224, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: 0.88rem; }
.field-err:empty { display: none; }
.form-help { color: var(--muted); font-size: 0.86rem; text-align: center; }
/* Trampa antispam: invisible para personas, visible para los bots que rellenan todo. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spin {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spinner 600ms linear infinite;
}
@keyframes spinner { to { transform: rotate(360deg); } }
.form-ok {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-inner);
  background: rgba(140, 198, 63, 0.12); border: 1px solid rgba(76, 175, 80, 0.45);
  animation: grIn 420ms var(--ease-out) both;
}
.form-ok[hidden] { display: none; }
.form-ok .ic { color: var(--green-2); font-size: 1.6rem; }
.form-ok b { display: block; color: var(--ink); }
.form-ok p { font-size: 0.92rem; }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(48px, 7vw, 86px); background: var(--bg-soft); min-height: 70vh; }
.legal-wrap { max-width: 760px; }
.legal-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 12px; }
.legal-date { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.legal h2 { font-size: 1.3rem; margin-top: 40px; }
.legal p, .legal li { color: var(--text); margin-top: 12px; line-height: 1.7; }
.legal ul { margin: 0; padding-left: 1.3em; }
.legal a { color: var(--link); font-weight: 500; }
.legal code { font-family: var(--font-mono); font-size: 0.9em; background: var(--sky); padding: 1px 5px; border-radius: 5px; }
.legal-box {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--r-card);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-2);
}
.legal-box p { margin-top: 0; }
.legal-warn { border-left-color: #e8a33d; background: #fffaf0; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.94rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--sky); color: var(--ink); font-weight: 600; font-size: 0.86rem; }
.legal-table td { color: var(--text); }
.legal-back { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Contacto ---------- */
.contact-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  margin-top: 48px; padding: 26px 30px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.contact-band h3 { font-size: 1.25rem; }
.contact-band p { color: var(--muted); font-size: 0.96rem; margin-top: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn .ic { font-size: 1.2rem; }
.btn-wa { background: #25d366; color: #05331a; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, 0.9); }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: #2ee477; } }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-card);
  background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  transform: translateY(140%); opacity: 0;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
.cookie-bar.is-shown { transform: none; opacity: 1; }
.cookie-bar p { font-size: 0.9rem; color: var(--text); flex: 1 1 260px; line-height: 1.5; }
.cookie-bar a { color: var(--link); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr 1.1fr; gap: 36px; }
.foot-brand img { width: 150px; height: auto; }
.foot-brand p { font-size: 0.95rem; margin-top: 16px; max-width: 36ch; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: 0.96rem; }
.site-footer ul a:hover { color: #fff; }
.foot-mc { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-mc span { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.foot-mc img { width: 46px; height: auto; }
.foot-mc b { font-weight: 600; font-size: 0.98rem; color: var(--ink); display: block; }
.foot-mc em { font-style: normal; font-size: 0.86rem; color: var(--cyan-2); display: inline-flex; align-items: center; gap: 4px; }
.foot-mc:hover em { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.to-top:hover { color: var(--cyan-2); }

/* ---------- Barra de compra ---------- */
.buybar {
  position: fixed; z-index: 40; left: 50%; bottom: 18px;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 10px;
  width: min(640px, calc(100% - 32px));
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
.buybar.is-shown { transform: translate(-50%, 0); opacity: 1; }
.buybar img { width: 34px; height: 51px; border-radius: 4px; object-fit: cover; }
.buybar-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.buybar-t b { font-size: 0.94rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-t span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { margin-left: auto; flex: none; }

/* ---------- Modales ---------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: min(960px, calc(100% - 32px)); width: 100%; max-height: calc(100dvh - 32px);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal::backdrop { background: rgba(6, 22, 41, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 260ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete; }
.modal[open]::backdrop { opacity: 1; }
@starting-style { .modal[open]::backdrop { opacity: 0; } }
.modal-in {
  position: relative; border-radius: var(--r-card); overflow: auto; max-height: calc(100dvh - 32px);
  background: #fff; box-shadow: var(--shadow-lg);
}
.modal-x {
  position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(6, 22, 41, 0.6); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.modal-x:active { transform: scale(0.94); }
.modal-x:hover { background: rgba(6, 22, 41, 0.9); }
.lm-video { background: #000; aspect-ratio: 16 / 9; }
.lm-video video,
.lm-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lm-video video[hidden], .lm-video iframe[hidden] { display: none; }
.lm-body { padding: 26px 30px 30px; }
.lm-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.lm-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 8px; }
.lm-text { margin-top: 14px; display: grid; gap: 12px; }
.lm-text strong { color: var(--ink); }
.lm-text ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.lm-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lm-nav #lmNext { margin-left: auto; }
#lmDone.is-done { color: var(--ok); border-color: rgba(76, 175, 80, 0.6); background: rgba(140, 198, 63, 0.1); }

.reserve-modal { max-width: min(860px, calc(100% - 32px)); }
.rm-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.rm-visual { background: var(--grad-navy); display: grid; place-items: center; padding: 36px; }
.rm-visual img { width: 100%; max-width: 240px; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-lg); transform: perspective(900px) rotateY(-14deg); }
.rm-form { padding: 34px 32px 30px; }
.rm-form .eyebrow { margin-bottom: 0; }
.rm-form h3 { font-size: 1.5rem; line-height: 1.18; }
.rm-sub { font-size: 0.96rem; }
.rm-bonus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rm-bonus li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--text); }
.rm-bonus .ic { color: var(--green-2); font-size: 1.1rem; }
.rm-formats { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-formats legend { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.rm-formats label { position: relative; }
.rm-formats input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rm-formats span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--text); font-size: 0.9rem; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rm-formats input:checked + span { background: var(--sky); border-color: var(--blue-2); color: var(--blue); }
.rm-formats input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; top: 24px; translate: -50% 0;
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--navy-900); color: #fff;
  font-weight: 600; font-size: 0.94rem; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: var(--r-pill);
    border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 300ms var(--ease-out); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu {
    display: grid; gap: 4px; padding: 12px 24px 24px;
    background: #fff; box-shadow: 0 30px 50px -30px rgba(11, 35, 64, 0.45);
    position: absolute; left: 0; right: 0; top: 100%;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 360ms var(--ease-out), visibility 0s linear 360ms;
  }
  .mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 360ms var(--ease-out), visibility 0s; }
  .mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
  .mobile-menu .btn { margin-top: 16px; }
  .site-header:has(.mobile-menu.is-open) { background: #fff; }

  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 0; padding-bottom: 64px; }
  .hero h1 { max-width: 16ch; }
  .hero-visual { min-height: 0; }
  .stage { max-width: 460px; }
  .goals-grid, .book-grid, .route-grid, .faq-grid, .guide-grid, .audio-grid { grid-template-columns: 1fr; gap: 40px; }
  .book-stage, .route-side, .faq-side { position: static; }
  .audio-cover { max-width: 360px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .method-flow { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: 10px 4px 16px; scroll-snap-type: x mandatory; }
  .method-flow::before { display: none; }
  .m-step { scroll-snap-align: start; }
  .family { grid-template-columns: 1fr; }
  .fam-link { transform: rotate(90deg); }
  .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell { grid-column: span 1; grid-row: auto; }
  .cell-hero { grid-column: span 2; min-height: 380px; }
  .cell-stats { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cell:nth-of-type(4) { grid-column: span 2; }
  .lessons-grid { grid-template-columns: 1fr; }
  .lessons-head { grid-template-columns: 1fr; }
  .lesson-progress { grid-column: 1; grid-row: auto; justify-self: start; }
  .practice-grid { grid-template-columns: 1fr; }
  .method-detail { grid-template-columns: 1fr; }
  .rm-grid { grid-template-columns: 1fr; }
  .rm-visual { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .wrap { padding-inline: 16px; }
  body { font-size: 1rem; }
  .announce-in p { font-size: 0.84rem; }
  .announce-link { display: none; }
  .nav { gap: 12px; }
  .brand img { width: 46px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero-ctas .btn { width: 100%; }
  .stage { max-width: 360px; }
  .hv-audio { width: 40%; }
  .hv-video { width: 60%; right: -2%; }
  .hv-video figcaption { font-size: 0.76rem; padding: 8px 10px; }
  .hv-chip { font-size: 0.74rem; }
  .hv-chip.c1 { right: -2%; top: 2%; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-hero, .cell-stats, .cell:nth-of-type(4) { grid-column: span 1; }
  .cell-hero { padding: 24px; min-height: 340px; }
  .learn { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .reserve-flow { grid-template-columns: 1fr; }
  .reserve-flow li { padding-top: 12px; }
  .book-ctas .btn { width: 100%; }
  .lesson-row { grid-template-columns: 112px minmax(0, 1fr); }
  .lesson-row .thumb { min-height: 96px; }
  .news-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .channel-head .btn { width: 100%; }
  .news-card.featured { grid-column: span 1; grid-row: auto; }
  .news-banner-in { padding: 24px; }
  .route-list { padding-left: 50px; }
  .r-step { padding: 20px; }
  .r-step::before { left: -50px; width: 34px; height: 34px; font-size: 0.9rem; }
  .route-line { left: 16px; }
  .panel { padding: 20px; }
  .player { padding: 16px; }
  .player-top { flex-wrap: wrap; }
  .player-time { margin-left: 0; width: 100%; order: 3; }
  .tool-cta { margin-left: 0; }
  .guide-form { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .buybar { bottom: 12px; }
  .buybar-t span { display: none; }
  .lm-body { padding: 20px; }
  .rm-form { padding: 28px 20px 22px; }
  .faq-a { padding-right: 0; }
  .fam-card { padding: 22px; }
  .trust-in { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 14px; }
  .trust-item { font-size: 0.86rem; }
  .bonus-grid, .quotes-grid { grid-template-columns: 1fr; }
  .bonus-cta .btn { width: 100%; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .rotator > span { transition: none; }
  /* La estantería deja de moverse, pero se sigue viendo y usando igual */
  .tomo, .tomo-3d, .tomo-sombra { transition: none !important; }
  .tomo { animation: none !important; opacity: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .buybar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Enlaces legales del pie */
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--text); text-decoration: none; }
.foot-legal a:hover { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .contact-band { grid-template-columns: 1fr; } .contact-actions .btn { width: 100%; } }

/* ---------- Idioma: selector ES · EN ---------- */
.lang {
  display: flex; align-items: center; gap: 2px; padding: 4px; flex-shrink: 0;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.nav-links + .lang { margin-left: -12px; }
.lang > .ic { font-size: 1rem; color: var(--muted); margin: 0 3px 0 7px; }
.lang a {
  display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px;
  border-radius: var(--r-pill); text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.lang a:hover { color: var(--ink); background: var(--bg-soft); }
.lang a[aria-current="true"] { color: var(--blue); background: var(--sky); }
.lang a:active { transform: scale(0.97); }

/* Sugerencia para quien llega con el navegador en el otro idioma */
.lang-hint { background: var(--sky); color: var(--ink); font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.lang-hint-in { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.lang-hint-in > .ic { color: var(--blue); font-size: 1.1rem; flex: none; }
.lang-hint-in p { margin: 0; }
.lang-hint-in a { font-weight: 600; color: var(--blue); text-underline-offset: 3px; white-space: nowrap; }
.lang-hint-x {
  margin-left: auto; width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--r-pill);
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.lang-hint-x:hover { background: rgba(21, 101, 192, 0.1); color: var(--ink); }

@media (max-width: 1100px) {
  .nav .lang { margin-left: auto; }
  .nav .lang + .nav-cta { margin-left: 0; }
}
@media (max-width: 640px) {
  .lang > .ic { display: none; }
  .lang a { min-width: 34px; height: 30px; padding: 0 6px; }
  .nav .lang ~ .burger { margin-left: 0; }
  .lang-hint-in p { font-size: 0.84rem; }
  .legal-back-btn { display: none; }   /* el logo y el enlace del final ya llevan al inicio */
}
