/* Tema navideño temporal 2026 — Ecconetwork.
   Todo el adorno vive aquí y en navidad.js.
   En enero: borrar este archivo, navidad.js y las líneas <link>/<script> de cada página.
   No modifica textos, precios ni folios. */

:root {
  --navidad-teal: #155e75;
  --navidad-teal-deep: #0e7490;
  --navidad-green: #0f766e;
  --navidad-gold: #c9a227;
  --navidad-gold-soft: #f4e4a6;
  --navidad-red: #9b1c1c;
  --navidad-text: #ffffff;
}

/* —— Franja de felicitación (inicio y páginas legales) —— */
.navidad-banner {
  background: var(--navidad-teal);
  color: var(--navidad-text);
  border-top: 2px solid var(--navidad-gold);
  border-bottom: 2px solid var(--navidad-gold);
  position: relative;
  z-index: 60;
}

.navidad-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 2.75rem 0.55rem 1rem;
  min-height: 2.75rem;
}

.navidad-banner__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--navidad-gold-soft);
}

.navidad-banner__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.navidad-banner__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
}

.navidad-banner__close {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.navidad-banner__close:hover,
.navidad-banner__close:focus-visible {
  background: rgba(0, 0, 0, 0.28);
}

.navidad-banner__close:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.navidad-banner__close svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* —— Guirnalda en el encabezado (solo inicio, clase puesta por JS) —— */
header.navidad-decorated {
  position: sticky;
}

header.navidad-decorated::after {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='10' viewBox='0 0 56 10' aria-hidden='true'%3E%3Cpath d='M0 2.2 Q14 8.5 28 2.2 T56 2.2' fill='none' stroke='%23c9a227' stroke-width='1.15'/%3E%3Ccircle cx='7' cy='5.4' r='2.15' fill='%23c9a227'/%3E%3Ccircle cx='21' cy='6.2' r='2.15' fill='%239b1c1c'/%3E%3Ccircle cx='35' cy='5.4' r='2.15' fill='%230e7490'/%3E%3Ccircle cx='49' cy='6.2' r='2.15' fill='%23f4e4a6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 56px 10px;
}

.navidad-logo-accent {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  color: var(--navidad-gold);
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.navidad-logo-accent svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* —— Toque ligero en el hero (solo inicio; elementos inyectados, no pseudos) —— */
.hero-section.navidad-hero {
  position: relative;
}

.navidad-hero-ornament {
  position: absolute;
  top: 0.75rem;
  pointer-events: none;
  width: 72px;
  height: 72px;
  opacity: 0.72;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
}

.navidad-hero-ornament--left {
  left: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 L34.2 22.4 L48 10.2 L38.2 26 L58 26 L38.8 32 L58 38 L38.2 38 L48 53.8 L34.2 41.6 L32 60 L29.8 41.6 L16 53.8 L25.8 38 L6 38 L25.2 32 L6 26 L25.8 26 L16 10.2 L29.8 22.4 Z' fill='%23f4e4a6' fill-opacity='0.85'/%3E%3C/svg%3E");
}

.navidad-hero-ornament--right {
  right: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 L35 20.5 52 8.5 42 26 62 28 42.5 34 62 40 42 42 52 55.5 35 43.5 32 62 29 43.5 12 55.5 22 42 2 40 21.5 34 2 28 22 26 12 8.5 29 20.5 Z' fill='none' stroke='%23c9a227' stroke-width='2'/%3E%3Ccircle cx='32' cy='32' r='4' fill='%23c9a227'/%3E%3C/svg%3E");
}

@media (max-width: 639px) {
  .navidad-hero-ornament {
    width: 44px;
    height: 44px;
    opacity: 0.55;
  }
}

/* —— Línea dorada suave en el pie (solo inicio) —— */
footer.navidad-footer {
  border-top: 3px solid var(--navidad-gold);
  box-shadow: inset 0 8px 0 0 var(--navidad-teal);
}

/* —— Nieve: lienzo inerte, no captura clics —— */
#navidad-nieve {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* Sin animaciones ni nieve si el visitante pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
  #navidad-nieve {
    display: none !important;
  }

  header.navidad-decorated::after,
  .navidad-hero-ornament,
  .navidad-logo-accent {
    animation: none !important;
  }
}
