/* Navidad (diciembre hasta el 6 de enero, ver includes/navidad.php): solo adorno encima de las
   pantallas de siempre. Luces arriba y nieve suave; nada recibe clics ni tapa contenido. */
:root { --nv-copo: rgba(255, 255, 255, .95); --nv-sombra: rgba(80, 90, 120, .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nv-copo: rgba(255, 255, 255, .7); --nv-sombra: transparent; } }
:root[data-theme="dark"] { --nv-copo: rgba(255, 255, 255, .7); --nv-sombra: transparent; }

.nv-luces { position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 9998; pointer-events: none; overflow: hidden; }
.nv-luces svg { position: absolute; inset: 0; width: 100%; height: 26px; }
.nv-luces .nv-focos { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.nv-foco { width: 8px; height: 12px; border-radius: 50% 50% 45% 45%; margin-top: 8px; position: relative; animation: nv-brillo 2.4s ease-in-out infinite; }
.nv-foco:nth-child(odd) { margin-top: 11px; }
.nv-foco::before { content: ''; position: absolute; top: -3px; left: 2px; width: 4px; height: 4px; border-radius: 1px; background: #5b5f6e; }
.nv-foco:nth-child(4n+1) { background: #ff4b2b; box-shadow: 0 0 8px rgba(255, 75, 43, .8); }
.nv-foco:nth-child(4n+2) { background: #f2c45a; box-shadow: 0 0 8px rgba(242, 196, 90, .8); animation-delay: .6s; }
.nv-foco:nth-child(4n+3) { background: #2fbf7a; box-shadow: 0 0 8px rgba(47, 191, 122, .8); animation-delay: 1.2s; }
.nv-foco:nth-child(4n)   { background: #ffffff; box-shadow: 0 0 8px rgba(160, 200, 255, .9); animation-delay: 1.8s; }
@keyframes nv-brillo { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.nv-nieve { position: fixed; inset: 0; z-index: 9997; pointer-events: none; }

/* Esferas colgando de la guirnalda, en las orillas; se mecen un poquito. */
.nv-esfera { position: fixed; top: 6px; width: 22px; height: 50px; z-index: 9998; pointer-events: none; transform-origin: 50% 0; animation: nv-mecer 3.6s ease-in-out infinite; }
.nv-esfera svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.nv-esfera-izq { left: 10px; }
.nv-esfera-der { right: 12px; animation-delay: -1.2s; }
.nv-esfera-der2 { right: 40px; top: 4px; height: 38px; width: 17px; animation-delay: -2.4s; }
@media (max-width: 700px) { .nv-esfera-izq { display: none; } }
@keyframes nv-mecer { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Nieve acumulada sobre las tarjetas. */
.nv-tapa { position: absolute; top: -5px; left: 14px; right: 14px; height: 12px; pointer-events: none; z-index: 2; filter: drop-shadow(0 1px 1px rgba(80, 90, 120, .25)); }
.nv-tapa svg { display: block; width: 100%; height: 100%; }

/* Ramita de acebo en la esquina de la tarjeta principal (login y entrenamiento del cliente). */
.nv-acebo { position: absolute; top: -16px; left: -12px; width: 58px; height: 40px; pointer-events: none; z-index: 3; transform: rotate(-14deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.nv-acebo svg { display: block; width: 100%; height: 100%; }

/* Portada: suelo nevado con pinos y regalos, y estrellas en el cielo del hero. */
.nv-suelo { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 0; }
.nv-suelo-nieve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38px; }
.nv-suelo-izq, .nv-suelo-der { position: absolute; bottom: 16px; width: 220px; height: 120px; }
.nv-suelo-izq { left: 0; }
.nv-suelo-der { right: 0; }
.nv-estrellas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nv-estrellas i { position: absolute; width: 10px; height: 10px; animation: nv-titilar 3s ease-in-out infinite;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(#fff, #fff) center / 1px 70% no-repeat, linear-gradient(90deg, #fff, #fff) center / 70% 1px no-repeat; border-radius: 50%; box-shadow: 0 0 6px rgba(255, 255, 255, .5); }
@keyframes nv-titilar { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@media (max-width: 700px) {
  .nv-suelo { height: 60px; }
  .nv-suelo-izq, .nv-suelo-der { width: 96px; height: 52px; bottom: 10px; }
  .nv-suelo-nieve { height: 22px; }
  .nv-estrellas i:nth-child(n+11) { display: none; }
  .nv-acebo { width: 46px; height: 32px; top: -13px; left: -8px; }
}

/* Trineo de Santa: silueta que cruza arriba de vez en cuando. */
:root { --nv-trineo: rgba(201, 150, 52, .85); }
.nv-trineo { position: fixed; top: 60px; left: 100%; width: 170px; z-index: 9997; pointer-events: none; color: var(--nv-trineo); opacity: 0; }
.nv-trineo svg { width: 100%; height: auto; display: block; }
.nv-trineo.nv-volando { animation: nv-volar 16s linear forwards; }
.nv-trineo.nv-quieto { left: 58%; opacity: 1; }
@keyframes nv-volar {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(calc(-50vw - 85px), 18px); }
  94% { opacity: 1; }
  100% { transform: translate(calc(-100vw - 190px), 0); opacity: 0; }
}

/* Gorrito de Santa sobre el logo (portada y menú del staff). */
.nv-gorro { position: relative; display: inline-block; }
.nv-gorro::after { content: ''; position: absolute; width: 20px; height: 16px; top: -11px; left: -7px; transform: rotate(-18deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M2 15 C5 4, 12 1, 19 6 L15 9 C12 7, 8 9, 7 15 Z' fill='%23ff4b2b'/%3E%3Crect x='0' y='13.5' width='10' height='4' rx='2' fill='%23fff'/%3E%3Ccircle cx='19.5' cy='6.5' r='2.4' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain; }

@media (prefers-reduced-motion: reduce) { .nv-foco, .nv-esfera, .nv-estrellas i { animation: none; } .nv-nieve, .nv-trineo { display: none; } }
@media print { .nv-luces, .nv-nieve, .nv-esfera, .nv-trineo, .nv-tapa, .nv-acebo, .nv-suelo, .nv-estrellas { display: none; } }

/* ---- Más adornos (corona, foquitos del login, bastón, muñeco, medias, brillo, chispas, fuegos) ---- */

/* Corona navideña colgando arriba del login. */
.nv-corona { position: absolute; top: -58px; left: 50%; width: 64px; height: 74px; margin-left: -32px; pointer-events: none; z-index: 3; transform-origin: 50% 0; animation: nv-mecer 4.2s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.nv-corona svg { width: 100%; height: 100%; display: block; }

/* Foquitos alrededor del borde del login que se van prendiendo uno tras otro. */
.nv-marco-luces { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.nv-marco-luces i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #f2c45a; box-shadow: 0 0 6px 1px rgba(242, 196, 90, .9); animation: nv-persecucion 2.4s linear infinite; opacity: .35; }
.nv-marco-luces i:nth-child(3n+1) { background: #ff4b2b; box-shadow: 0 0 6px 1px rgba(255, 75, 43, .9); }
.nv-marco-luces i:nth-child(3n+2) { background: #2fbf7a; box-shadow: 0 0 6px 1px rgba(47, 191, 122, .9); }
@keyframes nv-persecucion { 0%, 100% { opacity: .35; transform: scale(.85); } 10% { opacity: 1; transform: scale(1.2); } 25% { opacity: .35; transform: scale(.85); } }

/* Botón "Ingresar": rayas de bastón de caramelo al pasar el mouse (o al tocarlo). */
.nv-caramelo { transition: background-position .6s; }
.nv-caramelo:hover, .nv-caramelo:active { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 10px, transparent 10px 22px); background-size: 200% 100%; animation: nv-rayas 1.2s linear infinite; }
@keyframes nv-rayas { to { background-position: -62px 0; } }

/* Muñeco de nieve junto a los pinos de la izquierda de la portada. */
.nv-muneco { position: absolute; bottom: 14px; left: 214px; width: 60px; height: 78px; }
.nv-muneco svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }

/* Título de la portada: "tu progreso," con escarcha y "tu gimnasio." como bastón de caramelo. */
.lp-hero h1.nv-titulo { position: relative; background: linear-gradient(180deg, #ffffff 55%, #d6e9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(190, 220, 255, .25)); }
.lp-hero h1 span.nv-brillo-titulo { background: repeating-linear-gradient(-45deg, var(--ember) 0 16px, #ffd6cc 16px 22px) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nv-caramelo-titulo 6s linear infinite; }
@keyframes nv-caramelo-titulo { to { background-position: -100% 0; } }
.nv-titulo-gorro { position: absolute; top: -.3em; left: -.16em; width: .62em; height: .5em; transform: rotate(-20deg); pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.nv-titulo-gorro svg, .nv-titulo-acebo svg { display: block; width: 100%; height: 100%; }
.nv-titulo-acebo { display: inline-block; width: .55em; height: .38em; margin-left: .08em; vertical-align: .55em; transform: rotate(12deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }

/* Medias navideñas colgando de la guirnalda (solo pantallas anchas). */
.nv-media { position: fixed; top: 6px; width: 18px; height: 26px; z-index: 9998; pointer-events: none; transform-origin: 40% 0; animation: nv-mecer 3.2s ease-in-out infinite; display: none; }
.nv-media svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.nv-media-1 { left: 30%; }
.nv-media-2 { left: 78%; animation-delay: -1.6s; }
@media (min-width: 1100px) { .nv-media { display: block; } }

/* Copitos que salen al tocar un botón. */
.nv-chispa { position: fixed; z-index: 10000; pointer-events: none; color: #bfe0ff; text-shadow: 0 0 4px rgba(120, 170, 255, .8); transform: translate(-50%, -50%); animation: nv-chispa .9s ease-out forwards; }
@keyframes nv-chispa { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(120deg); opacity: 0; } }

/* Nieve que se va juntando al fondo de la pantalla (máximo 14 px, solo pantallas anchas). */
.nv-monton { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 9996; pointer-events: none; animation: nv-juntar 150s ease-out forwards; filter: drop-shadow(0 -1px 2px rgba(80, 90, 120, .2)); }
.nv-monton svg { width: 100%; height: 100%; display: block; }
@keyframes nv-juntar { to { height: 14px; } }

/* Fuegos artificiales (31 de diciembre y 1 de enero) en el cielo de la portada. */
.nv-fuegos { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; }

/* Avisos de temporada en el panel del cliente: días que cerramos, felices fiestas y "Empieza el 2027 más fuerte". */
.v3-avisos .nv-aviso-cliente { background: linear-gradient(100deg, rgba(23, 112, 74, .14), rgba(242, 196, 90, .14)); color: var(--text); border: 1px solid rgba(47, 160, 100, .35); }

@media (max-width: 700px) {
  .nv-corona { width: 40px; height: 46px; left: auto; right: 22px; margin-left: 0; top: -34px; }
  .nv-muneco { left: 90px; width: 38px; height: 50px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .nv-corona, .nv-media, .nv-marco-luces i, .nv-brillo-titulo, .nv-caramelo:hover { animation: none !important; } .nv-monton { display: none; } }
@media print { .nv-corona, .nv-marco-luces, .nv-muneco, .nv-media, .nv-monton, .nv-fuegos { display: none; } }

/* ---- Portada: sección "Cierra el año fuerte" debajo del login ---- */
.nv-seccion { background: var(--bg); padding: 64px clamp(16px, 4vw, 56px) 72px; position: relative; }
.nv-seccion-inner { max-width: 1280px; margin: 0 auto; }
.nv-seccion-eyebrow { color: #17704a; font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.nv-seccion-titulo { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: .02em; margin: 8px 0 30px; color: var(--text); }
.nv-tarjetas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.nv-tarjeta { position: relative; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.nv-tarjeta h3 { margin: 16px 0 10px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.25; letter-spacing: 0; text-transform: none; color: inherit; }
.nv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.nv-chip-oro { background: rgba(242, 196, 90, .16); color: #b07a0c; border: 1px solid rgba(242, 196, 90, .5); }
.nv-chip-pino { background: rgba(23, 112, 74, .12); color: #17704a; }
.nv-tarjeta-fiestas { background: linear-gradient(135deg, #1b5e3f, #0f3d29); color: #fff; border: 0; }
.nv-tarjeta-fiestas .nv-chip-oro { color: #f2c45a; }
.nv-tarjeta-fiestas h3 { font-size: 1.7rem; }
.nv-tarjeta-fiestas p { color: rgba(255, 255, 255, .85); line-height: 1.6; margin: 0 0 22px; }
.nv-firma { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: .03em; color: #f2c45a; }
.nv-tarjeta-copo { position: absolute; right: -28px; top: -28px; width: 170px; height: 170px; opacity: .12; }
.nv-cuentas { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; margin: 6px 0 16px; }
.nv-cuenta { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nv-cuenta-icono { font-size: 1.4rem; }
.nv-cuenta b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 3rem; line-height: 1; color: var(--ember); }
.nv-cuenta span:last-child { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.nv-cuenta-pie { margin: 0; font-weight: 700; color: #17704a; }
.nv-tarjeta-horario ul { list-style: none; margin: 0; padding: 0; }
.nv-tarjeta-horario li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.nv-tarjeta-horario li:last-child { border-bottom: 0; }
.nv-tarjeta-horario li b { text-align: right; white-space: nowrap; line-height: 1.5; }
.nv-cerrado { color: var(--ember); }
.nv-tarjeta-horario li.nv-pasado { opacity: .45; text-decoration: line-through; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nv-seccion-eyebrow, :root:not([data-theme="light"]) .nv-cuenta-pie, :root:not([data-theme="light"]) .nv-chip-pino { color: #3fcf8e; } :root:not([data-theme="light"]) .nv-chip-oro { color: #f2c45a; } }
:root[data-theme="dark"] .nv-seccion-eyebrow, :root[data-theme="dark"] .nv-cuenta-pie, :root[data-theme="dark"] .nv-chip-pino { color: #3fcf8e; }
:root[data-theme="dark"] .nv-chip-oro { color: #f2c45a; }
@media (max-width: 900px) { .nv-tarjetas { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 700px) { .nv-seccion { padding: 44px 16px 50px; } .nv-tarjeta { padding: 22px; } .nv-seccion-titulo { margin-bottom: 22px; } }

/* Reloj de la cuenta regresiva (horas, minutos y segundos que van bajando). */
.nv-reloj { margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--ember-rgb), .1); color: var(--ember); font: 700 .82rem 'Roboto Mono', ui-monospace, monospace; letter-spacing: .02em; white-space: nowrap; }
.nv-reloj i { font-style: normal; display: inline-block; min-width: 1.3em; text-align: right; }
