* {
  box-sizing: border-box;
  font-family: "vt323", sans-serif;
  font-weight: normal;

}

body {
  font-family: "vt323", sans-serif;
  margin: 0;

 /* color general de los textos */
 color: white;

 /* color de fondo */
 background-color: black;
 min-height: 100dvh;
 
}

/* selector multiple: parrafos e items de listas  */
p,
li {
 /* se evitan "viudas" y "huerfanos" */
 text-wrap: pretty;
}

/* selector multiple: los titulos */
h1,h2,h3,h4,h5{
  /* mas oscuros que los otros textos */
 
  /* parecido a interlineado, valor 1 equivaldria a interlineado igual al tamaño de la tipografia */
  line-height: 1;
  /* en web, generalmente, el interlineado en titulos es menor que el interlineado en parrafos */
 
  /* si ocupa más de una linea,
  se equilibran los anchos de esas lineas */
  text-wrap: balance;
 }

/* para que "TODAS" las imagenes NO sean
  mayores que las cajas que las contienen
  para evitar "scroll" horizontal */
img {
 /* mediran, como maximo, el tamaño
    del bloque html que las contiene */
 max-width: 100%;
}

/* "TODOS" los vinculos */
a {
 text-decoration: none;
}

ul
{
 /* elimina bullets, numeros etc. */
 list-style: none;

 /* retira el relleno izquierdo predeterminado */
 padding: 0;
}

/*-----------------------------------------------header= menu-------------------------------------------------*/

header {
 box-shadow: 0 4px 2px hsl(0 0% 0% / 0.25); /* sombra difusa  */
 background-color: black;

 /* "pegado" al borde superior de la ventana */
 position: sticky;
 /* distancia 0 del borde */
 top: 0;
 /* capa superior arriba de casi todo */
 z-index: 8000;
}

/* caja que "limita" al logo y al menu */
header .contenedora {
 display: flex; /* caja flexible */
 /* si los elementos "hijos" no caben en una fila,
    van a la fila siguiente */
 flex-wrap: wrap;
 
 /* elementos "hijos" separados en la horizontal */
 justify-content: center;
 
 /* elementos "hijos" centrados en la vertical */
 align-items: baseline;
}

header nav ul{
 display: flex;
 flex-direction: column;
 flex-wrap: wrap;
 justify-content: space-around;
 align-items: center;
 -ms-flex-direction: column;
}
header nav ul li a{
 font-size: 50px;
 width: 100%;
 height: 100%;
 background-color: orange;
 color: white;
 display: flex;
 justify-content: center;
 align-items: center;
 padding:0.5em 1.5em;
}

header nav ul li a:hover{
 color: black;
 background-color:rgba(255, 127, 90, 1) ;
 transition: background-color 0.7s ease, color 0.3s ease; /* Transiciones suaves para el cambio de color */
}

/*--------------------------------- menu hamburguesa*--------------------------------*/

.menu-hamburguesa{
padding: .49rem;
width: 3rem;
aspect-ratio: 1;
cursor: pointer;
transition: all 0.3s ease-out;
position: fixed;
top: 1em;
right: 1em;
z-index: 9000;}

/*las tres lineas del menu hamburguesa*/     

.menu-hamburguesa .linea {
 width: 25px;
 height: 3px;
 background-color: rgba(255, 127, 90, 1);;
 margin: 5px;
 transition: all 0.3s ease-out;
 position: relative;
 z-index: 9000;
}


nav ul {
 background-color: orange;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 position: fixed;
 /* emplazamiento,
 estirado en toda la ventana */
 inset: 0;
 /* capa superior, arriba de casi todo */
 z-index: 8000;
 /* escondido "a la derecha" */
 translate: 100%;
 transition: all .6s ease; /* anima cuando "nav" NO tiene la clase "menuVisible" */
}

/*--------------------------- el menu cuando "nav" tiene la clase "menuVisible" -----------------------*/

.menuvisible ul {
 background-color:orange ;
 opacity: 80%;
 transition: all .4s ease; /* anima cuando "nav" tiene la clase "menuVisible" */
 
 /* se muestra */
 translate: 0;
 margin: 0;
}

main{
 width: 100%; /* O el ancho deseado */
 overflow-x: hidden;
}

/*-----------------------------------------contenedora_primero------------------------------------------------*/

.contenedora_primero{
  background-color: #E9E774;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1em;
  background-image: url(../imagenes/personasenpng.png);
  background-repeat: no-repeat;
  background-size: 100%;
   background-position:bottom;
  flex-wrap: wrap;
}
.contenedora_primero h1{
  color:white;
  text-decoration:underline;
}

.contenedora_primero p{
  color: black;
  font-size: 25px;
}

.contenedora_primero a{
  color: white;
  display: flex;
  background-color:rgba(255, 127, 90, 1) ;
  font-size: 35px;
  padding: 10px;
  justify-content: center;
  justify-items: center;
  align-items: center;
  border-radius: 0.5rem;
  margin: 0.5em 2em 3em;
}

.globo h1{
  font-size: 30px;
}
 
 .globo{
    border-radius: 1em;
    background: rgba(255, 127, 90, 1);
    color: white;
    padding: 20px;
    position: relative;
    margin: 2em auto;
    z-index: 1;
    border: 2px solid black;
    }
 
 .globo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: auto;
    background: transparent;
    width: 0px; height: 0px;
    border-bottom: 40px solid rgba(255, 127, 90, 1);
    border-right: 40px solid transparent;
    border-left: 40px solid transparent;
    transform: rotate(45deg);
    z-index: -1;
    }

  /*------------------------------------contenedora_segundo--------------------------------------------------*/
  .contenedora_segundo .bienvenida{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column
  } 

  .contenedora_segundo .bienvenida h2{
    font-size: 35px;
    margin-bottom: 0;
  }

  .contenedora_segundo .bienvenida p{
    font-size:25px;
    color:rgba(255, 127, 90, 1) ;
  }

  .contenedora_segundo .preguntas{
    background-color: rgba(255, 127, 90, 1);
    display: flex;
    flex-wrap: wrap; 
    flex-direction: column;  
    justify-content: center;
    text-align: center;
    padding: 1em;
  }

  .contenedora_segundo .preguntas h2{
    color: black;
    font-size: 35px;
  }

  .contenedora_segundo .preguntas h3{
    font-size: 25px;
  }

  .contenedora_segundo .preguntas p{
    background-color: #E9E774;
    font-size: 20px;
    color: black;
    padding: 0.3em;
    outline: solid black;
    border-radius: 0.5rem;
  } 

  /*------------------------------------contenedora_tercera--------------------------------------------------*/

  .contenedora_tercera{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    background-image: url(../imagenes/reloj.png);
    background-repeat: no-repeat;
    background-size: 10%;
    background-position: right top;
  }

  .contenedora_tercera .salas{
    background-color: rgba(255, 127, 90, 1);
    color: black;
    background-image: url(../imagenes/control\ grande.png);
    background-size: 15%;
    background-repeat: no-repeat;
  }

  .contenedora_tercera .salas h2{
    font-size: 35px;
    color: white;
  }

  .contenedora_tercera .salas p{
    font-size:20px ;
  }

  .contenedora_tercera .salas a{
    display: none;
  }

  .contenedora_tercera .tiempo h2{
    font-size: 35px;
  }

  .contenedora_tercera .tiempo p{
    font-size: 20px;
    background-color: #E9E774;
    color: black;
    border-radius: 0.25rem;
  }

/*--------------------------contenedora_cuarta--------*/

.contenedora_cuarta .diversion{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  background-image: url(../imagenes/listones.png);
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: bottom;
  padding: 1em 3em 5em;
  margin: 0;
}

.contenedora_cuarta .diversion h2{
  font-size: 35px;
  margin-bottom: 0;
}

.contenedora_cuarta .diversion p{
  font-size: 20px;
}

.ranking{
  border-radius: 0.8em;
  background-color: rgba(255, 127, 90, 1);
}
.contenedora_cuarta .ranking .barra{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.barra h2, h3, h4{
font-size: 40px;
}


.contenedora_cuarta .porciento {
  font-size: 25px;
  color: #E9E774;
  padding: 0.5em;
}


.progreso1, .progreso2, .progreso3 {
  height: 40px; 
  background-color:#E9E774; 
  border-radius: 1em;
  border: 2px solid black;
  width: 50%;
  margin: 0;
}

/*-----------------------------contenedora_quinta------*/
.contenedora_quinta{
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.contenedora_quinta .contenedora_pelado{
  display: flex;
    justify-content: center;
    border-radius: 1em;
    align-items: center;
    background-image: url(../imagenes/estrellas.png);
    background-repeat: no-repeat;
    background-size: 35%;
    background-position: right bottom;
}

.contenedora_quinta .contenedora_pelado img{
  width: 40%;
} 

.contenedora_quinta .contenedora_pelado p{
  font-size: 25px;
}

.contenedora_quinta .contenedora_chica{
  display: flex;
    justify-content: center;
    border-radius: 1em;
    align-items: center;
    background-image: url(../imagenes/estrellas.png);
    background-repeat: no-repeat;
    background-size: 35%;
    background-position: right bottom;
    padding: 1em;
}

.contenedora_quinta .contenedora_chica img{
  width: 38%;
}

.contenedora_quinta .contenedora_chica p{
  font-size: 25px;
  margin: 10px;
}

/*------------------------contenedora_final--------------*/

.contenedora_final{
  display: flex;
  justify-content: center;
  text-align: center;
  background-image: url(../imagenes/Brazuca\ Cat.png);
  background-repeat: no-repeat;
  background-size: 20%;
  background-position: right;
  padding: 3em;
}

.contenedora_final a{
  color: white;
  display: flex;
  background-color: rgba(255, 127, 90, 1);
  font-size: 45px;
  justify-content: center;
  justify-items: center;
  align-items: center;
  border-radius: 0.5rem;
  margin: 0.5em 2em 2em;
  }
          
 .contenedora_final a:hover{
  background-color:#f6e39c;
  color: black;
 }

 /*-----------------------------footer-------------------*/
 
footer .redes{
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  margin: 2em;
}

 footer img{
  width:15%;
 }

 footer h2{
  font-size: 25px;
  text-align: center;
  color:rgba(255, 127, 90, 1) ;
 }

 footer p{
  font-size: 10x;
  text-align: center;
 }
   
    
/* Estilos para pantallas móviles (menos de 450px de ancho) */
@media (max-width: 450px) {
  footer .redes {
    flex-direction: column; /* Cambia la dirección del flexbox a columna */
    align-items: center; /* Centra los elementos */
    margin: 1em; /* Reducir el margen */
  }

  footer img {
    width: 20%; /* Ajusta el ancho de las imágenes */
    margin-bottom: 1em; /* Espacio entre las imágenes */
  }

  footer h2 {
    font-size: 20px; /* Tamaño de fuente más pequeño */
  }

  footer p {
    display: none;
  }
}



  /*--------------------------------------pantallas para ordenadores-----------------------------------------------*/




  @media(min-width:450px){
    
    /*------------------------------------------anula el menu hamburguesa--------------------------------------*/
  
     .menu-hamburguesa{
         display: none;
     }
  
  /*-------------------------------------anula varias opciones del menu vertical--------------------------------*/
  
     header nav ul {
         /* caja flexible para menu horizontal*/
         display: flex;
       /* para que esté en capa superior pero que no parezca */
         position: relative;
         opacity: 1;
         visibility: visible;
         translate: none;
         transition: none;
       }
   /*-----------------------------------------navegacion, menu y header------------------------------------*/
  
       .contenedora {
   
         /* ancho maximo 1040px */
         max-width: 65rem;
       
         /* centrado horizontal (si sobra espacio,
           lo distribuye a izquierda y derecha por igual) */
         margin-inline: auto;
       
         /* espacio entre el borde del elemento y su contenido
         para que este no quede "pegado" a los bordes */
         padding: 1rem;
       }
     
       nav {
         flex-grow: 1;
       }
     
     .menu {
         display: flex;
         justify-content: flex-end;
         padding-right: 1rem; }
     
     .menu li {
         margin: 0 1rem; }
     
     .menu a {  
         color:rgba(255, 127, 90, 1);
         transition: transform 0.3s; /* transicion suave para el efecto */
         font-weight: bold;  
       }
     
       
       header nav ul {
         /* elimina los margenes arriba y abajo que vienen predeterminados */
         margin-block: 0;
         display:flex;
         flex-direction: row;
         gap: .25rem;
         flex-wrap: wrap;
         justify-content: flex-end;
         background-color: black;
       }
     
       header nav ul li {
         width: 5em;
         height: 2em;
         margin-left: .30em;
         
         /* agrega espacio vertical entre la lista del menu*/
         margin-right: 10px;
       
        /*separa los contenedores los cuales envuelven a los link, se les dio separacion
        y tamaño adecuado para que quede prolijos*/
       }
     
       header nav {
         border-radius: 1em;
         gap: 1em;
       }
     
       header nav a {
          
         /* para darle propiedades de caja (ancho, por ejemplo) */
         display: block;
         
         /* ancho igual para todos */
         width: 5em;
         
         /* "relleno" arriba y abajo */
         padding-block: 0.25em .5em;
           
         /* se alineo los textos en el centro, horizontal.*/
         text-align: center;
         }
     
         header .contenedora{
             display: flex;
             justify-content: space-between;
             align-items: center;
             flex-wrap: wrap;
             text-align: justify;
           } 
       
       header nav ul li a {
         width: 100%;
         height: 100%;
         background-color: rgb(0, 0, 0);
         color:rgba(255, 127, 90, 1);
         border-color:rgba(255, 127, 90, 1) ;
         text-decoration: none;
         font-weight: bold;
         display: flex;
         justify-content: center;
         align-items: center;
         font-size: 16px;
       }
       
       header nav ul li a:hover{
         color: white;
         background-color: black;
         outline: solid rgba(255, 127, 90, 1);
         transition: background-color 0.7s ease, color 0.3s ease; /* Transiciones suaves para el cambio de color */
       }
         
       header{
           background-color: black;
         }

     /*----------------------------------contenedora_primero-------------------------------------------------*/

         .contenedora_primero{
          background-color: #E9E774;
          color: black;
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 2em;
          padding:4em 0;
          background-image: url(../imagenes/personasenpng.png);
          background-repeat: no-repeat;
          background-size: 55%;
          background-position: left bottom;
          flex-wrap: wrap;
          }
      
      .globo h1{
        font-size: 40px;
      }
       
       .globo{
          border-radius: 1em;
          background: rgba(255, 127, 90, 1);
          color: white;
          padding: 20px;
          position: relative;
          bottom:4em;
          margin: 2em auto;
          z-index: 1;
          border: 2px solid black;
          }
       
       .globo::after {
          content: '';
          position: absolute;
          bottom: 0;
          left: auto;
          background: transparent;
          width: 0px; height: 0px;
          border-bottom: 40px solid rgba(255, 127, 90, 1);
          border-right: 40px solid transparent;
          border-left: 40px solid transparent;
          transform: rotate(45deg);
          z-index: -1;
          }
      
          .contenedora_primero h1{
              color: white;
              display: flex;
              justify-content: center;
             }
      
          .contenedora_primero .textos{
            background-image: url(../imagenes/2michis.png);
            background-repeat: no-repeat;
            background-size: 40%;
            background-position: right bottom;          
            flex-wrap: wrap;
            justify-content: center;
            text-align: center;
          }
      
           .contenedora_primero h3{
              font-size: 30px;
           }
      
           .contenedora_primero p{
              font-size: 30px;
              margin: 0 2em 1em 1em;
           }
           .contenedora_primero a{
            color: white;
            display: flex;
            background-color: rgba(255, 127, 90, 1);
            font-size: 35px;
            justify-content: center;
            justify-items: center;
            align-items: center;
            border-radius: 0.5rem;
            margin: 0.5em 4em 2em;
            width: 50%;
      
          }
          .contenedora_primero a:hover{
              background-color:black;
              color: white;}
            
          /*----------------------------------contenedora_segundo-----------------------------------------------*/
          .contenedora_segundo{
              display:grid;
              grid-template-columns: 1fr 1fr;
              padding: 2em;
              gap: 2em;
              background-image: url(../imagenes/Vector.png);
              background-repeat: no-repeat;
              background-position: left top;
              background-size: 8%;
          }
            .contenedora_segundo .bienvenida{
              text-align: center;
            }
      
            .contenedora_segundo .bienvenida h2{
              font-size: 40px
            }
      
            .contenedora_segundo .bienvenida p{
              color:rgba(255, 127, 90, 1) ;
              font-size: 25px;
            }
      
            .contenedora_segundo .preguntas{
              background-color: rgba(255, 127, 90, 1);
              display: flex;
              flex-wrap: wrap;
              flex-direction: column;
              align-content: center;
              text-align: center;
              border-radius: 1em;
            }
            .contenedora_segundo .preguntas p{
              background-color: #E9E774;
              font-size: 20px;
              color: black;
              padding: 0.3em;
              outline: solid black;
              border-radius: 0.5rem;
              margin-bottom: 0;
            }
            .contenedora_segundo .preguntas h2{
              color:black ;
              margin-top: 0;
              margin-bottom: 0;
            }
      
          /*---------------------------------contenedora_tercera-----------------------------------------------*/
          .contenedora_tercera{
            background-image: none;
              background-color: rgba(255, 127, 90, 1);
              color: black;
              display: grid;
              grid-template-columns: 1fr 1fr;
              padding: 2em;
              gap: 2em;
          }
          .contenedora_tercera .tiempo{
            background-color: black;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            align-content: center;
            text-align: center;
            border-radius: 1em;
            padding: 1em;
          }
          
          .contenedora_tercera .tiempo h2{
              font-size: 30px;
              color:white;
              padding: 1em;
              margin: 0;
              background-image: url(../imagenes/reloj.png);
              background-repeat: no-repeat;
              background-position: right;
              background-size: 10%;
          }
          .contenedora_tercera .tiempo p{
            background-color: #E9E774;
            font-size: 20px;
            color: black;
            padding: 0.3em;
            outline: solid black;
            border-radius: 0.5rem;
            margin-bottom: 0;
          }
      
          .contenedora_tercera .salas{
              display:flex;
              flex-wrap: wrap;
              align-items: center;
              text-align: center;
              justify-items: center;
              justify-content: center;
          }
      
          .contenedora_tercera .salas h2{
              font-size: 40px;
              color: white;
          }
      
          .contenedora_tercera .salas p{
              font-size: 25px;
              margin: 0 1em 2em;
          }
      
          .contenedora_tercera .salas a{
            color: black;
            display: flex;
            background-color:#E9E774;
            font-size: 35px;
            padding: 5px;
            justify-content: center;
            justify-items: center;
            align-items: center;
            border-radius: 0.5rem;
          }
      
          .contenedora_tercera .salas a:hover{
              background-color: black;
              color: white;
          }
          /*--------------------------------contenedora_cuarta-------------------------------------------------*/
      
          .contenedora_cuarta{
              display: grid;
              grid-template-columns: 1fr 1fr;
              padding: 2em;
              background-image: url(../imagenes/Vector.png);
              background-repeat: no-repeat;
              background-position: left top;
              background-size: 10%;
              gap: 2em;
          }
          .contenedora_cuarta .diversion{
              display: flex;
              flex-wrap: wrap;
              flex-direction: column;
              justify-content: center;
              align-items: center;
              text-align: center;
              background-image: url(../imagenes/listones.png);
              background-repeat: no-repeat;
              background-size: 45%;
              background-position: bottom;
            }
          .contenedora_cuarta .diversion h2{
              font-size: 40px;
          }
          .contenedora_cuarta .diversion p{
            font-size: 25px;
            color: rgba(255, 127, 90, 1) ;
            margin: 1em 0 0 0;
            
          }
      
          

   
      
      
          /*--------------------------------contenedora_quinta-------------------------------------------------*/
      
          .contenedora_quinta{
            background-color: rgba(255, 127, 90, 1);
            color: black;
            display: grid;
            grid-template-columns: 1fr 1fr;
            padding: 2em;
            gap: 2em;
            
          }
          

       .contenedora_quinta .contenedora_pelado{
        display: flex;
        justify-content: center;
        align-items: center;
        /* padding: 1em; */
        /* font-size: 60px; */
        color: white;
        background-image: url(../imagenes/estrellas.png);
        background-repeat: no-repeat;
        /* background-position: bottom; */
        background-size: 30%; 
        background-color: black;
        }
      
      
          .contenedora_quinta .contenedora_pelado img{
              width: 30%;
          }
          .contenedora_quinta .contenedora_chica img{
            width: 29%;
         }

          
          .contenedora_quinta .contenedora_pelado p{
            font-size: 30px;
          }
          .contenedora_quinta .contenedora_chica p{
            font-size: 30px;
          }
      
      
          .contenedora_quinta .contenedora_chica{
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 30px;
            background-color: black;
            color: white;
            border-radius: 1rem;
            background-image: url(../imagenes/estrellas.png);
            background-repeat: no-repeat;
            background-position: bottom right;
            background-size: 30%;
          }
          
      

          /*---------------------------------contenedora_final----------------------------------------------------*/
          .contenedora_final{
              display: flex;
              justify-content: center;
              background-image: url(../imagenes/Brazuca\ Cat.png);
              background-repeat: no-repeat;
              background-size: 12%;
              background-position: right;
          }
          
          .contenedora_final a{
            color: white;
            display: flex;
            background-color:rgba(255, 127, 90, 1) ;
            font-size: 35px;
            justify-content: center;
            justify-items: center;
            align-items: center;
            border-radius: 0.5rem;
            margin: 0.5em;
            padding: 15px;
            display: block;
            width: 30%; /* Ajustar al 100% del contenedor padre */
            text-align: center;
            }
          
             .contenedora_final a:hover{
              background-color:#f6e39c;
              color: black;
          }
          /*---------------------------------------------footer------------------------------------------------*/   
    
 /*----------------------------------------- Estilos para tablets -----------------------------------------*/

    @media(min-width: 450px) and (max-width: 1024px) {

      .contenedora {
        max-width: 65rem;
          }
        
      .contenedora_primero {
        background-size: 55%;
          }
        
      .contenedora_primero .textos {
        background-size: 40%;
          }
    
      .contenedora_segundo .bienvenida {
            background-size: 90%;
          }
        
      .contenedora_tercera .tiempo h2 {
            background-size: 10%;
          }
      
      .contenedora_cuarta {
           background-size: 10%;
          }
        }
       /*----------------------------------- Estilos para pantallas grandes *---------------------------------*/
     
       @media(min-width: 1024px) {
          
         .contenedora {
            max-width: 80rem;
          }
        
         .contenedora_primero {
            background-size: 45%;
          }
        
         .contenedora_primero .textos {
            background-size: 30%;
          }
          
         .contenedora_segundo .bienvenida {
            background-size: 90%;
          }
        
         .contenedora_tercera .tiempo h2 {
          background-size: 10%;
          }

        .contenedora_cuarta {
            background-size: 10%;
          }
        }
      }
      