/*Animaciòn de los aniños inicio*/
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

/* Animación del carrusel */
@keyframes carrusel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

@keyframes carrusel-scroll-reverse {
  0% {
    transform: translateX(calc(-100% / 2));
  }
  100% {
    transform: translateX(0);
  }
}

/* Clases del carrusel */
.carrusel-container {
  position: relative;
}

.carrusel-track {
  position: relative;
}

.carrusel-animation {
  animation: carrusel-scroll 30s linear infinite;
  width: max-content;
}

.carrusel-animation:hover {
  animation-play-state: paused;
}

.carrusel-animation-reverse {
  animation: carrusel-scroll-reverse 30s linear infinite;
}

.carrusel-item {
  flex-shrink: 0;
  width: 12rem;
  height: 8rem;
  margin-left: 1rem;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-content {
  text-align: center;
  width: 100%;
}

.carrusel-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.carrusel-item:hover .carrusel-icon {
  transform: scale(1.1);
}

.carrusel-icon i {
  font-size: 1.875rem;
}

.carrusel-title {
  font-weight: bold;
  color: #1f2937;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.carrusel-item:hover .carrusel-title {
  color: #8b5cf6;
}

/* Responsive */
@media (max-width: 640px) {
  .carrusel-animation,
  .carrusel-animation-reverse {
    animation-duration: 20s;
  }

  .carrusel-item {
    width: 40vw;
    height: 28vw;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .carrusel-icon {
    width: 16vw;
    height: 16vw;
  }

  .carrusel-icon i {
    font-size: 1.25rem;
  }

  .carrusel-title {
    font-size: 0.875rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .carrusel-item {
    width: 10rem;
    height: 7rem;
  }

  .carrusel-icon {
    width: 4rem;
    height: 4rem;
  }

  .carrusel-icon i {
    font-size: 1.5rem;
  }

  .carrusel-title {
    font-size: 1rem;
  }
}

/* Para pantallas muy grandes */
@media (min-width: 1536px) {
  .carrusel-item {
    width: 14rem;
    height: 9rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .carrusel-icon {
    width: 6rem;
    height: 6rem;
  }

  .carrusel-icon i {
    font-size: 2.25rem;
  }

  .carrusel-title {
    font-size: 1.25rem;
  }
}

/* Estilos para las tarjetas desplegables */
.carrusel-banner {
  transition: transform 0.3s ease;
}

.carrusel-banner:hover {
  transform: translateY(-2px);
}

.carrusel-cards-container {
  position: relative;
}

.carrusel-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.carrusel-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #10b981;
}

.carrusel-card.active {
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.carrusel-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.carrusel-card.active .carrusel-card-header {
  border-bottom-color: #10b981;
  background: linear-gradient(to right, #f0fdf4, #ffffff);
}

.carrusel-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.carrusel-card-date {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.carrusel-card-stars {
  display: flex;
  align-items: center;
}

.carrusel-card-icon {
  transition: transform 0.3s ease;
}

.carrusel-card.active .carrusel-card-icon {
  transform: rotate(180deg);
}

.carrusel-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.carrusel-card.active .carrusel-card-content {
  max-height: 1000px;
}

.carrusel-card-body {
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .carrusel-card-header {
    padding: 1.25rem;
  }

  .carrusel-card-title {
    font-size: 1.125rem;
  }

  .carrusel-card-body {
    padding: 1.25rem;
  }

  .flex.items-center.space-x-4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
