/* ==========================================================================
   Página principal (venta) — usa SOLO los tokens de brand.css
   Desarrollado por analize
   ========================================================================== */

/* Pesos livianos (300–599) solo para esta página, desde el mismo archivo variable de la marca.
   Las demás páginas siguen usando 600–900. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300 599;
  font-display: swap;
  src: url('../fonts/nunito.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 599;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.005em;
  color: var(--frambuesa);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(100% - 32px, 1120px); margin: 0 auto; }
.wrap--narrow { width: min(100% - 32px, 760px); }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease-out), filter .2s, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--frambuesa); outline-offset: 3px; }
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { color: var(--blanco); background: var(--rosa); }
.btn--primary:hover { filter: brightness(.94); }
.btn--soft { color: var(--frambuesa); background: var(--palo); }
.btn--soft:hover { filter: brightness(.97); }
.btn--light { color: var(--rosa); background: var(--blanco); }
.btn--light:hover { transform: translateY(-1px); }
.btn--outline { color: var(--blanco); background: transparent; box-shadow: inset 0 0 0 1.5px var(--blanco-85); }
.btn--outline:hover { background: var(--blanco-18); }
.btn--ghost { color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--blanco-18); }
.btn.is-disabled { opacity: .55; pointer-events: none; }

.eyebrow { color: var(--rosa); }
.url {
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--rosa-12);
  white-space: nowrap;
}
.url b { color: var(--rosa); }

/* ---------------- Cabecera ----------------
   Sobre la portada es una barra transparente; al bajar se convierte en una cápsula de vidrio
   con una guirnalda de 24 luces (una por día) que se encienden a medida que avanzas.     */
.nav {
  --spring: cubic-bezier(.34, 1.25, .45, 1);
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  color: var(--blanco);
  pointer-events: none;
  transition: color .45s var(--ease-out);
}
.nav.is-solid { color: var(--frambuesa); }
.nav.is-open { color: var(--blanco); }

.nav__bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100% - 24px, 1160px);
  height: 64px;
  margin: 10px auto 0;
  padding: 0 10px 0 16px;
  pointer-events: auto;
}

/* Cápsula de vidrio */
.nav__glass {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--blanco-85);
  box-shadow:
    0 0 0 1px var(--palo),
    0 1px 0 1px rgba(255, 255, 255, .9) inset,
    0 22px 44px -26px rgba(142, 15, 67, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  opacity: 0;
  transform: scale(1.04, 1.3);
  transition: opacity .4s var(--ease-out), transform .7s var(--spring);
}
.nav.is-solid .nav__glass { opacity: 1; transform: none; }
.nav.is-open .nav__glass { opacity: 0; transform: scale(1.04, 1.3); }

/* Guirnalda: 24 luces colgando bajo la cápsula (dorado solo como luz) */
.nav__lights {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: -9px;
  height: 14px;
  pointer-events: none;
}
.nav__lights svg { position: absolute; inset: 0 0 auto; width: 100%; height: 8px; overflow: visible; }
.nav__lights path { fill: none; stroke: var(--frambuesa-40); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.nav__lights i {
  position: absolute;
  top: 1px;
  left: calc(var(--i) / 23 * 100%);
  width: 6px;
  height: 8px;
  margin-left: -3px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: var(--palo);
  box-shadow: inset 0 -1.5px 0 var(--frambuesa-12);
  transition: background .35s ease, box-shadow .45s ease, scale .5s var(--spring);
}
.nav__lights i::before {
  content: '';
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  top: -2px;
  height: 3px;
  border-radius: 1px;
  background: var(--frambuesa-40);
}
.nav__lights i.is-on {
  background: var(--dorado);
  box-shadow: 0 0 6px 1px rgba(242, 193, 78, .95), 0 0 16px 4px rgba(242, 193, 78, .45);
  scale: 1.12;
  animation: bulb-glow 2.8s ease-in-out calc(var(--i) * -.37s) infinite;
}
.nav__lights.is-full i.is-on { animation: bulb-chase 1.4s ease-in-out calc(var(--i) * .05s) 2, bulb-glow 2.8s ease-in-out calc(1.4s + var(--i) * -.37s) infinite; }
@keyframes bulb-glow {
  50% { box-shadow: 0 0 4px 0 rgba(242, 193, 78, .7), 0 0 10px 2px rgba(242, 193, 78, .25); }
}
@keyframes bulb-chase {
  40% { scale: 1.55; box-shadow: 0 0 10px 3px rgba(242, 193, 78, 1), 0 0 22px 8px rgba(242, 193, 78, .5); }
}

/* Marca */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 6px 8px 6px 0;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.nav__brand:focus-visible, .nav__links a:focus-visible, .nav__account:focus-visible,
.nav__cta:focus-visible, .nav__toggle:focus-visible {
  outline: 2.5px solid currentColor;
  outline-offset: 3px;
}
.mark { width: 44px; height: auto; flex: none; overflow: visible; }
.mark__loop, .mark__tails { fill: currentColor; transition: fill .45s var(--ease-out); }
.mark__knot { fill: var(--palo); }
.nav.is-solid .mark__loop, .nav.is-solid .mark__tails { fill: var(--rosa); }
.nav.is-open .mark__loop, .nav.is-open .mark__tails { fill: var(--blanco); }
.mark__loop, .mark__tails, .mark__knot { transform-box: view-box; transform-origin: 100px 64px; }
.nav__brand:hover .mark { animation: bow-wiggle .9s var(--ease-out); }
@keyframes bow-wiggle {
  20% { rotate: -9deg; scale: 1.06; }
  45% { rotate: 6deg; }
  70% { rotate: -3deg; }
}
.nav__name {
  display: grid;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.nav__name span:last-child { padding-left: 14px; }

/* Secciones con una cinta que se desliza */
.nav__links {
  position: relative;
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  z-index: 1;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
  opacity: .88;
  transition: color .3s ease, opacity .3s ease;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav.is-solid .nav__links a.is-active { color: var(--rosa); }
.nav__ink {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--w, 0px);
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--blanco-18);
  opacity: 0;
  transform: translateX(var(--x, 0px));
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s ease, background .4s ease;
}
.nav__ink::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1.5px dashed var(--blanco-40);
  transition: border-color .4s ease;
}
.nav__ink.is-on { opacity: 1; }
.nav.is-solid .nav__ink { background: var(--rosa-12); }
.nav.is-solid .nav__ink::after { border-color: var(--rosa-30); }

/* Acciones */
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }

.nav__account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px 0 12px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease;
}
.nav__account svg { width: 19px; height: 19px; flex: none; }
.nav__account:hover { background: var(--blanco-18); }
.nav.is-solid .nav__account:hover { background: var(--rosa-12); }

/* Botón principal: magnético, con un brillo que lo recorre */
.nav__cta {
  --shine: rgba(255, 46, 136, .16);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 20px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--rosa);
  background: var(--blanco);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(142, 15, 67, .9);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .6s var(--spring), color .45s ease, background .45s ease, box-shadow .3s ease, opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav__cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, var(--shine) 48%, transparent 66%);
  transform: translateX(-110%);
  animation: cta-shine 6s ease-in-out 2.2s infinite;
}
@keyframes cta-shine {
  0% { transform: translateX(-110%); }
  22%, 100% { transform: translateX(110%); }
}
.nav__cta-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blanco);
  background: var(--rosa);
  transition: transform .5s var(--spring), background .45s ease, color .45s ease;
}
.nav__cta-icon svg { width: 18px; height: 18px; }
.nav__cta:hover { box-shadow: 0 16px 30px -14px rgba(142, 15, 67, 1); }
.nav__cta:hover .nav__cta-icon { transform: rotate(-12deg) scale(1.08); }
.nav__cta:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.96); transition-duration: .15s; }
.nav.is-solid .nav__cta { --shine: rgba(255, 255, 255, .4); color: var(--blanco); background: var(--rosa); }
.nav.is-solid .nav__cta-icon { color: var(--rosa); background: var(--blanco); }

/* Menú (celular) */
.nav__toggle {
  position: relative;
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: var(--blanco-18);
  cursor: pointer;
  transition: background .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav.is-solid .nav__toggle { background: var(--rosa-12); }
.nav.is-open .nav__toggle { background: var(--blanco-18); }
.nav__toggle span {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 2.2px;
  margin-top: -1.1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .55s var(--spring), width .35s ease;
}
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { width: 12px; transform: translateY(4px); }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { width: 18px; transform: rotate(-45deg); }
.nav.is-open .nav__cta { opacity: 0; pointer-events: none; }

.sheet {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow-y: auto;
  padding: calc(104px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  color: var(--blanco);
  background:
    radial-gradient(circle, var(--blanco-18) 1.4px, transparent 1.9px) 0 0 / 24px 24px,
    radial-gradient(120% 70% at 100% 0%, var(--blanco-18), transparent 60%),
    var(--rosa);
  clip-path: circle(0 at var(--cx, 100%) var(--cy, 0));
  visibility: hidden;
  pointer-events: auto;
  transition: clip-path .6s cubic-bezier(.7, 0, .25, 1), visibility 0s linear .6s;
}
.nav.is-open .sheet {
  clip-path: circle(var(--cr, 150vmax) at var(--cx, 100%) var(--cy, 0));
  visibility: visible;
  transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.sheet__nav { display: grid; }
.sheet__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1.5px dashed var(--blanco-40);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--blanco);
  text-decoration: none;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.sheet__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 19px;
  color: var(--rosa);
  background: var(--blanco);
  box-shadow: 0 3px 0 rgba(142, 15, 67, .35);
}
.sheet__arrow { width: 24px; height: 24px; margin-left: auto; opacity: .75; transition: transform .3s var(--ease-out); }
.sheet__link:hover .sheet__arrow, .sheet__link:focus-visible .sheet__arrow { transform: translateX(5px); }
.sheet__link:focus-visible { outline: 2.5px solid var(--blanco); outline-offset: 2px; border-radius: 12px; }
.sheet__foot {
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.nav.is-open .sheet__link, .nav.is-open .sheet__foot {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .8s var(--ease-out);
  transition-delay: calc(.22s + var(--i, 0) * .07s);
}
.nav-locked, .nav-locked body { overflow: hidden; }

/* Entrada al cargar la página */
@keyframes nav-in { from { opacity: 0; transform: translateY(-18px); } }
@keyframes bow-loop-l { from { scale: 0; rotate: -40deg; } }
@keyframes bow-loop-r { from { scale: 0; rotate: 40deg; } }
@keyframes bow-tails { from { scale: 1 0; opacity: 0; } }
@keyframes bow-knot { from { scale: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .nav__brand, .nav__links, .nav__actions { animation: nav-in .9s var(--ease-out) backwards; }
  .nav__links { animation-delay: .12s; }
  .nav__actions { animation-delay: .22s; }
  .mark__loop--l { animation: bow-loop-l .9s var(--spring) .15s backwards; }
  .mark__loop--r { animation: bow-loop-r .9s var(--spring) .25s backwards; }
  .mark__tails { animation: bow-tails .7s var(--ease-out) .45s backwards; }
  .mark__knot { animation: bow-knot .6s var(--spring) .1s backwards; }
}

@media (max-width: 1120px) {
  .nav__links a { padding-inline: 12px; }
}
@media (max-width: 960px) {
  .nav__links, .nav__account { display: none; }
  .nav__links + .nav__actions { margin-left: auto; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .nav__bar { gap: 6px; padding-left: 12px; padding-right: 8px; }
  .nav__name { display: none; }
  .nav__cta { height: 44px; padding-left: 16px; gap: 8px; }
  .nav__lights { left: 26px; right: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__glass, .nav__ink, .nav__cta { transition-duration: .01s; }
  .nav__cta::after, .nav__lights i.is-on, .nav__lights.is-full i.is-on { animation: none; }
  .sheet { clip-path: none; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }
  .nav.is-open .sheet { clip-path: none; opacity: 1; transition: opacity .2s ease, visibility 0s; }
  .sheet__link, .sheet__foot { transform: none; transition: none; }
}

/* ---------------- Portada ---------------- */
/* Escena: rosa con lunares, una profundidad frambuesa que se mueve lento, nieve (canvas),
   rayos de luz girando detrás del calendario y estrellas (dorado solo como luz). */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: calc(112px + env(safe-area-inset-top)) 0 128px;
  color: var(--blanco);
  background:
    radial-gradient(circle, var(--blanco-18) 2px, transparent 2.5px) 0 0 / 30px 30px,
    radial-gradient(120% 80% at 80% 10%, rgba(255, 255, 255, .22), transparent 60%),
    var(--rosa);
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 14% 86%, rgba(142, 15, 67, .42), transparent 70%),
    radial-gradient(28% 34% at 90% 74%, rgba(142, 15, 67, .24), transparent 70%),
    radial-gradient(30% 36% at 70% 20%, rgba(255, 255, 255, .2), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  50% { transform: translate3d(3%, -2%, 0) rotate(3deg) scale(1.04); }
  100% { transform: translate3d(-2%, 2%, 0) rotate(-2deg) scale(1.02); }
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky i {
  position: absolute;
  width: var(--s);
  aspect-ratio: 1;
  background: var(--dorado);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: .9;
  animation: twinkle 3.2s ease-in-out var(--d) infinite;
}
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .25; } }
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 40px;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}
/* Al bajar, el texto se queda atrás y se desvanece (landing.js fija las variables) */
.hero__copy { position: relative; z-index: 2; translate: 0 var(--copy-y, 0px); opacity: var(--copy-o, 1); }
.hero__title { font-size: clamp(44px, 6.4vw, 78px); }
.hero__title .w { display: inline-block; }
.hero__lead { max-width: 540px; margin-top: 24px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--blanco-85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__go { position: relative; isolation: isolate; overflow: hidden; }
.hero__go::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 46, 136, .2) 48%, transparent 66%);
  transform: translateX(-110%);
  animation: cta-shine 6s ease-in-out 3.2s infinite;
}
.hero__wave { position: absolute; z-index: 1; inset: auto 0 -1px; width: 100%; height: 70px; fill: var(--blanco); }

/* Rayos de luz que giran lento detrás del calendario */
.hero__art { position: relative; z-index: 1; display: grid; place-items: center; translate: 0 var(--art-y, 0px); }
.hero__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  aspect-ratio: 1;
  margin: -500px 0 0 -500px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(242, 193, 78, .34), rgba(255, 255, 255, .1) 40%, transparent 72%),
    repeating-conic-gradient(rgba(255, 255, 255, .14) 0deg 3deg, transparent 4.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 16%, transparent 80%);
  mask: radial-gradient(closest-side, #000 16%, transparent 80%);
  opacity: .85;
  animation: rays-spin 120s linear infinite;
}
@keyframes rays-spin { to { rotate: 360deg; } }
@keyframes rays-in { from { opacity: 0; scale: .45; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 108px; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__rays { width: 680px; margin: -340px 0 0 -340px; }
}

/* Calendario en miniatura (7 ventanas, del 18 al 24): se abre una por día, con un estallido de luz */
.stage {
  position: relative;
  width: min(100%, 420px);
  perspective: 1300px;
}
.tilt { transform-style: preserve-3d; translate: 0 0; rotate: x 0deg; scale: 1; }
.mini {
  --gap: 10px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: calc((min(100vw - 32px, 420px) - 40px - 2 * var(--gap)) / 3);
  gap: var(--gap);
  padding: 20px;
  border-radius: 30px;
  background: var(--palo);
  box-shadow: inset 0 0 0 5px var(--blanco), 0 50px 80px -34px rgba(142, 15, 67, .9);
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-16deg) rotateZ(2deg);
  animation: mini-float 9s ease-in-out infinite;
}
.mini::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: var(--stitch) var(--rosa-30);
  pointer-events: none;
}
/* Brillo que sigue al mouse sobre el calendario */
.mini::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(55% 45% at var(--gx, 28%) var(--gy, 18%), rgba(255, 255, 255, .3), transparent 70%);
  transform: translateZ(26px);
}
@keyframes mini-float {
  50% { transform: rotateX(10deg) rotateY(-8deg) rotateZ(1deg) translateY(-10px); }
}
.mt {
  position: relative;
  grid-column: var(--c);
  grid-row: var(--r);
  border-radius: var(--r-md);
  /* Cada ventana se dibuja plana (puerta sobre el interior) con su propia perspectiva para el giro */
  transform-style: flat;
  transform: translateZ(10px);
  perspective: 600px;
  box-shadow: 0 2px 0 var(--frambuesa), 0 6px 0 var(--frambuesa), 0 16px 18px -10px rgba(142, 15, 67, .7);
}
.mt__cavity { position: absolute; inset: 0; border-radius: inherit; }
.mt__leaf {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
}
.mt__leaf::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(142, 15, 67, .18), transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 8px, transparent 8px 18px), var(--palo);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
/* Mientras gira, la ventana queda adelante de sus vecinas */
.mt.is-opening { z-index: 3; transform: translateZ(16px); }
.mt.is-open .mt__leaf { opacity: 0; visibility: hidden; }
.mt.is-locked .face__lock { display: grid; }
.mt__badge {
  position: absolute;
  z-index: 4;
  right: -6px;
  top: -8px;
  padding: 4px 8px 3px;
  border-radius: var(--r-pill);
  font-weight: 900;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--rosa);
  background: var(--blanco);
  box-shadow: 0 0 0 2px var(--rosa), 0 0 14px 3px rgba(242, 193, 78, .75);
  transform: translateZ(14px);
}
.mini__note {
  position: absolute;
  z-index: 5;
  left: -18px;
  bottom: -26px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  color: var(--frambuesa);
  background: var(--blanco);
  box-shadow: 0 24px 44px -20px rgba(142, 15, 67, .8);
  transform: rotate(-3deg);
  transition: opacity .5s ease, scale .7s cubic-bezier(.2, 1.3, .4, 1);
}
.mini__note .t-label { color: var(--rosa); font-size: 10px; }
.mini__note .t-title { font-size: 18px; }
.stage.is-waiting .mini__note { opacity: 0; scale: .85; }
@media (max-width: 900px) {
  .mini__note { left: 50%; translate: -50% 0; bottom: -34px; transform: rotate(-2deg); white-space: nowrap; }
  .stage { margin-bottom: 18px; }
}

/* Estallido al abrir una ventana: un fogonazo, rayos dorados y chispas con confeti */
.burst { position: absolute; z-index: 6; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: translate(-50%, -50%); }
.burst__glow {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(242, 193, 78, .5) 45%, transparent);
  opacity: 0;
}
.burst__rays {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(242, 193, 78, .75) 0deg 4deg, transparent 6deg 24deg);
  -webkit-mask: radial-gradient(closest-side, transparent 16%, #000 30%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 16%, #000 30%, transparent 100%);
  opacity: 0;
}
.burst__spark { background: var(--dorado); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.burst__bit { border-radius: 2px; }

/* Entrada al cargar: el texto aparece palabra por palabra y el calendario llega en 3D */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w { animation: word-in 1s cubic-bezier(.16, 1, .3, 1) calc(.25s + var(--i, 0) * 70ms) backwards; }
  .hero__lead { animation: rise 1s var(--ease-out) .85s backwards; }
  .hero__cta { animation: rise 1s var(--ease-out) 1s backwards; }
  .hero__rays { animation: rays-in 2.6s ease-out .8s backwards, rays-spin 120s linear infinite; }
  .stage { animation: fade-in 1s ease .3s backwards; }
  .tilt { animation: tilt-in 2s cubic-bezier(.16, 1, .3, 1) .3s backwards; }
}
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes word-in { from { opacity: 0; translate: 0 .45em; filter: blur(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes tilt-in { from { translate: 0 120px; rotate: x 44deg; scale: .72; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero__rays, .hero__go::after { animation: none; }
}

/* ---------------- Secciones ---------------- */
/* Ritmo al estilo Apple: mucho aire, superficies lisas y una sola jerarquía de texto
   (título grande y semibold, bajada grande y suave, cuerpo liviano) */
.section { padding: clamp(88px, 11vw, 136px) 0; }
.section--soft { background: var(--palo); }
.hero__title, .section__title, .closing__title { font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.section__title { max-width: 860px; font-size: clamp(36px, 5.2vw, 60px); }
.section__lead { max-width: 620px; margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--frambuesa-70); }

/* Encabezado centrado de cada sección (con un detalle ilustrado arriba en Lo que recibe y Preguntas) */
.sec-head { display: grid; justify-items: center; text-align: center; }
.sec-head .peek + .section__title, .sec-head .faq-chat + .section__title { margin-top: 28px; }
.sec-head .section__lead { text-wrap: balance; }

/* Ventanita que se abre al aparecer y deja ver la sorpresa de adentro */
.peek {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  rotate: -5deg;
  perspective: 420px;
}
.peek__in, .peek__door { position: absolute; inset: 0; border-radius: 20px; }
.peek__in { overflow: hidden; box-shadow: 0 3px 0 rgba(142, 15, 67, .16), 0 18px 28px -14px rgba(142, 15, 67, .6); }
.peek__door {
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform 1.3s var(--ease-spring) .35s;
}
.peek__door .face { border-radius: inherit; backface-visibility: hidden; }
.peek__door::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(142, 15, 67, .16), transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 5px, transparent 5px 11px), var(--palo);
  box-shadow: inset 0 0 0 1.5px var(--blanco);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.peek.is-open .peek__door { transform: rotateY(-115deg); }
.peek.is-open:hover .peek__door { transform: rotateY(-62deg); transition-delay: 0s; transition-duration: .7s; }
.peek__glints i {
  position: absolute;
  width: var(--s, 12px);
  aspect-ratio: 1;
  background: var(--dorado);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  transition: opacity .5s ease 1s;
}
.peek.is-open .peek__glints i { opacity: 1; animation: face-twinkle 2.8s ease-in-out var(--d, 0s) infinite; }
.peek__glints i:nth-child(1) { left: -42px; top: -8px; --s: 12px; }
.peek__glints i:nth-child(2) { right: -14px; top: -14px; --s: 9px; --d: .9s; }
.peek__glints i:nth-child(3) { right: -24px; bottom: 12px; --s: 14px; --d: 1.7s; }

/* Subrayado hecho a mano: un trazo doble, distinto en cada palabra, que se dibuja con el scroll (landing.js) */
.hand {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  color: var(--rosa);
}
.hand__line {
  position: absolute;
  z-index: -1;
  left: -.07em;
  top: calc(100% - .17em);
  width: calc(100% + .14em);
  height: .44em;
  overflow: visible;
  pointer-events: none;
}
.hand__pen { fill: none; stroke: var(--blanco); stroke-linecap: round; stroke-linejoin: round; }
.hand__ink { fill: var(--hand, var(--rosa)); opacity: 0; }
.hero .hand { color: inherit; --hand: var(--blanco); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 36px 32px 40px;
  border-radius: var(--r-lg);
  background: var(--palo-40);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--rosa);
}
.step__title, .feature__title {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.step__title { margin: 24px 0 10px; }
.step p, .feature p { color: var(--frambuesa-70); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
@media (max-width: 420px) {
  .step { padding: 30px 24px 34px; }
  /* El enlace de ejemplo puede partirse en las barras para no salirse de la tarjeta */
  .url { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.feature {
  padding: 34px 32px 38px;
  border-radius: var(--r-lg);
  background: var(--blanco);
}
.feature__icon { display: block; color: var(--rosa); }
.feature__icon svg { display: block; width: 30px; height: 30px; }
.feature__title { margin: 22px 0 8px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Planes ---------------- */
/* Tarjetas al estilo Apple: superficie lisa, todo centrado y una jerarquía clara
   (calendario, nombre, días, precio, botón). En escritorio las filas quedan alineadas entre las tres. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 40px;
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--palo-40);
}
.plan--featured { box-shadow: inset 0 0 0 2px var(--rosa); }
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .plans { grid-template-rows: repeat(7, auto); row-gap: 0; }
    .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; justify-items: center; align-items: start; }
  }
}

/* Mini calendario: una ventanita por día del plan, el 24 encendido */
.plan__cal {
  /* Mismo tamaño de ventanita en los tres planes (el de 24 usa 8 columnas) */
  --t: min(calc((100% - 42px) / 8), 30px);
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), var(--t));
  justify-content: center;
  align-content: center;
  gap: 6px;
  width: 100%;
  height: 104px;
  margin-bottom: 26px;
}
.plan__cal i { display: block; font-style: normal; }
.plan__cal b {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--frambuesa-70);
  background: var(--blanco);
  box-shadow: 0 1px 2px rgba(142, 15, 67, .1);
}
.plan__cal i:last-child b { color: var(--blanco); background: var(--rosa); box-shadow: 0 0 14px 1px rgba(242, 193, 78, .85); }
.plan.is-in .plan__cal i { animation: cal-pop .5s var(--ease-out) calc(.2s + var(--k) * 22ms) backwards; }
@keyframes cal-pop { from { opacity: 0; scale: .6; } }

.plan__flag { min-height: 20px; margin-bottom: 8px; font-weight: 800; font-size: 14px; line-height: 20px; color: var(--rosa); }
.plan__name { font-family: var(--font-text); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.plan__days { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--rosa); }
.plan__desc { max-width: 290px; margin-top: 12px; line-height: 1.45; color: var(--frambuesa-70); text-wrap: balance; }
.plan__pricing { margin-top: 28px; }
.plan__price { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.035em; }
.plan__per { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--frambuesa-70); }
.plan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 16px;
  color: var(--blanco);
  background: var(--rosa);
  text-decoration: none;
  transition: filter .2s ease, transform .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.plan__btn:hover { filter: brightness(.93); }
.plan__btn:active { transform: scale(.97); }
.plan__btn:focus-visible { outline: 3px solid var(--frambuesa); outline-offset: 3px; }
.plan__btn.is-disabled { opacity: .5; pointer-events: none; }

/* Lo que incluyen todos: cuatro íconos con su texto debajo */
.plans__incl { margin-top: 80px; text-align: center; }
.plans__incl-title { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.plans__incl ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  max-width: 860px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.plans__incl li { display: grid; justify-items: center; gap: 12px; }
.plans__ic { color: var(--rosa); }
.plans__ic svg { display: block; width: 28px; height: 28px; }
.plans__note { margin-top: 28px; text-align: center; font-weight: 700; color: var(--frambuesa-70); }

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; gap: 16px; }
  .plan--featured { order: -1; }
  .plan__cal { height: auto; }
  .plan__flag:empty { display: none; }
}
@media (max-width: 700px) {
  .plans__incl { margin-top: 64px; }
  .plans__incl ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .plan { padding: 32px 20px 34px; }
  .plan__cal b { font-size: 11px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan.is-in .plan__cal i { animation: none; }
}

/* ---------------- Preguntas ---------------- */
/* Franja con bordes de encaje arriba y abajo: festón palo con ojalillos sobre pétalos rosa,
   una costura punteada y sombra, como una cinta que flota sobre la página */
.section--lace {
  --lp: 34px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 -4px 8px rgba(142, 15, 67, .08)) drop-shadow(0 14px 16px rgba(142, 15, 67, .15));
}
.section--lace::before, .section--lace::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 44px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 17.5px, var(--blanco) 0 2.7px, transparent 3.2px) 0 0 / var(--lp) 24px repeat-x,
    radial-gradient(circle at 50% 24px, transparent 0 11px, rgba(255, 46, 136, .4) 11.5px 12.7px, transparent 13.2px) 0 0 / var(--lp) 24px repeat-x,
    repeating-linear-gradient(90deg, rgba(255, 46, 136, .55) 0 8px, transparent 8px 15px) 0 34px / 100% 2px no-repeat,
    radial-gradient(circle at 50% 24px, var(--palo) 0 16.5px, transparent 17px) 0 0 / var(--lp) 24px repeat-x,
    radial-gradient(circle at 50% 25.5px, rgba(142, 15, 67, .3) 15.5px, transparent 20.5px) 0 0 / var(--lp) 24px repeat-x,
    radial-gradient(circle at 50% 24px, var(--rosa) 0 16.5px, transparent 17px) calc(var(--lp) / 2) -6px / var(--lp) 30px repeat-x;
}
.section--lace::after { top: auto; bottom: -24px; transform: scaleY(-1); }


/* Dos globos de conversación: la pregunta y la respuesta escribiéndose */
.faq-chat { position: relative; width: 116px; height: 80px; }
.faq-chat__q {
  position: absolute;
  left: 4px;
  top: 0;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--rosa);
  background: var(--blanco);
  box-shadow: 0 3px 0 rgba(142, 15, 67, .1), 0 18px 26px -14px rgba(142, 15, 67, .6);
  rotate: -8deg;
  animation: chat-bob 5s ease-in-out infinite;
}
.faq-chat__q::after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  background: inherit;
  clip-path: polygon(0 100%, 30% 0, 100% 42%);
}
.faq-chat__a {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--rosa);
  box-shadow: 0 12px 20px -10px rgba(255, 46, 136, .9);
  rotate: 6deg;
  animation: chat-bob 5s ease-in-out -2.5s infinite;
}
.faq-chat__a::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  background: inherit;
  clip-path: polygon(100% 100%, 0 25%, 62% 0);
}
.faq-chat__a i { width: 6px; height: 6px; border-radius: 50%; background: var(--blanco); animation: chat-dot 1.4s ease-in-out infinite; }
.faq-chat__a i:nth-child(2) { animation-delay: .16s; }
.faq-chat__a i:nth-child(3) { animation-delay: .32s; }
@keyframes chat-bob { 50% { translate: 0 -4px; } }
@keyframes chat-dot { 0%, 60%, 100% { translate: 0 0; opacity: .55; } 30% { translate: 0 -4px; opacity: 1; } }

.faq { display: grid; gap: 12px; margin-top: 56px; }
.faq details {
  border-radius: var(--r-md);
  background: var(--blanco);
}
/* Abierta (y no cerrándose): borde rosa suave y pregunta en rosa */
.faq details[open]:not(.is-closing) { box-shadow: inset 0 0 0 1.5px rgba(255, 46, 136, .32); }
.faq summary {
  position: relative;
  padding: 22px 60px 22px 26px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq summary:hover, .faq details[open]:not(.is-closing) summary { color: var(--rosa); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--rosa-12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23FF2E88' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .55s var(--ease-spring), background-color .3s ease;
}
.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(135deg);
  background: var(--rosa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.faq summary:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; border-radius: var(--r-md); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 26px 24px; color: var(--frambuesa-70); }

/* ---------------- Cierre y pie ---------------- */
/* Llamado final: blanco como el pie, con borde de encaje, abanico de ventanitas y frase en una línea */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 11vw, 124px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
  color: var(--frambuesa);
  background: var(--blanco);
}
.closing__inner { display: grid; justify-items: center; }

.closing__fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 118px;
  margin-bottom: 36px;
}
.ct {
  position: relative;
  flex: none;
  width: 76px;
  aspect-ratio: 1;
  margin: 0 -7px;
  border-radius: 18px;
  box-shadow: 0 3px 0 rgba(142, 15, 67, .18), 0 18px 28px -14px rgba(142, 15, 67, .55);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .9s var(--ease-spring), opacity .5s ease;
}
.ct .face { border-radius: inherit; }
.ct:nth-child(1) { --r: -15deg; --y: 16px; z-index: 1; }
.ct:nth-child(2) { --r: -7deg; --y: 4px; z-index: 2; }
.ct:nth-child(3) { width: 104px; --r: 0deg; z-index: 3; margin-inline: -4px; animation: ct-float 5s ease-in-out infinite; }
.ct:nth-child(4) { --r: 7deg; --y: 4px; z-index: 2; }
.ct:nth-child(5) { --r: 15deg; --y: 16px; z-index: 1; }
@keyframes ct-float { 50% { translate: 0 -6px; } }
.closing__fan:hover .ct:nth-child(1) { --x: -10px; --r: -19deg; }
.closing__fan:hover .ct:nth-child(2) { --x: -5px; --r: -9deg; --y: 0px; }
.closing__fan:hover .ct:nth-child(4) { --x: 5px; --r: 9deg; --y: 0px; }
.closing__fan:hover .ct:nth-child(5) { --x: 10px; --r: 19deg; }
/* Antes de verse, las ventanitas están juntas; al aparecer se abren en abanico */
.closing__fan.is-waiting .ct { transform: translate(var(--sx, 0), 30px) rotate(0deg) scale(.8); opacity: 0; }
.closing__fan.is-waiting .ct:nth-child(1) { --sx: 140px; }
.closing__fan.is-waiting .ct:nth-child(2) { --sx: 70px; }
.closing__fan.is-waiting .ct:nth-child(4) { --sx: -70px; }
.closing__fan.is-waiting .ct:nth-child(5) { --sx: -140px; }
.ct:nth-child(1), .ct:nth-child(5) { transition-delay: .12s; }
.ct:nth-child(2), .ct:nth-child(4) { transition-delay: .06s; }

.closing__kicker { font-weight: 700; font-size: clamp(16px, 1.5vw, 19px); letter-spacing: -.01em; text-transform: none; color: var(--rosa); }
.closing__title {
  margin-top: 14px;
  font-size: clamp(22px, 7.6vw, 66px);
  white-space: nowrap;
  color: var(--frambuesa);
}
.closing__text { max-width: 560px; margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--frambuesa-70); text-wrap: balance; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
@media (max-width: 520px) {
  .closing__fan { height: 92px; margin-bottom: 30px; }
  .ct { width: 58px; border-radius: 14px; }
  .ct:nth-child(3) { width: 80px; }
  .closing__cta { width: 100%; }
  .closing__cta .btn { flex: 1 1 100%; }
}

.foot {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 0 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}
.foot::before {
  content: '';
  width: min(100%, 1120px);
  margin-bottom: 18px;
  border-top: 1.5px dashed var(--palo);
}
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-weight: 700; font-size: 14px; }
.foot__links a { text-decoration: none; color: var(--frambuesa-70); }
.foot__links a:hover { color: var(--rosa); }

/* ---------------- Aparición al hacer scroll ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini, .hero__sky i, .mini__note, .ct, .faq-chat__q, .faq-chat__a, .faq-chat__a i, .peek.is-open .peek__glints i { animation: none; }
  .peek__door, .peek__glints i { transition: none; }
  .closing__fan.is-waiting .ct { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
