/* Franja del bono y barra fija en celular. La generan js/promo.js; los textos viven ahí. */

/* ─── Franja del bono ─── */
/* Azul claro con texto azul marino: se distingue del menú y del hero (los dos azul marino). */
.promo-strip {
  background: #E3F2FD;
  color: #0A1628;
  border-bottom: 1px solid rgba(21,101,192,0.18);
}
/* Con la barra superior fija (home), la franja empieza debajo de ella. El menú es transparente
   arriba, así que el tramo que queda detrás de él sigue azul marino. */
body.promo-nav-fija .promo-strip {
  padding-top: var(--nav-h, 80px);
  background: linear-gradient(var(--dark, #0A1628) 0 var(--nav-h, 80px), #E3F2FD var(--nav-h, 80px));
}
.promo-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}
.promo-strip-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #0A1628;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 1rem;
}
.promo-strip-main strong { color: #0A1628; font-weight: 700; }
.promo-strip-icon { display: inline-block; vertical-align: -0.22em; margin-right: 0.4rem; color: var(--blue, #1565C0); line-height: 0; }
.promo-strip-icon svg { width: 1.25em; height: 1.25em; display: block; }
.promo-strip-value { color: #0D47A1; font-weight: 600; white-space: nowrap; }
.promo-strip-extra { color: #33415C; }
.promo-strip-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #0B78CE, var(--blue, #1565C0));
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.promo-strip-btn:hover { filter: brightness(1.08); }

/* ─── Barra fija inferior: solo celular ─── */
.cta-bar { display: none; }
@media (max-width: 767.98px) {
  /* Celular: el mismo mensaje, centrado; puede ocupar dos líneas. */
  .promo-strip-inner { padding: 0.5rem 1rem; gap: 0.75rem; flex-wrap: nowrap; }
  .promo-strip-text { font-size: 0.875rem; gap: 0.1rem; min-width: 0; }
  .promo-strip-extra { display: block; width: 100%; }
  .promo-strip-extra.promo-strip-garantia { display: none; }
  /* El valor baja a su propia línea, sin el punto separador. */
  .promo-strip-sep { display: none; }
  .promo-strip-value { display: block; }
  .promo-strip-btn { padding: 0 1rem; font-size: 0.875rem; }

  .cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(10, 22, 40, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .cta-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .cta-bar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .cta-bar-price { flex: 1.4; background: linear-gradient(135deg, #0B78CE, var(--blue, #1565C0)); }
  .cta-bar-wa    { background: linear-gradient(135deg, #15803D, #0E7A6D); }
  .cta-bar-call  { border: 1.5px solid rgba(255,255,255,0.6); }

  /* No tapar el final de la página y no duplicar el WhatsApp flotante. */
  body.has-cta-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* El hero ya tiene su botón de WhatsApp: el flotante no tapa la foto ni los botones. */
  body.cta-bar-visible .float-wa,
  body.hero-en-pantalla .float-wa { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bar, .cta-bar.is-visible { transition: none; }
}
