/* ==========================================================================
   Navidad (del 25 de diciembre al 6 de enero, todos los años)
   navidad.js añade la barra, la guirnalda y la nieve solo en esas fechas; la sección
   «Ideas para estas fiestas» de index.html lleva data-nv y hidden hasta entonces.
   Para quitarlo del todo: borra el bloque data-nv de index.html y los enlaces a
   navidad.css y navidad.js de las páginas.
   ========================================================================== */
[data-nv][hidden] { display: none !important; }

/* Barra superior */
.nv-bar { background: linear-gradient(90deg, #7A1F2B, #173F32); color: #fff; font-size: 14.5px; line-height: 1.35; }
.nv-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding-top: 9px; padding-bottom: 9px; }
.nv-text { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; text-align: center; }
.nv-text strong { font-weight: 700; }
.nv-tag {
  display: inline-block; background: #F4C95D; color: #2B1D00; font-weight: 800; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.nv-dates { color: #BFE8D3; font-weight: 600; }
.nv-link {
  display: inline-flex; align-items: center; background: #fff; color: var(--green-900); font-weight: 700;
  font-size: 13.5px; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.nv-link:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }

/* Guirnalda colgando de la cabecera */
.nv-garland {
  position: absolute; left: 0; right: 0; top: 100%; height: 30px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2230%22 viewBox=%220 0 120 30%22%3E%3Cpath d=%22M0 3Q60 26 120 3%22 fill=%22none%22 stroke=%22%232B4A3F%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M18 9.5v2.4%22 stroke=%22%232B4A3F%22 stroke-width=%221.4%22/%3E%3Cellipse cx=%2218%22 cy=%2215.100000000000001%22 rx=%223%22 ry=%223.8%22 fill=%22%23E5484D%22/%3E%3Cellipse cx=%2217%22 cy=%2213.7%22 rx=%220.9%22 ry=%221.3%22 fill=%22%23fff%22 opacity=%22.55%22/%3E%3Cpath d=%22M42 14.1v2.4%22 stroke=%22%232B4A3F%22 stroke-width=%221.4%22/%3E%3Cellipse cx=%2242%22 cy=%2219.7%22 rx=%223%22 ry=%223.8%22 fill=%22%23F4C95D%22/%3E%3Cellipse cx=%2241%22 cy=%2218.3%22 rx=%220.9%22 ry=%221.3%22 fill=%22%23fff%22 opacity=%22.55%22/%3E%3Cpath d=%22M60 15.1v2.4%22 stroke=%22%232B4A3F%22 stroke-width=%221.4%22/%3E%3Cellipse cx=%2260%22 cy=%2220.7%22 rx=%223%22 ry=%223.8%22 fill=%22%233FA97A%22/%3E%3Cellipse cx=%2259%22 cy=%2219.3%22 rx=%220.9%22 ry=%221.3%22 fill=%22%23fff%22 opacity=%22.55%22/%3E%3Cpath d=%22M78 14.1v2.4%22 stroke=%22%232B4A3F%22 stroke-width=%221.4%22/%3E%3Cellipse cx=%2278%22 cy=%2219.7%22 rx=%223%22 ry=%223.8%22 fill=%22%23E5484D%22/%3E%3Cellipse cx=%2277%22 cy=%2218.3%22 rx=%220.9%22 ry=%221.3%22 fill=%22%23fff%22 opacity=%22.55%22/%3E%3Cpath d=%22M102 9.5v2.4%22 stroke=%22%232B4A3F%22 stroke-width=%221.4%22/%3E%3Cellipse cx=%22102%22 cy=%2215.100000000000001%22 rx=%223%22 ry=%223.8%22 fill=%22%23F4C95D%22/%3E%3Cellipse cx=%22101%22 cy=%2213.7%22 rx=%220.9%22 ry=%221.3%22 fill=%22%23fff%22 opacity=%22.55%22/%3E%3C/svg%3E") repeat-x 0 0 / 120px 30px;
}
.nav.is-open > .nv-garland { display: none; }

/* Nieve (por debajo de la cabecera, sin tocar nada) */
.nv-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 98; }

/* Sección «Ideas para estas fiestas» de la portada */
.nv-eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nv-eyebrow .nv-tag { background: #7A1F2B; color: #fff; }

@media (max-width: 600px) {
  .nv-dates { display: none; } /* las fechas salen en la sección «Ideas para estas fiestas» */
}
@media (max-width: 420px) {
  .nv-inner { gap: 6px 12px; }
  .nv-bar { font-size: 13.5px; }
}

/* iPhone Duo con las dos pantallas abiertas: la felicitación a una pantalla, el enlace a la otra */
@media (horizontal-viewport-segments: 2) {
  .nv-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-fold); }
  .nv-text { justify-content: flex-start; text-align: left; }
  .nv-link { justify-self: center; }
}
