* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #ffffff;
  color: #fff;
  
}

.site-header {
  background: #000;
  color: #fff;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
   position: relative;
}


.logo img {
  height: 120px;
  width: auto;
} 

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg,#0ea5e9,#7c3aed);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 18px rgba(124,58,237,0.12);
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.2px;
}


.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-list li {
  margin: 0;
}


.nav-list a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 30px;
  outline: none;
  transition: transform 180ms ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

.nav-list a:hover,
.nav-list a:focus {
  transform: translateY(-3px);
}


/* HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MODO MÓVIL */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;

    /* 👇 CLAVE */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 300px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-list a {
    display: block;
    padding: 12px;
  }
}


@media (max-width: 500px) {
  .site-header {
    flex-direction: row;   /* 👈 CAMBIADO */
    align-items: center;
  }
}


.tituloPrincipal {
  max-width: 900px;
  margin: 80px auto 40px;

  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;

  color: #1a1a1a;
  text-transform: uppercase;
}

.tituloPrincipal::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #EFB810;
  margin: 20px auto 0;
  border-radius: 2px;
}




.gallery-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  text-align: center;
  color: #f5a000;
  margin-bottom: 30px;
}

/* ===== DESKTOP ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* tamaños especiales */
.wide {
  grid-column: span 2;
}

.full {
  grid-column: span 3;
}

/* ===== TABLET ===== */
@media (max-width: 768px) {

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .wide {
    grid-column: span 2;
  }

  .full {
    grid-column: span 2;
  }
}

/* ===== MÓVIL ===== */
@media (max-width: 480px) {

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  /* 🔥 IMPORTANTE: todo ocupa 1 columna */
  .wide,
  .full {
    grid-column: span 1;
  }
}


@media (max-width: 768px) {

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  /* 🔥 IMPORTANTE: desactivar tamaños especiales */
  .wide,
  .full {
    grid-column: auto !important;
  }
}

@media (max-width: 480px) {

  .gallery {
    grid-template-columns: repeat(2, 1fr); /* o 1 si quieres más grande */
    grid-auto-rows: 160px;
    gap: 10px;
  }

  /* 🔥 TODAS IGUALES */
  .wide,
  .full {
    grid-column: auto !important;
  }
}

@media (min-width: 1200px) {
  .gallery-container {
    max-width: 95%;
    padding: 40px;
  }

  .gallery {
    grid-auto-rows: 220px; /* un poco más grande también */
  }
}



.footer {
  background: #000000;
  color: #fff;
  padding: 50px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  position: relative;
}

/* Separadores verticales */
.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  height: 100%;
  width: 2px;
  background: #EFB810;
}

/* Logo */
.footer-logo img {
  max-width: 150px;
}

/* Títulos */
.footer-col h3 {
  color: #EFB810;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Links */
.footer-col a {
  color: #fff;
  text-decoration: none;
}
.footer-col p {
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Lista */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.footer-social a {
  width: 35px;
  height: 35px;
  background: #fff;
  color: #2f3440;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}



.sponsors {
  background: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.sponsors-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
  letter-spacing: 1px;
}

.sponsors-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.sponsors-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease;
  will-change: transform;
}

.sponsor-slide {
  flex: 1;
  max-width: 100%;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  text-decoration: none;
}

.sponsor-slide img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sponsor-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* TABLET */
@media (max-width: 992px) {
  .sponsor-slide {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .sponsors {
    padding: 50px 15px;
  }

  .sponsors-title {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .sponsor-slide {
    flex: 0 0 50%;
    max-width: 50%;
    height: 90px;
    padding: 10px;
  }

  .sponsor-slide img {
    max-height: 55px;
  }
}

.sponsors-title {
  background: #EFB810;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 25px;
  font-size: 18px;
  letter-spacing: 1px;
}

.sponsors-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
