/* ═══════════════════════════════════════════════════════════════════════
   NAVIDAD · "Noche dorada" (Sergi, 1-dic-2026) · assets/js/navidad.js
   Todo cuelga de html.nv-1, que solo pone el script de <head> del 1-dic al
   7-ene (functions.php, mb_navidad_head). Sin esa clase, este archivo no hace nada.
   ═══════════════════════════════════════════════════════════════════════ */

/* Nieve: encima del contenido y de la cabecera (200) y del menú (300), por debajo de
   WhatsApp (500), reseñas, cookies y ventanas (9997+). No recibe clics. */
.nv-1 .nv-nieve { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 400; }

/* Barra de arriba. Hasta que navidad.js cambia el texto, el de invierno no se ve (así
   no parpadea); si el script no llegara a cargar, vuelve a verse a los 3 s. */
.nv-1 .mb-wbar { background: linear-gradient(90deg, #120d04, #3a2a0e 50%, #120d04) !important; color: #F5E6C4 !important; border-bottom: 1px solid rgba(240,194,110,.35); }
.nv-1 .mb-wbar:not(.nv-bar) > * { opacity: 0; animation: nv-aparece 0s 3s forwards; }
.nv-1 .nv-bar .mb-wbar__t, .nv-1 .nv-bar__ico { color: #F0C26E !important; }
.nv-bar__ico { font-size: 14px; line-height: 1; margin-right: 2px; }
@keyframes nv-aparece { to { opacity: 1; } }

/* Guirnalda de luces bajo la cabecera */
.nv-1 .nv-luces { position: absolute; left: 0; right: 0; top: 100%; height: 34px; overflow: hidden; pointer-events: none; z-index: 2; }
.nv-1 .nv-luces svg { display: block; filter: drop-shadow(0 0 4px rgba(240,194,110,.8)); }
.nv-1 .nv-luces .nv-b { animation: nv-tw 2.6s ease-in-out infinite; }
@keyframes nv-tw { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Frase de la portada (va en hero-home.php, oculta fuera de Navidad) */
.nv-pill { display: none; }
.nv-1 .nv-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 15px; border-radius: 99px; text-decoration: none;
  font: 700 11px/1.2 var(--font-body, Inter, sans-serif); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(240,194,110,.12); border: 1px solid rgba(240,194,110,.55); color: #F0C26E; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 768px) { .nv-1 .nv-pill--hero { margin-top: 48px; } }
.nv-1 .hero__title-accent { background: linear-gradient(100deg, #D6A04F 15%, #FFF4D6 45%, #F0C26E 60%, #D6A04F 85%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: nv-oro 5s linear infinite; }
@keyframes nv-oro { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.nv-1 .nv-estrella { position: absolute; z-index: 1; right: 7%; top: 21%; width: 70px; height: 70px; pointer-events: none; opacity: .85;
  filter: drop-shadow(0 0 18px rgba(240,194,110,.9)); animation: nv-tw 4s ease-in-out infinite; }
.nv-1 .nv-estrella svg { width: 100%; height: 100%; display: block; }

/* Botones: un latido de luz. En móvil/táctil no (animación infinita repintando: ver
   la nota de .tour-card__info en main.css). */
.nv-1 .btn--primary { animation: nv-latido 2.8s ease-in-out infinite; }
@keyframes nv-latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,194,110,0), 0 8px 30px rgba(240,194,110,.25); } 50% { box-shadow: 0 0 0 6px rgba(240,194,110,.18), 0 8px 34px rgba(240,194,110,.45); } }
@media (hover: none), (pointer: coarse) { .nv-1 .btn--primary { animation: none; } }
.nv-1 .section-header__eyebrow::before, .nv-1 .mb-reviews__eyebrow::before, .nv-1 .mb-gallery__eyebrow::before { content: "✦ "; color: #F0C26E; }

/* Tarjetas de experiencias */
.nv-1 .nv-card { position: relative; }
.nv-1 .nv-dot { position: absolute; z-index: 3; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(240,194,110,.6); pointer-events: none; }
.nv-1 .nv-tag { position: absolute; z-index: 6; top: 14px; right: 14px; padding: 6px 10px; border-radius: 99px; font: 700 10.5px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: .08em; text-transform: uppercase; color: #0a0a0a; background: linear-gradient(100deg, #D6A04F, #FFF4D6 50%, #F0C26E); box-shadow: 0 4px 16px rgba(240,194,110,.4); pointer-events: none; }
.nv-1 .tour-card__gift.nv-gift { background: var(--color-accent, #F0C26E) !important; color: #0a0a0a !important; border-color: var(--color-accent, #F0C26E) !important; }
.nv-1 .tour-card__gift.nv-gift .mb-gift-tag { background: #0a0a0a; color: var(--color-accent, #F0C26E); }

/* Bloque de tarjeta regalo */
.nv-1 .nv-gc .gift-card__inner { box-shadow: 0 0 0 1px rgba(240,194,110,.55), 0 0 60px rgba(240,194,110,.22); border-radius: 24px; }
.nv-1 .nv-pill--gc { margin-bottom: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nv-1 .nv-gc__nota { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(245,245,240,.75); }
.nv-1 .nv-gc__nota b { color: var(--color-accent, #F0C26E); }

/* Aviso de regalo encima del asistente de /reservar/ (va en page-reservar.php) */
.nv-reserva { display: none; }
.nv-1 .nv-reserva { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 0 0 12px; padding: 13px 16px; border-radius: 16px;
  text-decoration: none; color: #F5F5F0; font-size: 13.5px; line-height: 1.45;
  background: linear-gradient(100deg, rgba(240,194,110,.16), rgba(240,194,110,.05)); border: 1px solid rgba(240,194,110,.45); }
.nv-1 .nv-reserva__ico { font-size: 22px; color: #F0C26E; }
.nv-1 .nv-reserva b { color: var(--color-accent, #F0C26E); }
.nv-1 .nv-reserva__ir { font-style: normal; color: var(--color-accent, #F0C26E); font-weight: 700; }

/* Pie: felices fiestas */
.nv-1 .nv-pie { position: relative; z-index: 1; pointer-events: none; padding: 26px 16px 22px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(240,194,110,.06)); border-top: 1px solid rgba(240,194,110,.25); }
.nv-1 .nv-pie p { margin: 0; font-family: var(--font-display, Anton, sans-serif); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: #F0C26E; }
.nv-1 .nv-pie p span { color: #F5F5F0; }

@media (prefers-reduced-motion: reduce) {
  .nv-1 .nv-luces .nv-b, .nv-1 .hero__title-accent, .nv-1 .btn--primary, .nv-1 .nv-estrella { animation: none !important; }
}
