body {
  background-color: #0e0e0e;
  font-family: Outfit, sans-serif;
  color: white;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Chillax";
  src: url("fonts/Chillax-Variable.ttf") format("woff2 supports variations"), url("fonts/Chillax-Variable.ttf")
    format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 75% 125%;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-VariableFont_wght.ttf") format("woff2 supports variations"),
    url("fonts/Outfit-VariableFont_wght.ttf") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 75% 125%;
}

/* nav */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  width: 100%;
  padding-top: 0.5em;
  margin-top: 1em;
  z-index: 1000;
  padding: 0 1rem;
}

.navs {
  background-color: #9037ff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48%;
  height: 5em;
  border-radius: 1em;
  margin-left: 3em;
  color: white;
  position: fixed;
  left: 24.23%;
  z-index: 9999;
  background: rgba(144, 19, 254, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.div {
  display: flex;
  width: 10em;
  gap: 1em;
  margin-right: 1em;
}

.img {
  width: 40% !important;
  cursor: pointer !important;
}

.Logo {
  aspect-ratio: 1 / 1;
  width: 90px;
  height: 105px;
  margin-left: 4.5em;
  cursor: pointer;
}

/* MEGA MENÚ COMPACTO */
.menu-container {
  position: relative;
  z-index: 10000;
}

.menu-icon {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.menu-icon img {
  width: 6em;
  transition: all 0.3s ease;
}

/* Mega menú compacto que ocupa todo el ancho */
.mega-menu {
  position: fixed;
  top: calc(10vh + 2em);
  left: 0;
  right: 0;
  width: 100vw;
  background: rgb(9, 9, 9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 2px solid rgba(144, 55, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-section {
  text-align: center;
}

.mega-menu-title {
  color: #9037ff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(144, 55, 255, 0.4);
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mega-menu-title:hover {
  color: #b855ff;
  border-bottom-color: #9037ff;
}

.mega-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-items li {
  margin: 8px 0;
}

.mega-menu-items li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mega-menu-items li a:hover {
  color: white;
  background: rgba(144, 55, 255, 0.2);
  transform: translateX(4px);
}

/* Overlay para cerrar el menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE PARA EL MEGA MENÚ */
@media (max-width: 1024px) {
  .menu-icon{
    margin-left: 0em;
  }

  .navs {
    display: none;
  }

  .mega-menu {
    top: calc(10vh + 1.5em);
  }

  .mega-menu-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 25px 15px;
  }

  .mega-menu-title {
    font-size: 17px;
  }

  .mega-menu-items li a {
    font-size: 13px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .navs{
    display:none;
  }

  .mega-menu {
    top: calc(10vh + 1em);
  }

  .mega-menu-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 15px;
  }

  .mega-menu-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .mega-menu-items li a {
    font-size: 13px;
    padding: 4px 8px;
  }
}

@media (max-width: 500px) {
  nav{
    gap:6em
  }

  .navs {
    display: none;
  }

  .mega-menu {
    top: calc(10vh + 0.5em);
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    padding: 15px 10px;
    gap: 15px;
  }

  .mega-menu-title {
    font-size: 15px;
  }

  .mega-menu-items li a {
    font-size: 12px;
    padding: 4px 6px;
  }
}

/* Enhanced Footer Responsive Fixes */
footer {
  height: auto;
  min-height: 60vh;
  background: rgb(77, 0, 160);
  background: linear-gradient(0deg, rgba(77, 0, 160, 1) 0%, #0d0d0d 100%);
  padding: 3rem 1rem 2rem 1rem;
}

footer main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

footer ul {
  list-style: none;
  width: 100%;
  max-width: 250px;
  text-align: center;
}

footer div {
  width: 100%;
  max-width: 200px;
  height: 3em;
  font-size: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: #6d3ca1;
  font-weight: normal;
  margin: 0 auto 1rem auto;
}

footer ul ol {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

footer ul li {
  margin-top: 7px;
}

footer img {
  aspect-ratio: 1 / 1;
  width: 40px;
  height: 40px;
}

footer a {
  text-decoration: none;
  color: #ffff;
  font-size: 18px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b855ff;
}

.sponsors {
  display: flex;
  margin-top: 3em;
  gap: 3em;
  align-items: center;
  background-color: transparent !important;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.sponsors picture {
  background-color: #ffff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.sponsors picture:hover {
  transform: scale(1.1);
}

.sponsors img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

hr {
  margin: 3em auto 2em auto;
  max-width: 1200px;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Mobile Footer Styles */
@media (max-width: 1024px) {

    .navs{
    display:none;
  }

  footer main {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  footer div {
    font-size: 18px;
    max-width: 180px;
  }

  .sponsors {
    gap: 2em;
    margin-top: 2em;
  }

  .instagram, .tiktok, .behance, .youtube {
    display: none;
  }
}

@media (max-width: 768px) {

  .instructores{
    display: none;
  }

  footer main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  footer ul {
    max-width: 100%;
  }

  footer div {
    font-size: 16px;
    height: 2.5em;
    max-width: 160px;
  }

  footer a {
    font-size: 16px;
  }

  footer ul ol {
    gap: 1em;
    justify-content: center;
  }

  footer img {
    width: 35px;
    height: 35px;
  }

  .sponsors {
    gap: 1em;
    margin-top: 2em;
  }

  .sponsors picture {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 500px) {
  nav{
    height: 8vh;
    gap:14.8em;
  }



  .menu-icon img{
    width: 4em;
  }

.Logo{
  width: 80px;
  height: 85px;
  margin-left: 8px;
}
  footer main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  footer div {
    font-size: 14px;
    height: 2.2em;
    max-width: 140px;
  }

  footer a {
    font-size: 14px;
  }

  footer ul ol {
    gap: 0.8em;
  }

  footer img {
    width: 30px;
    height: 30px;
  }

  .sponsors {
    gap: 1.5em;
    margin-top: 1.5em;
  }

  .sponsors picture {
    width: 50px;
    height: 50px;
  }

  hr {
    margin: 2em auto 1.5em auto;
  }
}

.instagram, .tiktok, .behance, .youtube {
  display: none;
}

 /* Estilos para el loader */
        #video-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999999;
            transition: transform 0.8s ease-in-out;
        }

        #video-loader.hide {
            transform: translateY(-100%);
        }

        #loader-video {
            z-index: 999999999;
            width: 1920px;
            height: 1080px;
            max-width: 800px;
            max-height: 800px;
        }

        /* Estilos para el contenido principal (tu página existente) */
        .main-content {
            padding: 50px;
            text-align: center;
            font-family: Arial, sans-serif;
        }

        .main-content h1 {
            color: #333;
            margin-bottom: 20px;
        }

        .main-content p {
            color: #666;
            line-height: 1.6;
        }

        @media (max-width: 410px) {
          nav{
            gap: 13em;
          }
        }

        @media (max-width: 375px) {
          nav{
            gap: 11em;
          }
        }

                @media (max-width: 780px) {
          .navs{
            display: none;
          }
        }