/* esto es para meter las fonts de modo calculadora */
@font-face {
    font-family: 'digital-7';
    src: url('recursos/font/digital-7-webfont.woff2') format('woff2'),
         url('recursos/font/digital-7-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body{
    background-repeat: no-repeat;
    background-size: cover;
    font-family: "Roboto Mono", serif;
    
}

.no-scroll {
    overflow: hidden;
}

/* header-navbar */
header{
    background-image: url("recursos/fondoblanco.jpg");
   background-repeat: no-repeat;
   background-size: cover;
}

.navbar-brand i{
    margin-top: 1px;
    font-size: 1.8rem;
    color: white;
}

.nav-link{
    text-shadow: 0px 2px 2px rgb(5, 5, 5);
    font-size: 20px;
    
  
    color: rgb(255, 255, 255);
}

.link-redes{
    width: 60px;
    height: 60px;
    margin: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.cables-der-s1{
    width: 100%;
    margin-bottom: -34px;

}

.link-redes:hover i{
    color: black;
}

.navbar{
    
    padding: 1rem 1rem 0rem 1rem;
    width: 100%;
  
 
}

.navbar-collapse{
    align-items: center;
    /* justifica los elementos a ambos lados, alejados entre sí */
    justify-content: space-between;
}

.link-redes:hover{
    background-color: white;
    border: 2px solid rgb(12, 110, 253);
}

#idiomadiv{
    display: grid;

    grid-template-areas: 
    "idiomas"
    "idiomas";
}

.imagen-idioma{
    width: 20px;
    margin-bottom: 3px;
    margin-left: 2px;
}

.idiomas{
    border-radius: 20px;
    border: 1px solid white;
    font-family: "Roboto Mono", serif;
    color: white;
    margin: 2px;
    background-color: transparent;
    transition: all 0.2s ease-in;
   
}

.idiomas:hover{
    color: black;
    background-color: white;
    border: 1px solid rgb(12, 110, 253);
}

/* section-1 es donde pondremos el vídeo y demás */

.section-1{
    background-image: url("recursos/fondogris.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.section-1-imagen-video{
    margin: 0px auto;
    text-align: center;
 
}


#reproducir-video{
    width: 1000px;
     border-top: 2px solid black;
     border-bottom: 2px solid black;
    margin: 30px auto;
  position: relative;
    z-index: 0;
    border-radius: 10px;
}

#reproducir-video2 {
    position: fixed; /* Fija el video en la pantalla */
    top: 50%; /* Centrado vertical */
    left: 50%; /* Centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste para centrar completamente */
    width: 80%; /* Ajuste responsivo del ancho */
    max-width: 1179px; /* Ancho máximo para pantallas grandes */
    height: auto; /* Mantener la proporción del video */
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    margin: 0; /* Elimina márgenes */
    z-index: 1000; /* Asegúrate de que el video esté sobre otros elementos */
    border-radius: 10px;
    background-color: #000; /* Opcional: fondo negro para mejorar la apariencia */
}


/* Overlay que hace el fondo oclusivo */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
    z-index: 1000; /* Aparece encima de otros elementos */
    display: none; /* Oculto por defecto */
}

/* Clase para mostrar el overlay */
#overlay.active {
    display: block;
}

/* Estilo del video */

.close-button {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    background-color: transparent;
    color: #ffffff;
    border-radius: 20px;
    border: none;
    
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, color 0.3s ease;
}



.close-button:hover {
    
    color: #8d8d8dc1;
}


#logo-video{
    width: 700px;
    z-index: 1;
    position: relative;
    display: block;
    margin-top: -31rem;
    margin-bottom: 12rem;
    margin-left: auto;
    margin-right: auto;
}

#botonera-section-1{
    margin-bottom: -131px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#botonera-section-1 button{
    margin: 20px;
    margin-top: 0px;
    text-shadow: 0px 2px 2px rgb(5, 5, 5);
    font-size: 20px;
    z-index: 2;
    position:relative;
    
    color: rgb(255, 255, 255);
}

.caja{
    margin-left: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

#caja-botones{ 
    width: 298PX;
    text-align: center;
    margin: auto;
  
    border-bottom: 2px solid black;
    border-left: 1px solid black;
}




.tamaño{
    width: 130px;
    margin: 3px;
    

}

.botonesjuego1{
    background-image: url(recursos/botones-largos.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 130px;
    margin: 0px auto;
    text-transform: uppercase;
    z-index: 1;
    background-position: center;
    padding: 20px 10px 20px 10px;
    color: rgba(255, 255, 255, 0.762);
}




.botonesjuego1:hover{
    transform: scale(0.9);
}

@media screen and (max-width: 1000px){
    #reproducir-video{
        width: 700px;
    }

    #logo-video{
        width: 556px;
        margin-top: -22rem;
        margin-bottom: 7rem;
        
    }

  
}





@media screen and (max-width: 700px){
    #reproducir-video{
        width: 300px;
    }

    #logo-video{
        width: 256px;
        margin-top: -12rem;
        margin-bottom: 3rem;
    }

    .caja{
        margin-left: -5px;
        display: none;
    }

    #botonera-section-1{

        margin-right: 28px;
        margin-bottom: -26px;
    }
    
    .botonesjuego1{
        
        width: 118px;
        
    }

   
}

.cables-izq-s2{
    width: 100%;
    margin-bottom: -34px;
}


/* section-2 es toda la parte del ordenador y la descripción del juego */

.section-2{
    margin: 0px auto;
    padding: 10px;
    width: 100%;
    text-align: center;
    background-image: url("recursos/fondoblanco.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;

    grid-template-areas:
    "sobre-juego-1 sobre-juego-2 sobre-juego-3";
}

#sobre-juego-1{
    margin: 40px auto;
    text-align: center;
   
    margin-top: 100px;
    position: relative;
  
    width: 100px;
    display: grid;

    grid-template-areas:
    "imagen-sobre-1"
    "imagen-sobre-2";
}

#sobre-juego-3{
    position: relative;
    margin: 40px auto;
   
    margin-top: 100px;
    width: 100px;
    display: grid;

    grid-template-areas:
    "imagen-sobre-3"
    "imagen-sobre-4";
}

#imagen-sobre-1{
    transform: rotate(-45deg);
    transition: 0.2s ease-in;
}

#imagen-sobre-1:hover{
    transform: rotate(0deg) scale(1.35);
}

#imagen-sobre-2{
    transform: rotate(45deg);
    transition: 0.2s ease-in;
}

#imagen-sobre-2:hover{
    transform: rotate(0deg) scale(1.25);
}

#imagen-sobre-3{
    transform: rotate(45deg);
    transition: 0.2s ease-in;
}

#imagen-sobre-3:hover{
    transform: rotate(-30deg) scale(1.35);
}

#imagen-sobre-4{
    transform: rotate(-45deg);
    transition: 0.2s ease-in;
}

#imagen-sobre-4:hover{
    transform: rotate(10deg) scale(1.35);
}

#sobre-juego-2{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
    width: 650px;

   
}

#sobre-juego-2 p{
    padding: 0px;
    margin: -11px;
}
 
.texto-ordenador{
    position: absolute;
    text-align: center;
    font-family: 'digital-7';
    width: 454px;
    margin: 0px auto;
    top: 49%;
    left: 50%;
    margin-bottom: 40px;
    transform: translate(-50%, -50%);
    white-space: pre-line;
    font-size: 22px;
    color: white;
    justify-content: center;
}

.cables-der-s3{
    width: 100%;
    margin-top: -27px;
}

.imagenes-peques-info-juego{
    width: 150px;
   
    text-align: center;
}

.imagen-central-info-juego{
    width: 700px;
    margin: 20px auto;
    text-align: center;
    opacity: 90%;
    border-radius: 20px;
    
}

.botonesjuego{
    background-image: url(recursos/botones-largos.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 130px;
    margin: 0px auto;
    font-size: 13px;
    height: 79px;
    text-transform: uppercase;
    z-index: 1;
    background-position: center;
    padding: 20px 10px 20px 10px;
    color: rgba(255, 255, 255, 0.762);
}




.botonesjuego:hover{
    transform: scale(0.9);
}



@media screen and (max-width: 1300px){
    .imagenes-peques-info-juego{
        width: 120px;
    }

    .imagen-central-info-juego{
        width: 600px;
    }

    .texto-ordenador{
      
        font-size: 19px;
        width: 411px;

        
    }

    #sobre-juego-2{
      
        width: 620px;
    
       
    }

}

@media screen and (max-width: 1100px){
    .imagenes-peques-info-juego{
        width: 100px;
    }

    .imagen-central-info-juego{
        width: 500px;
    }

    .texto-ordenador{
      
        font-size: 16px;
        width: 311px;

        
    }

    #sobre-juego-2{
      
        width: 620px;
    
       
    }

}

@media screen and (max-width: 1010px){
    
    .imagenes-peques-info-juego{
        display: none;
    }

    #sobre-juego-1{
        display: none;
        margin: 0px auto;

    }

    #sobre-juego-3{
        display: none;
        margin: 0px auto;

    }

   

    .section-2{
      
        display: block
    }
}

@media screen and (max-width: 700px){
    
    .imagenes-peques-info-juego{
        display: none;
    }

    #sobre-juego-1{
        display: none;
        margin: 0px auto;

    }

    #sobre-juego-3{
        display: none;
        margin: 0px auto;

    }

    .imagen-central-info-juego{
        width: 300px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .texto-ordenador{
      
        font-size: 10px;
        width: 176px;

        
    }

    #sobre-juego-2{
      
        width: 300px;
    
       
    }

    .section-2{
      
        display: block
    }
}

/* section-3 para acceder a los manuales y a la descarga */

.section-3{
    background-image: url("recursos/fondogris.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.section-3-items{
    margin: 0px auto;
    text-align: center;
    width: 1000px;
  
    display: grid;

    grid-template-areas: 
    "botones-manual imagenes-manual";
}

.imagen-manual{
    width: 500px;
}

#botones-manual{
    margin: 20px auto;
    text-align: center;
    display: grid;
   

    grid-template-areas: 
    "boton-manual-1"
    "boton-manual-2";

}

#botones-manual a{
    color: black;
    text-decoration: none;

}

#imagenes-manual{
    margin: 0px auto;
    text-align: center;
    display: grid;

    grid-template-areas: 
    "imagen-manual-1"
    "imagen-manual-2";
}

.imagen-manual{
    margin: 20px;
    border-radius: 20px;
    border: 1px solid black;
    /* border-top: none; */
    border-left: none;
    border-right: none;
}



.botonesjuego-manual{
    background-image: url(recursos/botones-largos.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 100px;
    height: 100px;
    width: 173px;
    margin: 95px;
    font-size: 15px;
text-align: center;
text-transform: uppercase;
    z-index: 1;
    background-position: center;
    padding: 20px 10px 20px 10px;
    color: rgba(255, 255, 255, 0.762);
    
}

.botonesjuego-manual:hover{
    
    transform: scale(0.9);
    
}

@media screen and (max-width: 1000px){
    .botonesjuego-manual{
  
       
        width: 170px;
        margin: 44px;
   
        
    }

    .section-3-items{
        width: 780px;
    }

    
    
}

@media screen and (max-width: 800px){
    
    .section-3-items{
          display: block;
    
       
    }

    .section-3-items{
        width: 500px;
    }

    #botones-manual{
        margin: 0px auto;
        text-align: center;
        display: grid;
        
        grid-template-areas: 
        "boton-manual-1 boton-manual-2"
        ;
    
    }

    #imagenes-manual{
        display: none;
    }
    
    .imagen-manual{
       display: none;
    }
}

@media screen and (max-width: 500px){
    
    .botonesjuego-manual{
  
        font-size: 15px;
        width: 145px;
        margin: 7px;
        height: 83px;
        padding: 10px 10px 15px 10px;

        
    }

  .section-3-items{
      width: 300px;
  }
  
 
}

.cables-izq-s4{
    width: 100%;
    margin-bottom: -27px;
}

.cables-der-s5{
    width: 100%;
    margin-top: -37px;
}


/* sección de los testimonios */
.testimonios{
    /* el padding, el margin y demás se ordenan por el orden de las agujas del reloj, es decir arriba, derecha abajo izquierda  */
    padding: 40px  20px 20px 20px;

}

.section-4{
    margin: 0px auto;
    text-align: center;
    background-image: url("recursos/fondoblanco.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonios .carousel{
    max-width: 800px;
    margin: 0px auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.carousel-item{
    height: 500px;
}

.carousel-item .container{
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.testimonio-imagen{
    width: 150px;
    height: 150px;
    margin: 10px 10px 20px 10px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.testimonio-texto{
    max-width: 70%;
    font-size: 20px;
    text-align: center;

}

.carousel-inner{
    height: 350px;
}

.testimonio-info{
    text-align: center;
    font-weight: bold;

    
}





.testimonio-info p{
    margin-bottom: 0;
   
}

.testimonio-info .cliente{
    font-size: 1.2rem;
}

.testimonio-info .cargo{
    font-size: 0.9rem;
    color: #656060;

}

@media screen and (max-width: 800px){
    .testimonio-imagen{
        height: 120px;
        width: 120px;
    }

    .testimonio-texto{
        font-size: 18px;
    }
}

/* FOOTER */

.contacto .container{
    max-width: 1100px;
    min-height: 200px;
    padding: 20px;
}

footer {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    background-image: url("recursos/fondogris.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

#footer-div {
    margin: 0 auto;
    width: 100%;
}


#footer-1 {
    text-align: left;
}

#footer-1 a {
    text-decoration: none;
}

.texto-footer {
    display: inline-block; 
    border: 1px solid white;
    border-radius: 20px;
    padding: 5px 5px; 
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease-in;
    box-sizing: border-box; 
}

.texto-footer:hover {
    border: 1px solid rgb(18, 104, 175);
    color: black;
    background-color: white;
}


#footer-2 {
    text-align: center;
    margin: 0 auto;
}

.logo {
    max-width: 300px;
    width: 100%; 
    margin: 20px auto;
}


#footer-3 {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px; 
}

#footer-3 i {
    font-size: 1.8rem;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

#footer-3 a {
    text-decoration: none;
    color: white;
}

#footer-3 i:hover {
    color: black;
    border: 2px solid rgb(20, 74, 160);
    background-color: white;
}


@media screen and (max-width: 768px) {
    
    #footer-1 {
        text-align: center;
        margin-bottom: 15px;
    }

    #footer-2 {
        margin-bottom: 15px;
    }

    #footer-3 {
        text-align: center;
        justify-content: center;
    }

    .logo {
        max-width: 200px;
    }

    #footer-3 i {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .texto-footer {
        width: 100px;
    }
}

@media screen and (max-width: 576px) {
    
    #footer-1 {
        text-align: center;
    }

    
        .texto-footer {
            display: block;
            width: 100%; 
            max-width: none; 
            margin-bottom: 10px;
        }
    

    #footer-3 i {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}





.derechos-de-autor{
    font-size: 12px;
    color: #464545;
    background-image: url("recursos/fondoblanco.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    margin: 0px auto;
}

/* volver arriba */

#back-to-top {

    
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: rgb(158, 15, 15);
        background-image: url(recursos/flecha-hacia-arriba.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-size: 127%;
        background-position: center;
        padding: 31px;
        
        border: none;
        border-radius: 50%;
        font-size: 20px;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        display: none; /* Oculto inicialmente */
        z-index: 1000;
        transition: background-color 0.3s ease-in-out;
    }


@media screen and (max-width: 900px) {
    
    #back-to-top{
        padding: 0px;
    }
}

#back-to-top:hover {
    background-color: rgb(174, 35, 35);

}