/* NAVIDAD en la app del paciente (19-nov-2026). Lo pinta assets/js/portal-navidad.js solo entre sus fechas.
   Quitar este <link> y el <script> lo deshace entero. Sin filtros ni desenfoques: solo transform y opacity. */
#nlNavidad { position: fixed; inset: 0; pointer-events: none; z-index: 85; overflow: hidden; contain: layout paint size; }

/* Guirnalda de luces pegada arriba (bajo la muesca del iPhone) */
.nlnv-gir { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 18px; display: flex; overflow: hidden; }
.nlnv-tramo { flex: none; width: 112px; height: 18px; overflow: visible; }
.nlnv-bom { animation: nlnv-brillo 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.nlnv-g { fill: #4ade80; } .nlnv-t { fill: #5eead4; } .nlnv-w { fill: #fff4d6; } .nlnv-r { fill: #e5484d; }
@keyframes nlnv-brillo { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Copos */
.nlnv-nieve { position: absolute; inset: 0; }
.nlnv-copo {
  position: absolute; top: -40px;
  animation: nlnv-cae linear infinite; will-change: transform; backface-visibility: hidden;
}
.nlnv-cristal {
  display: block; width: 100%; height: 100%; color: #f2f9ff; overflow: visible;
  animation: nlnv-mece ease-in-out infinite alternate; will-change: transform;
}
.nlnv-cristal use { stroke-width: 1.25; }
@keyframes nlnv-cae { to { transform: translate3d(var(--dx, 0px), calc(100vh + 80px), 0); } }
@keyframes nlnv-mece { from { transform: translate3d(-12px, 0, 0) rotate(0deg); } to { transform: translate3d(12px, 0, 0) rotate(var(--g, 180deg)); } }

/* Gorro de Papá Noel sobre la B del logotipo NUTRILAB, en diagonal a la derecha y tapando su esquina de arriba a la derecha (cabecera de cada pestaña y pantalla de carga). Mismo dibujo y proporciones
   que en la web; en em para que crezca con el tamaño de la letra. Va en un ::before, así que no cambia el marcado. */
body.nl-navidad .pt-brand-name,
body.nl-navidad .loader-name { position: relative; display: inline-block; }
body.nl-navidad .pt-brand-name::before,
body.nl-navidad .loader-name::before {
  content: ""; position: absolute; pointer-events: none;
  right: -0.3em; top: -0.66em; width: 1.4em; height: 1.12em;
  transform: rotate(20deg); transform-origin: 70% 90%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M6 23 C9 12 17 4 28 5 C33 5.5 36 9 37 15 C34 12 31 11 28 12 C27 17 30 21 31 24 Z' fill='%23c8343b'/%3E%3Cpath d='M28 5 C33 5.5 36 9 37 15 C34 12 31 11 28 12 Z' fill='%23a2272d'/%3E%3Crect x='3' y='21' width='30' height='8' rx='4' fill='%23f4f4f5'/%3E%3Ccircle cx='37.2' cy='16' r='3.4' fill='%23f4f4f5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-text-fill-color: initial;
}

/* La pantalla de carga separa las letras 0,32 em: el gorro se corre para seguir sobre la B */
body.nl-navidad .loader-name::before { right: -0.62em; }

@media (prefers-reduced-motion: reduce) {
  .nlnv-bom { animation: none; }
}
