:root {
  --white: #ffffff;
  --black: #000000;
  --indigo: #0a2cb0;
  --violet: #4b16e9;
  --lime: #8ce815;

  --ink: #0c0d12;
  --ink-2: #2d3040;
  --muted: #6c7080;
  --muted-2: #8b8e9b;
  --line: #e5e7ef;
  --line-strong: #d7dae5;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-indigo: #eff2ff;
  --surface-violet: #f2efff;

  --shell: 1180px;
  --page-pad: clamp(1rem, 4vw, 2.5rem);
  --header-h: 70px;
  --section-space: clamp(54px, 6vw, 76px);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: clamp(28px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }

::selection { background: rgba(75, 22, 233, .16); color: var(--black); }

.shell {
  width: min(100% - (var(--page-pad) * 2), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: none; }

/* ---------------- Header · Liquid Glass ---------------- */
.site-header {
  position: sticky;
  z-index: 200;
  top: 8px;
  height: calc(var(--header-h) - 16px);
  margin-bottom: calc((var(--header-h) - 16px) * -1);
  display: flex;
  align-items: center;
  background: transparent;
}

.nav-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100% - (var(--page-pad) * 2), var(--shell));
  height: 100%;
  margin-inline: auto;
  padding-inline: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.24) 44%, rgba(238,241,255,.28) 100%);
  box-shadow:
    0 10px 32px rgba(36,43,92,.08),
    0 2px 8px rgba(21,24,52,.045),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(75,22,233,.055),
    inset 1px 0 0 rgba(255,255,255,.54),
    inset -1px 0 0 rgba(255,255,255,.34);
  backdrop-filter: blur(26px) saturate(1.75) brightness(1.045);
  -webkit-backdrop-filter: blur(26px) saturate(1.75) brightness(1.045);
  transform: translateZ(0);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease;
}

/* Reflexión especular: simula la refracción del Liquid Glass sin cargar shaders. */
.nav-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -70% -18%;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 20% 18%, rgba(255,255,255,.98), rgba(255,255,255,.36) 32%, transparent 68%),
    radial-gradient(34% 46% at 78% 82%, rgba(153,164,255,.20), transparent 72%);
  filter: blur(10px);
  opacity: .68;
  transform: translate3d(-5%,0,0) rotate(-3deg);
  animation: liquidGlassFlow 10s var(--ease-smooth) infinite alternate;
}

.nav-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 -10px 24px rgba(88,100,182,.035);
}

.nav-shell > * { position: relative; z-index: 1; }

.site-header.is-scrolled .nav-shell {
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.36) 48%, rgba(241,243,255,.39));
  box-shadow:
    0 14px 42px rgba(32,39,90,.105),
    0 3px 10px rgba(21,24,52,.05),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(75,22,233,.065);
  backdrop-filter: blur(30px) saturate(1.9) brightness(1.055);
  -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(1.055);
}

@keyframes liquidGlassFlow {
  from { transform: translate3d(-7%,-1%,0) rotate(-4deg); }
  to { transform: translate3d(7%,2%,0) rotate(3deg); }
}

.brand {
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 25deg, var(--indigo), var(--violet), var(--lime), var(--indigo));
  box-shadow: 0 7px 20px rgba(75,22,233,.17);
}
.brand-symbol::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255,255,255,.94);
}
.brand-symbol span {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--violet);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong { font-size: .9rem; letter-spacing: -.025em; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: .65rem; font-weight: 560; }

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.desktop-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #444858;
  font-size: .78rem;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease;
}
.desktop-nav a:hover { color: var(--ink); background: rgba(255,255,255,.52); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.button {
  --btn-bg: var(--ink);
  --btn-color: var(--white);
  --btn-border: transparent;
  position: relative;
  isolation: isolate;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 20px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.014em;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

/* Un solo destello recorre el perímetro. La banda es más gruesa y no hay una segunda línea persiguiéndola. */
@property --edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

.button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%);
  opacity: .52;
  transition: opacity 240ms ease;
}

.button::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: var(--edge-thickness, 2.35px);
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--edge-angle),
    transparent 0deg 308deg,
    var(--edge-soft, rgba(255,255,255,.14)) 318deg,
    var(--edge-color, rgba(255,255,255,.78)) 330deg,
    var(--edge-hot, rgba(255,255,255,.98)) 340deg 348deg,
    var(--edge-color, rgba(255,255,255,.78)) 356deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .96;
  filter: drop-shadow(0 0 5px var(--edge-glow, rgba(255,255,255,.28)));
  animation: edgeLightTravel 3.85s linear infinite;
}

@keyframes edgeLightTravel {
  from { --edge-angle: 360deg; }
  to { --edge-angle: 0deg; }
}

.button > span { position: relative; z-index: 4; }
.button:hover { transform: translateY(-2px); }
.button:hover::before { opacity: .72; }
.arrow { transition: transform 240ms var(--ease-out); }
.button:hover .arrow { transform: translate(2px,-2px); }

.button--nav {
  --btn-bg: var(--indigo);
  --edge-color: #708cff;
  --edge-hot: #dfe6ff;
  --edge-soft: rgba(51,87,255,.28);
  --edge-glow: rgba(74,103,255,.42);
  --edge-thickness: 2.2px;
  min-height: 39px;
  padding-inline: 15px;
  box-shadow: 0 9px 22px rgba(10,44,176,.18);
  font-size: .8rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.30));
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(16,20,50,.055), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.55);
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 240ms var(--ease-smooth), opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: var(--page-pad);
  right: var(--page-pad);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(246,247,255,.60));
  box-shadow: 0 24px 64px rgba(18,23,56,.15), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 650;
}
.mobile-menu a:hover { background: var(--surface-soft); }

.button:focus-visible, .menu-toggle:focus-visible, .video-play:focus-visible, a:focus-visible {
  outline: 3px solid rgba(75,22,233,.25);
  outline-offset: 3px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: calc(var(--header-h) + clamp(20px, 3vw, 34px)) 0 clamp(34px, 4vw, 52px);
  overflow: hidden;
  background: #fff;
}

.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: #fff;
}
.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(75,22,233,.075) 0%, rgba(75,22,233,.025) 27%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 11%, #f5f5ff 25%, #ececff 42%, #e4e5ff 57%, #f1f1ff 76%, #fafaff 89%, #ffffff 100%);
}

/* Cuadrícula grande: recrea la capa SVG tenue de la referencia sin depender de assets externos. */
.hero-grid {
  position: absolute;
  inset: -4% -4% 0;
  opacity: .58;
  background-image:
    linear-gradient(rgba(48,55,120,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,55,120,.055) 1px, transparent 1px);
  background-size: clamp(88px, 8vw, 122px) clamp(88px, 8vw, 122px);
  background-position: 50% 7%;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 19%, #000 73%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 19%, #000 73%, transparent 96%);
}

/* Líneas secundarias muy finas para añadir profundidad sin competir con el contenido. */
.hero-lines {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    repeating-linear-gradient(to bottom, rgba(31,38,90,.028) 0 1px, transparent 1px 36px),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.34) 48%, rgba(255,255,255,.34) 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 8%, #000 28%, #000 72%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 28%, #000 72%, transparent 95%);
}

/* Masa luminosa detrás de los puntos. Da volumen y evita que el canvas se sienta plano. */
.hero-light-field {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(92vw, 1240px);
  height: min(48vw, 620px);
  transform: translate(-50%,-50%);
  border-radius: 50%;
  opacity: .76;
  filter: blur(34px);
  background:
    radial-gradient(ellipse at 40% 52%, rgba(255,255,255,.92) 0 14%, rgba(255,255,255,.34) 36%, transparent 65%),
    radial-gradient(ellipse at 68% 48%, rgba(90,78,255,.12), transparent 56%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .56;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent 7%, #000 22%, #000 73%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 7%, #000 22%, #000 73%, transparent 95%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  opacity: .27;
}
.hero-orb--one {
  width: min(70vw, 960px);
  height: min(70vw, 960px);
  left: -31%;
  top: 22%;
  background: radial-gradient(circle, rgba(75,22,233,.17), transparent 69%);
}
.hero-orb--two {
  width: min(62vw, 820px);
  height: min(62vw, 820px);
  right: -26%;
  top: 31%;
  background: radial-gradient(circle, rgba(10,44,176,.14), transparent 70%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .018;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.92) 67%, #fff 96%);
}


.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: center; }
.glass-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(10,44,176,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: #2f3350;
  box-shadow: 0 8px 28px rgba(10,44,176,.065), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.eyebrow {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .095em;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(140,232,21,.15);
}
.hero-concept {
  margin: 18px 0 0;
  color: #484c60;
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  font-weight: 620;
  letter-spacing: -.02em;
}
.hero h1 {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(2.9rem, 6.3vw, 5.5rem);
  line-height: 1.025;
  letter-spacing: -.064em;
  padding-bottom: .08em;
  overflow: visible;
  font-weight: 660;
}
.hero h1 .hero-accent {
  color: var(--violet);
}
.hero-subtitle {
  margin: 14px 0 0;
  color: #3a3e51;
  font-size: clamp(.9rem, 1.3vw, 1.02rem);
  font-weight: 650;
  letter-spacing: -.017em;
}
.hero-description {
  max-width: 680px;
  margin: 11px 0 0;
  color: #5f6374;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.58;
  letter-spacing: -.016em;
}
.hero-actions { margin-top: 18px; }
.button--hero {
  --btn-bg: rgba(255,255,255,.88);
  --btn-color: var(--indigo);
  --btn-border: rgba(10,44,176,.14);
  --edge-color: #5f33ee;
  --edge-hot: #b7a6ff;
  --edge-soft: rgba(75,22,233,.24);
  --edge-glow: rgba(75,22,233,.30);
  --edge-thickness: 2.45px;
  min-height: 51px;
  box-shadow: 0 12px 34px rgba(40,35,120,.14), inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.button--hero:hover { box-shadow: 0 16px 40px rgba(40,35,120,.18), inset 0 1px 0 #fff; }

.product-stage {
  position: relative;
  width: min(100%, 860px);
  height: clamp(292px, 32vw, 352px);
  margin-top: clamp(6px, 1vw, 14px);
  display: grid;
  place-items: center;
}
.stage-ring {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px solid rgba(75,22,233,.11);
}
.stage-ring--one { width: min(50vw, 460px); height: min(50vw, 460px); }
.stage-ring--two { width: min(39vw, 348px); height: min(39vw, 348px); border-style: dashed; opacity: .8; animation: slowSpin 26s linear infinite; }
@keyframes slowSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.stage-chip {
  position: absolute;
  z-index: 4;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(14,16,27,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #3d4155;
  box-shadow: 0 10px 30px rgba(17,22,52,.08);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  font-size: .64rem;
  font-weight: 820;
  letter-spacing: .08em;
}
.stage-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.stage-chip--left { left: 12%; top: 38%; animation: chipFloatA 5.8s ease-in-out infinite; }
.stage-chip--right { right: 11%; top: 56%; animation: chipFloatB 6.4s ease-in-out infinite; }
@keyframes chipFloatA { 50% { transform: translate3d(0,-8px,0); } }
@keyframes chipFloatB { 50% { transform: translate3d(0,9px,0); } }

.book-scene {
  position: relative;
  width: 235px;
  height: 302px;
  perspective: 1000px;
  transform: translateY(7px);
}
.book-shadow {
  position: absolute;
  width: 205px;
  height: 56px;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,30,86,.23), transparent 70%);
  filter: blur(12px);
}
.book {
  position: absolute;
  inset: 4px 11px 22px 12px;
  transform: rotateY(-14deg) rotateX(3deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 22px 28px rgba(33,29,86,.14));
  animation: bookFloat 5.4s var(--ease-smooth) infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-14deg) rotateX(3deg) rotateZ(-1.5deg) translateY(0); }
  50% { transform: rotateY(-12deg) rotateX(2deg) rotateZ(-.5deg) translateY(-10px); }
}
.book-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 27px 24px 24px;
  border-radius: 7px 15px 15px 7px;
  background:
    radial-gradient(circle at 78% 20%, rgba(140,232,21,.24), transparent 23%),
    linear-gradient(145deg, #0b2cad 0%, #2b24cf 45%, #4b16e9 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.19), inset 0 0 26px rgba(0,0,0,.08);
  transform: translateZ(13px);
}
.book-grid {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}
.book-kicker { position: relative; font-size: 8px; font-weight: 850; letter-spacing: .16em; opacity: .82; }
.book-title { position: relative; margin-top: 37px; font-size: 26px; line-height: 1.06; letter-spacing: -.05em; font-weight: 690; padding-bottom: .06em; }
.book-subtitle { position: relative; margin-top: 14px; font-size: 9px; line-height: 1.4; font-weight: 610; opacity: .8; }
.book-line { position: relative; width: 42px; height: 3px; margin-top: 20px; border-radius: 99px; background: var(--lime); }
.book-brand { position: absolute; left: 24px; bottom: 23px; font-size: 7px; font-weight: 800; letter-spacing: .13em; opacity: .72; }
.book-spine {
  position: absolute;
  width: 19px;
  top: 7px;
  bottom: 6px;
  left: -10px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, #061767, #0a2cb0);
  transform: rotateY(76deg) translateZ(3px);
  transform-origin: right center;
}
.book-pages {
  position: absolute;
  top: 9px;
  bottom: 5px;
  right: -9px;
  width: 16px;
  border-radius: 0 8px 8px 0;
  background: repeating-linear-gradient(to right, #fff, #fff 2px, #e7e7ed 3px);
  transform: rotateY(72deg) translateZ(-2px);
  transform-origin: left center;
}


/* ---------------- Animated marker highlights ---------------- */
.marker-highlight {
  --marker-color-a: rgba(140,232,21,.46);
  --marker-color-b: rgba(140,232,21,.72);
  --marker-height: .54em;
  --marker-y: 84%;
  display: inline;
  position: relative;
  padding-inline: .035em;
  margin-inline: -.035em;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  background-image: linear-gradient(96deg, var(--marker-color-a), var(--marker-color-b) 54%, rgba(140,232,21,.56));
  background-repeat: no-repeat;
  background-position: 0 var(--marker-y);
  background-size: 0% var(--marker-height);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 720ms cubic-bezier(.16,1,.3,1) var(--highlight-delay, 0ms);
}

.marker-highlight.is-highlighted {
  background-size: 100% var(--marker-height);
}

.marker-highlight--hero {
  --marker-height: .50em;
  --marker-y: 86%;
}

/* ---------------- Shared headings ---------------- */
.section-kicker {
  margin: 0;
  color: var(--indigo);
  font-size: .69rem;
  font-weight: 830;
  letter-spacing: .1em;
  line-height: 1.45;
}
.section-kicker--with-dot { display: flex; align-items: center; gap: 9px; }
.section-heading h2,
.problem-copy h2,
.offer-intro h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.065;
  letter-spacing: -.052em;
  font-weight: 650;
  padding-bottom: .07em;
  overflow: visible;
}
.section-heading--center { max-width: 840px; margin-inline: auto; text-align: center; }

.section-heading .video-message__second {
  display: inline-block;
  margin-top: .16em;
}
.section-heading--center h2 { margin: 8px auto 0; }


/* Protección tipográfica: evita recortes de ascendentes/descendentes con fuentes del sistema. */
.hero h1,
.section-heading h2,
.problem-copy h2,
.offer-intro h2 {
  text-wrap: balance;
  overflow: visible;
}
.hero-subtitle,
.hero-description,
.problem-copy p,
.offer-intro > p:last-child {
  overflow: visible;
}
.button > span,
.desktop-nav a,
.mobile-menu a {
  line-height: 1.25;
}

/* ---------------- Video ---------------- */
.video-section { padding: var(--section-space) 0; background: #fff; }
.video-shell { max-width: 980px; margin: clamp(22px, 3vw, 34px) auto 0; }
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(14,16,27,.09);
  border-radius: clamp(24px, 3vw, 34px);
  background: #f3f3fb;
  box-shadow: 0 28px 80px rgba(32,35,74,.12), 0 1px 0 rgba(255,255,255,.95) inset;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #f9faff, #eeeaff 54%, #eef3ff); }
.video-gradient { position: absolute; inset: 0; background: radial-gradient(circle at 32% 34%, rgba(75,22,233,.24), transparent 31%), radial-gradient(circle at 72% 60%, rgba(10,44,176,.18), transparent 35%); }
.video-grid {
  position: absolute;
  inset: -20%;
  opacity: .5;
  background-image: linear-gradient(rgba(10,44,176,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(10,44,176,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-5deg) scale(1.08);
}
.video-play {
  position: relative;
  z-index: 2;
  width: clamp(68px, 7vw, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10,44,176,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  box-shadow: 0 15px 40px rgba(39,34,110,.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}
.video-play:hover { transform: scale(1.05); box-shadow: 0 18px 46px rgba(39,34,110,.2); }
.video-play span { width: 0; height: 0; margin-left: 5px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--violet); }
.video-placeholder-copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.video-placeholder-copy small { color: var(--indigo); font-size: .62rem; font-weight: 830; letter-spacing: .11em; }
.video-placeholder-copy strong { color: #525667; font-size: .84rem; font-weight: 650; }
.video-meta { margin-top: 11px; display: flex; justify-content: flex-end; gap: 14px; color: #9a9ca7; font-size: .68rem; font-weight: 650; }

/* ---------------- Problem ---------------- */
.problem-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section-space) 0;
  border-block: 1px solid #ececf4;
  background: linear-gradient(135deg, #fafbff 0%, #f1efff 51%, #f5f8ff 100%);
}
.problem-art { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.problem-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(75,22,233,.08); }
.problem-circle--one { width: 520px; height: 520px; right: -180px; top: -225px; box-shadow: 0 0 0 65px rgba(75,22,233,.022), 0 0 0 130px rgba(10,44,176,.014); }
.problem-circle--two { width: 280px; height: 280px; left: -150px; bottom: -160px; border-style: dashed; }
.problem-grid { display: grid; grid-template-columns: .72fr 1.65fr; gap: clamp(30px, 4.5vw, 64px); align-items: start; }
.problem-kicker { padding-top: 8px; }
.problem-copy h2 { max-width: 820px; margin: 0; }
.problem-copy p {
  max-width: 700px;
  margin: 17px 0 0;
  color: #555a6c;
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  line-height: 1.72;
  letter-spacing: -.016em;
}

/* ---------------- Offer ---------------- */
.offer-section { padding: var(--section-space) 0; background: #fff; }
.offer-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94);
  box-shadow: 0 30px 90px rgba(28,31,66,.095);
}
.offer-decoration { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.offer-glow { position: absolute; border-radius: 50%; filter: blur(8px); }
.offer-glow--a { width: 430px; height: 430px; right: -130px; top: -190px; background: radial-gradient(circle, rgba(75,22,233,.16), transparent 68%); }
.offer-glow--b { width: 390px; height: 390px; left: -190px; bottom: -220px; background: radial-gradient(circle, rgba(10,44,176,.10), transparent 68%); }
.offer-grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image: linear-gradient(rgba(10,44,176,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,44,176,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 82% 18%, #000, transparent 36%);
}
.offer-content { padding: clamp(28px, 4vw, 50px); }
.offer-intro { max-width: 800px; }
.offer-intro h2 { margin: 9px 0 0; }
.offer-intro > p:last-child {
  max-width: 700px;
  margin: 15px 0 0;
  color: #555a6c;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.56;
}
.offer-intro strong { color: var(--ink); }

.benefits {
  margin: 23px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  list-style: none;
}
.benefits li {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #e7e8f0;
  border-radius: 15px;
  background: rgba(255,255,255,.76);
  color: #343745;
  font-size: .87rem;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.benefits li span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(140,232,21,.18);
  color: #376b00;
  font-size: .77rem;
  font-weight: 850;
}

.purchase-panel {
  margin-top: 23px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid #e2e4ed;
  border-radius: 22px;
  background: rgba(248,249,253,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.offer-status {
  min-height: 34px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.offer-status.is-initializing { visibility: hidden; }
.offer-status__active,
.offer-status__expired {
  min-height: 34px;
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  font-size: .7rem;
  font-weight: 760;
}
.offer-status__active:not([hidden]) {
  display: inline-flex;
  background: linear-gradient(90deg, rgba(140,232,21,.17), rgba(140,232,21,.055));
  border: 1px solid rgba(93,165,4,.16);
  color: #34442a;
}
.offer-status__expired:not([hidden]) {
  display: inline-flex;
  background: rgba(75,22,233,.065);
  border: 1px solid rgba(75,22,233,.11);
  color: #342b68;
}
.offer-status__label {
  color: #2f5e00;
  font-weight: 840;
}
.offer-status__timer-label {
  color: #676c61;
  font-weight: 650;
}
.offer-countdown {
  min-width: 50px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
  color: #11150d;
  font-size: .78rem;
  font-weight: 880;
}
.purchase-row {
  display: grid;
  grid-template-columns: max-content minmax(250px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}
.purchase-pricing { min-width: 0; }
.purchase-regular-price,
.purchase-special-label { margin: 0; }
.purchase-regular-price {
  color: #7a7e8d;
  font-size: .72rem;
  font-weight: 620;
}
.purchase-regular-price del {
  color: #595e6e;
  font-weight: 780;
  text-decoration-thickness: 1.5px;
}
.purchase-special-label {
  margin-top: 3px;
  color: #496900;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.purchase-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.purchase-price strong {
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  padding-bottom: .04em;
  font-weight: 650;
}
.purchase-price span {
  color: var(--muted);
  font-size: clamp(.68rem, 1.2vw, .83rem);
  font-weight: 820;
  letter-spacing: .07em;
}
.button--purchase {
  --btn-bg: var(--lime);
  --btn-color: #112000;
  --edge-color: #aef45a;
  --edge-hot: #efffc8;
  --edge-soft: rgba(79,155,0,.28);
  --edge-glow: rgba(140,232,21,.44);
  --edge-thickness: 2.55px;
  width: min(100%, 360px);
  min-width: 250px;
  min-height: clamp(52px, 5vw, 60px);
  padding-inline: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 13px 30px rgba(93,170,5,.19);
  font-size: clamp(.72rem, 1.12vw, .9rem);
  letter-spacing: .01em;
}
.checkout-info {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkout-note { margin: 0; display: flex; align-items: center; gap: 7px; color: #777a89; font-size: .76rem; font-weight: 580; }
.lock { width: 13px; height: 10px; border: 1.7px solid currentColor; border-radius: 3px; position: relative; }
.lock::before { content: ""; position: absolute; width: 7px; height: 7px; left: 50%; top: -7px; transform: translateX(-50%); border: 1.7px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }

/* Logos de pago: compactos, a color y sin dependencias externas. */
.payment-methods {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}
.payment-methods[hidden] { display: none; }
.payment-badge {
  height: 34px;
  min-width: 48px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dfe2eb;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 8px rgba(22,26,45,.055), inset 0 1px 0 rgba(255,255,255,.98);
  color: #15171d;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.payment-word { font-size: .67rem; font-weight: 700; letter-spacing: -.02em; }
.payment-word--apple { font-weight: 650; }

/* Apple Pay */
.payment-badge--apple { min-width: 58px; padding-inline: 8px 10px; }
.apple-symbol { position: relative; width: 14px; height: 17px; flex: 0 0 14px; }
.apple-body {
  position: absolute; left: 1px; bottom: 0; width: 12px; height: 13px;
  background: #111318; border-radius: 48% 52% 46% 50% / 58% 58% 42% 42%;
  transform: rotate(-3deg);
}
.apple-body::after {
  content: ""; position: absolute; width: 5px; height: 6px; right: -1px; top: 2px;
  border-radius: 50%; background: #fff;
}
.apple-leaf {
  position: absolute; width: 6px; height: 3.5px; left: 7px; top: 0;
  background: #111318; border-radius: 100% 0 100% 0; transform: rotate(-28deg);
}

/* Google Pay */
.payment-badge--gpay { min-width: 56px; }
.gpay-g { position: relative; width: 14px; height: 14px; border-radius: 50%; overflow: hidden; flex: 0 0 14px; }
.gpay-g::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #34a853 25% 49%, #fbbc05 49% 72%, #ea4335 72% 100%);
}
.gpay-g::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff;
  box-shadow: 6px 0 0 -3px #4285f4;
}
.gpay-g i { display: none; }

/* Visa */
.payment-badge--visa { color: #1434cb; font-size: .74rem; font-style: italic; font-weight: 900; letter-spacing: -.06em; }

/* Mastercard */
.payment-badge--mastercard { min-width: 52px; padding-inline: 8px; }
.mc-circles { position: relative; width: 30px; height: 18px; display: block; }
.mc-circles i { position: absolute; top: 2px; width: 16px; height: 16px; border-radius: 50%; }
.mc-circles i:first-child { left: 2px; background: #eb001b; }
.mc-circles i:last-child { right: 2px; background: #f79e1b; mix-blend-mode: multiply; }

/* American Express */
.payment-badge--amex { padding: 0 6px; background: #2f77bd; border-color: #2f77bd; }
.payment-badge--amex span { color: #fff; font-size: .61rem; font-weight: 900; letter-spacing: -.025em; }

/* Carnet */
.payment-badge--carnet { min-width: 56px; background: #e51b23; border-color: #e51b23; padding-inline: 8px; }
.payment-badge--carnet span { color: #fff; font-size: .63rem; font-weight: 900; font-style: italic; letter-spacing: -.02em; }

/* ---------------- Footer ---------------- */
.site-footer { padding: 20px 0 22px; border-top: 1px solid #ececf1; background: #fff; }
.site-footer p { margin: 0; color: #7b7e8c; font-size: .74rem; text-align: center; }

/* ---------------- Motion ---------------- */
.js [data-hero-item], .js [data-reveal] { opacity: 0; }
.js.is-ready [data-hero-item] {
  animation: heroReveal 860ms var(--ease-out) both;
  animation-delay: calc(420ms + (var(--hero-index, 0) * 58ms));
}
@keyframes heroReveal {
  from { opacity: 0; filter: blur(8px); transform: translate3d(0,18px,0) scale(.985); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); }
}
[data-reveal].is-visible {
  animation: sectionReveal 860ms var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes sectionReveal {
  from { opacity: 0; filter: blur(8px); transform: translate3d(0,18px,0) scale(.985); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; gap: 8px; }
  .menu-toggle { display: flex; }
  .problem-grid { grid-template-columns: 1fr; gap: 20px; }
  .problem-kicker { max-width: 500px; }
  .benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .purchase-row {
    grid-template-columns: max-content minmax(0,1fr);
    grid-template-areas:
      "pricing button"
      "pricing payments";
    gap: 10px 14px;
    align-items: center;
  }
  .purchase-pricing { grid-area: pricing; }
  .button--purchase { grid-area: button; width: min(100%, 360px); min-width: 0; align-self: end; }
  .payment-methods { grid-area: payments; justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; --section-space: 50px; }
  .hero-grid {
    opacity: .47;
    background-size: 74px 74px;
    background-position: 50% 9%;
  }
  .hero-lines { opacity: .42; background-size: auto; }
  .hero-light-field { width: 150vw; height: 72vw; top: 50%; opacity: .62; filter: blur(30px); }
  .hero-dots { opacity: .48; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .84rem; }
  .button--nav { min-height: 38px; padding-inline: 13px; }
  .nav-actions { gap: 6px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 20px); padding-bottom: 38px; }
  .eyebrow { font-size: .61rem; letter-spacing: .07em; }
  .hero-concept { margin-top: 16px; }
  .hero h1 { max-width: 560px; font-size: clamp(2.68rem, 13vw, 3.9rem); }
  .hero-subtitle { max-width: 310px; line-height: 1.4; }
  .hero-description { max-width: 520px; font-size: .98rem; line-height: 1.52; }
  .hero-actions { width: 100%; margin-top: 17px; }
  .hero-actions .button { width: min(100%, 330px); }
  .product-stage { width: 100%; height: 280px; margin-top: 4px; }
  .book-scene { width: 192px; height: 250px; }
  .book-cover { padding: 23px 20px 20px; }
  .book-title { margin-top: 26px; font-size: 21px; }
  .book-brand { left: 20px; bottom: 20px; }
  .stage-chip--left { left: 0; top: 36%; }
  .stage-chip--right { right: 0; top: 57%; }
  .stage-ring--one { width: 282px; height: 282px; }
  .stage-ring--two { width: 222px; height: 222px; }

  .video-section, .problem-section, .offer-section { padding-block: var(--section-space); }
  .section-heading h2, .problem-copy h2, .offer-intro h2 { font-size: clamp(2.05rem, 10.5vw, 3rem); }
  .video-shell { margin-top: 22px; }
  .video-frame { border-radius: 24px; }
  .video-placeholder-copy { bottom: 7%; }

  .benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
  .benefits li { min-height: 47px; padding-inline: 11px; font-size: .78rem; }
  .purchase-panel { padding: 14px; }
  .offer-status { min-height: 32px; margin-bottom: 10px; }
  .offer-status__active, .offer-status__expired { min-height: 32px; padding: 6px 9px; gap: 6px; font-size: .63rem; }
  .offer-status__timer-label { display: none; }
  .offer-countdown { min-width: 46px; font-size: .72rem; }
  .purchase-row {
    grid-template-areas:
      "pricing button"
      "payments payments";
    gap: 10px;
  }
  .purchase-regular-price { font-size: .6rem; }
  .purchase-special-label { font-size: .52rem; }
  .purchase-price { gap: 4px; padding-top: 2px; }
  .purchase-price strong { font-size: clamp(2rem, 9.5vw, 2.65rem); }
  .purchase-price span { font-size: .56rem; }
  .button--purchase { width: 100%; min-height: 50px; padding-inline: 10px; font-size: clamp(.6rem, 2.7vw, .74rem); gap: 5px; align-self: end; }
  .payment-methods { grid-area: payments; width: 100%; gap: 5px; justify-content: center; margin-top: 1px; }
  .payment-badge { height: 29px; min-width: 42px; padding-inline: 6px; border-radius: 7px; }
  .payment-badge--apple { min-width: 50px; }
  .payment-badge--gpay { min-width: 49px; }
  .payment-badge--mastercard { min-width: 46px; }
  .payment-badge--carnet { min-width: 49px; }
  .checkout-info { align-items: flex-start; }
}

@media (max-width: 640px) {
  .section-heading--center h2 { margin-top: 6px; }
  .problem-copy p { margin-top: 14px; }
  .offer-intro > p:last-child { margin-top: 13px; }
  .benefits { margin-top: 19px; }
  .purchase-panel { margin-top: 19px; }
  .site-footer { padding-block: 18px 20px; }
}

@media (max-width: 390px) {
  .button--nav { padding-inline: 11px; font-size: .73rem; }
  .stage-chip { min-height: 31px; padding-inline: 9px; font-size: .56rem; }
  .benefits { grid-template-columns: 1fr; }
  .purchase-panel { margin-inline: -2px; }
  .offer-status__active, .offer-status__expired { font-size: .59rem; }
  .offer-countdown { min-width: 43px; font-size: .68rem; }
  .purchase-price strong { font-size: 1.92rem; }
  .purchase-price span { font-size: .52rem; }
  .button--purchase { padding-inline: 7px; font-size: .58rem; }
  .payment-badge { height: 28px; min-width: 40px; padding-inline: 5px; }
  .payment-badge--apple { min-width: 47px; }
  .payment-badge--gpay { min-width: 46px; }
  .payment-badge--mastercard { min-width: 44px; }
  .payment-badge--carnet { min-width: 46px; }
}

@media (hover: none) {
  .button:hover, .video-play:hover { transform: none; }
  .button:hover .arrow { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marker-highlight { transition: none !important; background-size: 100% var(--marker-height) !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-hero-item], .js [data-reveal] { opacity: 1; filter: none; transform: none; }
  .hero-dots { display: none; }
}

/* ==========================================================
   V9 · BLOQUE DE CONVERSIÓN FINAL
   Jerarquía: precio -> oferta/contador -> CTA -> pagos
   ========================================================== */
.purchase-panel {
  margin-top: 24px;
  padding: clamp(18px, 2.3vw, 24px);
  border: 1px solid #e2e4ed;
  border-radius: 24px;
  background: rgba(248,249,253,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.purchase-pricing-column {
  min-width: 0;
  padding-right: clamp(18px, 2.4vw, 30px);
  border-right: 1px solid #e2e5ee;
}
.purchase-conversion-column {
  min-width: 0;
  padding-left: clamp(2px, .8vw, 8px);
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
}
.purchase-pricing { min-width: 0; }
.purchase-regular-price,
.purchase-special-label { margin: 0; }
.purchase-regular-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  color: #7a7e8d;
}
.purchase-regular-price span {
  font-size: clamp(.95rem, 1.35vw, 1.1rem);
  font-weight: 720;
  color: #7a7f90;
}
.purchase-regular-price del {
  color: #575d70;
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
  line-height: 1;
  font-weight: 830;
  text-decoration-thickness: 2.2px;
  text-decoration-color: #646b7f;
}
.purchase-special-label {
  margin-top: 9px;
  color: #4f7300;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.purchase-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  white-space: nowrap;
}
.purchase-price strong {
  color: var(--ink);
  font-size: clamp(3.85rem, 7vw, 5.8rem);
  line-height: .9;
  letter-spacing: -.075em;
  padding-bottom: .02em;
  font-weight: 700;
}
.purchase-price span {
  color: #73788b;
  font-size: clamp(.92rem, 1.4vw, 1.12rem);
  font-weight: 850;
  letter-spacing: .04em;
}
.checkout-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
}
.checkout-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a7e8c;
  font-size: .84rem;
  font-weight: 600;
}
.offer-status {
  min-height: 42px;
  margin: 0;
  display: flex;
  align-items: center;
}
.offer-status.is-initializing { visibility: hidden; }
.offer-status__active,
.offer-status__expired {
  min-height: 42px;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 760;
}
.offer-status__active:not([hidden]) {
  display: inline-flex;
  background: linear-gradient(90deg, rgba(140,232,21,.15), rgba(140,232,21,.055));
  border: 1px solid rgba(93,165,4,.18);
  color: #34442a;
}
.offer-status__expired:not([hidden]) {
  display: inline-flex;
  background: rgba(75,22,233,.065);
  border: 1px solid rgba(75,22,233,.11);
  color: #342b68;
}
.offer-status__label {
  color: #2f5e00;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.offer-status__pulse {
  display: inline-grid;
  place-items: center;
  transform-origin: center;
  animation: offerPulse 1.5s ease-in-out infinite;
}
.offer-status__timer-label { color: #676c61; font-weight: 650; }
.offer-countdown {
  min-width: 54px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
  color: #10150a;
  font-size: .9rem;
  font-weight: 900;
}
@keyframes offerPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,111,0,0)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255,111,0,.3)); }
}
.button--purchase {
  --btn-bg: var(--lime);
  --btn-color: #112000;
  --edge-color: #aef45a;
  --edge-hot: #efffc8;
  --edge-soft: rgba(79,155,0,.28);
  --edge-glow: rgba(140,232,21,.44);
  --edge-thickness: 2.55px;
  width: min(100%, 400px);
  min-width: 0;
  min-height: 58px;
  padding-inline: 20px;
  box-shadow: 0 13px 30px rgba(93,170,5,.19);
  font-size: clamp(.86rem, 1.05vw, .98rem);
  letter-spacing: .005em;
}
.payment-stack { display: grid; gap: 9px; }
.payment-heading {
  margin: 0;
  color: #7b8192;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.payment-methods {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, max-content));
  gap: 8px;
  align-items: center;
  justify-content: start;
}
.payment-methods[hidden] { display: none; }
.payment-badge {
  height: 40px;
  min-width: 72px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe2eb;
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 8px rgba(22,26,45,.055), inset 0 1px 0 rgba(255,255,255,.98);
  color: #15171d;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.payment-badge--logo { overflow: hidden; }
.payment-badge--logo img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.payment-badge--apple { min-width: 84px; padding: 4px 9px; }
.payment-badge--apple img { height: 31px; }
.payment-badge--gpay { min-width: 88px; padding: 0 10px; }
.payment-badge--gpay img { height: 21px; }
.payment-badge--visa {
  min-width: 72px;
  color: #1434cb;
  font-size: .82rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.04em;
}
.payment-badge--mastercard { min-width: 72px; padding-inline: 8px; }
.mc-circles { position: relative; width: 30px; height: 18px; display: block; }
.mc-circles i { position: absolute; top: 1px; width: 17px; height: 17px; border-radius: 50%; }
.mc-circles i:first-child { left: 1px; background: #eb001b; }
.mc-circles i:last-child { right: 1px; background: #f79e1b; mix-blend-mode: multiply; }
.payment-badge--amex { min-width: 76px; padding: 0 8px; background: #2f77bd; border-color: #2f77bd; }
.payment-badge--amex span { color: #fff; font-size: .68rem; font-weight: 900; }
.payment-badge--carnet { min-width: 76px; padding-inline: 8px; background: #e51b23; border-color: #e51b23; }
.payment-badge--carnet span { color: #fff; font-size: .7rem; font-weight: 900; font-style: italic; }

@media (max-width: 900px) {
  .purchase-layout { grid-template-columns: 1fr; gap: 18px; }
  .purchase-pricing-column { padding-right: 0; padding-bottom: 17px; border-right: 0; border-bottom: 1px solid #e2e5ee; }
  .purchase-conversion-column { padding-left: 0; }
  .button--purchase { width: min(100%, 420px); }
  .payment-methods { grid-template-columns: repeat(3, minmax(72px, max-content)); }
}

@media (max-width: 640px) {
  .purchase-panel { padding: 15px; border-radius: 20px; }
  .purchase-layout { gap: 15px; }
  .purchase-pricing-column { padding-bottom: 14px; }
  .purchase-regular-price span { font-size: .88rem; }
  .purchase-regular-price del { font-size: 1.28rem; }
  .purchase-special-label { margin-top: 7px; font-size: .62rem; }
  .purchase-price { gap: 6px; margin-top: 2px; }
  .purchase-price strong { font-size: clamp(3rem, 16vw, 4.2rem); }
  .purchase-price span { font-size: .9rem; }
  .checkout-note { font-size: .78rem; }
  .offer-status { min-height: 38px; }
  .offer-status__active, .offer-status__expired { min-height: 38px; padding: 8px 11px; gap: 7px; font-size: .7rem; flex-wrap: wrap; }
  .offer-status__timer-label { display: none; }
  .offer-countdown { min-width: auto; font-size: .82rem; }
  .button--purchase { width: 100%; min-height: 54px; font-size: .8rem; padding-inline: 14px; }
  .payment-heading { text-align: center; font-size: .66rem; }
  .payment-methods { width: 100%; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .payment-badge { min-width: 0; width: 100%; height: 38px; border-radius: 9px; padding-inline: 8px; }
  .payment-badge--apple img { height: 29px; }
  .payment-badge--gpay img { height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-status__pulse { animation: none; }
}

/* ==========================================================
   V9.1 · AJUSTES QA — precio original, pagos en una fila,
   pulso de segundos del countdown
   ========================================================== */
.purchase-regular-price del {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .28em;
  color: #575d70;
  text-decoration: none;
  line-height: 1;
}
.purchase-regular-price del::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2.5px;
  border-radius: 999px;
  background: #0A2CB0;
  transform: translateY(-50%);
  pointer-events: none;
}
.regular-price__amount {
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
  font-weight: 830;
}
.regular-price__currency {
  font-size: .5em;
  font-weight: 850;
  letter-spacing: .045em;
}

.offer-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.offer-countdown__prefix,
.offer-countdown__separator,
.offer-countdown__seconds {
  display: inline-block;
}
.offer-countdown__seconds {
  margin-left: 1px;
  font-size: 1.13em;
  font-weight: 950;
  transform-origin: 50% 62%;
  animation: countdownSecondPulse 1s ease-in-out infinite;
}
@keyframes countdownSecondPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .9; }
}

.payment-methods {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
}
.payment-badge {
  width: 52px;
  min-width: 52px;
  height: 42px;
  padding: 5px;
  border-radius: 11px;
  flex: 0 0 52px;
}
.payment-badge--logo {
  overflow: hidden;
  background: rgba(255,255,255,.98);
  border-color: #dfe2eb;
}
.payment-badge--logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.payment-badge--apple,
.payment-badge--gpay,
.payment-badge--visa,
.payment-badge--mastercard,
.payment-badge--amex,
.payment-badge--carnet {
  width: 52px;
  min-width: 52px;
  padding: 5px;
  background: rgba(255,255,255,.98);
  border-color: #dfe2eb;
}
.payment-badge--apple img { height: 100%; }
.payment-badge--gpay img { height: 100%; }
.payment-badge--visa img { height: 100%; }
.payment-badge--mastercard img { height: 100%; }
.payment-badge--amex img { height: 100%; }
.payment-badge--carnet img { height: 100%; }

@media (max-width: 900px) {
  .payment-methods {
    flex-wrap: wrap;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .purchase-regular-price del::after { height: 2px; }
  .regular-price__amount { font-size: 1.28rem; }
  .regular-price__currency { font-size: .64rem; }
  .offer-countdown__seconds { font-size: 1.16em; }
  .payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .payment-badge,
  .payment-badge--apple,
  .payment-badge--gpay,
  .payment-badge--visa,
  .payment-badge--mastercard,
  .payment-badge--amex,
  .payment-badge--carnet {
    width: 100%;
    min-width: 0;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-countdown__seconds { animation: none; }
}

/* ==========================================================
   V9.2 · QA visual aprobado
   - Precio especial = verde CTA
   - Tachado rojo sólo sobre $499
   - Pagos proporcionados y en una sola fila desktop
   - Pricing centrado en mobile
   - Pulse únicamente en los segundos del countdown
   ========================================================== */

.purchase-special-label {
  color: var(--lime);
}

.purchase-regular-price {
  align-items: baseline;
}

.purchase-regular-price .regular-price__amount {
  position: relative;
  display: inline-block;
  color: #575d70;
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
  line-height: 1;
  font-weight: 830;
  text-decoration: none;
}

.purchase-regular-price .regular-price__amount::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 51%;
  height: 2.5px;
  border-radius: 999px;
  background: #E1252A;
  transform: translateY(-50%);
  pointer-events: none;
}

.purchase-regular-price .regular-price__currency {
  color: #6f7485;
  font-size: .5em;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .045em;
}

/* El pulso de urgencia vive sólo en el segundo, no en el emoji. */
.offer-status__pulse {
  animation: none;
  transform: none;
  filter: none;
}

.offer-countdown__seconds {
  font-size: 1.18em;
  font-weight: 950;
  transform-origin: 50% 62%;
  animation: countdownSecondPulse 1s ease-in-out infinite;
}

@keyframes countdownSecondPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.14); opacity: .86; }
}

/* Métodos de pago: cápsulas casi cuadradas y peso visual homogéneo. */
.payment-stack {
  width: 100%;
  min-width: 0;
}

.payment-methods {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  width: max-content;
  max-width: 100%;
}

.payment-badge,
.payment-badge--apple,
.payment-badge--gpay,
.payment-badge--visa,
.payment-badge--mastercard,
.payment-badge--amex,
.payment-badge--carnet {
  width: 58px;
  min-width: 58px;
  height: 44px;
  flex: 0 0 58px;
  padding: 5px 6px;
  border: 1px solid #dfe2eb;
  border-radius: 11px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 8px rgba(22,26,45,.055), inset 0 1px 0 rgba(255,255,255,.98);
}

.payment-badge--logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Optically normalized per brand, using the supplied original artwork. */
.payment-badge--apple img { width: 47px; max-height: 24px; }
.payment-badge--gpay img { width: 43px; max-height: 19px; }
.payment-badge--visa img { width: 43px; max-height: 15px; }
.payment-badge--mastercard img { width: 35px; max-height: 23px; }
.payment-badge--amex img { width: 31px; max-height: 25px; }
.payment-badge--carnet img { width: 39px; max-height: 22px; }

@media (max-width: 900px) {
  .payment-methods {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .purchase-pricing-column,
  .purchase-pricing {
    text-align: center;
  }

  .purchase-regular-price,
  .purchase-price,
  .checkout-info,
  .checkout-note {
    justify-content: center;
  }

  .purchase-special-label {
    text-align: center;
  }

  .purchase-regular-price .regular-price__amount {
    font-size: 1.28rem;
  }

  .purchase-regular-price .regular-price__amount::after {
    height: 2px;
  }

  .purchase-regular-price .regular-price__currency {
    font-size: .64rem;
  }

  .payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .payment-badge,
  .payment-badge--apple,
  .payment-badge--gpay,
  .payment-badge--visa,
  .payment-badge--mastercard,
  .payment-badge--amex,
  .payment-badge--carnet {
    width: 100%;
    min-width: 0;
    height: 40px;
    flex: auto;
  }

  .payment-badge--apple img { width: 44px; max-height: 22px; }
  .payment-badge--gpay img { width: 40px; max-height: 18px; }
  .payment-badge--visa img { width: 39px; max-height: 14px; }
  .payment-badge--mastercard img { width: 32px; max-height: 21px; }
  .payment-badge--amex img { width: 29px; max-height: 23px; }
  .payment-badge--carnet img { width: 36px; max-height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-countdown__seconds { animation: none; }
}


/* ==========================================================
   V9.3 · MOBILE LAYOUT REPAIR + INLINE PAYMENT LOGOS
   Fixes legacy grid-area rules that were leaking into the
   new conversion column at <=900px and breaking the stack.
   ========================================================== */

/* Neutralize legacy named-grid placement from the old purchase-row. */
.purchase-conversion-column > *,
.button--purchase,
.payment-stack,
.payment-methods,
.offer-status {
  grid-area: auto !important;
}

.purchase-conversion-column {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
}

/* Supplied brand artwork is embedded inline in index.html. */
.payment-badge .payment-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  overflow: visible;
}

/* Optical normalization: same capsule, different artwork proportions. */
.payment-badge--apple .payment-logo { width: 47px; max-height: 24px; }
.payment-badge--gpay .payment-logo { width: 43px; max-height: 19px; }
.payment-badge--visa .payment-logo { width: 43px; max-height: 15px; }
.payment-badge--mastercard .payment-logo { width: 35px; max-height: 23px; }
.payment-badge--amex .payment-logo { width: 31px; max-height: 25px; }
.payment-badge--carnet .payment-logo { width: 39px; max-height: 22px; }

@media (max-width: 900px) {
  .purchase-conversion-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .offer-status { order: 1; }
  .button--purchase { order: 2; }
  .payment-stack { order: 3; }

  .offer-status,
  .offer-status__active:not([hidden]),
  .offer-status__expired:not([hidden]) {
    align-self: flex-start;
  }

  .payment-methods {
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* Pricing: each visual line is centered as one reading unit. */
  .purchase-pricing-column,
  .purchase-pricing {
    width: 100%;
    text-align: center;
  }

  .purchase-regular-price,
  .purchase-price,
  .checkout-info,
  .checkout-note {
    width: 100%;
    justify-content: center;
  }

  .purchase-special-label {
    width: 100%;
    text-align: center;
  }

  /* Conversion stack: countdown -> CTA -> payment methods. */
  .purchase-conversion-column {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .offer-status {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .offer-status__active:not([hidden]),
  .offer-status__expired:not([hidden]) {
    align-self: center;
    margin-inline: auto;
  }

  .button--purchase {
    width: 100%;
    max-width: none;
    align-self: stretch;
    justify-self: auto;
  }

  .payment-stack {
    width: 100%;
    display: grid;
    gap: 9px;
  }

  .payment-heading {
    width: 100%;
    text-align: center;
  }

  .payment-methods {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    max-width: none;
  }

  .payment-badge,
  .payment-badge--apple,
  .payment-badge--gpay,
  .payment-badge--visa,
  .payment-badge--mastercard,
  .payment-badge--amex,
  .payment-badge--carnet {
    width: 100%;
    min-width: 0;
    height: 42px;
    flex: none;
    padding: 6px;
  }

  .payment-badge--apple .payment-logo { width: 44px; max-height: 22px; }
  .payment-badge--gpay .payment-logo { width: 40px; max-height: 18px; }
  .payment-badge--visa .payment-logo { width: 39px; max-height: 14px; }
  .payment-badge--mastercard .payment-logo { width: 32px; max-height: 21px; }
  .payment-badge--amex .payment-logo { width: 29px; max-height: 23px; }
  .payment-badge--carnet .payment-logo { width: 36px; max-height: 20px; }
}
