/* ==========================================================
   Temática navideña AIEEUN
   Para retirarla: quitar los <link>/<script> de navidad en base.html
   y la diapositiva "slider_bg_navidad" en index.html.
   ========================================================== */

:root {
  --navidad-rojo: #b3121f;
  --navidad-rojo-oscuro: #6e0b14;
  --navidad-verde: #146b3a;
  --navidad-dorado: #e8b64c;
}

/* ---------- Banner principal (tarjeta) ---------- */
.slider_area .single_slider.slider_bg_navidad {
  position: relative;
  background-image: url("/uploads/posts/2026-Tarjeta%20de%20navidad.png"),
    radial-gradient(ellipse at center, #8a1a22 0%, var(--navidad-rojo-oscuro) 55%, #2a0508 100%);
  background-size: contain, cover;
  background-position: center center, center center;
  background-repeat: no-repeat;
}

/* ---------- Barra superior festiva ---------- */
.header-area .header-top_area {
  background: linear-gradient(90deg, var(--navidad-rojo-oscuro), var(--navidad-rojo), var(--navidad-rojo-oscuro));
}
.header-area .header-top_area .header_left p,
.header-area .header-top_area a,
.header-area .header-top_area .social_media_links a {
  color: #fff !important;
}

/* ---------- Guirnalda de luces bajo el menú ---------- */
.navidad-luces {
  position: relative;
  display: flex;
  justify-content: flex-start;
  height: 46px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  pointer-events: none;
  background-color: #fff;
  /* Cable que cuelga en curvas entre bombillos */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20'%3E%3Cpath d='M0 3 Q28 22 56 3' fill='none' stroke='%23264d2e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 0;
}
.navidad-luces li {
  position: relative;
  flex: 0 0 56px;
  height: 100%;
}
/* Casquillo */
.navidad-luces li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 7px;
  margin-left: -4px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #6b6b6b, #d6d6d6 45%, #7a7a7a);
  z-index: 1;
}
/* Bombillo de vidrio */
.navidad-luces li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 13px;
  height: 21px;
  margin-left: -6.5px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95) 0 2px, rgba(255,255,255,0) 4px),
    radial-gradient(ellipse at 50% 60%, #fff 0%, currentColor 45%, currentColor 100%);
  box-shadow: 0 0 6px 1px currentColor, 0 0 18px 5px currentColor;
  animation: navidad-brillo 2.4s ease-in-out infinite;
}
.navidad-luces li:nth-child(odd)::before,
.navidad-luces li:nth-child(odd)::after { transform: rotate(-8deg); }
.navidad-luces li:nth-child(even)::before,
.navidad-luces li:nth-child(even)::after { transform: rotate(8deg); }

.navidad-luces li:nth-child(5n + 1) { color: #ff2e4d; }
.navidad-luces li:nth-child(5n + 2) { color: #ffc93c; }
.navidad-luces li:nth-child(5n + 3) { color: #2bd96b; }
.navidad-luces li:nth-child(5n + 4) { color: #3ab4ff; }
.navidad-luces li:nth-child(5n + 5) { color: #d05bff; }

.navidad-luces li:nth-child(3n + 1)::after { animation-delay: 0s; }
.navidad-luces li:nth-child(3n + 2)::after { animation-delay: 0.8s; }
.navidad-luces li:nth-child(3n + 3)::after { animation-delay: 1.6s; }
.navidad-luces li:nth-child(7n)::after { animation-name: navidad-destello; animation-duration: 1.2s; }

@keyframes navidad-brillo {
  0%, 100% { opacity: 1; filter: brightness(1.15) saturate(1.2); box-shadow: 0 0 6px 1px currentColor, 0 0 20px 6px currentColor; }
  50% { opacity: 0.55; filter: brightness(0.75); box-shadow: 0 0 2px 0 currentColor; }
}
@keyframes navidad-destello {
  0%, 40%, 100% { opacity: 1; box-shadow: 0 0 6px 1px currentColor, 0 0 24px 8px currentColor; }
  20% { opacity: 0.4; box-shadow: none; }
}

/* ---------- Nieve ---------- */
#navidad-nieve {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ---------- Botón de WhatsApp y acentos ---------- */
#chatbutton {
  background-color: var(--navidad-rojo) !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navidad-verde);
}

.footer .footer_top {
  border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(45deg,
      var(--navidad-rojo) 0 14px, #fff 14px 28px,
      var(--navidad-verde) 28px 42px, #fff 42px 56px) 6;
}

.navidad-saludo {
  background: linear-gradient(90deg, var(--navidad-verde), #0e4d29);
  color: #fff;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  padding: 8px 12px;
  letter-spacing: 0.5px;
}
.navidad-saludo span { color: var(--navidad-dorado); }

@media (prefers-reduced-motion: reduce) {
  .navidad-luces li::after { animation: none; }
  #navidad-nieve { display: none; }
}
