.btn {
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--button-font);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
}

.hero--banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 40px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.lastExpovit{
   font-size: 48px;
  color: #ffffff;
  font-family: var(--title-font);
  text-shadow: 0 0 15px rgba(180, 0, 255, 0.4);
  line-height: 1.2;
  display: inline-flex;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero--banner .content span {
  color: #c77dff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(199, 125, 255, 0.7);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.hero--banner .content h1 {
  font-size: 48px;
  color: #ffffff;
  font-family: var(--title-font);
  text-shadow: 0 0 15px rgba(180, 0, 255, 0.4);
  line-height: 1.2;
}

.hero--banner .content p {
  color: #e9d9ff;
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.buttons-hero-banner {
  display: flex;
  gap: 15px;
}

/* Botones del hero */
.btn-banner-primary {
  background: linear-gradient(90deg, #9b5de5, #b517ff);
  color: white;
  box-shadow: 0 0 20px rgba(181, 23, 255, 0.5);
}

.btn-banner-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(181, 23, 255, 0.8);
}

.btn-banner-secundary {
  border: 2px solid #c77dff;
  color: #f5eaff;
  background: transparent;
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.4);
}

.btn-banner-secundary:hover {
  background: rgba(199, 125, 255, 0.15);
  transform: scale(1.05);
}

/* Imagen del hero */
.container-images-banner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-images-banner img {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ===================================
   SCHEDULE / ITINERARIO
   =================================== */

.schedule {
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.schedule-title {
  font-size: 42px;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(181, 23, 255, 0.4);
  font-family: var(--title-font);
  font-weight: 700;
}

.schedule-subtitle {
  color: #cfaaff;
  margin-bottom: 40px;
  font-size: 18px;
}

/* Tabs */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 25px;
  border: 2px solid #b517ff;
  background: transparent;
  color: #e9d9ff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-family: var(--button-font);
}

.tab.active,
.tab:hover {
  background: linear-gradient(90deg, #9b5de5, #b517ff);
  color: #fff;
  box-shadow: 0 0 20px rgba(181, 23, 255, 0.5);
  transform: scale(1.05);
}

/* Grid de eventos */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.event {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 23, 255, 0.3);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 0 20px rgba(181, 23, 255, 0.15);
  transition: all 0.3s;
}

.event:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(181, 23, 255, 0.4);
  border-color: rgba(181, 23, 255, 0.5);
}

.event .hour {
  color: #c77dff;
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.event .title {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

/* Contenedor de scroll */
.schedule-content {
  max-height: none;
  overflow-y: visible;
  position: relative;
  padding: 20px;
}

/* Control de visibilidad de días */
.day {
  display: none;
}

.day.active {
  display: block;
}

/* ===================================
   SECCIÓN DE VIDEOS
   =================================== */

.videos-section {
  padding: 100px 20px;
  position: relative;
  z-index: 2;
}

.videos-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.videos-badge {
  color: #c77dff;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(199, 125, 255, 0.8);
  display: inline-block;
  margin-bottom: 15px;
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

.videos-header h2 {
  font-size: 48px;
  color: #ffffff;
  margin: 15px 0 20px 0;
  font-family: var(--title-font);
  text-shadow: 0 0 20px rgba(180, 0, 255, 0.5);
  line-height: 1.2;
  font-weight: 700;
}

.videos-header p {
  color: #e9d9ff;
  font-size: 18px;
  line-height: 1.6;
}

/* Grid de videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 23, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(181, 23, 255, 0.2);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(181, 23, 255, 0.4);
  border-color: rgba(181, 23, 255, 0.5);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid rgba(181, 23, 255, 0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 25px 30px;
}

.video-info h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.3);
}

.video-info p {
  color: #cfaaff;
  line-height: 1.6;
  font-size: 15px;
}

/* ===================================
   ORGANIZADORES EN INDEX
   =================================== */

.organizers-section-index {
  padding: 100px 20px;
  position: relative;
  z-index: 2;
}

.organizers-section-index .section-title {
  text-align: center;
  color: #fff;
  font-size: 42px;
  margin-bottom: 50px;
  font-family: var(--title-font);
  text-shadow: 0 0 20px rgba(180, 0, 255, 0.5);
  font-weight: 700;
}

.organizers-section-index .organizers-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.organizers-section-index .organizer-logo-item {
  width: 100%;
  max-width: 220px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 23, 255, 0.3);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(181, 23, 255, 0.15);
  transition: all 0.3s;
}

.organizers-section-index .organizer-logo-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 40px rgba(181, 23, 255, 0.35);
  border-color: rgba(181, 23, 255, 0.5);
}

.organizers-section-index .organizer-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: all 0.3s;
}

.organizers-section-index .organizer-logo-item:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(181, 23, 255, 0.6));
  transform: scale(1.1);
}

/* ===================================
   CARRUSEL DEL SÁBADO
   =================================== */

.saturday-carousel {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid rgba(181, 23, 255, 0.2);
}

.carousel-title {
  text-align: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 30px;
  font-family: var(--title-font);
  text-shadow: 0 0 15px rgba(180, 0, 255, 0.5);
  font-weight: 700;
}

.carousel-container-saturday {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(181, 23, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
}

.carousel-wrapper-saturday {
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  overflow: hidden;
}

.carousel-track-saturday {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.carousel-slide-saturday {
  min-width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-saturday.active {
  opacity: 1;
}

.carousel-slide-saturday img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-slide-saturday::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 0, 26, 0.2) 0%,
    rgba(10, 0, 26, 0.4) 100%
  );
  pointer-events: none;
}

.carousel-indicators-saturday {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator-saturday {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(181, 23, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.carousel-indicator-saturday.active {
  background: #b517ff;
  box-shadow: 0 0 15px rgba(181, 23, 255, 0.8);
  transform: scale(1.3);
}

.carousel-indicator-saturday:hover {
  background: rgba(181, 23, 255, 0.7);
  transform: scale(1.2);
}

.carousel-nav-saturday {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(181, 23, 255, 0.3);
  border: 2px solid rgba(181, 23, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  color: white;
  font-size: 18px;
}

.carousel-nav-saturday:hover {
  background: rgba(181, 23, 255, 0.6);
  box-shadow: 0 0 25px rgba(181, 23, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-saturday.prev {
  left: 15px;
}

.carousel-nav-saturday.next {
  right: 15px;
}

.carousel-container-saturday::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b517ff, transparent);
  animation: borderGlow 3s ease-in-out infinite;
  z-index: 11;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===================================
   RESPONSIVE - CORRECCIÓN PARA TABLET
   =================================== */

/* Tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero Banner - Mantener en horizontal pero con mejor espaciado */
  .hero--banner {
    padding: 50px 30px;
    gap: 30px;
  }

  .hero--banner .content {
    flex: 1;
    padding-right: 20px;
  }

  .hero--banner .content h1 {
    font-size: 38px;
    margin: 15px 0;
  }

  .hero--banner .content p {
    font-size: 17px;
  }

  .container-images-banner {
    flex: 0.8;
  }

  .container-images-banner img {
    max-width: 350px !important;
  }

  /* Schedule */
  .schedule {
    padding: 70px 30px;
    position: relative;
    z-index: 1;
  }

  .schedule-title {
    font-size: 36px;
  }

  .schedule-content {
    max-height: none;
    overflow-y: visible;
    padding: 20px;
  }

  /* Juegos */
  .games-section {
    padding: 70px 30px;
    margin-top: 40px;
  }

  /* Videos en tablet - una columna más ancha */
  .videos-section {
    padding: 80px 30px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }

  /* Organizadores */
  .organizers-section-index {
    padding: 80px 30px;
  }

  .organizers-section-index .section-title {
    font-size: 36px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  /* Hero Banner */
  .hero--banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }

  .hero--banner .content h1 {
    font-size: 32px;
  }

  .hero--banner .content p {
    font-size: 16px;
  }

  .buttons-hero-banner {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .container-images-banner {
    max-width: 300px;
  }

  .container-images-banner img {
    max-width: 85% !important;
  }

  /* Schedule */
  .schedule {
    padding: 60px 15px;
    position: relative;
    z-index: 1;
  }

  .schedule-title {
    font-size: 28px;
  }

  .schedule-tabs {
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto 30px auto;
    gap: 10px;
  }

  .tab {
    width: 100%;
  }

  .event-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .schedule-content {
    max-height: none;
    overflow-y: visible;
    padding: 20px 10px;
  }

  /* Juegos - Asegurar que esté debajo del schedule */
  .games-section {
    padding: 60px 15px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
  }

  .games-header h2 {
    font-size: 32px;
  }

  .games-header p {
    font-size: 16px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .game-image {
    min-height: 220px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .modal-content img {
    max-height: 70vh;
  }

  /* Videos */
  .videos-section {
    padding: 80px 20px;
  }

  .videos-header h2 {
    font-size: 32px;
  }

  .videos-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  /* Organizadores */
  .organizers-section-index {
    padding: 80px 20px;
  }

  .organizers-section-index .section-title {
    font-size: 32px;
  }

  .organizers-section-index .organizers-logos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }

  .organizers-section-index .organizer-logo-item {
    max-width: 100%;
    height: 110px;
  }

  /* Carrusel del sábado */
  .carousel-container-saturday {
    max-width: 350px;
  }

  .carousel-title {
    font-size: 24px;
  }

  .carousel-nav-saturday {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-nav-saturday.prev {
    left: 10px;
  }

  .carousel-nav-saturday.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .organizers-section-index .organizers-logos {
    grid-template-columns: 1fr !important;
  }

  .organizers-section-index .organizer-logo-item {
    max-width: 200px;
  }

  .carousel-container-saturday {
    max-width: 300px;
  }

  .carousel-nav-saturday {
    display: none;
  }
}

a.tab {
  display: inline-block;
  text-decoration: none;
}