/* =========================================================
   Cumple-Andrea · «Blanco Holo»
   ========================================================= */
:root {
  --white: #ffffff;
  --violet: #7B3FC4;
  --magenta: #D9479B;
  --pink: #F29BCB;
  --lilac: #E9C8FF;
  --lilac-2: #B35FD6;
  --turq: #5FE3E8;
  --ink: #241A4F;
  --deadline: #B0206F;
  --grad-title: linear-gradient(90deg, #7B3FC4 0%, #D9479B 55%, #F29BCB 100%);
  --grad-btn: linear-gradient(90deg, #7B3FC4, #D9479B);
  --glass: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .95);
  --shadow-soft: 0 12px 30px rgba(123, 63, 196, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.2, 1.4, .4, 1);
  --maxw: 480px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 15px/1.45 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }

/* ---------- Luces difusas ---------- */
.lights { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.light { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.l1 { width: 80vw; height: 30vh; left: -30vw; top: -6vh; background: var(--lilac-2); opacity: .32; transform: rotate(-30deg); }
.l2 { width: 70vw; height: 70vw; right: -30vw; top: 18vh; background: var(--pink); animation-delay: -4s; }
.l3 { width: 75vw; height: 75vw; left: -30vw; bottom: -10vh; background: var(--turq); opacity: .32; animation-delay: -8s; }
.l4 { width: 60vw; height: 50vw; right: -20vw; bottom: -12vh; background: var(--pink); opacity: .38; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(6vw, -4vh, 0) scale(1.12); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Tipografía ---------- */
.eyebrow { font: 800 12px/1.3 "Nunito"; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); margin: 0; text-align: center; }
.eyebrow--left { text-align: left; }
.title-xl, .title-l, .title-sign {
  font-family: "Bungee", system-ui; font-weight: 400; margin: 0; text-align: center; line-height: 1.02;
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-xl { font-size: min(92px, calc(min(86vw, 440px) / (var(--n, 6) * .82))); letter-spacing: .01em; }
.title-l { font-size: clamp(32px, 10.4vw, 46px); margin-top: 6px; }
.title-sub { font: 400 clamp(20px, 6.6vw, 28px)/1.1 "Bungee"; text-align: center; color: rgba(123, 63, 196, .8); margin: 4px 0 0; }
.title-sign { font-size: 36px; }
.lead { font: 400 22px/1.2 "Lilita One"; text-align: center; color: var(--ink); margin: 10px 0 0; }
.muted { color: rgba(36, 26, 79, .72); margin: 0; font-weight: 700; font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; }

/* letras animadas: cada letra lleva su tramo del degradado */
.split { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: transparent; white-space: nowrap; }
.split .ch {
  display: inline-block; color: transparent;
  background-image: var(--grad-title);
  background-size: calc(var(--n, 1) * 100%) 100%;
  background-position: calc(var(--i) / max(var(--n, 1) - 1, 1) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
}
.split.go .ch { animation: letterIn .8s var(--ease-pop) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes letterIn { from { opacity: 0; transform: translateY(40px) rotate(-8deg) scale(.6); } to { opacity: 1; transform: none; } }
.split.shine .ch { animation: shine 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms + 1s); }
@keyframes shine { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-6px) scale(1.06); } }

/* ---------- Vidrio, botones ---------- */
.glass {
  background: var(--glass); border: 1.5px solid var(--glass-border); border-radius: 28px;
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--shadow-soft);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 600 17px/1 "Fredoka", sans-serif;
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .25s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px rgba(217, 71, 155, .35); position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.btn--ghost { background: rgba(255, 255, 255, .72); color: #4A2A86; border: 1.5px solid rgba(179, 95, 214, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn--wide { width: 100%; }
.btn[disabled], .btn.is-disabled { filter: grayscale(.6); opacity: .65; cursor: not-allowed; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn--primary:hover { box-shadow: 0 14px 30px rgba(217, 71, 155, .45); } }

/* ---------- Halo y sombra de piso (chicas) ---------- */
.halo { position: absolute; left: 50%; top: 55%; width: 92%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lilac); opacity: .75; filter: blur(42px); z-index: 0; pointer-events: none; }
.halo--big { width: 100%; height: 75%; }
.floor { position: absolute; left: 50%; bottom: 2%; width: 70%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: rgba(36, 26, 79, .24); filter: blur(10px); z-index: 0; }
.floor--big { width: 64%; height: 28px; }

/* ---------- Stickers ---------- */
.stk {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; z-index: 3; pointer-events: none;
  rotate: var(--r, 0deg); filter: drop-shadow(0 10px 14px rgba(123, 63, 196, .2));
  transform: translate3d(0, var(--py, 0px), 0);
}
.float { animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* =========================================================
   PORTADA
   ========================================================= */
.cover {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden;
  background: #fff;
  transition: opacity .7s ease, visibility .7s;
}
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cover::before { width: 90vw; height: 34vh; left: -40vw; top: -4vh; background: var(--lilac-2); opacity: .35; transform: rotate(-30deg); }
.cover::after { width: 80vw; height: 80vw; right: -40vw; top: 20vh; background: var(--pink); opacity: .5; }
.cover__inner { position: relative; z-index: 1; width: min(100%, var(--maxw)); height: 100svh; display: flex; flex-direction: column; align-items: center; padding: calc(28px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
.cover__msg { font: 400 clamp(19px, 5.8vw, 24px)/1.15 "Lilita One"; text-align: center; margin: 6px 12px 0; color: var(--ink); }
.cover__stage { position: relative; flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; margin-top: 8px; }
.cover__stage .halo { top: 42%; width: 70%; height: 55%; }
.cover__trio { position: absolute; z-index: 1; height: 62%; width: auto; bottom: 34%; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 8px 18px rgba(123, 63, 196, .22)); }
.cover__stage .floor { bottom: 33%; width: 46%; }
.envelope { position: relative; z-index: 2; width: 92%; margin-bottom: 2%; animation: envFloat 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.envelope__img { width: 100%; filter: drop-shadow(0 22px 30px rgba(123, 63, 196, .28)); rotate: -4deg; }
@keyframes envFloat { 50% { transform: translateY(-10px) rotate(1deg); } }
.seal { position: absolute; left: 50%; top: 56%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.seal__ring { position: absolute; inset: -4%; border-radius: 50%; border: 2.5px solid rgba(217, 71, 155, .85); box-shadow: 0 0 18px rgba(242, 155, 203, .9); animation: ring 1.8s ease-out infinite; }
.seal__ring.r2 { animation-delay: .9s; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.cover__bar { width: 100%; padding: 16px 18px 18px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.cover__bar .btn { margin-top: 8px; width: min(100%, 260px); }

/* Apertura */
.cover.opening .envelope { animation: envOpen .9s var(--ease-out) forwards; }
@keyframes envOpen { 30% { transform: scale(1.06) rotate(-3deg); } 100% { transform: translateY(40vh) scale(.7) rotate(8deg); opacity: 0; } }
.cover.opening .cover__trio { transition: transform 1s var(--ease-pop), filter .6s; transform: translate(-50%, -12%) scale(1.15); }
.cover.opening .cover__bar, .cover.opening .cover__msg, .cover.opening .stk { transition: opacity .4s; opacity: 0; }
.cover.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* =========================================================
   SECCIONES
   ========================================================= */
html, body { overflow-x: hidden; }
main { position: relative; z-index: 1; overflow-x: clip; }
.screen { overflow-x: clip; }
.screen { position: relative; width: min(100%, var(--maxw)); margin: 0 auto; padding: 64px 20px 72px; min-height: 100svh; display: flex; flex-direction: column; }
.screen + .screen { border-top: 1px solid rgba(233, 200, 255, .5); }

/* Bienvenida */
.screen--hero { padding-top: 56px; }
.hero-stage { position: relative; height: clamp(380px, 112vw, 520px); margin-top: -8px; }
.hero-six { position: absolute; left: 50%; top: 2%; width: 58%; transform: translate(-50%, var(--py, 0px)) rotate(6deg); z-index: 0; filter: drop-shadow(0 16px 40px rgba(179, 95, 214, .25)); }
.hero-stage .halo { top: 60%; }
.hero-girl { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 10px 22px rgba(123, 63, 196, .22)); }
.hero-stage .floor { bottom: -6px; }
.card-six { position: relative; z-index: 4; margin-top: -40px; padding: 20px 22px; }
.card-six__big { font: 400 28px/1.1 "Lilita One"; margin: 4px 0; }
.scroll-hint { align-self: center; margin-top: 22px; font: 800 13px "Nunito"; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); text-decoration: none; }
.scroll-hint span { display: inline-block; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); } }

/* Detalles */
.cards { display: grid; gap: 12px; margin-top: 22px; }
.info { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 24px; }
.info__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; background: var(--grad-btn); box-shadow: 0 6px 14px rgba(217, 71, 155, .3); }
.info__value { font: 800 18px/1.25 "Nunito"; margin: 2px 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips li { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1.5px solid rgba(217, 71, 155, .5); font: 800 11px/1 "Nunito"; letter-spacing: .1em; text-transform: uppercase; color: var(--deadline); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.split-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: end; margin-top: 18px; }
.note { padding: 16px; border-radius: 24px; }
.note__text { font-weight: 700; margin: 6px 0 0; }
.girl-spot { position: relative; height: 240px; display: flex; justify-content: center; align-items: flex-end; }
.girl-spot .girl { position: relative; z-index: 2; height: 100%; width: auto; filter: drop-shadow(0 8px 18px rgba(123, 63, 196, .22)); }
#detalles { padding-bottom: 140px; }

/* Ubicación */
.map-card { margin-top: 22px; padding: 12px 12px 18px; border-radius: 30px; }
.map { position: relative; height: 210px; border-radius: 22px; overflow: hidden; background: linear-gradient(#FBF7FF, #F6F0FF); }
/* Mapa propio «Blanco Holo»: calles reales teñidas de lila/rosa, pin de estrella */
.map .leaf { position: absolute; inset: 0; background: #F6F0FF; font-family: "Nunito", sans-serif; }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(1) hue-rotate(255deg) saturate(1.5) brightness(1.1) contrast(.9); }
.map::after { content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none; border-radius: inherit; mix-blend-mode: multiply;
  background: linear-gradient(135deg, rgba(233, 200, 255, .55) 0%, rgba(252, 215, 235, .45) 55%, rgba(200, 244, 247, .5) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), inset 0 0 26px rgba(179, 95, 214, .22); }
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: block; width: 68px; height: 68px; cursor: pointer; }
.pin img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(217, 71, 155, .45)); animation: pin 1.8s var(--ease-pop) infinite; }
.pin__pulse { position: absolute; left: 50%; bottom: 6px; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%; background: rgba(217, 71, 155, .35); animation: pinPulse 1.8s ease-out infinite; }
@keyframes pinPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map .leaflet-control-zoom { border: 0; box-shadow: 0 6px 16px rgba(123, 63, 196, .25); border-radius: 16px; overflow: hidden; margin: 0 10px 10px 0; }
.map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; background: rgba(255, 255, 255, .85); color: var(--violet); font: 800 20px "Nunito"; border: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map .leaflet-control-zoom a + a { border-top: 1px solid rgba(179, 95, 214, .25); }
.map .leaflet-control-attribution { background: rgba(255, 255, 255, .7); color: rgba(36, 26, 79, .7); font-size: 9px; border-radius: 10px 0 0 0; }
.map .leaflet-control-attribution a { color: var(--violet); }
.map__ph { position: absolute; inset: 0; background-image: linear-gradient(#E3D6FA 1.5px, transparent 1.5px), linear-gradient(90deg, #E3D6FA 1.5px, transparent 1.5px); background-size: 38px 36px; }
.map__road { position: absolute; left: -10%; top: 66%; width: 130%; height: 16px; border-radius: 8px; background: linear-gradient(90deg, #F4A6D8, #C9A2F0); rotate: -16deg; }
.map__pin { position: absolute; left: 50%; top: 32%; width: 64px; transform: translate(-50%, -50%); animation: pin 1.8s var(--ease-pop) infinite; filter: drop-shadow(0 8px 10px rgba(217, 71, 155, .35)); }
@keyframes pin { 0%, 100% { transform: translate(-50%, -50%); } 40% { transform: translate(-50%, -78%); } 60% { transform: translate(-50%, -50%) scale(1.06, .94); } }
.map-card__name { font: 800 18px "Nunito"; margin: 14px 8px 2px; }
.map-card .muted { margin: 0 8px; }
.btn-col { display: grid; gap: 12px; margin-top: 18px; }
#ubicacion { padding-bottom: 210px; }

/* Cuenta */
.count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.count__box { display: grid; place-items: center; gap: 4px; padding: 20px 6px; border-radius: 26px; }
.count__num { font: 400 clamp(36px, 12vw, 50px)/1 "Bungee"; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.count__num.tick { animation: tick .45s var(--ease-pop); }
@keyframes tick { from { transform: translateY(-40%) rotateX(80deg); opacity: 0; } }
.trio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 26px; }
.mini { position: relative; height: 190px; display: flex; justify-content: center; align-items: flex-end; }
.mini img { position: relative; z-index: 2; height: 100%; width: auto; filter: drop-shadow(0 8px 14px rgba(123, 63, 196, .22)); transition: transform .4s var(--ease-pop); }
.mini:nth-child(1) img { animation: bob 3.6s ease-in-out infinite; }
.mini:nth-child(2) img { animation: bob 3.6s ease-in-out .5s infinite; }
.mini:nth-child(3) img { animation: bob 3.6s ease-in-out 1s infinite; }
#cuenta { padding-bottom: 150px; }

/* Galería */
.carousel { display: flex; gap: 14px; margin: 22px -20px 0; padding: 18px 40px 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.photo { flex: 0 0 72%; scroll-snap-align: center; aspect-ratio: 4 / 5; padding: 9px; border-radius: 24px; background: #fff; box-shadow: 0 14px 30px rgba(123, 63, 196, .22); border: 0; cursor: zoom-in; transition: transform .45s var(--ease-out); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.photo:nth-child(odd) { rotate: -2.5deg; }
.photo:nth-child(even) { rotate: 2.5deg; }
.photo:not(.is-active) { transform: scale(.9); }
.thumbs { display: flex; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.thumb { width: 44px; height: 44px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid #fff; opacity: .7; cursor: pointer; box-shadow: 0 4px 10px rgba(123, 63, 196, .18); transition: transform .3s var(--ease-pop), opacity .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-selected="true"] { opacity: 1; border: 3px solid var(--magenta); transform: scale(1.12); }
.quote { margin-top: 18px; padding: 18px 20px; border-radius: 26px; width: 80%; }
.quote__text { font: 400 21px/1.2 "Lilita One"; margin: 0 0 6px; }
#galeria { padding-bottom: 110px; }

/* Juegos */
.cat { position: absolute; right: 12px; top: 12px; width: 92px; z-index: 3; rotate: 8deg; filter: drop-shadow(0 8px 12px rgba(46, 125, 209, .3)); animation: wiggle 2.8s ease-in-out infinite; }
@keyframes wiggle { 50% { rotate: -6deg; } }
.game { margin-top: 18px; padding: 18px; border-radius: 30px; }
.game__title { font: 400 22px/1.2 "Lilita One"; margin: 0; }
.arena { position: relative; height: 210px; margin-top: 12px; border-radius: 22px; overflow: hidden; background: linear-gradient(#F6EEFF, #FDEAF4); border: 1.5px solid #E3D6FA; touch-action: manipulation; }
.arena__msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font: 800 15px "Nunito"; color: var(--violet); margin: 0; }
.fall { position: absolute; top: -60px; width: 56px; height: 56px; padding: 6px; border: 0; background: none; cursor: pointer; will-change: transform; }
.fall img { width: 100%; pointer-events: none; }
.fall.pop { animation: pop .35s ease-out forwards; }
@keyframes pop { to { transform: scale(1.8); opacity: 0; } }
.hud { display: flex; justify-content: space-between; margin: 10px 4px; font: 800 14px "Nunito"; letter-spacing: .08em; color: var(--violet); }
.hud span:last-child { color: var(--deadline); }
.game .btn { width: 100%; }
.flip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; perspective: 900px; }
.flip { border: 0; padding: 0; background: none; aspect-ratio: 3 / 4; cursor: pointer; }
.flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.flip.on .flip__in { transform: rotateY(180deg); }
.flip__front, .flip__back { position: absolute; inset: 0; border-radius: 18px; border: 4px solid #fff; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 20px rgba(179, 95, 214, .3); }
.flip__front { background: linear-gradient(135deg, #9B5BE0, #E36AAE); }
.flip__front img { width: 60%; }
.flip:nth-child(1) .flip__front { rotate: -5deg; } .flip:nth-child(3) .flip__front { rotate: 5deg; }
.flip__back { transform: rotateY(180deg); background: #fff; color: var(--ink); font: 800 12.5px/1.25 "Nunito"; padding: 8px; text-align: center; }
.skip-games { align-self: center; margin-top: 18px; font: 800 14px "Nunito"; color: var(--violet); text-decoration: none; }
#juegos { padding-bottom: 130px; }

/* RSVP */
.deadline { text-align: center; font: 800 14px "Nunito"; color: var(--deadline); margin: 8px 0 0; }
.form { margin-top: 18px; padding: 20px; display: grid; gap: 12px; border-radius: 30px; background: rgba(255, 255, 255, .72); }
.field { display: grid; gap: 6px; }
.field__label { font: 800 11px "Nunito"; letter-spacing: .1em; text-transform: uppercase; color: #4A2A86; }
.field input, .field textarea { width: 100%; font: 400 16px "Nunito"; color: var(--ink); padding: 14px 16px; border-radius: 16px; border: 1.5px solid #C9A2F0; background: rgba(255, 255, 255, .95); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(217, 71, 155, .15); }
.field__error { color: var(--deadline); font-size: 13px; font-weight: 700; margin-top: -6px; min-height: 0; }
.companion { border: 0; margin: 0; padding: 0; min-width: 0; }
.companion legend { padding: 0; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg__opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 16px; border: 1.5px solid #C9A2F0; background: #fff; font: 800 16px "Nunito"; color: #4A2A86; transition: transform .25s var(--ease-pop), background .25s, color .25s, box-shadow .25s, border-color .25s; }
.seg__opt b { font-size: 16px; color: var(--magenta); transition: color .25s, transform .25s var(--ease-pop); }
.seg__opt input:checked + span { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(217, 71, 155, .35); transform: translateY(-2px); }
.seg__opt input:checked + span b { color: #fff; transform: scale(1.25) rotate(-8deg); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 3px; }
.field__hint { display: block; margin-top: 8px; font: 700 12px "Nunito"; color: rgba(36, 26, 79, .65); }
.step { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font: 600 22px/1 "Fredoka"; }
.step--minus { background: #F3EAFE; color: var(--violet); }
.step--plus { background: var(--grad-btn); color: #fff; }
.rsvp-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.stk-inline { width: 38%; filter: drop-shadow(0 10px 14px rgba(123, 63, 196, .2)); animation: bob 4s ease-in-out infinite; }
.girl-spot--rsvp { height: 230px; width: 50%; }

/* Final */
.screen--final { padding-bottom: 40px; }
.final-stage { position: relative; height: clamp(360px, 104vw, 470px); margin-top: 6px; }
.final-trio { position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 10px 22px rgba(123, 63, 196, .22)); }
.final-card { position: relative; z-index: 4; margin-top: -30px; padding: 22px; text-align: center; border-radius: 30px; }
.final-card__text { font: 700 16px/1.45 "Nunito"; margin: 0 0 12px; }
.final-logo { width: 46%; align-self: center; margin-top: 18px; filter: drop-shadow(0 10px 18px rgba(36, 26, 79, .2)); }
.motion-toggle { align-self: center; margin-top: 22px; background: none; border: 1.5px solid rgba(179, 95, 214, .45); border-radius: 999px; padding: 10px 16px; font: 800 12px "Nunito"; letter-spacing: .08em; color: var(--violet); cursor: pointer; min-height: 44px; }
.motion-toggle[aria-pressed="true"] { background: var(--violet); color: #fff; }

/* ---------- Música ---------- */
.fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--violet); background: rgba(255, 255, 255, .75); border: 1.5px solid rgba(179, 95, 214, .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 18px rgba(123, 63, 196, .25); cursor: pointer; transition: transform .3s var(--ease-pop); }
.fab[hidden] { display: none; }
.fab:active { transform: scale(.92); }
.fab .eq { position: absolute; bottom: 9px; display: none; gap: 2px; height: 10px; align-items: flex-end; }
.fab .eq i { width: 3px; background: var(--magenta); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.fab .eq i:nth-child(2) { animation-delay: .2s; } .fab .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.fab[aria-pressed="true"] .eq { display: flex; }
.fab[aria-pressed="true"] .fab__note { transform: translateY(-3px); }
.fab[aria-pressed="true"]::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(217, 71, 155, .45); animation: ring 2s ease-out infinite; }

.toast { position: fixed; left: 50%; bottom: 88px; z-index: 70; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: rgba(36, 26, 79, .92); color: #fff; font: 700 14px "Nunito"; opacity: 0; pointer-events: none; transition: .3s var(--ease-out); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Visor ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 88svh; }
.lightbox::backdrop { background: rgba(36, 26, 79, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 92vw; max-height: 84svh; border-radius: 20px; border: 8px solid #fff; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--violet); font-size: 18px; cursor: pointer; }

/* ---------- Entradas al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.girl-spot.reveal, .trio-row.reveal { transform: translateY(40px) scale(.94); }
.girl-spot.reveal.in, .trio-row.reveal.in { transform: none; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .screen { padding-top: 90px; }
  .hero-stage { height: 560px; }
  .final-stage { height: 520px; }
}

/* ---------- Reducir animaciones ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
body.reduce *, body.reduce *::before, body.reduce *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
body.reduce .reveal { opacity: 1; transform: none; }
body.reduce .stk, body.reduce .hero-six { --py: 0px !important; }
