* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #000000;
  color: white;
}

.navbar{
  width: 100%;
  padding: 20px 8%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;

  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);

  z-index: 1000;
}

/* LOGO */
.logo{
  font-family: "Six Caps", sans-serif;
  font-size: 2rem;
  color: #fff;
  z-index: 1002;
}

/* NAV */
nav{
  display: flex;
  gap: 2rem;
}

nav a{
  text-decoration: none;
  color: #fff;

  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: .95rem;

  transition: .3s;
}

nav a:hover{
  color: #d4af37;
}

/* HAMBURGUESA */
.menu-toggle{
  width: 35px;
  height: 25px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle span{
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: .4s ease;
}

/* ANIMACIÓN X */
.menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2){
  opacity: 0;
}

.menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Contenedor del dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

/* Botón principal */
.lang-dropbtn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  transition: 0.3s;
}

.lang-dropbtn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

/* El menú que aparece */
.lang-content {
  display: none;
  position: absolute;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1005;
  margin-top: 5px;
}

/* Enlaces del submenú */
.lang-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  transition: 0.3s;
}

.lang-content a:hover {
  background: #d4af37;
  color: black;
}

/* Mostrar al pasar el mouse (Desktop) */
.lang-dropdown:hover .lang-content {
  display: block;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 8%;
  gap: 50px;
}

.hero-text span {
  color: #d4af37;
}

.hero-text h1 {
  font-size: 60px;
  margin: 20px 0;
}

.hero-text p {
  line-height: 1.7;
  color: #ccc;
  letter-spacing: 1px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap:1rem;
  flex-direction: column;
  max-width: 300px;
}

.hero-buttons a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px auto;
  color: white;
  text-decoration: none;;
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400px;
  font-style: normal;
  transition: 0.3ms;
}

.hero-buttons a:hover{
  color:#d4af37;
}

.hero-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px; /* Ajusta esto al ancho real de tu video/imagen */
  margin: 0 auto;
}

.hero-image video {
    display: block;
    width: 75%;
    height: auto;
    -webkit-mask-image:
        linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 80%,
            transparent 100%
        ),
        linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 80%,
            transparent 100%
        );

    mask-composite: intersect;

    mask-image:
        linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 80%,
            transparent 100%
        ),
        linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 80%,
            transparent 100%
        );
    object-fit: contain;
}

.stats-overlay {
position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.stat-item {
position: absolute;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

/* Posicionamiento específico (ajusta los % según necesites) */
.top-left { top: 15%; left: -19%; align-items: flex-end; text-align: right; }
.top-right { top: 15%; right: -5%; align-items: flex-start; text-align: left; }
.bottom-left { bottom: 15%; left: -10%; align-items: flex-end; text-align: right; }
.bottom-right { bottom: 15%; right: -10%; align-items: flex-start; text-align: left; }

/* Dibujo de las flechas/líneas (opcional, estilo minimalista) */
.line {
  width: 60px;
  height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.top-left .line {
  border-top: none; border-right: none;
  border-radius: 0 0 0 25px;
  margin-top: 8px;
}

.top-right .line {
  border-top: none; border-left: none;
  border-radius: 0 0 25px 0;
  margin-top: 8px;
}

.bottom-left .line {
  border-bottom: none; border-right: none;
  border-radius: 25px 0 0 0;
  margin-bottom: 8px;
}

.bottom-right .line {
  border-bottom: none; border-left: none;
  border-radius: 0 25px 0 0;
  margin-bottom: 8px;
}

.stat-item span {
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Definimos la animación */
@keyframes fadeInStat {
    from {
        opacity: 0;
        transform: translateY(10px); /* Empieza un poco más abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Termina en su sitio */
    }
}

.stat-item {
  opacity: 0;
}

.reveal.active .stat-item {
  animation: fadeInStat 0.8s ease-out forwards;
}

.reveal.active .top-right { animation-delay: 0.5s; }
.reveal.active .bottom-right { animation-delay: 1s; }
.reveal.active .bottom-left { animation-delay: 1.5s; }
.reveal.active .top-left { animation-delay: 2s; }

.destacado-carrusel{
  width: 100%;
  height: 120vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.destacado-carrusel::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 10;
}

/* titulo arriba izquierda */
.destacado-carrusel h2{
  position: absolute;
  top: 70px;
  left: 40px;
  z-index: 20;
  color: #d4af37;
  font-size: 1.3rem;
  font-weight: 700;
}

/* contenedor */
.carrusel-container{
  width: 100%;
  height: 100%;
  position: relative;
}

/* slides */
.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: 1s ease;
  z-index: 1;
}

.slide.active{
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

/* videos */
.slide video{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* líneas inferiores */
.progress-lines{
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 30;
}

.linea{
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}

/* animación línea activa */
.linea.active::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: progress var(--duration) linear forwards;
}

@keyframes progress{
  from{
    transform: translateX(-100%);
  }

  to{
    transform: translateX(0%);
  }
}

/* Sobre mi */
.sobre{
  width: 100%;
  min-height: 100vh;
  background: #000;
  padding: 40px;
  overflow: hidden;
}

/* contenedor */
.cards{
  display: flex;
  gap: 12px;
  height: 85vh;
}

/* card */
.card{
  position: relative;
  flex: .7;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: flex .7s ease;
}

/* card activa */
.card.active{
  flex: 3;
}

/* video */
.card video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(.7);
  transition:
    filter .6s ease,
    transform .7s ease;
}

.card.active video,
.card:hover video{
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}

/* overlay oscuro */
.overlay{
  position: absolute;
  inset: 0;
  background:
  linear-gradient(
    to top,
    rgba(0,0,0,.9) 5%,
    rgba(0,0,0,.4) 45%,
    rgba(0,0,0,.2) 100%
  );
}

/* contenido */
.contenido{
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 5;
  width: 300px;
  opacity: 0;
  transform: translateY(30px);
  transition: .5s ease;
}

/* mostrar contenido activa */
.card.active .contenido{
  opacity: 1;
  transform: translateY(0);
  transition-delay: .3s;
}

.contenido h2{
  color: #fff;
  font-size: clamp(1.8rem, 2vw, 2rem);
  margin-bottom: 15px;
  font-weight: 700;
}


.contact-section{
  padding: 100px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  flex-direction: column;
}

.form-box{
  width: 100%;
  max-width: 750px;
  background: #050505;
  padding: 70px 60px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-box h2{
  font-size: 2rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 30px;
}

.form-box p{
  max-width: 500px;
  margin: 0 auto 35px;
  color: #d1d1d1;
  line-height: 1.6;
  font-size: 1rem;
}

.check{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.check input{
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.check input:checked::before{
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d4af37;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.check label{
  color: #fff;
  font-size: .95rem;
}

.check a{
  color: #fff;
}

.row{
  margin-bottom: 20px;
}

.row input{
  width: 70%;
  padding: 16px 30px;
  background: #0d0d0d;
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: .3s;
}

.row input::placeholder{
  color: #6d6d6d;
}

.row input:focus{
  border-color: #d4af37;
}

button{
  width: 70%;
  padding: 16px;
  border: none;
  border-radius: 50px;
  background: #d4af37;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s;
}

button:hover{
  transform: translateY(-3px);
  background: #000;
  color:#d4af37;
}

.redes{
  font-size: 2rem;
  text-decoration: none;
  margin-top: 2rem;
  gap:4px;
  list-style: none;
}

.redes a{
  text-decoration: none;
}

footer {
  padding: 20px 2%;
  display: flex;
  justify-content: space-between;
  background: #000;
  font-size: 0.9rem;
  border-top:solid 0.5px #cccccc21 ;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#contacto a, p{
  text-decoration: none;
  color: #ccccccb5 ;
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  transition: .3s;
  font-size: 1.1rem;
}

#contacto p:hover{
  transform: translateY(-3px);
  color: #d4af37;
}

#contacto a:hover{
  transform: translateY(-3px);
  color: #d4af37;
}

@media(max-width:900px){
  .hero,
  .sobre-content,
  .cards,
  .info-boxes,
  footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .sobre{
    padding: 20px;
  }

  .cards{
    flex-direction: column;
    height: auto;
  }

  .card{
    flex: none;
    height: 90px;
  }

  .card.active{
    height: 500px;
  }

  .contenido{
    left: 25px;
    bottom: 25px;
    width: 85%;
  }

  .menu-toggle{
    display: flex;
    z-index: 1002; /* Asegura que el botón esté siempre arriba */
  }

  nav{
    font-family: "Six Caps", sans-serif;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex; /* Asegúrate de que mantenga el display flex */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: .5s ease;
    z-index: 1001;
  }

  nav.active{
    right: 0;
  }

  .lang-dropdown {
    margin-top: 10px;
  }
  .lang-content {
    position: relative;
    right: auto;
    display: block; /* En móvil lo dejamos visible o lo manejas con clics */
    background: transparent;
    box-shadow: none;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr; /* Una sola columna */
    text-align: center;
    padding-top: 150px;
    gap: 30px;
  }

  .hero-buttons {
    margin: 30px auto 0; /* Centrar botones */
  }
}


@media (max-width: 768px) {

  .hero-image {
        max-width: 270px; /* Tamaño ideal para el jugador en móvil */
        margin: 0 auto;
    }

    /* Modificamos el span para que se comporte como bloque (dos filas) */
    .stat-item span {
        display: block; /* Fuerza el salto de línea */
        font-size: 11px;
        line-height: 1.3;
        white-space: normal;
        width: 80px;
        text-align: center;
    }

    /* Ajustamos los items para que no se salgan */
    .top-left, .bottom-left {
        left: -50px;
        align-items: flex-end;
        text-align: right;
    }

    .top-right, .bottom-right {
        right: -50px;
        align-items: flex-start;
        text-align: left;
    }

    /* Reducimos las líneas para que no ocupen tanto espacio */
    .line {
        width: 30px;
        height: 20px;
        margin: 5px 0;
    }

  .hero-text h1 {
    font-size: 45px;
  }

  .stats-overlay {
    font-size: 12px;
  }

  .stat-item .line {
    width: 40px; /* Líneas más cortas en móvil */
  }

  .form-box {
    padding: 40px 20px;
  }

  .row input, button {
    width: 100%; /* Inputs a ancho completo */
  }
  
  .destacado-carrusel {
    height: 90vh; /* Reducir altura del carrusel en móvil */
  }
  
  .destacado-carrusel h2 {
    font-size: 1rem;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 35px;
  }

  .hero-text p {
    font-size: 0.9rem;
  }
}