/* =====================================================================
   Fiesta BRIVA · estilo neón + monitos
   ===================================================================== */
/* Fuentes servidas desde el propio sitio (antes: Google Fonts) */
/* Bungee · latin-ext */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bungee-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bungee · latin */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bungee-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fredoka · latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fredoka · latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Monoton · latin-ext */
@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/monoton-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Monoton · latin */
@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/monoton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Neonderthaw · latin-ext */
@font-face {
  font-family: 'Neonderthaw';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/neonderthaw-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Neonderthaw · latin */
@font-face {
  font-family: 'Neonderthaw';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/neonderthaw-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;   /* la página ya es oscura: el "modo oscuro forzado" del celular no la recolorea */
  --bg: #07010f;
  --bg-2: #12022a;
  --panel: rgba(24, 4, 54, 0.78);
  --rosa: #ff2bd6;
  --cyan: #00f0ff;
  --lima: #b6ff3b;
  --amarillo: #ffe94d;
  --morado: #8a2bff;
  --texto: #f5ecff;
  --suave: #bba8e6;
  --error: #ff5c7a;
  --radio: 22px;
  --f-cuerpo: 'Fredoka', system-ui, sans-serif;
  --f-neon: 'Neonderthaw', 'Fredoka', cursive;
  --f-tubo: 'Monoton', 'Bungee', sans-serif;
  --f-arcade: 'Bungee', 'Fredoka', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--f-cuerpo);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
[hidden] { display: none !important; }

/* ---------- Escenario synthwave ---------- */
.escenario { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(138, 43, 255, .35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(255, 43, 214, .18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 70%, rgba(0, 240, 255, .14), transparent 70%),
    linear-gradient(#07010f, #12022a 60%, #1b0336);
}
.estrellas { position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, #fff, transparent),
    radial-gradient(1px 1px at 80% 50%, #fff, transparent),
    radial-gradient(1px 1px at 90% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent),
    radial-gradient(1px 1px at 70% 85%, #fff, transparent);
  background-size: 320px 320px;
  opacity: .55;
  animation: titilar 4s ease-in-out infinite alternate;
  will-change: opacity;
}
.sol { position: absolute; left: 50%; bottom: 26vh; width: 46vmin; height: 46vmin; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(var(--amarillo), var(--rosa) 70%);
  opacity: .22; filter: blur(2px);
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 20px);
          mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 20px);
}
.piso { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 40vh; overflow: hidden;
  transform: perspective(300px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask: linear-gradient(to top, #000 30%, transparent);
          mask: linear-gradient(to top, #000 30%, transparent);
}
/* La cuadrícula se desplaza con transform (GPU) en vez de background-position (repintaba cada cuadro) */
.piso::before { content: ''; position: absolute; left: 0; right: 0; top: -60px; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 43, 214, .55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 240, 255, .45) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: avanzar 2.5s linear infinite;
  will-change: transform;
}
@keyframes avanzar { to { transform: translateY(60px); } }
@keyframes titilar { to { opacity: .9; } }

/* ---------- Neón ---------- */
.neon-rosa    { color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px var(--rosa), 0 0 22px var(--rosa), 0 0 44px var(--rosa), 0 0 80px var(--rosa); }
.neon-cyan    { color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px var(--cyan), 0 0 22px var(--cyan), 0 0 44px var(--cyan), 0 0 80px var(--cyan); }
.neon-amarillo{ color: #fff8c9; text-shadow: 0 0 4px #fff, 0 0 10px var(--amarillo), 0 0 22px var(--amarillo), 0 0 44px #ff9d00; }
.neon-lima    { color: #f3ffd9; text-shadow: 0 0 4px #fff, 0 0 10px var(--lima), 0 0 22px var(--lima), 0 0 44px var(--lima); }

.neon-borde-rosa { border: 2px solid var(--rosa); box-shadow: 0 0 8px var(--rosa), 0 0 26px rgba(255, 43, 214, .45), inset 0 0 18px rgba(255, 43, 214, .25); }
.neon-borde-cyan { border: 2px solid var(--cyan); box-shadow: 0 0 8px var(--cyan), 0 0 26px rgba(0, 240, 255, .4), inset 0 0 18px rgba(0, 240, 255, .2); }
.neon-borde-lima { border: 2px solid var(--lima); box-shadow: 0 0 8px var(--lima), 0 0 26px rgba(182, 255, 59, .35), inset 0 0 18px rgba(182, 255, 59, .18); }

/* steps(1): el neón "brinca" entre encendido y apagado como uno real, y el navegador
   solo repinta el brillo en cada salto (antes lo recalculaba en cada cuadro del desvanecido) */
.parpadeo      { animation: parpadeo 6s steps(1, end) infinite; }
.parpadeo-lento{ animation: parpadeo 9s 1.3s steps(1, end) infinite; }
@keyframes parpadeo {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; text-shadow: none; }
}

/* ---------- Monitos ---------- */
.monito { width: 90px; height: 90px; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 43, 214, .6)) drop-shadow(0 0 14px rgba(0, 240, 255, .35)); }
.monito.mini { width: 46px; height: 46px; }
.monito.grande { width: 140px; height: 140px; margin: 0 auto; display: block; }
.flama { transform-origin: 60px 34px; animation: flama .35s ease-in-out infinite alternate; }
@keyframes flama { to { transform: scale(.85, 1.12) rotate(4deg); } }
.brazo-der { transform-origin: 98px 92px; animation: saludar 1.2s ease-in-out infinite alternate; }
@keyframes saludar { to { transform: rotate(-22deg); } }

.monitos-flotantes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.monitos-flotantes .flota { position: absolute; width: 70px; height: 70px; opacity: .85; animation: flotar 7s ease-in-out infinite; }
.f1 { left: 4%;  top: 14%; }
.f2 { right: 5%; top: 8%;  animation-delay: -2s !important; width: 80px !important; height: 80px !important; }
.f3 { left: 6%;  bottom: 16%; animation-delay: -4s !important; }
.f4 { right: 7%; bottom: 24%; animation-delay: -1s !important; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-26px) rotate(6deg); } }
.brillo { position: absolute; width: 18px; height: 18px; animation: brillar 2.4s ease-in-out infinite; }
.b1 { left: 22%; top: 9%;  color: var(--amarillo); }
.b2 { right: 24%; top: 30%; color: var(--cyan); animation-delay: -.8s; }
.b3 { left: 14%; top: 52%; color: var(--rosa); animation-delay: -1.6s; }
@keyframes brillar { 0%, 100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

main, .pie { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 16px 64px; gap: 18px; }
.chip { display: inline-block; margin: 0; padding: 8px 18px; border-radius: 999px; font-family: var(--f-arcade);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); background: rgba(0, 240, 255, .06); }
.letrero { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 28px); flex-wrap: nowrap; max-width: 100%; }
.nombres { margin: 0; font-family: var(--f-neon); font-weight: 400; line-height: .95;
  font-size: clamp(56px, 13vw, 150px); display: flex; flex-direction: column; align-items: center; }
.nombres .amp { font-family: var(--f-arcade); font-size: .4em; line-height: 1.2; }
.avatar { flex: 0 0 auto; width: clamp(68px, 16vw, 150px); height: clamp(68px, 16vw, 150px); border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 2, 42, .8); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .monito { width: 78%; height: auto; aspect-ratio: 1; }
.avatar-izq { border: 3px solid var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 32px rgba(0, 240, 255, .5); animation: flotar 6s ease-in-out infinite; }
.avatar-der { border: 3px solid var(--rosa); box-shadow: 0 0 12px var(--rosa), 0 0 32px rgba(255, 43, 214, .5); animation: flotar 6s -3s ease-in-out infinite; }
.titulo-fiesta { margin: 0; font-family: var(--f-tubo); font-size: clamp(30px, 7vw, 64px); letter-spacing: 2px; color: var(--amarillo);
  text-shadow: 0 0 6px var(--amarillo), 0 0 20px #ff9d00, 0 0 42px #ff6a00; }
.mensaje { max-width: 620px; margin: 0; color: var(--suave); font-size: 18px; }

.cuenta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 4px; }
.cuenta div { min-width: 72px; padding: 10px 8px; border-radius: 16px; background: var(--panel); border: 2px solid var(--morado);
  box-shadow: 0 0 14px rgba(138, 43, 255, .55); }
.cuenta b { display: block; font-family: var(--f-arcade); font-size: 28px; color: var(--lima); text-shadow: 0 0 10px var(--lima); }
.cuenta span { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--suave); }

/* ---------- Botones ---------- */
.btn { --c: var(--rosa); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-arcade); font-size: 15px; letter-spacing: 1px; text-decoration: none; text-transform: uppercase;
  color: #12022a; background: var(--c); border: 2px solid var(--c); border-radius: 999px; padding: 12px 22px; cursor: pointer;
  box-shadow: 0 0 10px var(--c), 0 0 28px color-mix(in srgb, var(--c) 50%, transparent);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 16px var(--c), 0 0 44px var(--c); }
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.7) brightness(.7); cursor: wait; transform: none; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-rosa { --c: var(--rosa); color: #fff; }
.btn-cyan { --c: var(--cyan); }
.btn-lima { --c: var(--lima); }
.btn-amarillo { --c: var(--amarillo); }
.btn-fantasma { background: transparent; color: var(--suave); border-color: rgba(187, 168, 230, .4); box-shadow: none; }
.btn-xl { font-size: clamp(15px, 4vw, 19px); padding: 16px 28px; }
.btn-mini { font-size: 12px; padding: 8px 16px; }
.btn-bloque { width: 100%; }
.fila-botones { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Tarjetas de datos ---------- */
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px;
  max-width: 1040px; margin: 0 auto; padding: 0 16px 70px; }
.tarjeta { background: var(--panel); border-radius: var(--radio); padding: 26px 22px; text-align: center; }
/* El desenfoque de fondo es carísimo en celular (se recalcula con cada animación de atrás):
   solo en compus; en pantallas táctiles el panel es un poco más opaco y se ve igual. */
@media (hover: hover) and (pointer: fine) {
  .tarjeta { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (hover: none), (pointer: coarse) {
  .tarjeta { background: rgba(24, 4, 54, .88); }
}
.tarjeta .icono { font-size: 40px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .4)); }
.datos .tarjeta h2 { margin: 6px 0 4px; font-family: var(--f-arcade); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--suave); }
.datos .tarjeta p { margin: 0 0 6px; color: var(--suave); }
.datos .tarjeta .grande { font-size: 21px; font-weight: 600; color: #fff; }
.tarjeta .btn { margin-top: 10px; }

/* ---------- Galería ---------- */
.galeria { padding: 0 16px 80px; text-align: center; }
.seccion-titulo { font-family: var(--f-neon); font-weight: 400; font-size: clamp(44px, 9vw, 72px); margin: 0 0 18px; line-height: 1.05; }
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1100px; margin: 0 auto; }
.polaroid { margin: 0; width: min(280px, 82vw); padding: 12px 12px 40px; background: #1a0838; border-radius: 10px;
  border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(0, 240, 255, .6), 0 18px 40px rgba(0, 0, 0, .5);
  transform: rotate(var(--giro, 0deg)); transition: transform .3s ease; }
.polaroid:nth-child(3n+2) { border-color: var(--rosa); box-shadow: 0 0 12px rgba(255, 43, 214, .6), 0 18px 40px rgba(0, 0, 0, .5); }
.polaroid:nth-child(3n) { border-color: var(--lima); box-shadow: 0 0 12px rgba(182, 255, 59, .5), 0 18px 40px rgba(0, 0, 0, .5); }
.polaroid:hover { transform: rotate(0) scale(1.04); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.polaroid.vacia { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 5.4; padding-bottom: 12px; }
.polaroid.vacia .monito { width: 55%; height: auto; aspect-ratio: 1; }
.polaroid.vacia .sticker { width: 82%; height: auto; aspect-ratio: 1; }
.polaroid figcaption { margin-top: 14px; font-family: var(--f-arcade); font-size: 12px; letter-spacing: 2px; color: var(--suave); }

/* ---------- Formulario ---------- */
.rsvp { position: relative; max-width: 620px; margin: 0 auto; padding: 70px 16px 90px; }
.asomado { position: absolute; top: 0; right: 34px; width: 100px; height: 100px; z-index: 2; animation: asomar 4s ease-in-out infinite; }
@keyframes asomar { 0%, 100% { transform: translateY(14px) rotate(6deg); } 50% { transform: translateY(0) rotate(-4deg); } }
.form { text-align: left; padding: 34px clamp(18px, 5vw, 36px); }
.form .seccion-titulo { text-align: center; }
.ayuda { text-align: center; color: var(--suave); margin: -6px 0 22px; }
.campo { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.campo label, .campo legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 17px; color: #fff; background: rgba(7, 1, 15, .7);
  border: 2px solid rgba(187, 168, 230, .35); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: rgba(187, 168, 230, .55); }
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, .2), 0 0 18px rgba(0, 240, 255, .4); }
input.invalido { border-color: var(--error); box-shadow: 0 0 12px rgba(255, 92, 122, .45); }

.selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selector label { margin: 0; cursor: pointer; }
.selector input { position: absolute; opacity: 0; pointer-events: none; }
.selector span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; height: 100%; padding: 10px;
  border-radius: 14px; border: 2px solid rgba(187, 168, 230, .35); background: rgba(7, 1, 15, .6); font-weight: 600; transition: all .2s; }
.selector input:checked + span { border-color: var(--lima); color: #fff; background: rgba(182, 255, 59, .1);
  box-shadow: 0 0 10px var(--lima), inset 0 0 14px rgba(182, 255, 59, .25); }
.selector input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.lista-acompanantes { margin: -4px 0 18px; padding: 16px; border-radius: 16px; border: 2px dashed rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .04); }
.fila-acomp { display: flex; gap: 8px; margin-bottom: 10px; animation: entrar .25s ease; }
.fila-acomp button { flex: 0 0 48px; border-radius: 12px; border: 2px solid var(--rosa); background: transparent; color: var(--rosa); font-size: 20px; cursor: pointer; }
@keyframes entrar { from { opacity: 0; transform: translateY(-6px); } }

.error { display: block; min-height: 0; color: var(--error); font-size: 14px; margin-top: 6px; }
.error:empty { display: none; }
.error-general { text-align: center; font-weight: 600; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#btn-enviar .txt-no { display: none; }
.form.no-asiste #btn-enviar .txt-si { display: none; }
.form.no-asiste #btn-enviar .txt-no { display: inline; }

.pie { text-align: center; padding: 20px 16px 40px; color: var(--suave); font-size: 14px; }
.pie .monito { margin: 0 auto 6px; }

/* ---------- Pantallas (overlays) ---------- */
/* flex + margin:auto centra, pero si el contenido no cabe (celular chico) se puede hacer scroll
   hasta arriba; con grid+center la parte de arriba quedaba cortada y sin poder verse */
.pantalla { position: fixed; inset: 0; z-index: 50; display: flex; padding: 16px; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(circle at 50% 40%, rgba(48, 8, 92, .985), rgba(7, 1, 15, .995)); animation: aparecer .35s ease; }
@keyframes aparecer { from { opacity: 0; } }
.pantalla-contenido { width: 100%; max-width: 560px; margin: auto; text-align: center; }
.estado { min-height: 1.5em; margin: -6px 0 10px; color: var(--suave); font-weight: 500; }
.rueda-marco { position: relative; width: min(92vw, 470px, 62vh); aspect-ratio: 1; margin: 0 auto 18px; }
#tombola { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#tombola:active { cursor: grabbing; }
.vigia { position: absolute; bottom: -10px; width: 74px; height: 74px; z-index: 2; }
.vigia-izq { left: -18px; animation: flotar 3s ease-in-out infinite; }
.vigia-der { right: -18px; animation: flotar 3s -1.5s ease-in-out infinite; }
.girando .vigia { animation: brincar .4s ease-in-out infinite alternate; }
@keyframes brincar { to { transform: translateY(-16px) rotate(8deg); } }
.palanca { min-width: 260px; }
.palanca:not(:disabled) { animation: latido 1.1s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.06); } }
.pista { color: var(--suave); font-size: 14px; margin: 12px 0 0; }

.reto-tarjeta { position: relative; padding: 80px 24px 26px; border: 3px dashed var(--amarillo);
  box-shadow: 0 0 16px var(--amarillo), 0 0 60px rgba(255, 233, 77, .35), inset 0 0 24px rgba(255, 233, 77, .15);
  animation: revelar .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes revelar { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.monitos-festejo { position: absolute; top: -52px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.monitos-festejo .sticker { width: 84px; height: 84px; }
.monitos-festejo .sticker.grande { width: 112px; height: 112px; margin-top: -22px; --c: var(--rosa); }
.salta { animation: brincar .5s ease-in-out infinite alternate; }
.salta.d2 { animation-delay: -.17s; } .salta.d3 { animation-delay: -.34s; }
.reto-saludo { margin: 0 0 10px; font-size: 18px; color: var(--suave); }
.reto-num { display: inline-block; font-family: var(--f-arcade); font-size: 13px; letter-spacing: 3px; padding: 6px 16px; border-radius: 999px;
  background: var(--amarillo); color: #1a0033; box-shadow: 0 0 14px var(--amarillo); }
.reto-titulo { font-family: var(--f-arcade); font-weight: 400; font-size: clamp(24px, 6vw, 34px); line-height: 1.15; margin: 16px 0 10px;
  color: var(--amarillo); text-shadow: 0 0 10px rgba(255, 157, 0, .7); }
.reto-desc { font-size: 18px; line-height: 1.55; margin: 0 0 14px; color: #fff; }
.reto-nota { color: var(--lima); font-size: 15px; margin: 0 0 12px; }
.correo-estado { font-size: 14px; color: var(--suave); margin: 0 0 18px; }
.reto-tarjeta .btn-fantasma { margin-top: 12px; }

#confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.aviso-musica { position: fixed; right: 70px; bottom: 18px; z-index: 70; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--f-cuerpo); color: #12022a; background: var(--lima); border: 0;
  box-shadow: 0 0 10px var(--lima), 0 0 26px rgba(182, 255, 59, .5); animation: latido 1.2s ease-in-out infinite; }
.btn-sonido { position: fixed; right: 14px; bottom: 14px; z-index: 70; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--cyan); background: rgba(7, 1, 15, .8); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 0 10px var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .monitos-flotantes .flota { width: 46px; height: 46px; opacity: .55; }
  .f2 { width: 52px !important; height: 52px !important; }
  .cuenta div { min-width: 64px; }
  .asomado { width: 80px; height: 80px; right: 20px; top: 14px; }
  /* lianas, monito colgado y decoraciones flotantes: ver "Celular" al final del archivo */
  .muro-grid .sticker-btn { width: 76px; }
  .muro-grid .estrella-muro { width: 150px; }
  .vigia { width: 54px; height: 54px; }
  .palanca { min-width: 0; width: 100%; }
  .chip { font-size: 11px; letter-spacing: 1px; padding: 7px 14px; }
  /* en celular: los dos avatares arriba y los nombres a todo lo ancho */
  .letrero { flex-wrap: wrap; gap: 14px 34px; }
  .letrero .nombres { order: 2; flex-basis: 100%; }
  .letrero .avatar { width: 92px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Invitación digital (invitacion.php)
   ===================================================================== */
.invitacion { max-width: 640px; margin: 0 auto; padding: 60px 16px 80px; position: relative; z-index: 1; }
.inv-tarjeta { position: relative; padding: 44px clamp(18px, 5vw, 40px) 34px; text-align: center; }
.inv-tarjeta::before { content: ''; position: absolute; inset: 10px; border-radius: 16px; border: 1px dashed rgba(255, 233, 77, .35); pointer-events: none; }
.inv-hola { font-size: 20px; margin: 0 0 4px; color: var(--suave); }
.inv-hola b { color: #fff; }
.inv-fotos { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.inv-fotos .avatar { width: 96px; height: 96px; }
.inv-detalles { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
.inv-detalles div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(7, 1, 15, .5); border: 1px solid rgba(0, 240, 255, .3); }
.inv-detalles .ico { font-size: 24px; line-height: 1.2; }
.inv-detalles small { display: block; font-family: var(--f-arcade); font-size: 11px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
.inv-detalles p { margin: 2px 0 0; color: #fff; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--rosa); color: #fff; font-size: 14px; }
.inv-reto { margin: 24px 0; padding: 22px 18px; border-radius: 18px; border: 3px dashed var(--amarillo); background: rgba(255, 233, 77, .06);
  box-shadow: 0 0 14px rgba(255, 233, 77, .45); }
.inv-reto .reto-titulo { margin-top: 12px; }
.inv-qr { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.inv-qr .qr { width: 170px; padding: 12px; border-radius: 18px; background: rgba(7, 1, 15, .8); border: 2px solid var(--lima); box-shadow: 0 0 14px rgba(182, 255, 59, .5); }
.inv-qr .qr svg { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; }   /* negro sobre blanco: se escanea siempre */
.inv-qr .qr small { display: block; margin-top: 6px; color: var(--lima); font-size: 12px; }
.inv-qr .acciones { display: grid; gap: 10px; min-width: 220px; }
.inv-pie { margin-top: 26px; color: var(--suave); font-size: 14px; }

@media print {
  .escenario, .monitos-flotantes, .btn-sonido, .no-imprimir { display: none !important; }
  body { background: #12022a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invitacion { padding: 0; }
}

/* =====================================================================
   Tema MONITOS NEÓN 🐒
   ===================================================================== */
:where(.sticker) { --c: var(--cyan); display: block; width: 90px; height: 90px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--c); background: #1a0a3c;
  box-shadow: 0 0 8px var(--c), 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); }
.flota.f1 { --c: var(--rosa); } .flota.f2 { --c: var(--amarillo); } .flota.f3 { --c: var(--lima); } .flota.f4 { --c: var(--cyan); }
.avatar img { border-radius: 50%; }
.vigia-izq { --c: var(--lima); } .vigia-der { --c: var(--rosa); }
.asomado { --c: var(--cyan); }
.sticker.triste { width: 140px; height: 140px; margin: 0 auto 6px; --c: #8a7dff; animation: flotar 4s ease-in-out infinite; }
.tarjeta-no { padding-top: 30px; }

/* Plátanos y corazones flotando */
.platano { position: absolute; width: 46px; height: 46px; filter: drop-shadow(0 0 8px rgba(255, 233, 77, .8)); animation: girar-flotar 9s ease-in-out infinite; }
.p1 { left: 18%; top: 72%; } .p2 { right: 18%; top: 44%; animation-delay: -4s; }
.corazon { position: absolute; width: 22px; height: 20px; color: var(--rosa); filter: drop-shadow(0 0 6px var(--rosa)); animation: latir 1.6s ease-in-out infinite; }
.c1 { left: 30%; top: 18%; } .c2 { right: 30%; top: 80%; animation-delay: -.5s; color: #ff7ad9; } .c3 { left: 8%; top: 40%; animation-delay: -1s; }
@keyframes girar-flotar { 0%, 100% { transform: translateY(0) rotate(-15deg); } 50% { transform: translateY(-30px) rotate(20deg); } }
@keyframes latir { 0%, 100% { transform: scale(.85); } 15% { transform: scale(1.15); } 30% { transform: scale(.95); } 45% { transform: scale(1.1); } }

/* Lianas de la selva neón */
.lianas { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; z-index: 0; }
.liana { position: absolute; top: -6px; transform-origin: top center; animation: mecer 5s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(182, 255, 59, .7)); }
.liana svg { display: block; }
.l1 { left: 2%; } .l2 { left: 15%; animation-delay: -1.2s; } .l3 { right: 26%; animation-delay: -2.4s; }
.l4 { right: 13%; animation-delay: -.6s; } .l5 { right: 1%; animation-delay: -3s; }
@keyframes mecer { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.colgado { position: absolute; top: -12px; right: 18%; width: 110px !important; height: 165px !important; transform-origin: 33% 4%;
  animation: columpio 3.2s ease-in-out infinite; }
@keyframes columpio { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.hero > :not(.lianas) { position: relative; z-index: 1; }
.hero, .muro { overflow-x: clip; }

/* Muro de monitos */
.muro { padding: 0 16px 80px; text-align: center; }
.ayuda-muro { margin: -10px 0 22px; color: var(--suave); }
.muro-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; max-width: 980px; margin: 0 auto; }
.sticker-btn { --c: var(--cyan); width: clamp(76px, 18vw, 120px); padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(var(--giro)); animation: flotar-suave 5s var(--d, 0s) ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.sticker-btn .sticker { width: 100%; height: auto; aspect-ratio: 1; --c: inherit; transition: transform .2s; }
.sticker-btn:nth-child(4n+1) { --c: var(--rosa); } .sticker-btn:nth-child(4n+2) { --c: var(--lima); }
.sticker-btn:nth-child(4n+3) { --c: var(--amarillo); } .sticker-btn:nth-child(4n) { --c: var(--cyan); }
.sticker-btn:hover .sticker { transform: scale(1.12) rotate(-6deg); }
.sticker-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 50%; }
.sticker-btn.brinco .sticker { animation: brinco-mono .6s cubic-bezier(.3, 1.8, .5, 1); }
.estrella-muro { --c: var(--rosa) !important; width: clamp(150px, 34vw, 220px); }
@keyframes flotar-suave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes brinco-mono { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(12deg); } 60% { transform: scale(.9) rotate(-10deg); } 100% { transform: scale(1); } }

.pie-monos { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 6px; }
.pie-monos .monito { margin: 0; }
.corazon-pie { width: 22px; height: 20px; color: var(--rosa); filter: drop-shadow(0 0 6px var(--rosa)); animation: latir 1.6s ease-in-out infinite; }

/* Pantalla de entrada (cuando el navegador bloquea la música automática) */
.entrada { position: fixed; inset: 0; z-index: 90; display: flex; padding: 16px; overflow-y: auto;
  background: radial-gradient(circle at 50% 38%, rgb(56, 10, 100), rgb(7, 1, 15) 72%);
  animation: aparecer .4s ease; transition: opacity .45s ease, transform .45s ease; }
.entrada.saliendo { opacity: 0; transform: scale(1.06); pointer-events: none; }
.entrada-btn { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 520px; width: 100%; margin: auto;
  background: none; border: 0; color: var(--texto); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.entrada-foto { width: clamp(150px, 42vw, 200px); height: auto; aspect-ratio: 1; --c: var(--rosa); animation: latido 1.6s ease-in-out infinite; }
.entrada-nombres { font-family: var(--f-neon); font-size: clamp(54px, 15vw, 96px); line-height: .95; display: flex; flex-direction: column; align-items: center; }
.entrada-nombres .amp { font-family: var(--f-arcade); font-size: .4em; line-height: 1.2; }
.entrada-texto { font-size: 19px; color: var(--suave); }
.entrada-btn .btn { margin-top: 6px; animation: latido 1.1s ease-in-out infinite; }
.entrada-nota { font-size: 13px; color: var(--suave); letter-spacing: 1px; }
.entrada-btn:focus-visible .btn { outline: 3px solid #fff; outline-offset: 3px; }

/* =====================================================================
   Celular: que nada choque con el texto
   - lianas y monito colgado solo en las orillas, arriba del letrero
   - decoraciones flotantes pegadas a los bordes (medio asomadas)
   ===================================================================== */
@media (max-width: 640px) {
  .hero { padding-top: 128px; gap: 16px; }

  .lianas .l2, .lianas .l3, .lianas .l4 { display: none; }
  .liana svg { transform: scale(.8); transform-origin: top center; }
  .l1 { left: 0; } .l5 { right: 0; }
  .colgado { width: 64px !important; height: 96px !important; right: 16%; top: -10px; }

  .chip { max-width: min(270px, calc(100% - 104px)); font-size: 10.5px; line-height: 1.5; padding: 7px 14px;
    border-radius: 18px; text-wrap: balance; }

  .monitos-flotantes .flota { width: 46px !important; height: 46px !important; opacity: .5; }
  .flota.f1 { left: -16px; right: auto; top: 34%; bottom: auto; }
  .flota.f2 { right: -16px; left: auto; top: 56%; bottom: auto; }
  .flota.f3 { left: -16px; right: auto; top: auto; bottom: 13%; }
  .flota.f4 { right: -16px; left: auto; top: auto; bottom: 27%; }
  .platano { width: 34px; height: 34px; opacity: .8; }
  .p1 { left: 1%; top: 64%; } .p2 { right: 1%; left: auto; top: 43%; }
  .c1 { left: 3%; top: 26%; } .c2 { right: 3%; left: auto; top: 83%; } .c3 { left: 2%; top: 51%; }
  .b1 { left: 14%; top: 7%; } .b2 { right: 10%; top: 30%; }

  .letrero { margin-top: 18px; }   /* los avatares flotan 26px hacia arriba: que no toquen el chip */

  /* 🔊 arriba a la derecha: abajo tapaba la cuenta regresiva, el botón de confirmar y el formulario */
  .btn-sonido { width: 40px; height: 40px; font-size: 17px; right: 10px; bottom: auto; top: calc(10px + env(safe-area-inset-top)); }

  .vigia-izq { left: -4px; } .vigia-der { right: -4px; }

  /* deja lugar a los monitos que saltan arriba de la tarjeta del reto */
  .reto-tarjeta { margin-top: 70px; padding-top: 70px; }
}

@media (max-width: 380px) {
  .hero { padding-left: 12px; padding-right: 12px; }
  .cuenta { gap: 8px; width: 100%; max-width: 320px; flex-wrap: nowrap; }
  .cuenta div { min-width: 0; flex: 1 1 0; padding: 8px 4px; }
  .cuenta b { font-size: 24px; }
  .cuenta span { font-size: 10px; letter-spacing: 1px; }
  .letrero .avatar { width: 84px; height: 84px; }
  .mensaje { font-size: 16px; }
}
