/* ==========================================================
   ESTILOS COMPARTIDOS POR LAS TRES PÁGINAS
   - Barra de anuncios de arriba
   - Botón flotante de WhatsApp
   - Animación de aparición al hacer scroll
   ========================================================== */

/* ---- Barra de anuncios ---- */
.qr-anuncio {
  background: #16232A;
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
}
.qr-anuncio svg { color: #F2994A; flex-shrink: 0; }
#qr-anuncio-texto { transition: opacity .3s ease; }

/* ---- Botón flotante de WhatsApp ---- */
.qr-flotante {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16,35,42,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.qr-flotante:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,35,42,.34); }

/* ---- Aparecer al hacer scroll ---- */
.qr-js .qr-aparece {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.qr-js .qr-aparece.qr-visible { opacity: 1; transform: none; }

@media (max-width: 620px) {
  .qr-flotante { padding: 15px; }
  .qr-flotante-txt { display: none; }
}
@media (max-width: 560px) {
  .qr-anuncio { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-flotante { transition: none; }
  .qr-js .qr-aparece { opacity: 1 !important; transform: none !important; transition: none !important; }
}
