/* =====================================================================
   FRANJA NAVIDEÑA · Centre Aral
   La usan la franja de Adviento de la portada (.aviso-banner) y la de
   /adviento/ (.adv-banner): basta con añadirles la clase "franja-navidad".
   Se enlaza DESPUÉS de los demás estilos para que mande sobre ellos.

   - Fondo azul de la web (#0f4a85 → #1a6ab5), más oscuro que el menú
     blanco para que se distinga.
   - ::before → copos de nieve que caen despacio (patrón que se repite).
   - ::after  → fila de arbolitos de Navidad a lo largo del borde inferior.
   ===================================================================== */

.franja-navidad {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: none;               /* quita el parpadeo naranja de la portada */
  background: linear-gradient(100deg, #0f4a85 0%, #1a6ab5 50%, #0f4a85 100%);
  color: #fff;
  /* Mismo relleno arriba y abajo para que el texto quede centrado en altura;
     el de abajo deja sitio a los arbolitos */
  padding-top: 24px;
  padding-bottom: 24px;
  text-shadow: 0 1px 6px rgba(8, 40, 80, 0.6);
}

.franja-navidad > * { position: relative; z-index: 2; }
.franja-navidad a { color: #fff; }

/* Copos de nieve (baldosa de 180×90 que baja en bucle) */
.franja-navidad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='90' viewBox='0 0 180 90'%3E%3Cdefs%3E%3Cg id='c' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'%3E%3Cpath d='M0-6V6M-5.2-3L5.2 3M-5.2 3L5.2-3'/%3E%3Cpath d='M-1.8-4.6L0-3.2 1.8-4.6M-1.8 4.6L0 3.2 1.8 4.6'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' x='18' y='16' opacity='.85'/%3E%3Cuse href='%23c' transform='translate(70 58) scale(.7)' opacity='.6'/%3E%3Cuse href='%23c' transform='translate(118 22) scale(1.15)' opacity='.75'/%3E%3Cuse href='%23c' transform='translate(160 70) scale(.6)' opacity='.55'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='44' cy='38' r='1.6' opacity='.7'/%3E%3Ccircle cx='96' cy='8' r='1.2' opacity='.6'/%3E%3Ccircle cx='140' cy='46' r='1.4' opacity='.65'/%3E%3Ccircle cx='30' cy='76' r='1.1' opacity='.5'/%3E%3Ccircle cx='106' cy='82' r='1.5' opacity='.6'/%3E%3Ccircle cx='172' cy='12' r='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 90px;
  opacity: 0.55;
  animation: franja-nieve 9s linear infinite;
}

/* Arbolitos (baldosa de 240 de ancho, tres árboles de distinto tamaño) */
.franja-navidad::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cdefs%3E%3Cg id='t'%3E%3Crect x='-1.5' y='-3' width='3' height='3' fill='%237a4a24'/%3E%3Cpath d='M0-21L7-12H3.5L9-3H-9L-3.5-12H-7Z' fill='%232f9e5b'/%3E%3Cpath d='M-3.5-12H3.5M-6-5.5H6' stroke='%23e8f2fb' stroke-width='1' stroke-dasharray='1.5 2' opacity='.8'/%3E%3Ccircle cx='0' cy='-21.5' r='1.8' fill='%23f2c14e'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23t' x='30' y='26'/%3E%3Cuse href='%23t' transform='translate(112 26) scale(.75)'/%3E%3Cuse href='%23t' transform='translate(190 26) scale(.9)'/%3E%3C/svg%3E");
  background-size: 240px 26px;
  background-repeat: repeat-x;
  background-position: center bottom;
  opacity: 0.9;
}

@keyframes franja-nieve {
  from { background-position: 0 0; }
  to   { background-position: 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .franja-navidad::before { animation: none; }
}
