/* ============================================
   ANIMACIONES SUTILES Y PROFESIONALES
   ============================================ */

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}

/* Fade in al cargar elementos */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para tarjetas */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Pulse suave para botones */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Transiciones globales suaves */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Botones con hover elegante */
button,
.btn,
a.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Links con transición suave */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Tarjetas de actividades */
.actividad-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.actividad-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Pills de filtros */
.filter-pill {
  transition: all 0.3s ease;
}

.filter-pill:hover {
  transform: scale(1.05);
}

.filter-pill.active {
  animation: pulse 2s ease-in-out infinite;
}

/* Iconos con hover */
i[class*="ph-"],
.icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

a:hover i[class*="ph-"],
button:hover i[class*="ph-"],
.social-link:hover i {
  transform: scale(1.2);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: cardFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  animation: none;
}

/* Header con sombra al scroll */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Fade in para secciones al scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading skeleton para imágenes */
.img-skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Hover en tarjetas de turismo */
.turismo-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.turismo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Input focus con glow */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  transition: box-shadow 0.2s ease;
}

/* Badges animados */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* Reducir animaciones para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
