/* ========================================
FUENTE GLOBAL - FUTURA PT TYPEKIT
======================================== */

* {
  font-family: "futura-pt", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* ========================================
ESTILOS ESTÁNDAR
======================================== */

/* Descripción estándar para carteleras y secciones */
.descripcion-estandar {
  text-align: left;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.5vh;
  margin-top: 0.5vh;
  line-height: 1.6;
}

/* Título estándar para carteleras y secciones */
.titulo-estandar {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

/* ========================================
NAVIGATION BAR
======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  gap: 40px;
  position: relative;
}

.nav-left {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  height: 110px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: relative;
  top: 0px;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
  position: relative;
}

.nav-link:hover {
  color: #e38228;
  background: rgba(227, 130, 40, 0.1);
  backdrop-filter: blur(5px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e38228;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ========================================
   MENÚ HAMBURGUESA PARA MÓVILES
   ======================================== */

/* Ocultar menú desktop en móviles */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .nav-container {
    padding: 0 15px;
    height: 60px;
    justify-content: space-between;
  }
  
  .nav-logo-img {
    height: 100px;
    opacity: 1;
    visibility: visible;
    position: relative;
    top: 0px;
  }
  
  /* En móviles, el logo debe estar a la izquierda */
  .nav-center {
    position: static;
    transform: none;
  }
}

/* Mostrar menú desktop en pantallas grandes */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
  
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* En PC, el logo debe estar centrado */
  .nav-container {
    justify-content: center;
  }
  
  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Botón hamburguesa */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación del botón hamburguesa */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú móvil desplegable */
.mobile-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu.active {
  display: flex;
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #e38228;
  padding-left: 10px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Responsive para navbar */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }
  
  .nav-logo-img {
    height: 55px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .nav-left, .nav-right {
    gap: 15px;
  }
  
  .nav-container {
    gap: 30px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .nav-left, .nav-right {
    gap: 10px;
  }
  
  .nav-container {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ========================================
SECCIÓN VIDEO HEADER
======================================== */

header.video-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 20px 100px 0 rgba(0, 0, 0, 0.3);
}

header.video-header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Oscurece el video */
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  padding-top: 10vh; /* Mueve el logo más arriba */
}

.logo-container {
  width: clamp(100px, 40vh, 600px);
  margin: 0 auto 1.5vh auto; 
  transition: all 1.5s ease;
}

.logo-container.shrink {
  width: 10vh !important;
}

#sticky-header-logo { /*Logo fijo esquina*/
  position: fixed;
  top: 13px; /*Poiscion Y del logo*/
  left: 13px; /*Poiscion X del logo*/
  width: 0;
  opacity: 0;
  transition: all 0.5s ease; /*Animacion del logo*/
  z-index: 999;
}

/* ========================================
   SECCIÓN PRÓXIMO EVENTO
   ======================================== */

.proximo-sunset-text-bottom {
  position: absolute;
  bottom: clamp(40px, 8vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, min(4vw, 6vh), 5rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: clamp(0.05em, 0.8vw, 0.15em);
  text-shadow: 0 clamp(4px, 1vw, 8px) clamp(8px, 2vw, 16px) rgba(0,0,0,0.8);
  line-height: 1.1;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.proximo-sunset-text-bottom:hover {
  transform: translateX(-50%) scale(1.05);
}

.proximo-sunset-text-bottom .arrow-down {
  font-size: clamp(1.2rem, min(2.5vw, 3.5vh), 2rem);
  margin-top: clamp(8px, 1.5vh, 15px);
  animation: bounce 2s infinite;
  display: block;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.proximo-evento-detalles {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 5vh 0;
  margin-top: 2vh;
  text-align: center;
}

.proximo-evento-detalles .container {
  max-width: 12000px;
  margin: 0 auto;
}

.proximo-evento-detalles h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3vh;
  padding: 0 10%;
}

.evento-fecha-hora {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2vh;
  position: relative;
  letter-spacing: 0.05em;
}

.evento-fecha-hora .evento-separador {
  color: #e53935;
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
  font-weight: 900;
  margin: 0 1vw;
}

.evento-fecha-hora .evento-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 5px;
  background: #e53935;
  border-radius: 3px;
  width: 100%;
  max-width: 504px;
  margin: 0 auto;
  z-index: 1;
}

.evento-descripcion-corta {
  text-align: center;
  color: #fff;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5vh;
  margin-top: 0.5vh;
  line-height: 1.3;
}

.evento-buttons {
  display: flex;
  justify-content: center;
  gap: 3vw;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4vh;
}

.evento-button {
  border: 3px solid;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  border-radius: 8px;
  font-weight: 600;
  padding: 1.5vh 3vw;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 20vw;
  text-align: center;
  max-width: 50%;
  box-sizing: border-box;
}

.evento-button.inscribir {
  border-color: #e38228;
  background-color: rgba(227, 130, 40, 0.1);
  color: #e38228;
}

.evento-button.sponsor {
  border-color: #0086e8;
  background-color: rgba(0, 134, 232, 0.1);
  color: #0086e8;
}

.evento-button.ver {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.evento-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  will-change: transform;
}

.evento-button.inscribir:hover {
  background-color: #e38228 !important;
  color: #ffffff !important;
}

.evento-button.sponsor:hover {
  background-color: #0086e8 !important;
  color: #ffffff !important;
}

.evento-button.ver:hover {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}

/* ========================================
   SECCIÓN EVENTO CARTELERA
   ======================================== */

.EventoCartelera-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%; /*Tamaño total del bloque*/
  width: 100%;
  padding: 40px 0;
}

.EventoCartelera-text {
  flex: 1;
  margin: 20px 20px;
  text-align: center;
}

.EventoCartelera-text h2 {
  font-size: 32px; /* Aumentado de 28px a 32px */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.EventoCartelera-text p {
  font-size: 18px; /* Aumentado de 16px a 18px */
  margin-bottom: 30px;
  line-height: 1.6; /* Agregado para mejor legibilidad */
}

.EventoCartelera-button {
  border: 2px solid black;
  background-color: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  font-size: 16px; /* Aumentado de 14px a 16px */
  border-radius: 6px;
  font-weight: 500;
  color: black;
  padding: 8px 48px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.EventoCartelera-button:hover {
  background-color: black;
  color: white;
}

/* Ajustes del botón dentro del panel de Eventos Anteriores - Estilo YouTube */
.eventos-info-panel .EventoCartelera-button {
  display: block;
  width: max-content;
  margin: 32px auto 0;
  text-align: center;
  border: 2px solid #ff0000; /* Borde rojo de YouTube */
  background-color: rgba(255, 0, 0, 0.2); /* Fondo rojo transparente */
  color: #ffffff; /* Texto blanco */
  font-weight: 600; /* Peso de fuente más bold */
  transition: all 0.3s ease; /* Transición suave */
}

.eventos-info-panel .EventoCartelera-button:hover {
  background-color: rgba(255, 0, 0, 0.4); /* Rojo más opaco al hover */
  border-color: #ff0000; /* Mantener borde rojo */
  color: #ffffff; /* Mantener texto blanco */
  transform: translateY(-2px); /* Efecto de elevación sutil */
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); /* Sombra roja sutil */
}

.EventoCartelera-gallery {
  display: flex;
  width: 65%;
  height: 430px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.EventoCartelera-gallery img {
  width: 0px;
  flex-grow: 1;
  object-fit: cover;
  opacity: 0.9;
  transition: .8s ease;
}

.EventoCartelera-gallery img {
  cursor: crosshair;
}

.EventoCartelera-gallery img.active {
  width: 55%;
  opacity: 1;
  filter: contrast(100%);
}

/* ========================================
   SISTEMA DE POSICIONAMIENTO DE IMÁGENES
   ======================================== */ 

/* Evento 3: Sunset Motor Show Embalse */
.EventoCartelera-gallery img.motorshow-embalse-1 { object-position: 50% center; }
.EventoCartelera-gallery img.motorshow-embalse-2 { object-position: 75% center; }
.EventoCartelera-gallery img.motorshow-embalse-3 { object-position: 85% center; }
.EventoCartelera-gallery img.motorshow-embalse-4 { object-position: 65% center; }
.EventoCartelera-gallery img.motorshow-embalse-5 { object-position: 50% center; }

 
/* ========================================
   SECCIÓN EVENTOS ANTERIORES - SISTEMA ESTANDARIZADO
   ======================================== */

.EventosAnteriores-section {
  margin: 0;
  width: 100%;
  padding: 40px 0 60px 0;
}

/* Contenedor del carousel estandarizado */
.eventos-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.eventos-carousel-slides {
  position: relative;
  overflow: hidden;
}

.evento-slide {
  display: none;
  width: 100%;
}

.evento-slide.active {
  display: block;
}

/* Animaciones de transición para Eventos Anteriores */
.evento-slide.is-exiting {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.evento-slide.slide-in-right {
  animation: eaFadeSlideInRight 0.6s ease forwards;
}

.evento-slide.slide-in-left {
  animation: eaFadeSlideInLeft 0.6s ease forwards;
}

.evento-slide.slide-out-left {
  animation: eaFadeSlideOutLeft 0.6s ease forwards;
}

.evento-slide.slide-out-right {
  animation: eaFadeSlideOutRight 0.6s ease forwards;
}

@keyframes eaFadeSlideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes eaFadeSlideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes eaFadeSlideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

@keyframes eaFadeSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .evento-slide.slide-in-right,
  .evento-slide.slide-in-left,
  .evento-slide.slide-out-left,
  .evento-slide.slide-out-right {
    animation: none !important;
  }
}

/* Sistema de bullets estandarizado */
.eventos-pagination {
  position: relative;
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eventos-bullets {
  display: flex;
  gap: 10px;
}

.eventos-bullet {
  cursor: pointer;
  transform: scale(0.6);
  transition: transform 0.3s ease;
}

.eventos-bullet.active {
  transform: scale(1);
}

.eventos-bullet svg {
  display: block;
}

.eventos-bullet-bg {
  fill: #000000 !important;
}

.eventos-bullet-progress {
  stroke: #000000;
  stroke-dasharray: 56.52;
  stroke-dashoffset: 56.52;
  transition: stroke-dashoffset 0.3s ease;
}

.eventos-bullet.active .eventos-bullet-progress {
  stroke: #e38228;
  animation: eventosProgressAnimation 15s linear forwards;
}

/* Paginación */
.pagination {
  position: relative;
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilos para la nueva paginación de bullets */
.bullets {
  display: flex;
  gap: 10px;
}

.bullet {
  cursor: pointer;
  transform: scale(0.6);
  transition: transform 0.3s ease;
}

.bullet.active {
  transform: scale(1);
}

svg {
  display: block;
}

.bullet-bg {
  fill: #000000 !important;
}

.bullet-progress-circle {
  stroke: #000000;
  stroke-dasharray: 56.52;
  stroke-dashoffset: 56.52;
  transition: stroke-dashoffset 0.3s ease;
}

.bullet.active .bullet-progress-circle {
  stroke: #e38228;
  animation: progressAnimation 8s linear forwards;
}

@keyframes progressAnimation {
  0% {
    stroke-dashoffset: 56.52;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes eventosProgressAnimation {
  0% {
    stroke-dashoffset: 56.52;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* ========================================
   SECCIÓN PATROCINADORES
   ======================================== */

.Seccion_Patrocinadores {
  overflow: hidden;
  width: 100%;
  background: white;
  position: relative;
}

.Carrusel {
  display: flex;
  width: max-content;
  animation: scroll 120s linear infinite;
}

.Caballos {
  display: flex;
  gap: 15px; /* Espacio entre imágenes */
}

.Carrusel img {
  max-height: 80px;
  max-width: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   SECCIÓN ABOUT ME
   ======================================== */

.AboutMe-section {
  background: #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  padding: 60px 0;
  gap: 100px;
  justify-content: center; /* Centra horizontalmente */
  align-items: flex-start; /* Alinea arriba verticalmente */
}

.AboutMe-text {
  flex: 1;
  min-width: 280px;
  margin: 20px;
}

/* Título de "Sobre Nosotros" - 10% más pequeño */
.AboutMe-text .titulo-estandar {
  font-size: 29px;
}

.AboutMe-carousel {
  flex: 2;
  overflow: hidden;
  position: relative;
}

.AboutMe-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.AboutMe-slide {
  flex: 0 0 100%;
  margin: 0;
  text-align: center;
}

.AboutMe-slide img {
  width: 100%;
  height: 500px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  margin: 0;
}

/* ========================================
   SECCIÓN PREGUNTAS FRECUENTES
   ======================================== */

/* Título de "Preguntas frecuentes" - 10% más pequeño */
.preguntas-titulo.titulo-estandar {
  font-size: 29px;
  margin-top: 40px;
}

.Seccion_Preguntas {
  max-width: 700px;
  margin: 40px auto;
}

.Caja_Pregunta {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.Pregunta {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  background: #eaeaea;
  transition: background 0.3s;
  font-size: 18px; /* Agregado tamaño de fuente */
}

.Pregunta:hover {
  background: #dcdcdc;
}

.Respuesta {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  background: #fff;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  /* Aplicando tipografía de descripcion-estandar */
  text-align: left;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.6;
}

.Caja_Pregunta.active .Respuesta {
  max-height: 500px;
  opacity: 1;
  padding: 15px 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Responsive para Evento Cartelera y Sobre Nosotros */
@media (max-width: 900px) {
  .EventoCartelera-container {
    flex-direction: column;
    padding: 20px 0;
  }

  .EventoCartelera-text {
    order: 1;
    margin: 10px 20px;
  }

  .EventoCartelera-gallery {
    order: 2;
    width: 100%;
    height: 300px;
  }

  .AboutMe-section {
    flex-direction: column;
    padding: 30px 0;
    gap: 40px;
  }

  .AboutMe-text {
    order: 1;
    margin: 0 20px;
    min-width: auto;
  }

  .AboutMe-carousel {
    order: 2;
    flex: 1;
    width: 100%;
  }

  .AboutMe-slide img {
    height: 300px;
  }
}

/* Responsive para Patrocinadores */
@media (max-width: 400px) {
  .Carrusel {
    animation-duration: 30s;
  }

  .Carrusel img {
    max-height: 80px;
  }
}

/* Responsive para Footer */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  footer .grid > div:first-child {
    text-align: center;
  }
  
  footer .grid > div:first-child > div {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  footer .grid > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  footer .grid > div:last-child > div {
    text-align: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 30px 15px !important;
  }
  
  footer .grid {
    gap: 25px !important;
  }
  
  footer .grid > div:last-child {
    gap: 15px !important;
  }
  
  footer .grid > div:last-child > div ul {
    gap: 8px !important;
  }
}

/* Estilos responsive para la próxima Sunset */
@media (max-width: 700px) {
  .evento-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
  }
  .evento-button {
    border: 3px solid black;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    font-size: 16px;
    border-radius: 6px;
    font-weight: 500;
    color: black;
    padding: 8px 10px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    min-width: 0;
    width: 85%;
    text-align: center;
    margin: 0;
  }
  .evento-button.inscribir {
    border-color: #e38228;
    background-color: rgba(227, 130, 40, 0.1);
    color: #e38228;
  }
  .evento-button.sponsor {
    border-color: #0086e8;
    background-color: rgba(0, 134, 232, 0.1);
    color: #0086e8;
  }
  .evento-button.ver {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  .evento-button:hover {
    background-color: black;
    color: white;
  }
  .evento-descripcion-corta {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 3.6vw;
  }
}

/* ========================================
   VISOR DE IMÁGENES DE EVENTOS PASADOS - EFECTO DE EXPANSIÓN
   ======================================== */

/* Contenedor principal del visor de imágenes de eventos pasados */
.eventos-anteriores-viewer {
  margin: 2vh 0;
  max-width: 100%;
  padding: 0 2vw; /* Usando viewport width para mejor responsividad */
}

/* Separación simétrica para pantallas superiores a 1050px */
@media (min-width: 1051px) {
  .eventos-anteriores-viewer {
    padding: 0 3vw; /* Separación simétrica en pantallas grandes */
  }
}

/* Contenedor principal con layout flex para el visor de eventos pasados */
.eventos-viewer-container {
  display: flex;
  gap: 2vw; /* Usando viewport width para gap responsive */
  align-items: flex-start;
  width: 100%;
  min-height: 60vh; /* Altura mínima usando viewport height */
}

/* Panel de información del visor de eventos pasados */
.eventos-info-panel {
  flex: 0 0 30%; /* Aumentado a 30% para mejor proporción */
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); /* Mantener fondo negro degradado */
  padding: 3vh 2vw; /* Usando viewport units para padding responsive */
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); /* Mantener sombra original */
  color: #ffffff; /* Texto blanco */
  position: sticky;
  top: 10vh; /* Usando viewport height */
  height: 70vh; /* Altura usando viewport height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Estilos específicos del panel aplicados a las clases estándar */
.eventos-info-panel .titulo-estandar {
  font-size: 32px; /* Mismo tamaño que cartelera */
  font-weight: bold; /* Mismo peso que cartelera */
  text-transform: uppercase; /* Mismo transform que cartelera */
  margin-bottom: 20px; /* Mismo margen que cartelera */
  color: #ffffff; /* Texto blanco para contraste con fondo negro */
  text-align: center; /* Mismo alineación que cartelera */
  letter-spacing: normal; /* Resetear letter-spacing */
  min-height: auto; /* Resetear min-height */
  display: block; /* Resetear display flex */
}

.eventos-info-panel .descripcion-estandar {
  font-size: 18px; /* Mismo tamaño que cartelera */
  line-height: 1.6; /* Mismo line-height que cartelera */
  color: #ffffff; /* Texto blanco para contraste con fondo negro */
  margin-bottom: 30px; /* Mismo margen que cartelera */
  text-align: left; /* Mismo alineación que cartelera */
  flex: 1;
  overflow-y: auto;
  padding-right: 1vw; /* Usando viewport width */
}

/* Estilo personalizado para el scrollbar de la descripción */
.eventos-info-panel .descripcion-estandar::-webkit-scrollbar {
  width: 6px;
}

.eventos-info-panel .descripcion-estandar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.eventos-info-panel .descripcion-estandar::-webkit-scrollbar-thumb {
  background: #e38228;
  border-radius: 3px;
}

.eventos-info-panel .descripcion-estandar::-webkit-scrollbar-thumb:hover {
  background: #f4922a;
}

/* Contenedor de estadísticas del visor de eventos pasados */
.eventos-info-stats {
  display: flex;
  justify-content: space-around;
  gap: 1vw; /* Usando viewport width para gap responsive */
  margin-top: 2vh; /* Espaciado consistente usando viewport height */
  padding: 1.5vh 0; /* Padding vertical usando viewport height */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil de separación */
}

/* Item de estadística del visor de eventos pasados */
.stat-item {
  text-align: center;
  flex: 1;
}

/* Número de la estadística del visor de eventos pasados */
.stat-number {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* Usando clamp para responsividad */
  font-weight: 800;
  color: #e38228; /* Mantener color naranja para destacar */
  line-height: 1;
  margin-bottom: 0.5vh; /* Usando viewport height */
}

/* Etiqueta de la estadística del visor de eventos pasados */
.stat-label {
  display: block;
  font-size: clamp(0.7rem, 1vw, 0.9rem); /* Usando clamp para responsividad */
  font-weight: 500;
  color: #ffffff; /* Texto blanco para contraste con fondo negro */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-container-eventos {
  position: relative;
  flex: 0 0 70%; /* Ajustado para que coincida con el 30% del panel */
  height: 60vh; /* Altura usando viewport height */
  min-height: 40vh; /* Mínimo usando viewport height */
  max-height: 80vh; /* Máximo usando viewport height */
  overflow: hidden;
  background-color: #000;
  border: 1px solid #000;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Estilos base para todas las secciones del visor de eventos pasados */
.main-container-eventos .section {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background-color: #c3c3c3;
  cursor: pointer;
  transition: all 0.8s ease-in-out;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
}

/* Sección central del visor de eventos pasados */
.center-section-eventos {
  width: 40%;
  height: 40%;
  top: 40%;
  left: 40%;
  transform: translate(-30%, -20%);
  background-color: #008080;
  color: #fdffff;
  z-index: 20;
}

/* Sección superior izquierda del visor de eventos pasados */
.topleft-section-eventos {
  width: 28%;
  height: 72%;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

/* Sección inferior izquierda del visor de eventos pasados */
.bottomleft-section-eventos {
  width: 68%;
  height: 28%;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

/* Sección inferior derecha del visor de eventos pasados */
.bottomright-section-eventos {
  width: 32%;
  height: 68%;
  bottom: 0;
  right: 0;
  box-sizing: border-box;
}

/* Sección superior derecha del visor de eventos pasados */
.topright-section-eventos {
  width: 72%;
  height: 32%;
  top: 0;
  right: 0;
  box-sizing: border-box;
}

/* Contenido de las secciones del visor de eventos pasados */
.main-container-eventos .section-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Imágenes de las secciones del visor de eventos pasados */
.main-container-eventos .section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 10;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Efecto de borde en las imágenes del visor de eventos pasados */
.main-container-eventos .section-image:hover {
  box-shadow: 0 0 20px rgba(0, 128, 128, 0.5);
}

/* Efectos hover para el visor de eventos pasados */
.main-container-eventos .section:hover {
  background-color: #008080;
  color: #fdffff;
}

.main-container-eventos .section:hover .section-image {
  opacity: 0.9;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Estados de expansión del visor de eventos pasados - se aplicarán dinámicamente via JavaScript */
.main-container-eventos .section.expanding {
  z-index: 30;
}

.main-container-eventos .section.contracting {
  z-index: 1;
}

/* Transiciones suaves para el efecto de expansión del visor de eventos pasados */
.main-container-eventos .section {
  will-change: width, height, transform;
}

/* Responsive design para el visor de eventos pasados */
@media (max-width: 1024px) {
  .eventos-viewer-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .eventos-info-panel {
    flex: none;
    position: static;
    order: 1;
    height: 80vh; /* Altura fija a 80vh en tablet */
  }
  
  .main-container-eventos {
    order: 2;
    height: 45vh;
    min-height: 300px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .eventos-viewer-container {
    gap: 15px;
  }
  
  .eventos-info-panel {
    padding: 30px 20px;
    height: 80vh; /* Altura fija a 80vh en móvil */
  }
  
  .eventos-info-panel .titulo-estandar { 
    font-size: 28px; /* Mantener proporción con cartelera */
    margin-bottom: 15px; /* Ajustar para móvil */
  }
  
  .eventos-info-panel .descripcion-estandar { 
    font-size: 16px; /* Mantener proporción con cartelera */
    margin-bottom: 20px; /* Ajustar para móvil */
  }

  .eventos-info-panel .EventoCartelera-button {
    margin-top: 28px;
  }
  
  .main-container-eventos {
    height: 40vh;
    min-height: 280px;
    max-height: 350px;
  }
  
  .eventos-anteriores-viewer {
    padding: 0 2%; /* Reducido de 5% a 2% para móviles */
  }
}

@media (max-width: 480px) {
  .eventos-info-panel {
    padding: 20px 15px;
    height: 80vh; /* Altura fija a 80vh en móvil pequeño */
  }
  
  .eventos-info-panel .titulo-estandar { 
    font-size: 24px; /* Mantener proporción con cartelera */
    margin-bottom: 12px; /* Ajustar para móvil pequeño */
  }
  
  .eventos-info-panel .descripcion-estandar { 
    font-size: 14px; /* Mantener proporción con cartelera */
    margin-bottom: 18px; /* Ajustar para móvil pequeño */
  }

  .eventos-info-panel .EventoCartelera-button {
    margin-top: 24px;
  }
  
  .eventos-info-stats {
    gap: 15px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .main-container-eventos {
    height: 35vh;
    min-height: 220px;
    max-height: 280px;
  }
}

/* Estilos para pantallas menores a 1050px - Consolidado */
@media (max-width: 1050px) {
  /* Contenedor principal */
  .eventos-viewer-container { 
    display: block; 
    width: 100%; 
    gap: 2vh; /* Gap responsive */
  }
  .eventos-anteriores-viewer { 
    padding: 0; /* Sin padding para aprovechar todo el espacio */
  }
  .EventosAnteriores-section { 
    padding: 3vh 0; /* Padding responsive */
  }

  /* Panel de información */
  .eventos-info-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2vh 3vw; /* Padding responsive */
    height: auto; /* Altura automática para mejor adaptación */
    min-height: 45vh; /* Mínimo usando viewport height */
    max-height: 70vh; /* Máximo usando viewport height */
  }
  
  .eventos-info-panel .titulo-estandar {
    font-size: clamp(1.5rem, 3.5vw, 2rem); /* Mantener proporción con cartelera */
    margin-bottom: 15px; /* Espaciado consistente */
  }
  
  .eventos-info-panel .descripcion-estandar { 
    font-size: clamp(1rem, 2.2vw, 1.2rem); /* Mantener proporción con cartelera */
    margin-bottom: 20px; /* Espaciado consistente */
  }
  
  .eventos-info-stats {
    gap: 1.5vw; /* Gap responsive */
    margin-top: 1.5vh; /* Espaciado reducido */
    padding: 1vh 0; /* Padding reducido */
  }

  /* Visor de imágenes - Ocultar visor de 5 paneles */
  .main-container-eventos {
    display: none !important; /* Ocultar visor de 5 paneles en mobile para evitar duplicado */
  }

  /* Mobile viewer: main image + thumbs */
  .eventos-mobile-viewer { 
    display: block; 
    width: 100%; 
  }
  .eventos-mobile-viewer .mobile-main {
    display: block;
    width: 100%;
    height: 45vh;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
  }
  .eventos-mobile-viewer .eventos-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 0 16px;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
  }
  .eventos-mobile-viewer .eventos-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.85;
    border: 2px solid transparent;
    flex: 0 0 auto;
    cursor: pointer;
  }
  .eventos-mobile-viewer .eventos-thumbs img.active {
    opacity: 1;
    border-color: #e38228;
  }
}

/* Ocultar mobile viewer en pantallas grandes */
@media (min-width: 1051px) {
  .eventos-mobile-viewer { display: none; }
}