/* navidad-2026 · Books4sports · detalles de Navidad de temporada (15-nov-2026 → 6-ene-2027).
   Solo se enlaza si catalogo.json tiene la temporada activa (build.py). Todo cuelga de html.nv,
   que pone un script en línea en el <head> antes de pintar y que deja de ponerse solo el 7-ene-2027.
   Solo CSS + SVG en línea: sin imágenes, sin librerías, sin fuentes nuevas. */
:root { --nv-red: #A9231C; --nv-gold: #F2C14E; --nv-snow: rgba(247,245,240,.9); }

/* Sin html.nv (pasada la fecha o sin JavaScript) no se ve nada de temporada. */
.nv-cinta, .nv-feature { display: none; }

/* 1. Cinta fina arriba del todo. Va en el HTML (no la inserta un script): ocupa su sitio desde el
      primer pintado, así que no empuja nada después. */
html.nv .nv-cinta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 16px;
  background: var(--nv-red) radial-gradient(rgba(255,255,255,.15) 1.1px, transparent 1.7px) 0 0 / 18px 18px;
  color: #fff; text-decoration: none;
  font: 700 14px/1.2 'Chivo', Arial, sans-serif; letter-spacing: .02em; text-align: center;
}
.nv-cinta .nv-ico { flex: none; width: 18px; height: 18px; }
.nv-cinta .nv-fl { color: var(--nv-gold); font-size: 16px; }
html.nv a.nv-cinta:hover .nv-txt { text-decoration: underline; text-underline-offset: 3px; }
html.nv a.nv-cinta:focus-visible { outline: 3px solid var(--nv-gold); outline-offset: -3px; }

/* 2. Guirnalda de luces en el borde inferior de la cabecera, por dentro: no tapa el contenido al
      desplazarse, no ocupa sitio ni recibe clics. */
html.nv .site-header .wrap { position: relative; z-index: 1; padding-bottom: 8px; }
@media (max-width: 720px) { html.nv .site-header .wrap { padding-bottom: 16px; } }
html.nv .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='13' viewBox='0 0 120 13'%3E%3Cpath d='M0 1Q30 7 60 1Q90 7 120 1' fill='none' stroke='%23777C78' stroke-width='1.3'/%3E%3Cg fill='%23777C78'%3E%3Crect x='13.8' y='3.4' width='2.4' height='2'/%3E%3Crect x='43.8' y='3.4' width='2.4' height='2'/%3E%3Crect x='73.8' y='3.4' width='2.4' height='2'/%3E%3Crect x='103.8' y='3.4' width='2.4' height='2'/%3E%3C/g%3E%3Cellipse cx='15' cy='8.4' rx='2.4' ry='3.3' fill='%23D62F25'/%3E%3Cellipse cx='45' cy='8.4' rx='2.4' ry='3.3' fill='%23F2C14E'/%3E%3Cellipse cx='75' cy='8.4' rx='2.4' ry='3.3' fill='%232E8B57'/%3E%3Cellipse cx='105' cy='8.4' rx='2.4' ry='3.3' fill='%23E85D1F'/%3E%3C/svg%3E") 0 0 / 120px 13px repeat-x;
}

/* 3. Bloque de la portada: los dos Would You Rather de Navidad, cubierta en grande. */
html.nv .nv-feature {
  display: block; position: relative; isolation: isolate; overflow: hidden;
  background: var(--pitch); color: var(--chalk);
  padding: 64px 0 72px;
}
/* nieve quieta, muy suave, que se desvanece hacia abajo */
.nv-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='180' viewBox='0 0 240 180'%3E%3Cg fill='none' stroke='%23F7F5F0' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M24 30h12M30 24v12M25.8 25.8l8.4 8.4M34.2 25.8l-8.4 8.4'/%3E%3Cpath d='M193 55h14M200 48v14M195.1 50.1l9.8 9.8M204.9 50.1l-9.8 9.8'/%3E%3Cpath d='M145 135h10M150 130v10M146.5 131.5l7 7M153.5 131.5l-7 7'/%3E%3Cpath d='M66 120h8M70 116v8M67.2 117.2l5.6 5.6M72.8 117.2l-5.6 5.6'/%3E%3C/g%3E%3Cg fill='%23F7F5F0'%3E%3Ccircle cx='120' cy='40' r='1.8'/%3E%3Ccircle cx='230' cy='150' r='1.6'/%3E%3Ccircle cx='15' cy='90' r='1.6'/%3E%3Ccircle cx='105' cy='85' r='1.4'/%3E%3Ccircle cx='185' cy='100' r='1.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 180px repeat;
  opacity: .16;
  -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.35) 75%, transparent);
  mask-image: linear-gradient(#000, rgba(0,0,0,.35) 75%, transparent);
}
.nvf-head { max-width: 60ch; margin-bottom: 40px; }
.nvf-head .eyebrow { color: var(--nv-gold); display: inline-flex; align-items: center; gap: 8px; }
/* ramita de acebo delante del antetítulo */
.nvf-head .eyebrow::before {
  content: ""; width: 24px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M12 12C7 6 2 8 1 5c3-1 8-1 11 7z' fill='%2342A06D'/%3E%3Cpath d='M12 12c5-6 10-4 11-7-3-1-8-1-11 7z' fill='%2342A06D'/%3E%3Ccircle cx='9.8' cy='13.2' r='2.6' fill='%23D62F25'/%3E%3Ccircle cx='14.2' cy='13.6' r='2.6' fill='%23D62F25'/%3E%3Ccircle cx='12' cy='10.6' r='2.6' fill='%23E8463B'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nvf-head h2 { margin: 10px 0 12px; }
.nvf-head p { font-size: 18px; color: #D5E0DA; }

.nvf-libros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.nvf-libro { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 26px; align-items: center; }
.nvf-cover { display: block; }
.nvf-cover img {
  width: 100%; height: auto; aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  box-shadow: 8px 10px 0 rgba(0,0,0,.28);
  transition: transform .18s ease;
}
.nvf-cover:hover img { transform: translateY(-2px) rotate(-1deg); }
.nvf-ages { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nv-gold); }
.nvf-libro h3 { font-family: 'Bebas Neue', 'Chivo', sans-serif; font-weight: 400; font-size: 36px; line-height: .95; letter-spacing: .02em; margin: 8px 0 10px; }
.nvf-libro h3 a { text-decoration: none; }
.nvf-libro h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nvf-libro h3 span { display: block; font-size: .62em; color: var(--nv-gold); margin-top: 4px; }
.nvf-libro p { font-size: 16px; color: #D5E0DA; margin-bottom: 18px; }
.nvf-botones { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nvf-botones .btn { font-size: 19px; padding: 11px 20px 9px; }
.nv-feature .coming-soon { color: var(--chalk); }
.nvf-libro p.nvf-otros { font-size: 15px; margin: 12px 0 0; color: #D5E0DA; }
.nvf-otros a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.nvf-otros a:hover { color: var(--nv-gold); }

@media (max-width: 1000px) {
  .nvf-libros { gap: 28px; }
  .nvf-libro { grid-template-columns: 1fr; gap: 16px; align-items: start; align-content: start; }
  .nvf-cover { max-width: 300px; }
  /* los botones de las dos fichas quedan a la misma altura aunque los textos midan distinto */
  .nvf-libro { display: flex; flex-direction: column; }
  .nvf-texto { flex: 1; display: flex; flex-direction: column; }
  .nvf-botones { margin-top: auto; }
}
@media (max-width: 720px) {
  html.nv .nv-feature { padding: 44px 0 52px; }
  .nvf-head { margin-bottom: 28px; }
  .nvf-head p { font-size: 16px; }
  .nvf-libros { gap: 16px; }
  .nvf-libro h3 { font-size: 27px; }
  .nvf-libro p { font-size: 14.5px; line-height: 1.5; }
  .nvf-botones { align-items: stretch; width: 100%; gap: 8px; }
  .nvf-botones .btn { font-size: 17px; padding: 10px 8px 8px; }
}
@media (max-width: 380px) {
  .wrap .nvf-libros { gap: 12px; }
  .nvf-libro h3 { font-size: 24px; }
}

/* Única animación: el regalo de la cinta brilla despacio. Fuera si se pide menos movimiento. */
@keyframes nv-brillo { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
html.nv .nv-cinta .nv-ico { animation: nv-brillo 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html.nv .nv-cinta .nv-ico { animation: none; }
  .nvf-cover img { transition: none; }
  .nvf-cover:hover img { transform: none; }
}

@media (max-width: 360px) { html.nv .nv-cinta { font-size: 13px; gap: 6px; padding: 6px 10px; } }

/* Al imprimir, nada de decoración. */
@media print { .nv-cinta, html.nv .site-header::after { display: none !important; } }
