@import url('https://fonts.googleapis.com/css2?family=Fredoka&family=Grandstander:ital@0;1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@700&family=Grandstander:ital,wght@0,700;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500&family=Grandstander:ital,wght@0,500;1,500&display=swap');


*{
    box-sizing: border-box;
}
body{
    background: rgb(175,235,243);
    background: linear-gradient(0deg, rgba(175,235,243,1) 34%, rgba(255,255,255,1) 100%);
    margin: 0;
    
    font-family: "Fredoka", sans-serif;
    
}

.contenedor{
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

h1, h2, h3, h4{
    margin: 0;
}

h1, h2, h3, main a, label, button, .mayusculas {
    text-transform: uppercase ;
}

li{
    text-wrap: pretty;
}

ul,
ol{
    list-style: none;
    padding: 0;
    
}

img, figure{
    margin:0;
    

}
img{
    display: block;
   
    max-width: 100%;
    height: auto;
}

figure {
    display: block;
    margin-block: 0em;
    max-width: 100%;
    height: auto;
}

a{
    text-decoration: none;
    
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

/*header*/

header{
   
    background-color: #f7ea83;
    color: hsl(0 0% 95%);
    
    padding: 0rem;
    margin-block: 0rem;
    box-shadow: 
    0
    4px
    4px
    hsl(0 0% 0% / 20%);

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0em;
    padding-block: 1rem;

    /*display: grid;
    
    grid-template-columns: (75%, auto, auto);
    gap: 1rem;
    align-items: center;*/
    position: sticky;
    inset: 0 0 auto 0;
    z-index: 5;
    
}



.logo_jugaccion{
    padding: .5rem;
    order: 0;
    width: 14em;
}
.logo_jugaccion img {
    width: 100%;
}
.vidas {
    
    height: 2.8rem;
    
    
    
    margin-inline-end: 1em;
    display: flex; /* Añadido para usar Flexbox */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    

}

.vidas img{
    width: 3em;
    display: inline;
    padding: 0.1em;
}



header h4{
    font-size: 2.7rem;
    margin: 0;
  
    color: #141414;
    display: inline-block; /* Cambio a inline-block para mejor control */
}


/*main*/
.home main, .logros main, .perfil main, .ranking main, .mas_juegos main{
    margin-block-end: 5em;
}

/*nav*/

nav{
    position: fixed;
    bottom: 0;
    z-index: 10;
   
}

nav ul{
    margin: 0;
}

.botonera {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0em;
    
    
}

.botonera li{
    display: flex;
    align-items: center;
}

.boton{
    background-color: #bfffab;
    border: solid 1px #57ae6b;
    border-radius: .75rem;
    padding: 1rem ;
    border-block-end: 0;
    
}

.boton_apretado{
    background-color: #f7ea83;
    border: solid 2px #f7504a;
    border-radius: .75rem;
    padding-inline: .75rem ;
    position: relative;
    border-block-end: 0;
}

.boton.unico{
    order: 0;
    flex-basis: 20%;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    
    
}

.boton.unico img{
    aspect-ratio: 1;
    align-self: center;
}


  
  /* CSS Inner Shadow Code */
.inner-shadow {
    
    box-shadow: inset #57ae6b 0px 0px 20px -12px; 
}

#boton_menu_hamburguesa{
    display: none;
}

/*footer*/
footer p{
    font-size: 0.4em;
}



/*hoja*/

.hoja {
    display: block;
    margin: auto;
    margin-block-start: 1em;
    margin-inline: 0.5em;
    background-color: #ffffff;
    border: solid 2px #f7504a;
    border-radius: 1.25rem;
    position: relative;
    padding-block-start: 2em;
    padding-block-end: 10em;
    padding-inline-start: 2.5em;
    padding-inline-end: 1em;
        
    background-image: linear-gradient(rgba(93, 217, 255, 0.2) 1px, transparent 0);  
    background-size: 100% 1em;
    min-height: calc(100dvh - 5em);
}

.hoja::before {
    content: "";
    position: absolute;
    left: 0; 
    top: 0;
    width: 1.2em; 
    height: 100%;
    border-radius: 1.25rem 0 0 1.25rem; 
    z-index: 1;

    background: linear-gradient(to right, 
    transparent calc(100% - 4px),
    #f7504a calc(100% - 3.5px), 
    transparent calc(100% - 3px),
    transparent calc(100% - 1px),
    #f7504a calc(100% - .5px)
    )
}




/*home*/

.home h1{
    text-align: center;
    color: hsl(0 0% 10%);
    padding-inline: 1em;
    padding-block: 0.6em;
    padding-block-start: 0.4em;
    width: 8em;
    margin-inline: auto;
    margin-block: 0.5em;
    background-color: #ffffff;
    border: dotted 4px #f7504a;
    border-radius: 1.25rem;
    
    font-family: "Grandstander", serif;
    font-size: 2.4rem;
   

}


.home span{
    padding-block-start: 0.2em;
}

.span_unma, .span_no{
    display: block;
    border-block-end: #f7504a solid 1px;
    width: 100%;


}

.span_varible{
    border-block-end: none;
}


.index_perfil{
    width: fit-content;
    position: absolute;
    z-index: 4;
    top: 19em;
    right: 1em;
    padding: 0.3em;
    border-radius: 0.7em;
    border: solid 1px #f7504a;
    background-color: #ffffffd0;
    
}


.home article {
    margin-block: 1em;
}

.nivel1{
    margin-right: 15em;
    position: relative;
    left: 2.5em;
}

.libro1{
    position: relative;
    z-index: 3;
    background-image: url(../imagenes/libro_rojo.png);
    background-size: 100%;
    aspect-ratio: 1.51/1;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
   
    
}

.mas_info{
    display: none;
}

.home main img{
    width: 70%;
    margin: auto;
    
}

.nivel2{
    margin-left: 15em;
    position: relative;
    right: 2.5em;
}

.libro2{
    position: relative;
    z-index: 3;
    background-image: url(../imagenes/libro_verde.png);
    background-size: 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1.51/1;
    display: flex;
    align-items: center;
    
}

.nivel3{
    margin-right: 15em;
    position: relative;
    left: 2.5em;
}

.libro3{
    position: relative;
    z-index: 3;
    background-image: url(../imagenes/libro_azul.png);
    background-size: 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1.51/1;
    display: flex;
    align-items: center;
    
}

.letras_amarillas{
    color: #f7ea83;
    
   /* -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;*/
    text-shadow:
    -1px -1px 0 #000,
     0   -1px 0 #000,
     1px -1px 0 #000,
     1px  0   0 #000,
     1px  1px 0 #000,
     0    1px 0 #000,
    -1px  1px 0 #000,
    -1px  0   0 #000;
    text-align: center;
}

.home .letras_amarillas{
    font-size: 1.5rem;
}


.home main a {
    background-color: #ffffff;
    width: 80%;
    border-radius: .75rem;
    padding-inline: 1em;
    text-align: center;
    display: block;
    margin-inline: auto;
    color: #141414;
}




.nivel1 a, .boton_rojo {
    border: solid 2px #f7504a;
    
}

.nivel1 a:hover{
    background-color: #f7ea83;
    color: #f7504a;
    font-weight: 500;
    
}

.nivel2 a, .boton_verde {
    border: solid 2px #42cd37;
}

.nivel2 a:hover{
    background-color: #f7ea83;
    color: #0ba800;
    font-weight: 500;
}
.nivel3 a, .boton_azul {
    border: solid 2px #304dfe;
}
.nivel3 a:hover{
    background-color: #f7ea83;
    color: #304dfe;
    font-weight: 500;
}


/*nivel 1 pagina 1*/


.letras_blancas {
    color: #ffffff;
    /*font-size: 1.5rem;*/
   /* -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;*/
    text-shadow:
    -1px -1px 0 #000,
     0   -1px 0 #000,
     1px -1px 0 #000,
     1px  0   0 #000,
     1px  1px 0 #000,
     0    1px 0 #000,
    -1px  1px 0 #000,
    -1px  0   0 #000;
    background-color: #f7504a;
    padding-inline: 0.5rem;
    padding-block: 0.25rem;
    margin-block: 0.5rem;
    border-radius: .75rem;
    border: solid 1px #141414;
    text-align: center;
}


.letras_rojas_amarillo {
    color: rgb(252, 50, 50);
    background-color: #f7ea83;
    border: solid 1px #f7504a;
    box-shadow: 0px 0px 6px #f7504a inset;
    padding-inline: 0.5rem;
    padding-block: 0.25rem;
    margin-block: 0.5rem;
    border-radius: .75rem;
    text-align: center;
    font-weight: bold;
}

.letras_rojas_amarillo:hover{
    color: #57ae6b;
}


.nivel_titulo {
    width: 7rem;
    
    font-size: 1.6rem;
}



.nivel_botones {
    display: block;
    width: 10rem;
    margin: auto;
    margin-block: 1em;
    font-size: 1.3rem;
}

.n1_hoja1 .letras_amarillas{
    font-size: 2.5rem;
    
}

.n1_hoja1 h1{
    margin-block-start: 0.5em;
    margin-block-end: 0.3em;
}

.n1_hoja1 .fotos{
    border-radius: 0.6rem;
    box-shadow: inset #0d9cf7 0px 0px 80px -12px; 
    width: 100%;

}

.n1_hoja1_botones {
    margin-block: 2em;
}






.flecha_atras{
    background-color: #f7ea83;
    padding: 0.4em;
    border-radius: 0.6rem;
    border: solid 2px #f7504a;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 15%;
    left: 2.1rem;
    box-shadow: 0px 0px 3px #f7504a inset;
    opacity: 0.9;
    z-index: 9;
}

.flecha_adelante{
    background-color: #f7ea83;
    padding: 0.4em;
    border-radius: 0.6rem;
    border: solid 2px #f7504a;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 3px #f7504a inset;
    position: fixed;
    bottom: 15%;
    right: 1rem;
    opacity: 0.9;
    z-index: 9;
}



.barra_progreso {
    height: 1rem;
    border: solid 2px #141414;
    border-radius: 0.6rem;
    width: 15rem;
    position: absolute;
    margin-block: 2em;
    left: 50%;
    transform: translateX(-50%);
    margin-inline-start: 0.4em;
}

progress[value]::-webkit-progress-value {
    background-color: #f7504a;
}
progress::-webkit-progress-bar {
    background-color: #ffffff;
    border: #000000;
}






/*nivel 1 pagina 2*/

.n1_hoja2 h1{
    text-align: center;
    font-size: 1.5rem;
    margin-block-end: 1.5rem;
}




main p, main ul{
    width: 93%;
    margin: auto;
    font-size: 1rem ;
    line-height: 1.5rem;

}

.n1_hoja2 span{
    display: block;
    margin-block-start: 1rem;
}

.nivel1_audio{
    width: 80%;
    background-image: url(../imagenes/madre_hablando_2.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: right;
    aspect-ratio: 2.36/1;
    margin: auto;
   
    
}

.nivel1_audio img{
    width: 50%;
    margin: auto;
}

.n1_hoja2_audio{
    position: absolute;
    margin-block: 7dvw;
    margin-inline: 6dvw;
    padding-inline-end: 6dvw;
    width: 45%;
}

.boton_audio{
    background-color: #ffffff;
    color: #f7504a;
    border: solid 1px #f7504a;
    border-radius: 100%;
    aspect-ratio: 1;
    
    width: 20%;
}

.slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}
.slide_grid {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan a la siguiente línea */
    gap: 16px; /* Espaciado entre las imágenes */
    justify-content: center; /* Centra las imágenes */
    width: 100%;
}
.slide {
    
    width: 100%;
    height: auto;
    position: absolute;
    transition: all 0.5s;
}
.slide img{
    margin: auto;
    width: 90%;
    border: solid 3px hsl(0 0% 0% / 20%);
    border-radius: 0.6rem;
    margin-block-end: 1rem;
    object-fit: cover;
    
}

.btn {
    position: absolute;
    z-index: 4;
    top: 1em;
  
    width: 2.5em;
    aspect-ratio: 1;
    
    border-radius: 50%;
    cursor: pointer;
    background-color: #ffffff;
    color: #f7504a;
    border: solid #000 1px;
    font-size: 1.1em;
    opacity: .75;
  }
  
  .btn:active,
  .btn:hover {
    opacity: .9;
    border: solid 1px #f7504a;
  }
  
  .btn-prev {
    top: 4em;
    left: .5em;
  }
  
  .btn-prox {
    top: 4em;
    right: .5em;
}

.btn span{
    margin: 0;
}



/*nivel 1 pagina 3*/

.videos{
    margin: auto;
}

.videos figcaption{
    font-style: italic;
    color: #575757;
    font-size: 0.9em;
}

#nivel1_pagina3_video{
    aspect-ratio: 16/9;
    max-width: 100%;
    
}

.n1_hoja3 main li{
    margin-block: 1em;
}

.n1_hoja3 main ul{
    list-style: circle outside;
    padding-inline-start: 1em;
    
}

/*nivel 1 pagina 4*/
.nivel_encuesta{
    position: absolute;
    top: 0;
    margin: 0;
    width: 100%;
    left: 0;
    border: none;
    border-end-end-radius: 0em;
    border-end-start-radius: 0em;
    padding-block: .5em;
    text-align: left;
    padding-inline-start: 2em;

}

.n1_hoja4 h1{
    font-size: 1.5em;
    text-align: center;
    color: hsl(0 0% 10%);
    padding-inline: 0.3em;
    padding-block: 0.3em;
    max-width: 450px;
    margin-inline: auto;
    margin-block-start: 2em;
    margin-block-end: 1.5em;
    background-color: #ffffff;
    border: dotted 4px #f7504a;
    border-radius: 1.25rem;
    text-transform: none;
    font-weight: 400; 
    
}

.n1_hoja4 section {
    display: grid;
    grid-template-columns: 46% 46%;
    gap: 1em;
    
    
}

.n1_hoja4 section div{
    text-align: center;
}

.encuesta_opcion {
    display: grid;
    grid-template-rows: 1fr auto;
}


.n1_hoja4 section a{
    display: flex; /* Usamos flexbox para centrar el contenido */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    font-size: 1em;
    text-align: center;
    background-color: #f7504a;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    color: #ffffff;
    border: solid #141414 1px;
    margin-inline: auto;
    margin-block: .7em;
}

/*nivel 1 pagina 5*/
.globo {
    background-image: url(../imagenes/globo_dialogo.png);
    background-size: 100%;
    aspect-ratio: 2.121/1;
    width: 95%;
    height: 75%; 
    text-align: center;
    margin: auto;
    margin-block-start: 1em;
    display: grid;
    padding-block-end: 10dvw;
    place-items: center;
}

.globo h1{
    font-size: 6dvw;
}

.n1_hoja5 main img{    
    width: 40%;
    margin-inline: auto;
}

.n1_hoja5 main h3{
    text-align: center;
    font-size: 0.8em;
    margin-block-start: 2em;
}

.n1_hoja5 .boton_verde{
    width: 8em;
    font-weight: bold;
    border-radius: 1rem;
    display: block;
    margin-inline: auto;
    margin-block: 1em;
    padding: 1em;
    background-color: #ffffff;
    box-shadow: 0px 0px 6px #42cd37 inset;
    color: #141414;
    text-align: center; 
}


/*nivel 2 pagina 1*/
.n2 .fondo_titulo {
    background-color: #42cd37;
}

.n2 .hoja {
    padding-block-end: 12em;
}

.n2 progress[value]::-webkit-progress-value {
    background-color: #42cd37;
}

/*nivel 3 pagina 1*/
.n3 .fondo_titulo {
    background-color: #304dfe;
}

.n3 .hoja {
    padding-block-end: 12em;
}

.n3 progress[value]::-webkit-progress-value {
    background-color: #304dfe;
}


/*PERFIL Y FORMULARIOS*/

.perfil h1, .logros h1, .mas_juegos h1, .ranking h1, .como_jugar h1 {
    font-size: 1.8rem;
    width: 8em;
    margin-inline: auto;
    margin-block-start: 0.75em;
}

/*como jugar*/
.como_jugar article{
    margin-block: 1em;
    background-color: #f7ea83;
    padding: 1em;
    border-radius: 1em;
}
.como_jugar h1{
    margin-block-start: 0;
    margin-block-end: 1em;
}
.como_jugar h2{
    text-align: center;
}
.como_jugar section img{
    
    max-width: 50%;
    margin: auto;
    padding: 0.3em;
}
.como_jugar main p{
    width: 100%;
    text-align: center;
}
.como_jugar em{
    color:  rgb(252, 50, 50) ;
}


/*perfil*/
.perfil h2{
    text-align: center;
    margin-block: 1em;
}

.perfil_info_extra {
    display: none;
}

.nueva_cuenta {
    margin-block-start: 4em;
}
.nueva_cuenta p{
    text-align: center; 
    padding-inline: 2em;
    font-size: 1.1rem;

}

label {
    display: block;
    margin-top: 1em;
    font-size: 1.1rem;
    text-align: center;
}

input, .select-css {
    display: block;
    width: 18em;
    max-width: 18em;
    margin: 1em .7em;
    margin-inline: auto;
    background-color: #ffffff;
    border: solid #f7504a 1px;
    border-radius: 1em;
    /* box-shadow: 0 0 .5em 1px rgba(0, 0, 0, 0.3); */
    font-size: 1em;
    padding: .5em .3em;
    color: #575757;
}

.perfil button {
    font-family: "Fredoka", sans-serif; 
}


/*perfil 3*/

.perfil_3 main img{
    width: 70%;
    margin: auto;
    margin-block: 1em;
}

.perfil_3 main li{
    margin-block: 1em;
    background-color: #ffffff;
    padding: 0.4em;
    border-radius: 1em;
}

.perfil_3 span:last-of-type{
    color: #f7504a;
}


/*LOGROS*/
.logros section{
    margin-inline: 2em;
    margin-block: 1em;
    padding-block: 1em;
    background-color: #f7ea83;
    border-radius: 2rem;
}
.logros .cada_linea{
    display: grid;
    grid-template-columns:4em auto;
    gap: 1em;
    align-items: center;
    padding-inline-start: 1em;
    padding-block-end: .5em;
    padding-inline-end: 1em;
    border-block-end: #f7504a solid 2px;
}

.logros .cada_linea:last-of-type{
    border-block-end: none;
    padding-block-end: 0em;
}

.logros article img{
    aspect-ratio: 1/1;
    width: 64px;
    
    margin-inline: auto;
}

.logros progress {
    width: 100%;
    height: 3em;
}



/*ranking*/
.ranking section{
    
    margin-inline: 2em;
    margin-block: 1em;
    padding-block: 1em;
    background-color: #f7ea83;
    border-radius: 2rem;
}
.ranking .cada_linea{
    display: grid;
    grid-template-columns: 1em 4em 1fr auto;
    gap: 1em;
    align-items: center;
    margin-block: 0.3em;
    padding-inline-start: 1em;
    padding-block-end: .5em;
    padding-inline-end: 1em;
    border-block-end: #f7504a solid 2px;
}
.ranking section img{
    aspect-ratio: 1/1;
    width: 64px;
    margin-inline: auto;
}

.ranking h2{
    text-align: center;
    margin-block-end: 0.7em;
}

.ranking_usuario {
    font-size: 1em;
    font-weight: 500;
}

.ranking_info_tablet{
    display: none;
}

.container {
    display: flex;
    align-items: flex-end;
  }
  
  
  .podium__item {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }
  .podium img{
    max-width: 100%;
    height: auto;
  }
  .podium__rank {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: #000000;
    width: 100%;  
    font-weight: 500;
    
  }
  
  .podium__city {
    text-align: center;
    padding-inline: 0.2em;
    
  }
  
  .podium__number {
    width: 27px;
    height: 75px;
  }
  
  .podium .first {
    min-height: 200px;
    background: rgb(255,172,37);
  background: 
    linear-gradient(333deg, 
    rgba(255,172,37,1) 0%, 
    rgba(254,207,51,1) 13%, 
    rgba(254,224,51,1) 53%, 
    rgba(255,172,37,1) 100%);
  }
  
  .podium .second {
    min-height: 150px;
    background: rgb(189, 189, 189);
    background: 
    linear-gradient(333deg, 
    rgb(189, 189, 189) 0%, 
    rgb(219, 219, 219) 13%, 
    rgb(224, 222, 212) 53%, 
    rgb(189, 189, 189) 100%);
  }
  
  .podium .third {
    min-height: 100px;
    background: rgb(205, 127, 50);
    background: 
    linear-gradient(333deg, 
    rgb(163, 100, 37) 0%, 
    rgb(175, 109, 43) 13%, 
    rgb(205, 127, 50) 53%, 
    rgb(163, 100, 37) 100%);
  }


/*mas juegos*/
.mas_juegos article {
    background-color: #f7ea83;
    margin-inline: 2em;
    margin-block: 1em;
    padding: 0.7em;
    padding-block-end: 1.5em;
    border-radius: 1em;
}
.mas_juegos article img{
    width: 50%;
    margin: auto;
}


.mas_juegos main a {
    background-color: #ffffff;
    border-radius: .75rem;
    padding-inline: 1em;
    text-align: center;
    display: block;
    color: #141414
}

.masjuegos_botones {
    display: grid;
    grid-template-columns:auto auto auto;
    gap: 0.5em;
    margin-block-start: 1em;
    
}
/*RESPONSIVE*/

@media (min-width: 640px) {
    /*header*/
    .vidas {
        margin-inline-end: 7em;
    }

    /*nav*/
    nav{
        top: 1.5em;
        right: 0;
        width: 9em;
        bottom: 20em;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        z-index: 8000;
        translate: 100%;
        transition: all .6s ease;
    }
    .menuVisible ul{
        transition: all .3s ease; 
        translate: 0%;
    }

    .boton{
        border-block-end: solid 1px  #57ae6b;  
    }
    .boton_apretado{
        
        border-block-end: solid 2px #f7504a;
    }
    .boton.unico{
     aspect-ratio: 1/1;
     height: 9em;
     width: 9em;
     padding: 2rem; 
     border-end-start-radius: .75rem;
     border-end-end-radius: 0;
     border-inline-end: 0;
     border-start-end-radius: 0;
    }

    #boton_menu_hamburguesa{
        display: block;
        width: 3.5rem;
        margin-inline: auto;
        background-color: hsl(0 0% 0% / 0%);
        border: none;
    }

    .menu-btn {
        cursor: pointer;
    }

    /*home*/
    .home main {
        margin-block-end: 0em;
    }
    .index_perfil{
        top: 19em;
        right: 9.5em;
    }

    .nivel1{
        margin-right: 13em;
        display: grid;
        grid-template-columns:auto auto;
    }    

    .mas_info{
        display: flex;
        align-items: center;
    }

    .nivel2{
        margin-left: 13em;
        display: grid;
        grid-template-columns:auto auto;
    }

    .nivel3{
        margin-right: 13em;       
        display: grid;
        grid-template-columns:auto auto;
    } 

    /*pagina n1 hoja1*/
    .barra_progreso {
        height: 1.3rem;
        margin-inline-start: 0em;
        width: 22rem;
    }

    .n1_hoja1_botones{
        display: grid;
        grid-template-columns: auto auto;
    }
    .flecha_atras{
        bottom: 10%;
    }
    .flecha_adelante{
        bottom: 10%;
    }

    /*pagina n1 hoja2*/
    .slide_grid .slider{
        display: none;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px
    }
    
    .grid-container img{
        margin: auto;
        width: 90%;
        border: solid 3px hsl(0 0% 0% / 20%);
        border-radius: 0.6rem;
        margin-block-end: 1rem;
        object-fit: cover;
    }
    
    .nivel1_audio{
        width: 70%;
    }
    .boton_audio {
        width: 16%;
    }

    /*nivel 1 pagina 3*/
    .n1_hoja3 div ul{
        max-width: 33em;
        margin-block-end: 2em;
    }
    .videos {
        padding-inline: 1em;
    }

    /*nivel 1 pagina 4*/
    .n1_hoja4 section {
        grid-template-columns: 45% 45%;
        gap: 3em;
    }
    .n1_hoja4 section a{
        font-size: 1.7em;
    }

    /*nivel 1 pagina 5 y 6*/
    .globo {
        width: 50%;
        padding-block-end: 6dvw;
    }
    .globo h1{
        font-size: 4dvw;
    }
    .n1_hoja5 main img{
        width: 50%;
    }

    .n1_hoja5_botones{
        display: grid;
        grid-template-columns: auto auto;
        justify-items: center;       
        align-items: center;
    }

    .n1_hoja5_botones a {
        display: flex;               
        justify-content: center;      
        align-items: center;          
        height: 3em ;
      
    }
    .n1_hoja5 .boton_verde{
        font-size: 1.5em;
        border-radius: 1.5rem;
    }


    /*paginas de manu*/
    .logros main, .perfil main, .ranking main, .mas_juegos main, .perfil_2 main{
        display: grid;
        grid-template-rows: auto 1fr;
        margin-block-end: 0em;
    }
    
    .centrador {
        display: grid ;
        place-content: center;
    }

    /*como jugar*/
    .como_jugar article{
        margin-inline: 1.5em;
    }
    .como_jugar_tablet{
        padding: 1em;
        display: grid;
        grid-template-columns: auto auto;
    }

    /*perfil*/
    .perfil main{
        grid-template-rows: auto 1fr 3fr;
        align-items: center;
    }

    .perfil main p {
        margin-block-start: .5em;
        display: block;
        padding-inline: 4em;
        font-size: 1.2em;
        line-height: 1.4em;
    }

    .perfil_info_extra {
        margin: 0 auto;
    }
    .perfil main p span{
        font-style: italic;
    }

    /*perfil 2 */
    .perfil_2 main ul{
        margin: 0;
    }
    .perfil_2 main, .perfil_3 main{
        grid-template-rows: auto 1fr;
    }
    /*perfil 3*/
    .perfil_3 main img{
        width: 50%;
    }

    .perfil_3 main li{
        width: 77%;
        margin-inline: auto;
    }

    /*logros*/
    .logros section{
        width: 34em;
        margin-inline: 0;
    }

    /*ranking*/
    .ranking section {
        min-width: 34em;
        margin-inline: auto ;
    }

    .ranking_info_tablet{
        display: contents;
        font-weight: 400;
        font-size: 0.8em;
    }
    .ranking .cada_linea {
        grid-template-columns: 1em 4em 1fr 1fr auto;
    }

    /*mas juegos*/
    .masjuegos_tablet {
        display: grid;
        grid-template-columns:60% 1fr
    }

    .mas_juegos article img{
        width: 60%;
    }

    .masjuegos_botones {
        display: block;
        margin-inline-end: 4em;
        margin-block-start: 0;
    }

    .mas_juegos main a {
        padding-block: 0.2em;
        border-radius: 1.25rem;
        width: 100%;
        margin-block: 2em;
        margin-inline-end: 1em;
    }
    
}


@media (min-width: 1025px) {
    /*header*/
    .vidas {
        margin-inline-end: 1em;
    }

    /*nav*/
    nav{
        top: 5.3em;
        height: fit-content;
    }
    
    nav ul {
        translate: 0%;
        height: 70%;
    }
    .menuVisible ul{
        display: none;
    }   
    .boton.unico {
        
        height: 5em;
        width: 5em;
        padding: 1rem;
    }
    #boton_menu_hamburguesa {
        display: none;
    }

    .botonera{
        flex-direction: column;
        right: 0;
        max-height: fit-content;
        max-width: 100%;
    }

    /*hoja*/
    .hoja {
        margin-inline: 9em;
    }

    /*index home*/
    .home section {
        display: grid;
        grid-template-columns: auto auto auto;
        justify-items: center;
        max-width: 90%;
    }

    .home h1{
        width: 10em;
    }

    .span_no{
        border-block-end: 0;
        display: inline;
    }
    
    .span_variable {
        display: block;
        border-block-end: #f7504a solid 1px;
        width: 100%;
    }

    .index_perfil{
        top: 12em;
    }
    .nivel1{
        margin-right: 0em;
        left: 0em;
        display: block;
        max-width: 20dvw;
    }    
    
    .nivel2{
        margin-left: 0em;
        left: 0;
        max-width: 20dvw;
        grid-template-columns: auto;
    }
    .mas_info{
        order: 1;
        display: block;
        margin-block-start: 1em ;
    }

    .nivel3{
        margin-right: 0em;
        left: 0em;
        display: block;
        max-width: 20dvw;
    }
    
    /*NIVEL 1 PAGINA 1*/
    .flecha_atras{
        opacity: 1;
        left: 11rem;
    }
    .flecha_adelante{
        opacity: 1;
        right: 10rem;
    }
    .n1_hoja1 .fotos{
        width: 38em;
        margin: auto;
    }

    .n1_hoja1_botones {
        margin-inline: 11em;
        gap: 1em;
    }   

    .barra_progreso {
        bottom: 5em;
    }

    /*NIVEL 1 PAGINA 2*/
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 4px
    }

    .n1_hoja2_web{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .n1_hoja2_audio {
        margin-block: 0dvw;
        margin-inline: 0dvw;
        padding-inline: 2dvw;
        padding-block-start: 2.5dvw ;
    } 
    .boton_audio {
        width: 10%;
    }

    /* nivel 1 pagina 3*/
    
    .n1_hoja3 ul div:first-child {
        max-width: 100%;
        margin: auto
    }

    .n1p3_grid{
        display: grid;
        grid-template-columns: 3fr 4fr;
        gap: 6em;
        margin-block-end: 4em;
    }

    .n1_hoja3 div ul{
        margin-block-end: auto;
    }
    .videos {
        padding-inline: 0em;
    }

    /*nivel 1 pagina 4*/
    .n1_hoja4 section {
        margin-inline: 5em;
        grid-template-columns: 50% 50%;
        gap: 2em;
        justify-content: space-between;
    }
    
    .encuesta_opcion {
        grid-template-columns: 1fr auto; 
        column-gap: 2.5em;       
    }

    .encuesta_opcion:nth-child(odd) {
        grid-template-columns: auto 1fr; 
    }
    .encuesta_opcion:nth-child(odd) picture {
        order: 1;
    }

    .encuesta_opcion picture{
        display: block;
        width: 100%;
    }

    .n1_hoja4 section a{
        align-self: center;
    }


    /*nivel 1 pagina 5 y 6*/
    .n1_hoja5 .hoja div, .n1_hoja6 .hoja div {
        display: grid;
        grid-template-columns: 4fr 3fr;
        place-content: center;
    }

    .n1_hoja5 .hoja  div:first-child{
        display: block;
    }

    .n1_hoja5 .hoja div:last-child{
        display: flex;               
        flex-direction: column;      
        align-items: center;         
        justify-content: center;     
        gap: 1rem;                   
        text-align: center;         
    }

    .globo{
        background-repeat: no-repeat;
        height: auto;
        padding-block-end: 2.5dvw;
    }

    .n1_hoja5 main img{
        width: 19vw;
    }

    .globo h1 {
        font-size: 2dvw;
    }

    /*como jugar*/
    .como_jugar section{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin-block-start: 4em;
    }
    .como_jugar article{
        display: grid;
        grid-template-rows: auto auto ;
        align-items: center;
        margin-inline: 0.5em;
    }
    .como_jugar_tablet{
        display: block;
    }

    .como_jugar h2{
        display: flex;
        justify-self: center;
    }
    
    /*perfil*/
    .perfil section{
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 72em;
    }

    .perfil main{
        grid-template-rows: auto 1fr 2fr;
        align-items: center;
    }

    .perfil main p{
        font-size: 1.1em;
        padding-inline: 7em;
    }

    .perfil_info_extra{
        max-width: 70em;
    }
    
    .nueva_cuenta {
        margin-block-start: 0em;
        display: grid;
        grid-template-rows: auto 1fr auto;
    }

    /*perfil 2*/
    .perfil_2 main, .perfil_3 main{
        grid-template-rows: auto 1fr;
    }
    .perfil_2 section{
        display: block;
        margin: auto;
    } 

    .perfil_2 fieldset ul {
        display: grid;
        grid-template-columns: auto auto;
        gap: 3em;
    }
    .botonCrearNuevaCuenta{
        margin-block-start: 3em;
    }
    
    /*perfil 3*/
    .grid_perfil_3{
        display: grid;
        grid-template-columns: 3fr 4fr;
        justify-self: center;
        width: 64em;
    }
   
    /*logros*/
    .logros section {
        width: 46em;
    }
    .logros .cada_bloque{
        display: grid;
        grid-template-columns: auto auto;
    }
    .logros .cada_linea {
        height: 9em;
    }
    .logros .cada_linea:last-of-type{
        border-block-end: #f7504a solid 2px;
    }

    /*ranking*/
    .grid_ranking_web{
        display: grid;
        grid-template-columns: 3fr 4fr;
        gap: 1em;
        align-items: center;
        padding-inline-start: 1em ; 
    }
    .ranking section {
        width: 76dvw;
    }
   
    /*mas juegos*/
    .mas_juegos section{
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 90%;
        justify-self: center;
        align-content: center;
    }

    .mas_juegos article{
        display: grid;
        grid-template-rows: 1fr auto;
    }
    .mas_juegos article h2{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 3em;
    }
    .mas_juegos article img{
        width: 65%;
    }

}

@media (min-width: 1577px){
    .n1_hoja2_audio {
        padding-block-start: 2.6dvw ;
    } 
    .n1_hoja4 section {
        max-width: 67em;
        margin: auto;
    }
    
}
