/* Animaciones personalizadas */
.animate-fade-in {
  animation: fadeIn 1.5s ease-in-out;
}
.animate-slide-in-right {
  animation: slideInRight 1s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Estilo del carrusel */
.carousel-track {
  transition: transform 0.5s ease-in-out;
  display: flex;
  will-change: transform;
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes pulseGrowShrink {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

.pulse-icon {
  animation: pulseGrowShrink 1.2s infinite;
}

/* Animación rebote botón */
@keyframes bounceGrowWiggle {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(2deg); }
  50% { transform: scale(1.1) rotate(-2deg); }
  75% { transform: scale(1.1) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animate-bounce-grow {
  transform-origin: center;
  animation: bounceGrowWiggle 0.6s ease-in-out;
}

.cta-button {
  background-color: #a78736;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.cta-button:hover {
  background-color: #d0af68;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out;
}

.animate-fade-in.visible {
  animation: fadeIn 1.5s ease-in-out forwards;
}

/* Animación Pantalla de inicio */
/* Para que la animación sea más lenta reemplazar 40 a 20, 0.8 a 1, ease-out a ease-in-out   */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out both;
}

/* Barra de progreso del formulario */
#barraProgreso {
  transition: width 0.3s ease-in-out;
}

/* Animación bounce-grow usada en botón de solicitud */
.animate-bounce-grow {
  animation: bounceGrowWiggle 1s infinite;
}

@keyframes bounceGrowWiggle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05) rotate(1deg);
  }
}

/* Animación elegante para el check de éxito */
.animate-pulse-once {
  animation: pulseOnce 1.2s ease-out;
}

@keyframes pulseOnce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Ajustes para bloque Faculty horizontal */
#bloque9 img {
  object-fit: cover;
}

@media (max-width: 768px) {
  #bloque9 .group {
    flex-direction: column;
    text-align: center;
  }

  #bloque9 img {
    width: 100%;
    height: 200px;
    border-radius: 0;
  }

  #bloque9 .absolute {
    position: static !important;
    margin-top: 0.5rem;
  }
}

/* Ajuste visual del bloque de certificación */
#bloque10 h3 {
  font-size: 1.25rem;
}

#bloque10 img {
  transition: transform 0.5s ease;
}