/* ============================= */
/*        SECCIÓN EVENTOS        */
/* ============================= */

.events-section {
  width: 100%;
  background: linear-gradient(180deg, #fdf7f0 0%, #f8f3ec 100%);
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.events-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== TÍTULO ===== */

.events-container h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.6em;
  color: #1e3a8a;
  margin-bottom: 70px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

/* Línea decorativa premium */
.events-container h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f4a261;
  margin: 20px auto 0;
  border-radius: 10px;
}

/* ============================= */
/*          CARRUSEL             */
/* ============================= */

.carousel {
  position: relative;
  overflow: hidden;
  width: 100vw; /* Ocupa todo el ancho visible */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-track {
  display: flex;
  gap: 40px;
  background-color: white;
  width: max-content;
}

/* Animación infinita real */
@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================= */
/*            CARD               */
/* ============================= */

.event-card {
  min-width: 360px;
  max-width: 360px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hover premium */
.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.event-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Zoom suave en hover */
.event-card:hover img {
  transform: scale(1.05);
}

/* Título */
.event-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4em;
  color: #1e3a8a;
  margin: 20px 0 10px;
}

/* Texto */
.event-card p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #6c757d;
  margin: 0 20px 25px;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Botón premium */
.btn-event {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f4a261, #e07b3b);
  color: white;
  transition: all 0.3s ease;
  margin-bottom: 25px;
  font-size: 0.9em;
  box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

.btn-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(224, 123, 59, 0.4);
}

/* ============================= */
/*         RESPONSIVE            */
/* ============================= */

@media (max-width: 1024px) {
  .event-card {
    min-width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .carousel {
    max-width: 100vw;
    padding: 0 10px;
  }

  .carousel-track {
    gap: 25px;
    animation: scrollCarousel 30s linear infinite;
  }

  .event-card {
    min-width: 280px;
    max-width: 280px;
  }
}