/* ==========================================================================
   RESET + VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c1121f;
  --primary-dark: #8f0e18;
  --dark: #212529;
}

/* ==========================================================================
   BODY
   ========================================================================== */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
  background: var(--dark);
  color: white;
  padding: 1rem;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.social-and-copyright {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.social-icons a {
  color: white;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

/* ==========================================================================
   MENÚ HAMBURGUESA
   ========================================================================== */
.menu-toggle {
  display: none;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 300;
}

#mainNav {
  transition: all 0.3s ease;
}

#mainNav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.92)),
              url('img/fondo-metal.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(193, 18, 31, 0.25) 0%, transparent 70%);
}

.hero-content {
  max-width: 1100px;
  padding: 0 20px;
  z-index: 2;
}

.welcome-text {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 5px;
  color: #f1f1f1;
  text-shadow: 0 0 25px rgba(193, 18, 31, 0.9), 4px 4px 15px rgba(0,0,0,0.95);
  margin-bottom: 1.5rem;
}

.main-logo {
  max-width: 85%;
  height: auto;
  margin: 1.5rem 0 2.5rem 0;
  filter: drop-shadow(0 0 65px rgba(193, 18, 31, 0.9));
}

.hero-subtitle {
  font-size: clamp(1.3rem, 4.2vw, 2rem);
  color: #e0e0e0;
  margin-bottom: 3.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.cta-button {
  display: inline-block;
  padding: 18px 60px;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  background: transparent;
  border: 3px solid #c1121f;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.cta-button:hover {
  background: #c1121f;
  box-shadow: 0 0 45px rgba(193, 18, 31, 0.95);
  transform: translateY(-5px);
}

/* =============================================
   COPYRIGHT DEL HERO
   ============================================= */
.hero-copyright {
    margin-top: 4rem;
    font-size: 12px;
    font-weight: 600;
    color: #ddd;
    line-height: 1.6;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright-left {
    text-align: left;
    flex: 1;
}

.copyright-right {
    text-align: right;
    flex: 1;
}

/* =============================================
   SECCIÓN AUSPICIADORES - MUCHO MÁS GRANDES (GALERÍA MUY IMPACTANTE)
   ============================================= */
.sponsors-section {
    margin: 3.5rem 0 2.5rem 0;
    text-align: center;
}

.sponsors-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #c1121f;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 0 15px rgba(193, 18, 31, 0.6);
}

.sponsors-logos-container {
    height: 650px;           /* altura aumentada para logos muy grandes */
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border: 3px solid rgba(193, 18, 31, 0.5);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 70px rgba(193, 18, 31, 0.4);
}

.sponsors-logos {
    display: flex;
    flex-direction: column;
    gap: 100px;
    animation: scrollVertical 10s linear infinite;   /* Más rápido */
    padding: 50px 0;
}

.sponsors-logos:hover {
    animation-play-state: paused;
}

.sponsors-logos img {
    max-height: 260px;       /* ← MUCHO MÁS GRANDE (tamaño galería potente) */
    width: auto;
    opacity: 1;
    filter: brightness(1.2) contrast(1.4) drop-shadow(0 0 35px rgba(193, 18, 31, 0.8));
    transition: all 0.4s ease;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

.sponsors-logos img:hover {
    transform: scale(1.03);
    filter: brightness(1.45) contrast(1.5) drop-shadow(0 0 45px rgba(193, 18, 31, 1));
}

/* Animación scroll vertical infinito */
@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
  }

  .header-left {
    flex: 1;
  }

  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    z-index: 200;
  }

  #mainNav.show {
    display: block !important;
  }

  #mainNav ul {
    flex-direction: column;
    gap: 8px;
    padding: 0 15px;
  }

  #mainNav a {
    padding: 15px 20px;
    font-size: 1.2rem;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #mainNav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-and-copyright {
    flex-direction: column;
    gap: 0.8rem;
  }

  .sponsors-logos-container {
    height: 520px;
  }

  .sponsors-logos img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .copyright {
    display: none;
  }

  .hero-copyright {
    font-size: 0.85rem;
    gap: 1rem;
    justify-content: center;
  }
  
  .copyright-left,
  .copyright-right {
    text-align: center;
    flex: 1 1 100%;
  }

  .sponsors-logos-container {
    height: 420px;
  }

  .sponsors-logos img {
    max-height: 135px;
  }

  .sponsors-title {
    font-size: 1.2rem;
  }
}