/* Event 2024 Section */
.event-2024 {
  width: 100%;
  min-height: 50vh;
  padding: 1rem;
  margin: 4rem 0;
  background-color: #A51C30;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

/* Event 2025 Section */
.event-2025 {
  width: 100%;
  min-height: 50vh;
  padding: 1rem;
  margin: 4rem 0;
  background-color: #A51C30;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.event-2025 .event-2025-title {
  color: white;
  font-weight: bold;
  font-size: 22px;
}

.event-2025 .event-2025-subtitle {
  color: white;
  font-size: 18px;
}

/* Title and Container */
.title-event {
  color: #fff;
}

.container-title-event {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 20px;
  text-align: center;
}

/* Carousel Container */
.carousel-container {
    width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 80%; /* Aspect ratio 5:4 */
  background-color: #8B2A32;
}

.carousel .carousel-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel .carousel-images img {
  flex-shrink: 0;
  object-fit: contain;
  object-position: top center;
  background-color: #8B2A32;
  display: block;
}

.carousel .carousel-images video {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  object-position: top center;
  background-color: #8B2A32;
}

/* Centrado especial para imágenes verticales */
.carousel .carousel-images img.carousel-image-vertical {
  object-position: center center;
  object-fit: contain;
  background-color: #8B2A32;
}

.carousel .carousel-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.carousel .carousel-controls button {
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
  min-width: 36px;
  min-height: 36px;
}

.carousel .carousel-controls button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
  .carousel {
    padding-bottom: 75%; /* Aspect ratio 5:4 en tablets */
  }
  
  .carousel .carousel-controls {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }
  
  .carousel .carousel-controls button {
    font-size: 20px;
    padding: 8px 12px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media screen and (min-width: 1024px) {
  .carousel {
    padding-bottom: 70%; /* Aspect ratio 5:4 en desktop */
  }
  
  .carousel .carousel-images img {
    object-fit: cover;
    object-position: top center;
  }
  
  .carousel .carousel-images img.carousel-image-vertical {
    object-fit: contain;
    object-position: center center;
  }
  
  .carousel .carousel-controls {
    bottom: 32px;
  }
  
  .carousel .carousel-controls button {
    font-size: 24px;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media screen and (min-width: 1440px) {
  .carousel {
    padding-bottom: 52%; /* Aspect ratio 5:4 en pantallas grandes */
  }
  
  .carousel .carousel-controls {
    bottom: 64px;
  }
}

/* Carousel Video */
.carousel-video {
  display: flex;
  justify-content: center;
  background-color: #a51c30;
  padding: 1.5rem;
  width: 100%;
  max-width: 830px;
  margin: 14px auto;
  border-radius: 8px;
}

.carousel-video video {
  width: 100%;
  max-width: 800px;
  border-radius: 5px;
}

/* Responsive adjustments for event sections */
@media screen and (max-width: 767px) {
  .event-2025,
  .event-2024 {
    margin: 2rem 0;
    padding: 0.5rem;
  }
  
  .event-2025 .event-2025-title {
    font-size: 18px;
  }
  
  .event-2025 .event-2025-subtitle {
    font-size: 16px;
  }
  
  .container-title-event {
    padding-top: 40px;
    padding-bottom: 15px;
  }
  
  .carousel-video {
    padding: 1rem;
    margin: 10px auto;
  }
}

@media screen and (max-width: 480px) {
  .event-2025 .event-2025-title {
    font-size: 16px;
  }
  
  .event-2025 .event-2025-subtitle {
    font-size: 14px;
  }
  
  .container-title-event {
    padding-top: 30px;
    padding-bottom: 10px;
  }
  
  .title-event {
    font-size: 1.5rem;
  }
  
  .carousel-video {
    padding: 0.5rem;
  }
}
