* { font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
.glow-text { text-shadow: 0 0 8px rgba(255,215,0,0.6), 0 0 20px rgba(255,215,0,0.3); }
.btn-glow:hover { box-shadow: 0 0 15px rgba(234, 179, 8, 0.6), 0 0 5px rgba(234, 179, 8, 0.4); transition: all 0.25s ease-in-out; }
.card-hover { transition: transform 0.3s ease, box-shadow 0.4s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 25px 35px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(234,179,8,0.2); }
.hero-gradient {
    background: linear-gradient(105deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%),
      url('../img/hero.jpg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;

}
.section-fade { animation: fadeUp 0.8s ease-out forwards; }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.footer-glow a:hover .fab, .footer-glow a:hover .fa-heart { text-shadow: 0 0 8px #eab308, 0 0 12px #eab308; }
.whatsapp-card {
  background: rgba(15, 18, 25, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 179, 8, 0.3);
  transition: all 0.3s;
}
.whatsapp-card:hover { border-color: rgba(234, 179, 8, 0.7); box-shadow: 0 20px 30px -12px rgba(0,0,0,0.4); }
.whatsapp-btn-main {
  background: #25D366;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px -5px #25D36680;
}
.whatsapp-btn-main:hover { background: #128C7E; transform: scale(1.02); box-shadow: 0 8px 25px -5px #25D366; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1e1f25; }
::-webkit-scrollbar-thumb { background: #eab308; border-radius: 10px; }
.gallery-item {
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px -15px rgba(0,0,0,0.5);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}
.group:hover .video-wrapper video {
  transform: scale(1.02);
}

/* Controles de video personalizados sutiles */
video::-webkit-media-controls-panel {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

video::-webkit-media-controls-play-button {
  background-color: #eab308;
  border-radius: 50%;
}

/* Efecto glow en hover para las tarjetas de video */
.group:hover {
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}


/* Botón flotante de WhatsApp con posición personalizada */
/*.btn-whatsapp-float {
    position: fixed;
    bottom: 60px;
    right: 1.5rem;  /* 24px * /
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -12px rgba(37, 211, 102, 0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    animation: bounce 2s infinite;
}

.btn-whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.02);
    box-shadow: 0 8px 25px -5px #25D366;
}
*/

/* Estilos para controles de video */
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

video::-webkit-media-controls-panel {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

video::-webkit-media-controls-play-button {
  background-color: #eab308;
  border-radius: 50%;
}

video::-webkit-media-controls-play-button:hover {
  background-color: #f59e0b;
  transform: scale(1.1);
}
/* Video wrapper asegura tamaño correcto */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #1a1c23;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Estilo para los controles del video */
video:focus {
  outline: none;
}

/* Botón flotante con efecto de fuego realista */
.btn-whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 1.5rem;
  background-color: #25D366;
  color: white;
  padding: 1rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -12px rgba(37, 211, 102, 0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
  overflow: visible;
  cursor: pointer;
}

/* Efecto fuego al hover - múltiples capas de llamas */
.btn-whatsapp-float:hover {
  background: linear-gradient(145deg, #ff7e05, #ff3c00, #d43800);
  transform: scale(1.1);
  box-shadow: 0 0 30px #ff5500, 0 0 50px #ffaa00;
  transition: all 0.2s ease;
}

/* Flama superior */
.btn-whatsapp-float:hover::before {
  content: '🔥';
  position: absolute;
  font-size: 2rem;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: flameUp 0.4s ease-out forwards;
  filter: drop-shadow(0 0 5px #ff6600);
}

/* Flama izquierda */
.btn-whatsapp-float:hover .flame-left {
  position: absolute;
  content: '🔥';
  font-size: 1.5rem;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: flameSide 0.4s ease-out 0.1s forwards;
}

/* Flama derecha */
.btn-whatsapp-float:hover .flame-right {
  position: absolute;
  content: '🔥';
  font-size: 1.5rem;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: flameSide 0.4s ease-out 0.15s forwards;
}

/* Partículas de chispas */
.btn-whatsapp-float:hover .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffaa00;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkFly 0.6s ease-out forwards;
}

.spark:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.spark:nth-child(2) { bottom: 0; left: 30%; animation-delay: 0.1s; }
.spark:nth-child(3) { top: 30%; right: 0; animation-delay: 0.05s; }
.spark:nth-child(4) { bottom: 20%; left: 10%; animation-delay: 0.15s; }
.spark:nth-child(5) { top: 50%; left: 0; animation-delay: 0.2s; }
.spark:nth-child(6) { bottom: -5px; right: 20%; animation-delay: 0.08s; }

@keyframes flameUp {
  0% {
      opacity: 0;
      transform: translateX(-50%) scale(0.5);
      top: -10px;
  }
  50% {
      opacity: 1;
      transform: translateX(-50%) scale(1.2);
  }
  100% {
      opacity: 0;
      transform: translateX(-50%) scale(0.8);
      top: -45px;
  }
}

@keyframes flameSide {
  0% {
      opacity: 0;
      transform: translateY(-50%) scale(0.5);
  }
  50% {
      opacity: 1;
      transform: translateY(-50%) scale(1.3);
  }
  100% {
      opacity: 0;
      transform: translateY(-50%) scale(0.7);
  }
}

@keyframes sparkFly {
  0% {
      opacity: 1;
      transform: scale(1);
  }
  100% {
      opacity: 0;
      transform: translate(var(--sx, 15px), var(--sy, -25px)) scale(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Tooltip con efecto */
.tooltip-text {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #eab308;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-weight: 600;
}

.btn-whatsapp-float:hover .tooltip-text {
  opacity: 1;
}


@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .animate-bounce-slow {
    animation: bounce 2s infinite;
  }

  /* En móviles, reducir aún más la opacidad del gradiente */
@media (max-width: 768px) {
  .hero-gradient {
      background: linear-gradient(105deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%),
                  url('../img/hero.jpg') center/cover no-repeat;
  }
}