/* ============================================
   Delta Elevadores V2 — Custom CSS
   Stack: Tailwind v4 + Alpine.js + Swiper + AOS
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: whatsapp-pulse 1.5s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Swiper Testimonial Overrides ---- */
.testimonial-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  width: 10px;
  height: 10px;
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: #D4AF37;
  width: 28px;
  border-radius: 5px;
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: #0f1923;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

#preloader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #0066AF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Scroll-to-Top ---- */
.scroll-top {
  position: fixed;
  bottom: 85px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0066AF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 102, 175, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #004d82;
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
  }
  .scroll-top {
    bottom: 100px;
    right: 30px;
  }
}
