/* =====================================================
     0. FONT DISPLAY — evita bloqueo de FCP por fuentes externas
  ===================================================== */
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-display: swap;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}

/* =====================================================
     1. LOADER / PANTALLA DE CARGA
  ===================================================== */

/* Animación de la llanta */
@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wheel {
  animation: wheelSpin 1s linear infinite;
}

/* Animación del humo */
@keyframes smoke {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.4);
  }
}

.smoke {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 50%;
  animation: smoke 2s infinite;
}

.smoke:nth-child(2) {
  left: -40px;
  animation-delay: 0.4s;
}

.smoke:nth-child(3) {
  left: 40px;
  animation-delay: 0.8s;
}

/* Animación del texto del logo */
@keyframes fadeText {
  0% {
    opacity: 0;
    letter-spacing: 20px;
  }
  100% {
    opacity: 1;
    letter-spacing: 4px;
  }
}

.logoText {
  animation: fadeText 2s ease forwards;
}

/* =====================================================
     2. HEADER / MENÚ PRINCIPAL
  ===================================================== */

#menuHeader {
  transition: all 0.3s ease;
}

/* =====================================================
     3. LOGO DEL HEADER
  ===================================================== */

/* Logo tamaño normal */
#header img {
  height: 70px;
  transition: height 0.3s ease;
}

/* Logo compacto al hacer scroll */
#header.header-compact img {
  height: 48px;
}

/* =====================================================
     4. HEADER COMPACTO — comportamiento al hacer scroll
  ===================================================== */

/* Compacto en MÓVIL: solo ajustar padding y mostrar hamburguesa */
#header.header-compact #topHeader {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* DESKTOP (≥768px): layout de fila única logo | nav | botones */
@media (min-width: 768px) {
  #header.header-compact > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* display:contents disuelve #topHeader — logo y botones se vuelven grid items directos */
  #header.header-compact #topHeader {
    display: contents;
  }

  /* Hamburguesa oculta en desktop */
  #header.header-compact #btnMenu {
    display: none !important;
  }

  /* Logo → columna 1 */
  #header.header-compact #logoInicio {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  /* Nav → columna 2, centrado */
  #header.header-compact #menuHeader {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  /* Botones → columna 3 */
  #header.header-compact #headerBtns {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

/* =====================================================
     5. HEADER TRANSPARENTE / HEADER EN SCROLL
  ===================================================== */

/* Header transparente */
#header {
  background: linear-gradient(180deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.10) 100%);
  transition: all 0.3s ease;
}

/* Header negro al hacer scroll */
#header.header-compact {
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* =====================================================
     6. BANNER / HERO PRINCIPAL
  ===================================================== */

.banner {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-bottom: 40px;
  min-height: 720px;
  padding-top: 140px;

}

/* Imagen de fondo borrosa */
.banner::before {
  content: "";
  position: absolute;

  /* ampliamos el fondo para que el blur no corte */
  inset: -30px;

  background: url("../img/banners/banner.webp") center/cover no-repeat;

  filter: blur(4px);
  transform: scale(1.1);

  z-index: -2;
}

/* capa oscura */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* =====================================================
     7. CARRUSEL DE PRODUCTOS (SWIPER)
  ===================================================== */

.premiumSwiper .swiper-slide {
  width: auto !important;
  height: auto;
  display: flex;
  justify-content: center;
}

.premiumSwiper .swiper-wrapper {
  display: flex;
  align-items: center; /* centra las tarjetas verticalmente */
  height: auto !important;
}

.swiper {
  padding-bottom: 5px;
}
/* =====================================================
     8. TARJETAS DE PRODUCTOS
  ===================================================== */

.card {
  width: auto;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transition: 0.35s;
}

.card:hover {
  transform: scale(1.02);
}
.card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

/* =====================================================
     9. INFORMACIÓN DE PRODUCTO
  ===================================================== */

.info {
  padding: 20px;
  text-align: center;
}

.info h3 {
  font-size: 20px;
  font-weight: 700;
}

.info p {
  color: #6b7280;
  margin-top: 8px;
}

/* =====================================================
     10. Filtro
===================================================== */

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-title span {
  color: #F5D627;
}

/* tarjeta buscador */

.search-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);

  width: 90%;
  max-width: 1000px;

  margin-bottom: 60px;
}

/* grid filtros */

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* selects */

.filter {
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
}

/* boton */

.search-btn {
  background: #000000;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  transition: 0.3s;
}

.search-btn:hover {
  background: #ea580c;
}

/* =====================================================
     11. MENÚ MÓVIL MEJORADO
  ===================================================== */

#menuMobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
     12. DROPDOWN CATEGORÍAS
  ===================================================== */

/* Mobile submenu improvements */

/* MOBILE - submenu scrollable */
@media (max-width: 640px) {
  #submenuCategoriasMobile {
    max-height: 300px; /* limita altura del dropdown */
    overflow-y: auto; /* habilita scroll vertical */
    overflow-x: hidden;
    padding: 10px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    margin-top: 5px;
    text-align: left !important;
    position: relative; /* importante: no absolute */
    z-index: 50;
  }

  #submenuCategoriasMobile li {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #submenuCategoriasMobile li:hover {
    color: #f97316;
  }
}

/* Desktop dropdown - ensure Tailwind utilities work */
#submenuCategoriasDesktop {
  min-width: 220px;

  max-height: 400px; /* altura máxima */
  overflow-y: auto; /* permite scroll vertical */
  overflow-x: hidden; /* evita scroll horizontal */

  /* opcional: fondo y padding */
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* Scrollbar estilo (opcional) */
#submenuCategoriasDesktop::-webkit-scrollbar {
  width: 6px;
}
#submenuCategoriasDesktop::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.6);
  border-radius: 3px;
}

/* =====================================================
     RESPONSIVE
===================================================== */

/* tablet */

@media (max-width: 1024px) {
  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* movil */

@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .search-card {
    padding: 25px;
  }

  #submenuCategoriasMobile {
    text-align: left !important;
  }
}

/* ===================================
   SECCIÓN EXPERIENCIA PREMIUM
=================================== */

.ride-premium {
  position: relative;

  padding: 120px 20px;

  overflow: hidden;

  background: #111;

  color: white;

  text-align: center;
}

/* fondo textura carretera */

.ride-bg {
  position: absolute;

  inset: 0;

  background: url("../img/banners/banner.webp") center/cover no-repeat;

  opacity: 0.15;

  transform: scale(1.1);

  filter: contrast(120%) brightness(60%);

  z-index: 0;
}

/* contenido */

.ride-content {
  position: relative;

  z-index: 2;

  max-width: 900px;

  margin: auto;
}

/* TITULO */

.ride-title {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
}
/* SUBTITULO */

.ride-sub {
  font-size: 28px;

  font-weight: 500;

  color: #d1d5db;

  margin-bottom: 25px;
}

/* palabra destacada */

.ride-sub span {
  color: #f97316;

  font-weight: 800;

  text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* descripción */

.ride-description {
  font-size: 19px;

  color: #9ca3af;

  line-height: 1.7;

  max-width: 720px;

  margin: auto;
}

/* linea animada */

.ride-divider {
  width: 0;

  height: 4px;

  background: #f97316;

  margin: 40px auto 0;

  border-radius: 10px;

  animation: dividerGrow 1.2s ease forwards;
}

@keyframes dividerGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 140px;
    opacity: 1;
  }
}

/* animación reveal */

.reveal {
  opacity: 0;

  transform: translateY(40px);

  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

.footer {
  background: #0b0b0b;
  color: white;
  padding-top: 60px;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding: 0 40px;
}

/* logo */
.footer-logo {
  width: 160px;
  margin-bottom: 25px;
}

/* redes */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #e60023;
  transform: translateY(-4px);
}

/* columnas */
.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #bdbdbd;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

/* bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 50px;
  padding: 20px;
  font-size: 14px;
  color: #999;
}

/* responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* CONTINENATAL */

/* SECCION */
.seccion-gama {
  position: relative;
  padding: 120px 0;
  background-image: url("/assets/img/productos/fondo.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* capa */
.overlay-fondo {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}

/* contenedor */
.contenedor {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
}

/* TITULO */
.titulo {
  text-align: center;
  margin-bottom: 200px;
}

.titulo h2 {
  font-size: 60px;
  font-weight: 900;
}

.titulo h3 {
  font-size: 32px;
}

/* CAROUSEL REAL */
.carousel {
  display: flex;
  gap: 120px;
  align-items: flex-end;
  overflow: visible;
  width: 100%;
  margin-top: 250px;
}

/* TRACK DEL CAROUSEL */
.carousel-track {
  display: flex;
  gap: 120px;
  transition: transform 0.6s ease;
}

/* ITEM */
.item {
  min-width: 220px;
  position: relative;
  transition: 0.4s;
}

/* IMAGEN */
.item img {
  height: 240px;
  width: auto;
  object-fit: contain;
  transition: 0.4s;
}

/* EFECTO HOVER */
.carousel:hover .item:not(:hover) {
  opacity: 0.35;
}

.item:hover {
  opacity: 1;
  transform: translateY(-40px);
}

.item:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}

/* TEXTO ARRIBA */
.overlay {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: 0.3s;
  z-index: 5;
}
.item:hover .overlay {
  opacity: 1;
  transform: translate(-50%, -10px);
}

.overlay h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.overlay a {
  background: black;
  color: white;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
}




/* =========================
   MODAL BASE
========================= */
.promo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
}

/* =========================
   CONTENEDOR
========================= */
.promo-container {
  width: 900px;
  max-width: 95%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: entrada 0.4s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* BOTON CERRAR */
.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

/* =========================
   IZQUIERDA
========================= */
.promo-left {
  background-image: url("https://images.unsplash.com/photo-1607083206968-13611e3d76db");
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.promo-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.85));
  color: white;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-overlay h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.promo-overlay p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.promo-overlay li {
  margin-bottom: 8px;
}

/* =========================
   DERECHA
========================= */
.promo-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.promo-right h3 {
  font-size: 22px;
}

.promo-right input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.promo-right input:focus {
  border-color: #ef4444;
  outline: none;
}

.promo-right button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff3c3c, #b30000);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.promo-right button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

#mensajeLogin {
  font-size: 14px;
}

/* =========================
   ANIMACION
========================= */
@keyframes entrada {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .promo-container {
    grid-template-columns: 1fr;
    border-radius: 20px 20px 0 0;
  }

  .promo-left {
    height: 150px;
  }

  .promo-overlay {
    padding: 20px;
  }

  .promo-right {
    padding: 20px;
  }
}

/* =====================================================
   PARCHES — Agregar al FINAL de styles.css
   Corrige textos que se pierden sobre fondos claros
===================================================== */

/* Sección "Lo más destacado" — fondo blanco */
.relative.pt-20.pb-20.bg-white h2 {
  color: #111;
}

/* Títulos y texto general sobre fondos blancos */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white p {
  color: #111;
}

/* Sección gama — overlay blanco al 35%, texto debe ser oscuro */
.seccion-gama .titulo h2,
.seccion-gama .titulo h3 {
  color: #111;
}

.overlay h5 {
  color: #fff; /* el overlay del item sí es oscuro */
}

/* Filtros del banner — texto visible sobre fondo blanco */
.search-card label,
.search-card p,
.search-card span {
  color: #111;
}

.filter {
  color: #111;
  background: #fff;
}

/* Inputs y selects en la vista de categorías — sobre fondo oscuro están bien,
   pero si Tailwind no aplica, forzamos el color */
#buscarNombre {
  color: #111;
}

#ordenPrecio,
#ordenNombre {
  color: #111;
}

/* Filtros de llantas en vistaCategorias */
#anchoLlantas,
#perfilLlantas,
#diametroLlantas {
  color: #111;
}

/* Footer — asegurar texto visible */
.footer-col h4 {
  color: #fff;
}

/* Sección ride — subtítulo gris, bien sobre fondo oscuro,
   pero aumentamos contraste */
.ride-description {
  color: #c4c4c4; /* más claro que #9ca3af para mejor legibilidad */
}

/* Correo/modal promo — inputs */
.promo-right input {
  color: #111;
  background: #fff;
}

/* =====================================================
   EFECTO FUEGO — botón PROMOCIONES
   Solo activo cuando tiene la clase .has-promos
===================================================== */
 
/* Animación de vibración/temblor */
@keyframes fireShake {
  0%, 100% { transform: rotate(0deg) scale(1);   }
  15%       { transform: rotate(-2deg) scale(1.05); }
  30%       { transform: rotate(2deg) scale(1.08);  }
  45%       { transform: rotate(-1.5deg) scale(1.05); }
  60%       { transform: rotate(1.5deg) scale(1.07); }
  75%       { transform: rotate(-1deg) scale(1.04);  }
}
 
/* Pulso del glow rojo-naranja */
@keyframes fireGlow {
  0%, 100% {
    text-shadow:
      0 0 4px  #ff6a00,
      0 0 10px #ff4400,
      0 0 20px #ff2200;
  }
  50% {
    text-shadow:
      0 0 8px  #ffaa00,
      0 0 18px #ff6600,
      0 0 35px #ff2200,
      0 0 50px #ff000088;
  }
}
 
/* Parpadeo del emoji 🔥 */
@keyframes fireEmoji {
  0%, 100% { opacity: 1;   transform: translateY(0)    scale(1);    }
  25%       { opacity: 0.8; transform: translateY(-2px) scale(1.15); }
  50%       { opacity: 1;   transform: translateY(1px)  scale(0.95); }
  75%       { opacity: 0.9; transform: translateY(-1px) scale(1.1);  }
}
 
/* Estado base — sin efecto */
#btnPromociones,
#btnPromocionesMobile {
  position: relative;
  transition: color .2s;
}
 
/* Estado activo — hay promos */
#btnPromociones.has-promos,
#btnPromocionesMobile.has-promos {
  animation:
    fireShake 0.5s ease-in-out infinite,
    fireGlow  1.2s ease-in-out infinite;
  color: #ff6a00 !important;
  cursor: pointer;
}
 
/* Emoji de fuego que aparece antes del texto */
#btnPromociones.has-promos::before,
#btnPromocionesMobile.has-promos::before {
  content: "🔥";
  margin-right: 5px;
  display: inline-block;
  animation: fireEmoji 0.6s ease-in-out infinite;
}
 
/* Pausa del shake cuando el mouse está encima
   (para que no sea molesto al intentar hacer click) */
#btnPromociones.has-promos:hover,
#btnPromocionesMobile.has-promos:hover {
  animation:
    fireGlow 1.2s ease-in-out infinite;
  transform: scale(1.08);
}
 

/* ── BURBUJA FLOTANTE ── */
#bubbleWrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#bubbleMenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity .22s ease, transform .22s ease;
}

#bubbleMenu.bubble-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.bubble-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 40px;
  padding: 9px 16px 9px 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.bubble-link span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.bubble-link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.bubble-wa { background: #25D366; }
.bubble-ig { background: #E1306C; }
.bubble-fb { background: #1877F2; }
.bubble-tt { background: #010101; }

/* =====================================================
   PARCHES — Agregar al FINAL de styles.css
   Corrige textos que se pierden sobre fondos claros
===================================================== */

/* Sección "Lo más destacado" — fondo blanco */
.relative.pt-20.pb-20.bg-white h2 {
  color: #111;
}

/* Títulos y texto general sobre fondos blancos */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white p {
  color: #111;
}

/* Sección gama — overlay blanco al 35%, texto debe ser oscuro */
.seccion-gama .titulo h2,
.seccion-gama .titulo h3 {
  color: #111;
}

.overlay h5 {
  color: #fff;
}

/* Filtros del banner */
.search-card label,
.search-card p,
.search-card span {
  color: #111;
}

.filter {
  color: #111;
  background: #fff;
}

#buscarNombre,
#ordenPrecio,
#ordenNombre,
#anchoLlantas,
#perfilLlantas,
#diametroLlantas {
  color: #111;
}

.footer-col h4 {
  color: #fff;
}

.ride-description {
  color: #c4c4c4;
}

.promo-right input {
  color: #111;
  background: #fff;
}

/* =====================================================
   EFECTO FUEGO — botón PROMOCIONES
   Solo activo cuando tiene la clase .has-promos
===================================================== */

/* Animación de vibración/temblor */
@keyframes fireShake {
  0%, 100% { transform: rotate(0deg) scale(1);   }
  15%       { transform: rotate(-2deg) scale(1.05); }
  30%       { transform: rotate(2deg) scale(1.08);  }
  45%       { transform: rotate(-1.5deg) scale(1.05); }
  60%       { transform: rotate(1.5deg) scale(1.07); }
  75%       { transform: rotate(-1deg) scale(1.04);  }
}

/* Pulso del glow rojo-naranja */
@keyframes fireGlow {
  0%, 100% {
    text-shadow:
      0 0 4px  #ff6a00,
      0 0 10px #ff4400,
      0 0 20px #ff2200;
  }
  50% {
    text-shadow:
      0 0 8px  #ffaa00,
      0 0 18px #ff6600,
      0 0 35px #ff2200,
      0 0 50px #ff000088;
  }
}

/* Parpadeo del emoji 🔥 */
@keyframes fireEmoji {
  0%, 100% { opacity: 1;   transform: translateY(0)    scale(1);    }
  25%       { opacity: 0.8; transform: translateY(-2px) scale(1.15); }
  50%       { opacity: 1;   transform: translateY(1px)  scale(0.95); }
  75%       { opacity: 0.9; transform: translateY(-1px) scale(1.1);  }
}

/* Estado base — sin efecto */
#btnPromociones,
#btnPromocionesMobile {
  position: relative;
  transition: color .2s;
}

/* Estado activo — hay promos */
#btnPromociones.has-promos,
#btnPromocionesMobile.has-promos {
  animation:
    fireShake 0.5s ease-in-out infinite,
    fireGlow  1.2s ease-in-out infinite;
  color: #ff6a00 !important;
  cursor: pointer;
}

/* Emoji de fuego que aparece antes del texto */
#btnPromociones.has-promos::before,
#btnPromocionesMobile.has-promos::before {
  content: "🔥";
  margin-right: 5px;
  display: inline-block;
  animation: fireEmoji 0.6s ease-in-out infinite;
}

/* Pausa del shake cuando el mouse está encima
   (para que no sea molesto al intentar hacer click) */
#btnPromociones.has-promos:hover,
#btnPromocionesMobile.has-promos:hover {
  animation:
    fireGlow 1.2s ease-in-out infinite;
  transform: scale(1.08);
}

/* ── BURBUJA FLOTANTE ── */
#bubbleWrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#bubbleMenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity .22s ease, transform .22s ease;
}

#bubbleMenu.bubble-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.bubble-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 40px;
  padding: 9px 16px 9px 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.bubble-link span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.bubble-link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.bubble-wa { background: #25D366; }
.bubble-ig { background: #E1306C; }
.bubble-fb { background: #1877F2; }
.bubble-tt { background: #010101; }

#bubbleBtn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #F5D627;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(244, 84, 4, 0.933);
  transition: transform .25s ease, box-shadow .2s;
  flex-shrink: 0;
}

#bubbleBtn:hover {
  box-shadow: 0 6px 24px rgba(244, 84, 4, 0.933);
}

#bubbleBtn.bubble-active {
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  #bubbleWrap { bottom: 20px; right: 16px; }
  .bubble-link span { display: none; }
  .bubble-link { padding: 10px; border-radius: 50%; }
}

/* ── NOSOTROS + CONTACTANOS responsive ── */
@media (max-width: 768px) {
  #vistaNosotros [style*="grid-template-columns:repeat(3"],
  #vistaContacto [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #vistaNosotros [style*="grid-template-columns:80px 1fr"] {
    grid-template-columns: 48px 1fr !important;
    gap: 16px !important;
  }
}