/* ===========================================
   ESTILOS PERSONALIZADOS - TAILWIND CSS
   Solo lo esencial que Tailwind no cubre
   =========================================== */

/* ===== ANIMACIONES CLAVE ===== */

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

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== LOADER ===== */

#loader-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ff6b35, #f39c12);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loader-bg.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== EFECTOS ESPECIALES ===== */

.gradient-text {
  background: linear-gradient(135deg, #ff6b35, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO - ELEMENTOS FLOTANTES ===== */

.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-element.element-1 {
  width: 300px;
  height: 300px;
  background: #ff6b35;
  top: 10%;
  left: 10%;
}

.floating-element.element-2 {
  width: 200px;
  height: 200px;
  background: #f39c12;
  top: 50%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element.element-3 {
  width: 150px;
  height: 150px;
  background: #3498db;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

/* ===== ANIMACIONES DE ENTRADA ===== */

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease-out forwards;
}

/* ===== BOTONES FLOTANTES ===== */

.whatsapp-float,
.call-float {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: all 0.3s ease;
}

/* Ocultar en escritorio, solo mostrar en tablets y móviles */
@media (min-width: 1024px) {
  .whatsapp-float,
  .call-float {
    display: none;
  }
}

.whatsapp-float {
  right: 20px;
  background: #25D366;
}

.call-float {
  right: 90px;
  background: #ff6b35;
}

.whatsapp-float:hover,
.call-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i,
.call-float i {
  font-size: 24px !important;
}

/* ===== BOTÓN HEADER ANIMADO ===== */

.bg-size-200 {
  background-size: 200%;
}

.bg-pos-0 {
  background-position: 0%;
}

.bg-pos-100:hover {
  background-position: 100%;
}

/* ===== MODAL ===== */

#modal-cita.show {
  display: flex !important;
}

/* ===== SCROLL TO TOP ===== */

#scroll-to-top.show {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .floating-element {
    display: none;
  }
  
  .whatsapp-float,
  .call-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
  }
  
  .whatsapp-float {
    right: 15px;
  }
  
  .call-float {
    right: 75px;
  }
}
