/* ===== FUENTES ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== CONFIGURACIÓN GLOBAL ===== */
* {
  font-family: "Montserrat", sans-serif;
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}

/* ===== TRANSICIONES Y ANIMACIONES ===== */
.hero-bg-transition {
  transition: opacity 1.5s ease-in-out;
}

.smooth-fade {
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.fade-out {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fadeInUp 1s ease-out;
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

/* ===== CAROUSEL STYLES ===== */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -15px, 0);
  }
  70% {
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

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

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== CLASES DE ANIMACIÓN ===== */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.animate-fade-in {
  animation: fadeIn 2s ease-in-out;
}

.animate-bounce-slow {
  animation: bounce 3s infinite;
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* ===== EFECTOS VISUALES ===== */
.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 8s infinite linear;
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.2);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* ===== SCROLL PERSONALIZADO UNIFICADO ===== */
      /* Scrollbar personalizado */
      ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: #371859;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #4A376A 0%, #6B46C1 50%, #8B5CF6 100%);
        border-radius: 10px;
        border: 2px solid #2A004E;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #6B46C1 0%, #8B5CF6 50%, #A855F7 100%);
    }

    /* Para Firefox */
    html,
    body {
        scrollbar-width: thin;
        scrollbar-color: #4A376A #2A004E;
    }

/*  */

@keyframes slideIn {
  from {
      opacity: 0;
      transform: scale(0.95);
  }

  to {
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
      transform: translateX(-100%);
  }

  100% {
      transform: translateX(100%);
  }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

.shimmer {
  animation: shimmer 1s ease-out;
}

.image-item {
  transition: all 0.5s ease;
}

.image-item:hover {
  transform: scale(1.05);
}

.progress-dot {
  transition: all 0.5s ease;
}

.progress-dot.active {
  width: 2rem;
  background: linear-gradient(to right, #a78bfa, #c084fc);
}

.progress-dot:not(.active) {
  width: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
}

  /* Reset completo */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

/* Efectos de vidrio */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Animación de texto brillante */
.text-shimmer {
  /* background: linear-gradient(90deg, #ffffff 0%, #ebebeb 25%, #fcfbfd 50%, #fdfdfd 75%, #ffffff 100%); */
  background: linear-gradient(90deg, #ffffff 0%, #371859 25%, #5B2C94 50%, #8B5FBF 75%, #ffffff 100%);
  background-size: 300% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;

  /* Nuevo: Glow suave */
  /* text-shadow: 0 0 5px rgba(168, 85, 247, 0.5), 0 0 10px rgba(139, 92, 246, 0.4); */
  transition: opacity 1s ease-in-out; /* Más suave */
}

/* Suavizar el cambio de opacidad */
#animated-word {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

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


#typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #e9d5ff; /* violeta claro */
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* SPIN DE CARGA FORMULARIO */
.hidden {
  display: none;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Agregando estilos específicos para el modal */
#image-modal {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#modal-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Asegurar que el modal esté por encima de todo */
#image-modal {
  z-index: 9999;
}

/* Cursor zoom para las imágenes de la galería */
.image-zoom {
  cursor: zoom-in;
}

/* Responsive para el modal */
@media (max-width: 768px) {
  #modal-image {
    max-width: 95vw;
    max-height: 80vh;
  }

  #close-modal,
  #modal-prev,
  #modal-next {
    padding: 0.5rem;
  }

  #close-modal {
    top: 1rem;
    right: 1rem;
  }

  #modal-prev {
    left: 1rem;
  }

  #modal-next {
    right: 1rem;
  }
}
