/* ==========================================================================
   Ofertas especiales Black Friday (del 23 al 27 de noviembre de 2026)
   blackfriday.js añade la barra fija (en todas las páginas) y activa los avisos con data-bf
   (junto a los botones de descarga de index.html y marketing.html) solo en esas fechas.
   Para quitarlo del todo: borra de index.html y marketing.html los bloques con data-bf
   y, en las 10 páginas, los enlaces a blackfriday.css / blackfriday.js.
   ========================================================================== */
[data-bf][hidden] { display: none !important; }

/* Barra superior: fija, sigue al usuario en todas las páginas */
.bf-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #0F1F1A, #173F32); color: #fff; font-size: 14.5px; line-height: 1.35;
  box-shadow: 0 6px 18px -10px rgba(15, 31, 26, .6);
}
/* La cabecera (que también es fija) se queda justo debajo de la barra */
.bf-on header.nav { top: var(--bf-h, 0px); }
/* Saltos de ancla y columnas fijas: cuentan con la altura de la barra */
.bf-on { scroll-padding-top: calc(var(--nav-h) + 20px + var(--bf-h, 0px)); }
.bf-on .doc > section { scroll-margin-top: calc(var(--nav-h) + 24px + var(--bf-h, 0px)); }
.bf-on .show-row { scroll-margin-top: calc(var(--nav-h) + 16px + var(--bf-h, 0px)); }
.bf-on .doc-aside { top: calc(var(--nav-h) + 32px + var(--bf-h, 0px)); }
.bf-on .contact-card { top: calc(var(--nav-h) + 24px + var(--bf-h, 0px)); }
.bf-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding-top: 8px; padding-bottom: 8px; }
.bf-text { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; text-align: center; }
.bf-text strong { font-weight: 700; }
.bf-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;
}
.bf-dates { color: var(--mint); font-weight: 600; }
.bf-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;
}
.bf-link:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }

/* Etiqueta junto a los botones de descarga: va dentro de .cta, en su propia fila */
.bf-chip { flex: 0 0 100%; display: flex; justify-content: inherit; margin-bottom: 2px; }
.bf-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #0F1F1A; color: #fff;
  font-weight: 600; font-size: 14px; line-height: 1.3; padding: 8px 16px 8px 12px; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(15, 31, 26, .55);
}
.bf-pill svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #F4C95D; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bf-pill b { color: #F4C95D; font-weight: 800; }
.bf-pill-dates { white-space: nowrap; }

@media (max-width: 420px) {
  .bf-pill { font-size: 13px; padding: 7px 13px 7px 10px; }
}
/* Muy estrecho: las fechas ya salen en la barra de arriba */
@media (max-width: 400px) {
  .bf-pill-dates { display: none; }
}
/* En móvil el botón de descarga está justo debajo: la barra se queda en dos líneas */
@media (max-width: 600px) {
  .bf-link { display: none; }
}

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