/* 
 * EVENTOS SECTION STYLES
 * Estilos para la sección "Eventos" de Todo Versus
 * Diseñado con un carrusel de videos de TikTok y una paleta de colores violeta
 */

/* ----------------- CONTENEDOR PRINCIPAL ----------------- */
.eventos {
  /* Dimensiones */
  min-height: 100vh;
  width: 100%;
  
  /* Flexbox para alineación */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  /* Fondo con color violeta */
  background: linear-gradient(135deg, #5D3EA8 0%, #8A56AC 100%);
  
  /* Configuración adicional */
  text-align: center;
  position: relative;
  padding: 5rem 0;
  margin: 0;
  overflow: hidden;
}

/* Gradiente superior para transición suave */
.eventos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: linear-gradient(to top, transparent, rgba(93, 62, 168, 0.6));
  z-index: 2;
  display: block !important;
}

/* ----------------- GRID DE FONDO ----------------- */
.eventos .grid-overlay {
  /* Posición absoluta para cubrir toda la sección */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Patrón de cuadrícula creado con gradientes */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  
  /* Configuración adicional */
  pointer-events: none; /* Permite hacer clic a través */
  z-index: 1;
}

/* ----------------- CONTENEDOR PRINCIPAL ----------------- */
.eventos__container {
  /* Layout flexible */
  display: flex;
  flex-direction: column;
  align-items: center;
  
  /* Dimensiones */
  width: 100%;
  /* max-width: 1200px; Eliminamos o comentamos esto si el carrusel debe ser full-width */
  
  /* Posición y apariencia */
  position: relative;
  z-index: 2;
  padding: 2rem 0; /* Eliminamos padding horizontal para que el carrusel pueda expandirse */
}

/* ----------------- CABECERA DE SECCIÓN ----------------- */
.eventos__header {
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
  max-width: 1200px; /* Aplicamos el max-width aquí para centrar el título y subtítulo */
  padding: 0 2rem; /* Añadimos padding aquí si es necesario para el header */
  align-self: center; /* Asegurar que el header se centre si el eventos__container es flex */
}

.eventos__title {
  font-family: 'Anton', sans-serif;
  color: #FFFFFF; /* Blanco para la nueva paleta */
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 #8A56AC, 4px 4px 0 rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

.eventos__subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  color: #FFF;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
  opacity: 0.9;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

/* ----------------- CARRUSEL DE TIKTOK (NUEVO ESTILO) ----------------- */
.eventos__tiktok-carousel {
  position: relative;
  width: 100%; /* Ocupará el ancho completo del viewport */
  /* padding: 0 50px; Ajustaremos esto o lo haremos más dinámico */
  margin-bottom: 3rem;
  overflow: visible; /* Mantenemos visible por si los controles están fuera */
}

.eventos__tiktok-slider {
  display: flex;
  gap: 20px;
  /* width: 100%; Ya no es necesario, el contenedor padre lo define */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 10px 25px 30px 25px; /* Padding para que los items no se peguen a los bordes */
                                /* Puedes ajustar este padding según sea necesario */
}

/* Ocultar scrollbar pero mantener funcionalidad */
.eventos__tiktok-slider::-webkit-scrollbar {
  display: none;
}

.eventos__tiktok-item {
  flex: 0 0 auto;
  width: min(100%, 380px);
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  background: transparent;
}

.eventos__tiktok-item:hover {
  transform: scale(1);
}

/* Ajuste específico para TikTok embeds */
.eventos__tiktok-item .tiktok-embed {
  border: none !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

/* Estilos para la info debajo del video */
.eventos__tiktok-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 8px 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  text-align: left;
}

.eventos__tiktok-username {
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.eventos__tiktok-caption {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------- CONTROLES DEL CARRUSEL ----------------- */
.eventos__tiktok-control {
  background: #FFFFFF;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D3EA8;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* Ajustar posición de los controles si el padding del carousel cambia */
}

.eventos__tiktok-prev {
  left: 25px; /* Ajustar según el padding del slider o un valor fijo deseado */
}

.eventos__tiktok-next {
  right: 25px; /* Ajustar según el padding del slider o un valor fijo deseado */
}

.eventos__tiktok-control:hover {
  background: #5D3EA8;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.control-arrow {
  font-weight: bold;
}

/* ----------------- BOTÓN CTA (ELIMINADO) ----------------- */
/* .eventos__cta { ... } // Estilos eliminados */
/* .eventos__cta::before { ... } // Estilos eliminados */
/* .eventos__cta:hover { ... } // Estilos eliminados */
/* .eventos__cta:hover::before { ... } // Estilos eliminados */

/* ----------------- CONTENEDOR DE ACCIONES (NUEVOS BOTONES) ----------------- */
.eventos__actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem; /* Espacio después del carrusel */
  margin-bottom: 2rem; /* Espacio antes del botón "VER MÁS EVENTOS" */
  width: 100%;
  max-width: 600px; /* Ancho máximo para los botones de acción */
  padding: 0 1rem; /* Padding lateral */
}

.eventos__actions-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.eventos__action-button {
  /* Dimensiones y layout */
  display: inline-block;
  padding: 0.8rem 1.8rem;
  
  /* Apariencia */
  background: rgba(255, 255, 255, 0.85); /* Blanco con transparencia */
  color: #5D3EA8;
  border: 2px solid #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0,0,0,0.15);
  
  /* Tipografía */
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  
  /* Animación */
  transition: all 0.3s ease;
  flex-grow: 1; /* Para que los botones de la fila ocupen el espacio */
  max-width: calc(50% - 0.5rem); /* Para que dos botones quepan en la fila con gap */
}

.eventos__action-button--main {
  background: #FFFFFF; /* Blanco más sólido para el botón principal */
  color: #5D3EA8;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%; /* Ocupa todo el ancho disponible */
  max-width: 100%; /* Sobreescribe el max-width anterior */
  padding: 1rem 2rem;
}

.eventos__action-button:hover {
  background: #5D3EA8;
  color: #FFFFFF;
  border-color: #5D3EA8;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(93, 62, 168, 0.3), 0 4px 8px rgba(0,0,0,0.2);
}

.eventos__action-button--main:hover {
  background: #4A2F8C; /* Un violeta un poco más oscuro al hacer hover */
  color: #FFFFFF;
  border-color: #4A2F8C;
}

/* ----------------- SECCIÓN DE TESTIMONIOS ----------------- */
.eventos__testimonios {
  width: 100%;
  max-width: 1000px; /* Ancho máximo para la sección de testimonios */
  margin-top: 3rem; /* Espacio después de los botones de acción */
  padding: 0 1rem; /* Padding lateral */
  text-align: center;
}

.eventos__testimonios-title {
  font-family: 'Anton', sans-serif;
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 0 #8A56AC, 2px 2px 0 rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.eventos__testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonio__item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonio__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.testimonio__texto {
  font-family: 'Barlow Condensed', sans-serif;
  color: #FFF;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonio__autor {
  font-family: 'Barlow Condensed', sans-serif;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

/* ----------------- RESPONSIVE DESIGN ----------------- */
/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .eventos__title {
    font-size: 3rem;
  }
  
  .eventos__tiktok-carousel {
    /* padding: 0 40px; El padding ahora está en el slider */
  }
  
  .eventos__tiktok-prev {
    left: 20px;
  }

  .eventos__tiktok-next {
    right: 20px;
  }

  .eventos__tiktok-control {
    width: 50px;
    height: 50px;
  }

  .eventos__action-button {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
  }

  .eventos__action-button--main {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }

  .eventos__testimonios-title {
    font-size: 2.2rem;
  }

  .testimonio__texto {
    font-size: 1.05rem;
  }

  .testimonio__autor {
    font-size: 0.95rem;
  }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 768px) {
  .eventos__title {
    font-size: 2.5rem;
  }
  
  .eventos__subtitle {
    font-size: 1.3rem;
  }
  
  .eventos__tiktok-carousel {
    /* padding: 0 30px; El padding ahora está en el slider */
  }
  
  .eventos__tiktok-slider {
    padding: 10px 15px 30px 15px; /* Menor padding en móviles */
  }

  .eventos__tiktok-prev {
    left: 15px;
  }

  .eventos__tiktok-next {
    right: 15px;
  }

  .eventos__tiktok-control {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .eventos__actions-container {
    max-width: 100%; /* Ocupar todo el ancho en móviles */
    padding: 0 1.5rem; /* Ajustar padding lateral */
  }

  .eventos__actions-row {
    flex-direction: column; /* Apilar botones en móviles */
    gap: 0.8rem;
  }

  .eventos__action-button {
    max-width: 100%; /* Botones de la fila ocupan todo el ancho */
    font-size: 0.9rem;
  }

  .eventos__action-button--main {
    font-size: 0.95rem;
  }

  .eventos__testimonios {
    margin-top: 2.5rem;
  }

  .eventos__testimonios-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .eventos__testimonios-grid {
    grid-template-columns: 1fr; /* Un testimonio por fila en móviles */
    gap: 1rem;
  }

  .testimonio__item {
    padding: 1.2rem;
  }

  .testimonio__texto {
    font-size: 1rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
  .eventos__title {
    font-size: 2rem;
  }
  
  .eventos__subtitle {
    font-size: 1.1rem;
  }
  
  .eventos__tiktok-carousel {
     /* padding: 0 25px; El padding ahora está en el slider */
  }

  .eventos__tiktok-slider {
    padding: 10px 10px 30px 10px; /* Menor padding en móviles muy pequeños */
  }
  
  .eventos__tiktok-prev {
    left: 10px;
  }

  .eventos__tiktok-next {
    right: 10px;
  }

  .eventos__tiktok-control {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .eventos__actions-container {
    padding: 0 1rem; /* Menor padding lateral */
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }

  .eventos__action-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .eventos__action-button--main {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }

  .eventos__testimonios-title {
    font-size: 1.8rem;
  }

  .testimonio__texto {
    font-size: 0.95rem;
  }

  .testimonio__autor {
    font-size: 0.9rem;
  }
} 