/* 🎄 TEMA NAVIDEÑO para la pantalla de acceso (`public/index.html`).
   💬 Alexis, 2026-11-25: «quiero toda la página para poner en fechas navideñas».

   Lo enciende `js/tema-navidad.js` poniendo la clase `navidad` en <html>: TODO
   aquí cuelga de esa clase, así que la hoja se puede cargar siempre y el resto
   del año no cambia nada. Es la misma receta que `tema-muertos.css`.

   🔴 LAS CAPAS DEL LOGIN (frontend/CLAUDE.md, regla 4-bis) SIGUEN MANDANDO:
      todo lo decorativo va con `pointer-events:none` y `z-index:0` — por DETRÁS
      de la tarjeta (1) y del logotipo (2). Aquí no hay NINGUNA pieza pulsable.
   🔴 Si tocas esta hoja, sube el `?v=` del <link> en index.html: el service
      worker sirve /css viejo una vez. */

/* ===================== EL CIELO ===================== */
.nv-op1 body {
  background:
    radial-gradient(ellipse 70% 40% at 78% 8%, rgba(120, 200, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 35% at 18% 14%, rgba(94, 224, 160, 0.12), transparent 70%),
    radial-gradient(circle at 50% 0%, #1d4f8c 0%, #0b2347 45%, #040c1c 100%);
}
.nv-op1 body::before { opacity: 0.06; }

/* Estrellas que titilan (puntos de fondo, sin imagen) */
.nv-op1 .nv-estrellas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}
.nv-op1 .nv-estrella {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: nvTitilar 3s ease-in-out infinite;
}
@keyframes nvTitilar {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* ===================== LA NIEVE (lienzo) ===================== */
.nv-op1 .nv-nieve {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ===================== LA GUIRNALDA DE LUCES ===================== */
.nv-op1 .nv-guirnalda {
  position: fixed; top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 0; pointer-events: none;
}
.nv-op1 .nv-guirnalda svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nv-op1 .nv-foco { animation: nvParpadeo 2.4s ease-in-out infinite; }
.nv-op1 .nv-foco--b { animation-delay: -0.8s; }
.nv-op1 .nv-foco--c { animation-delay: -1.6s; }
@keyframes nvParpadeo {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ===================== EL PAISAJE: lomas, pinos y el camión ===================== */
.nv-op1 .nv-paisaje {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 210px;
  z-index: 0; pointer-events: none;
}
.nv-op1 .nv-paisaje svg.nv-lomas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-op1 .nv-camion {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 300px;
  animation: nvRodar 38s linear infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}
.nv-op1 .nv-camion svg { width: 100%; height: auto; display: block; overflow: visible; }
@keyframes nvRodar {
  from { transform: translateX(-340px); }
  to   { transform: translateX(calc(100vw + 40px)); }
}
.nv-op1 .nv-camion .nv-rueda { transform-box: fill-box; transform-origin: center; animation: nvGirar 0.9s linear infinite; }
@keyframes nvGirar { to { transform: rotate(360deg); } }

/* ===================== LA TARJETA ===================== */
.nv-op1 .container {
  overflow: visible;                       /* deja asomar la nieve del borde */
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 209, 102, 0.10);
}
/* 🔴 Con `overflow:visible` la foto ya no se recorta sola con el radio de la
   tarjeta: se lo damos a ella. */
.nv-op1 .image-panel { border-radius: 0 15px 15px 0; overflow: hidden; }

/* La nieve acumulada encima de la tarjeta */
.nv-op1 .nv-tapa {
  position: absolute;
  left: -6px; right: -6px; top: -13px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 20, 60, 0.25));
}
.nv-op1 .nv-tapa svg { width: 100%; height: 100%; display: block; }

/* El moño de la esquina */
.nv-op1 .nv-mono {
  position: absolute;
  top: -30px; left: -26px;
  width: 70px; height: 70px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.nv-op1 .nv-mono svg { width: 100%; height: 100%; display: block; }

.nv-op1 .login-panel input:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35);
}
.nv-op1 .login-panel button[type="submit"] {
  background: linear-gradient(135deg, #c8102e, #e63946);
  font-weight: 700;
  box-shadow: 0 10px 20px -10px rgba(200, 16, 46, 0.9);
}
.nv-op1 .login-panel button[type="submit"]:hover { filter: brightness(1.08); }

/* ===================== TELÉFONO ===================== */
@media (max-width: 760px) {
  .nv-op1 .nv-paisaje { height: 110px; }
  .nv-op1 .nv-camion { display: none; }
  .nv-op1 .nv-mono { width: 52px; height: 52px; top: -22px; left: -14px; }
  .nv-op1 .image-panel { border-radius: 12px 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-op1 .nv-estrella, .nv-op1 .nv-foco, .nv-op1 .nv-camion, .nv-op1 .nv-rueda { animation: none; }
  .nv-op1 .nv-camion { left: 8vw; }
}

/* =====================================================================
   🥂 OPCIÓN 2 — GALA DE INVIERNO (`/?tema=navidad2`)
   Verde pino, oro champán y marfil. Una sola animación protagonista: las
   tres esferas que cuelgan en el panel derecho (caen al cargar, se mecen y
   siguen al puntero con un resorte). Todo cuelga de `.nv-op2`.
   Curvas propias (Emil Kowalski): ease-out fuerte para entradas, nada de
   ease-in; sólo se animan transform, opacity y filter.
   ===================================================================== */
.nv-op2 {
  --n2-pino: #0d2c21;
  --n2-pino-hondo: #051510;
  --n2-oro: #e2c27a;
  --n2-oro-hondo: #b8893a;
  --n2-marfil: #fbf8f1;
  --n2-tinta: #10261d;
  --n2-salida: cubic-bezier(0.23, 1, 0.32, 1);
}
.nv-op2 body {
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(226, 194, 122, 0.16), transparent 70%),
    radial-gradient(circle at 50% 40%, #0f3326 0%, var(--n2-pino) 40%, var(--n2-pino-hondo) 100%);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
/* papel de regalo: un rayado fino en oro, casi invisible */
.nv-op2 body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(226, 194, 122, 0.035) 0 1px, transparent 1px 22px);
}
.nv-op2 body::before { opacity: 0.05; }
.nv-op2 ::selection { background: rgba(226, 194, 122, 0.45); color: var(--n2-tinta); }

.nv-op2 .n2-brillos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- la tarjeta ---------- */
.nv-op2 .container {
  background: var(--n2-marfil);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(226, 194, 122, 0.55);
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 40px 80px -24px rgba(0, 0, 0, 0.75);
}
.nv-op2 .login-panel { padding: 56px 52px; }
.nv-op2 .login-panel h2 {
  font-family: 'Bodoni Moda', Didot, Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--n2-tinta);
  text-shadow: none;
  margin-bottom: 28px;
}
.nv-op2 .login-panel input {
  height: 48px;
  background: #fff;
  border: 1px solid #dcd3bf;
  border-radius: 10px;
  color: var(--n2-tinta);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.nv-op2 .login-panel input::placeholder { color: #8b8473; }
.nv-op2 .login-panel input:focus {
  outline: none;
  border-color: var(--n2-oro-hondo);
  box-shadow: 0 0 0 3px rgba(184, 137, 58, 0.22);
}
.nv-op2 .login-panel button[type="submit"] {
  height: 48px;
  background: var(--n2-pino);
  color: #f6ecd2;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-shadow: 0 12px 24px -14px rgba(5, 21, 16, 0.9), inset 0 1px 0 rgba(226, 194, 122, 0.35);
  transition: transform 160ms var(--n2-salida), background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nv-op2 .login-panel button[type="submit"]:hover { background: #164534; }
}
.nv-op2 .login-panel button[type="submit"]:active { transform: scale(0.97); }
.nv-op2 .login-panel button[type="submit"]:focus-visible { outline: 2px solid var(--n2-oro-hondo); outline-offset: 3px; }

/* ---------- el panel derecho: la escena ---------- */
.nv-op2 .image-panel { position: relative; overflow: hidden; border-radius: 0 17px 17px 0; }
.nv-op2 .image-panel > img { visibility: hidden; }
.nv-op2 .n2-escena {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 52% 38%, rgba(226, 194, 122, 0.18), transparent 70%),
    repeating-linear-gradient(135deg, rgba(226, 194, 122, 0.05) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 30%, #143d2e, #071a13 85%);
}
.nv-op2 .n2-barra {
  position: absolute; left: 10%; right: 10%; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--n2-oro) 18%, #f6e3ae 50%, var(--n2-oro) 82%, transparent);
  box-shadow: 0 1px 6px rgba(226, 194, 122, 0.45);
}
.nv-op2 .n2-colgante {
  position: absolute; top: 0;
  margin-left: -50px; width: 100px;
  display: flex; justify-content: center;
  transform-origin: 50% 0;
  will-change: transform;
}
/* la entrada: bajan desde arriba, con desenfoque que se aclara — una sola vez */
.nv-op2 .n2-mecer {
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: n2Mecer 6s ease-in-out infinite;
}
.nv-op2 .n2-colgante > .n2-mecer > * { animation: n2Bajar 1100ms var(--n2-salida) both; animation-delay: var(--n2-retraso); }
.nv-op2 .n2-hilo { width: 1px; background: linear-gradient(to bottom, rgba(226, 194, 122, 0.25), var(--n2-oro)); }
.nv-op2 .n2-colgante svg { display: block; overflow: visible; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45)); }
@keyframes n2Bajar {
  from { transform: translateY(-140px); opacity: 0; filter: blur(6px); }
  to   { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes n2Mecer {
  0%, 100% { transform: rotate(-2.4deg); }
  50%      { transform: rotate(2.4deg); }
}

/* el texto, abajo a la izquierda: entra después de las esferas */
.nv-op2 .n2-texto {
  position: absolute; left: 34px; right: 34px; bottom: 30px;
  color: #f1e3bd;
}
.nv-op2 .n2-titulo {
  margin: 0;
  font-family: 'Bodoni Moda', Didot, Georgia, serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nv-op2 .n2-titulo em { font-style: italic; font-weight: 400; color: var(--n2-oro); }
.nv-op2 .n2-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #c9dbd0;
  max-width: 34ch;
}
.nv-op2 .n2-titulo, .nv-op2 .n2-sub { animation: n2Texto 900ms var(--n2-salida) both; }
.nv-op2 .n2-titulo { animation-delay: 650ms; }
.nv-op2 .n2-sub { animation-delay: 760ms; }
@keyframes n2Texto {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- teléfono ---------- */
@media (max-width: 768px) {
  .nv-op2 .image-panel { height: 230px; border-radius: 12px 12px 0 0; }
  .nv-op2 .login-panel { padding: 32px 24px; }
  .nv-op2 .n2-colgante svg { transform: scale(0.72); transform-origin: 50% 0; }
  .nv-op2 .n2-hilo { max-height: 60px; }
  .nv-op2 .n2-titulo { font-size: 32px; }
  .nv-op2 .n2-sub { display: none; }
  .nv-op2 .n2-texto { left: 22px; bottom: 18px; }
}

/* ---------- reducir movimiento: sin vaivén ni caída, sólo aparecen ---------- */
@media (prefers-reduced-motion: reduce) {
  .nv-op2 .n2-mecer { animation: none; }
  .nv-op2 .n2-colgante > .n2-mecer > *,
  .nv-op2 .n2-titulo, .nv-op2 .n2-sub { animation: n2Aparecer 300ms ease both; }
  @keyframes n2Aparecer { from { opacity: 0; } to { opacity: 1; } }
}
.nv-op2 .login-panel button[type="submit"] { width: 100%; margin-top: 4px; }

/* =====================================================================
   💙 OPCIÓN 3 — NAVIDAD AZUL EUROCENTRO (`/?tema=navidad3`)
   💬 Alexis, 2026-11-25: «sólo mantén los colores azules de EuroCentro,
      pero hazme otro diseño más navideño».
   La paleta es la de la casa (#1b4f72 · #2e86c1 · #5dade2 · el degradado
   del login) más blanco y hielo. Animación protagonista: el árbol de luces
   que se enciende en espiral al entrar. Todo cuelga de `.nv-op3`.
   ===================================================================== */
.nv-op3 {
  --n3-marino: #061a36;
  --n3-azul: #1b4f72;
  --n3-medio: #2e86c1;
  --n3-claro: #5dade2;
  --n3-hielo: #cfe9ff;
  --n3-salida: cubic-bezier(0.23, 1, 0.32, 1);
  --n3-vaiven: cubic-bezier(0.77, 0, 0.175, 1);
}
.nv-op3 body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(93, 173, 226, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(46, 134, 193, 0.25), transparent 70%),
    radial-gradient(circle at 50% 30%, #1d5b99 0%, #0d3466 45%, #040e22 100%);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
.nv-op3 ::selection { background: rgba(93, 173, 226, 0.5); color: #fff; }
.nv-op3 .n3-nieve { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- la tarjeta ---------- */
.nv-op3 .container {
  overflow: visible;
  background: linear-gradient(160deg, rgba(14, 52, 96, 0.82), rgba(6, 26, 54, 0.9));
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(159, 211, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 40px 80px -28px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nv-op3 .login-panel { padding: 64px 52px 52px; }
.nv-op3 .login-panel h2 {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 26px;
}
.nv-op3 .login-panel input {
  height: 48px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #0b2440;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.nv-op3 .login-panel input::placeholder { color: #6b7f96; }
.nv-op3 .login-panel input:focus {
  outline: none;
  border-color: var(--n3-claro);
  box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.35);
}
.nv-op3 .login-panel button[type="submit"] {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  background: linear-gradient(180deg, #3a95d1, var(--n3-medio) 55%, #2276ae);
  color: #fff;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 12px;
  box-shadow: 0 14px 26px -14px rgba(46, 134, 193, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 160ms var(--n3-salida), filter 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nv-op3 .login-panel button[type="submit"]:hover { filter: brightness(1.08); }
}
.nv-op3 .login-panel button[type="submit"]:active { transform: scale(0.97); }
.nv-op3 .login-panel button[type="submit"]:focus-visible { outline: 2px solid var(--n3-hielo); outline-offset: 3px; }

/* ---------- copos colgando del borde de arriba ---------- */
.nv-op3 .n3-colgados { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 2; pointer-events: none; }
.nv-op3 .n3-copo {
  position: absolute; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: n3Mecer 4.6s ease-in-out infinite;
}
.nv-op3 .n3-copo i { display: block; width: 1px; background: linear-gradient(to bottom, rgba(207, 233, 255, 0.15), rgba(207, 233, 255, 0.75)); }
.nv-op3 .n3-copo svg { display: block; filter: drop-shadow(0 0 6px rgba(159, 211, 255, 0.85)); animation: n3Girar 14s linear infinite; }
@keyframes n3Mecer { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes n3Girar { to { transform: rotate(360deg); } }

/* ---------- el panel derecho: el árbol de luces ---------- */
.nv-op3 .image-panel { position: relative; overflow: hidden; border-radius: 0 19px 19px 0; }
.nv-op3 .image-panel > img { visibility: hidden; }
.nv-op3 .n3-escena {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(93, 173, 226, 0.28), transparent 70%),
    radial-gradient(circle at 50% 20%, #134a82 0%, #0a2b55 50%, var(--n3-marino) 100%);
}
.nv-op3 .n3-arbol { position: absolute; left: 0; right: 0; top: 18px; margin: 0 auto; width: 92%; height: 74%; overflow: visible; }

.nv-op3 .n3-cinta {
  stroke-dasharray: 1;
  animation: n3Dibujar 2.4s var(--n3-vaiven) 0.3s both;
  /* el brillo con CSS y no con un filtro SVG: el filtro sobre la cinta aún sin
     dibujar se pintaba como un CUADRO NEGRO en la esquina del dibujo */
  filter: drop-shadow(0 0 2px rgba(159, 211, 255, 0.9));
}
@keyframes n3Dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.nv-op3 .n3-foco {
  opacity: var(--n3-o);
  animation:
    n3Encender 500ms var(--n3-salida) calc(var(--n3-t) + 0.35s) both,
    n3Titilar 2.8s ease-in-out calc(var(--n3-t) + 3s) infinite;
}
@keyframes n3Encender { from { opacity: 0; } to { opacity: var(--n3-o); } }
@keyframes n3Titilar { 0%, 100% { opacity: var(--n3-o); } 50% { opacity: calc(var(--n3-o) * 0.35); } }

.nv-op3 .n3-chispa { animation: n3Chispa 3.2s ease-in-out infinite; }
@keyframes n3Chispa { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }

.nv-op3 .n3-estrella { transform-box: fill-box; transform-origin: center; animation: n3Estrella 900ms var(--n3-salida) 2.5s both; }
@keyframes n3Estrella { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.nv-op3 .n3-destellos { transform-box: fill-box; transform-origin: center; animation: n3Girar 16s linear infinite; }

.nv-op3 .n3-regalo { animation: n3Subir 700ms var(--n3-salida) both; }
/* el brillo de los focos, con CSS: el filtro SVG sobre el grupo con todos los focos
   aún apagados (opacidad 0) se pintaba como un CUADRO NEGRO en la esquina del dibujo */
.nv-op3 .n3-focos { filter: drop-shadow(0 0 2.5px rgba(159, 211, 255, 0.95)); }
/* el retraso de cada regalo va en línea (nth-of-type contaba los otros <g> del dibujo) */
@keyframes n3Subir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.nv-op3 .n3-texto { position: absolute; left: 20px; right: 20px; bottom: 22px; text-align: center; color: #fff; }
.nv-op3 .n3-titulo {
  margin: 0;
  font-family: 'Great Vibes', 'Brush Script MT', cursive;
  font-size: 50px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(159, 211, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.35);
}
.nv-op3 .n3-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--n3-hielo);
}
.nv-op3 .n3-titulo, .nv-op3 .n3-sub { animation: n3Texto 900ms var(--n3-salida) both; }
.nv-op3 .n3-titulo { animation-delay: 2.7s; }
.nv-op3 .n3-sub { animation-delay: 2.85s; }
@keyframes n3Texto { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* ---------- teléfono ---------- */
@media (max-width: 768px) {
  .nv-op3 .image-panel { height: 250px; border-radius: 12px 12px 0 0; }
  .nv-op3 .login-panel { padding: 40px 24px 32px; }
  .nv-op3 .n3-colgados { display: none; }
  .nv-op3 .n3-arbol { height: 68%; top: 10px; }
  .nv-op3 .n3-titulo { font-size: 38px; }
  .nv-op3 .n3-sub { display: none; }
  .nv-op3 .n3-texto { bottom: 14px; }
}

/* ---------- reducir movimiento: todo encendido, sin vaivén ---------- */
@media (prefers-reduced-motion: reduce) {
  .nv-op3 .n3-copo, .nv-op3 .n3-copo svg, .nv-op3 .n3-destellos, .nv-op3 .n3-chispa { animation: none; }
  .nv-op3 .n3-cinta, .nv-op3 .n3-foco, .nv-op3 .n3-estrella, .nv-op3 .n3-regalo,
  .nv-op3 .n3-titulo, .nv-op3 .n3-sub { animation: n3Aparecer 300ms ease both; }
  @keyframes n3Aparecer { from { opacity: 0; } to { opacity: 1; } }
}

/* =====================================================================
   🪅 OPCIÓN 4 — POSADA: EL «ENTRAR» ES UNA PIÑATA (`/?tema=navidad4`)
   💬 Alexis, 2026-11-25. Noche añil con farolitos de papel; el botón de
   enviar se viste de piñata de siete picos y, al enviar, se rompe y suelta
   dulces y confeti (lo pinta `lluviaDeDulces()` en su propio lienzo).
   Todo cuelga de `.nv-op4`.
   ===================================================================== */
.nv-op4 {
  --n4-noche: #140c3a;
  --n4-hondo: #07051a;
  --n4-rosa: #ff2e88;
  --n4-naranja: #ff8a00;
  --n4-amarillo: #ffd400;
  --n4-turquesa: #18c3b5;
  --n4-salida: cubic-bezier(0.23, 1, 0.32, 1);
}
.nv-op4 body {
  background:
    radial-gradient(ellipse 55% 40% at 15% 0%, rgba(255, 46, 136, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 0%, rgba(255, 138, 0, 0.2), transparent 70%),
    radial-gradient(circle at 50% 35%, #2a1a6e 0%, var(--n4-noche) 45%, var(--n4-hondo) 100%);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
.nv-op4 body::before { opacity: 0.06; }
.nv-op4 ::selection { background: rgba(255, 212, 0, 0.5); color: #140c3a; }

/* ---------- farolitos de papel ---------- */
.nv-op4 .n4-faroles {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 0; pointer-events: none;
  display: flex; justify-content: space-around;
  padding: 0 2vw;
}
.nv-op4 .n4-faroles::before {
  content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
}
.nv-op4 .n4-farol {
  position: relative; top: 4px;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: n4Mecer 3.8s ease-in-out infinite;
}
.nv-op4 .n4-farol::before { content: ''; width: 1px; height: 16px; background: rgba(255, 255, 255, 0.45); }
.nv-op4 .n4-farol i {
  display: block; width: 34px; height: 42px;
  border-radius: 46% 46% 46% 46% / 52% 52% 48% 48%;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 45%, #fff6d6 0%, var(--n4-c) 55%, color-mix(in srgb, var(--n4-c) 70%, #000) 100%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--n4-c) 70%, transparent), 0 0 48px color-mix(in srgb, var(--n4-c) 35%, transparent);
  animation: n4Brillar 2.6s ease-in-out infinite;
  animation-delay: inherit;
}
@keyframes n4Mecer { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes n4Brillar { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }

/* ---------- la tarjeta ---------- */
.nv-op4 .container {
  background: linear-gradient(160deg, rgba(42, 26, 110, 0.78), rgba(20, 12, 58, 0.9));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 40px 80px -28px rgba(0, 0, 0, 0.85);
}
.nv-op4 .login-panel { padding: 48px 52px 36px; }
.nv-op4 .login-panel h2 {
  font-family: 'Lilita One', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 24px;
}
.nv-op4 .login-panel input {
  height: 48px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #1c1240;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.nv-op4 .login-panel input::placeholder { color: #7a7196; }
.nv-op4 .login-panel input:focus {
  outline: none;
  border-color: var(--n4-amarillo);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.3);
}

/* ---------- el botón: la piñata ---------- */
.nv-op4 .login-panel button.n4-boton {
  position: relative;
  align-self: center;
  width: 170px; height: 192px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.nv-op4 .n4-cuerda { width: 2px; height: 26px; background: repeating-linear-gradient(180deg, #e9d8a6 0 3px, #b8a06a 3px 6px); }
.nv-op4 .n4-cuerpo {
  position: relative; width: 164px; height: 166px;
  transform-origin: 50% 0;
  animation: n4Columpio 3.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45));
  transition: transform 160ms var(--n4-salida);
}
.nv-op4 .n4-pinata { width: 100%; height: 100%; display: block; overflow: visible; }
.nv-op4 .n4-letrero {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -42%) rotate(-6deg);
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  color: #7b1fa2;
  font-family: 'Lilita One', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
@keyframes n4Columpio { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (hover: hover) and (pointer: fine) {
  .nv-op4 .login-panel button.n4-boton:hover .n4-cuerpo { animation: n4Tiembla 420ms ease-in-out infinite; }
}
@keyframes n4Tiembla { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.nv-op4 .login-panel button.n4-boton:active .n4-cuerpo { animation: none; transform: rotate(14deg) scale(0.95); }
.nv-op4 .login-panel button.n4-boton:focus-visible { outline: 3px solid var(--n4-amarillo); outline-offset: 4px; }
/* rota: el cuerpo desaparece de golpe — sus pedazos ya vuelan en el lienzo */
.nv-op4 .login-panel button.n4-rota .n4-cuerpo { animation: none; opacity: 0; transform: scale(1.15); transition: opacity 90ms ease, transform 90ms ease; }
.nv-op4 .login-panel button.n4-boton:disabled { opacity: 1; }

.nv-op4 .n4-lluvia { position: fixed; inset: 0; z-index: 10001; pointer-events: none; }

/* ---------- el panel derecho ---------- */
.nv-op4 .image-panel { position: relative; overflow: hidden; border-radius: 0 19px 19px 0; }
.nv-op4 .image-panel > img { visibility: hidden; }
.nv-op4 .n4-escena {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(255, 138, 0, 0.25), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 50% 30%, #3b1f8f 0%, #1e1060 55%, #0c0730 100%);
}
.nv-op4 .n4-faroles-panel {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-around;
  padding: 0 8%;
}
.nv-op4 .n4-faroles-panel .n4-farol { top: 0; }
.nv-op4 .n4-faroles-panel .n4-farol::before { height: 34px; }
.nv-op4 .n4-faroles-panel .n4-farol i { width: 44px; height: 54px; }
.nv-op4 .n4-texto { position: absolute; left: 28px; right: 28px; bottom: 34px; text-align: center; }
.nv-op4 .n4-titulo {
  margin: 0;
  font-family: 'Lilita One', 'Segoe UI', system-ui, sans-serif;
  font-size: 58px;
  line-height: 0.95;
  color: var(--n4-amarillo);
  text-shadow: 0 4px 0 #c2185b, 0 10px 22px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}
.nv-op4 .n4-sub {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fde7ff;
}
.nv-op4 .n4-titulo { animation: n4Titulo 800ms var(--n4-salida) 200ms both; }
@keyframes n4Titulo { from { opacity: 0; transform: rotate(-3deg) scale(0.92); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* ---------- teléfono ---------- */
@media (max-width: 768px) {
  .nv-op4 .image-panel { height: 210px; border-radius: 12px 12px 0 0; }
  .nv-op4 .login-panel { padding: 32px 24px 24px; }
  .nv-op4 .n4-titulo { font-size: 40px; }
  .nv-op4 .n4-sub { margin-top: 10px; font-size: 12.5px; }
  .nv-op4 .n4-texto { bottom: 18px; }
  .nv-op4 .n4-faroles-panel .n4-farol i { width: 30px; height: 38px; }
  .nv-op4 .n4-faroles-panel .n4-farol::before { height: 16px; }
}

/* ---------- reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .nv-op4 .n4-farol, .nv-op4 .n4-farol i, .nv-op4 .n4-cuerpo, .nv-op4 .n4-titulo { animation: none; }
}

/* 🍬 OPCIÓN 5 — la 3 con lluvia de dulces: el botón da un «pop» al soltarlos */
.nv-op5 .login-panel button.n5-estalla { animation: n5Pop 320ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes n5Pop { 0% { transform: scale(0.96); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nv-op5 .login-panel button.n5-estalla { animation: none; } }
