*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: sans-serif;
    --base: #00338D;
    --letras: aliceblue;
    --tipoletra: Calibri;
    --ancho: 100%;
}


/*--------------HEADER-----------------*/



.header{
    max-width: 600px;
    height: 250px;
    display: flex;
    position: relative;
}

.header__fondocolor{
    
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 141, 0.7);
    position:absolute;
    z-index: 1;

}

.nav{
    display: flex;
    flex-direction: row;
   max-width: 600px;
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    background-image: url(../Imagenes/LeonesServicio.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img--inter{
    max-width: 100px;
}

.nav--texto{
    font-family: helvetica;
    font-size: 30px;
    font-weight: bolder;
    margin-bottom: 0;
}

.nav--texto2{
    margin-top: 0;
    font-family: Roboto;
    font-size: 10px;
    font-weight:lighter;
}


.nav__cont--imgtexto{
    
    max-width: 300px;
    max-height: 235px;
    color: var(--letras);
    margin: 3px 4px;
    padding-top: 10px;
    z-index: 10;
}

.nav__cont--botones{
    display: flex;
    position: relative;
    justify-items: space-between;
    align-items: end;
    max-width: 300px;
    max-height: 235px;
    margin: 2px 2px;
    z-index: 10;
}

.boton1{
    border: 1px solid #00338D;
    border-radius: 20px;
    background-color: aliceblue;
    padding: 5px 17px 5px 17px;
}

a{
    text-decoration:none;
    font-family: helvetica;
    font-size: 13px;
    font-weight: bold;
    color: #00338D;
}

.boton2{
    border: 1px solid #00338D;
    border-radius: 20px;
    background-color: aliceblue;
    padding: 5px 10px 5px 10px;
    background-color: #EBB700;
}

.boton1:hover{
    opacity: 0.8;
}

.boton2:hover{
    opacity: 0.8;
}

.nav__logocent{
    position: absolute;
    bottom: 128px;
    right: 1px;
    justify-items: center;
    width: 100px;
    height: 100px;
    background-image: url(../Imagenes/LeonesCentenario_transparente2.png);
    background-position: center;
    background-size: cover;
    z-index: -1;
    border-radius: 70px;
}


@media (min-width:600px) {
.header{
    max-width: 100%;
}

.nav{
    max-width: 100%;
    justify-content: space-around;
}



.nav__cont--imgtexto{
    display: flex;
    align-items: center;
    max-width: 1000px;
    flex-direction: row;
   
    
}

.img--inter{
  
    max-width: 280px;
    height: 230px;
}


.nav--texto{
   
    font-size: 40px;
    top: 50px;
    height: 100px;
    padding-left:40px;
    
}

.nav--texto2{
   
    font-size: 30px;
    top: 50px;
    height: 100px;
    padding-left:40px;
    
}

.nav__cont--botones{
    display: flex;
    justify-content:right ;
    gap: 10px;
    max-width: 500px;
    width: 500px;
    margin-top: 5px;   
}

a{
    font-size: 18px;
}

.boton1{
    padding: 5px 35px 5px 35px;
}

.boton2{
    padding: 5px 30px 5px 30px;
}

.nav__logocent{
    width: 200px;
    height: 200px;
    bottom: 40px;
    right: 20px;

}

}




/*----------------MAIN----------------*/

.main{
 position: relative;
    max-width: var(--ancho);
    width: 100%;
    border: 2px solid #000;
    position: relative;
    
}



.articulo__titulo{
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgb(11, 62, 138);
    font-size: 32px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;

}

.articulo__linea{
    border: 2px solid #EBB700;
    margin-top: 30px;
    margin-bottom: 30px;   

}

h2{
    color: rgb(11, 62, 138);
   
   
}

p{
    font-size: 20px;
}

.campa{
    background-color: #7A2582;
    border-radius: 10px;
    padding: 20px;
    color: white;
    font-family: roboto;
    box-shadow: 3px 3px 10px 5px #000;
}

.articulo__contenedor--img{
    max-width: 600px;
}

.img--dialeones{
    max-width: 100%;
}

.articulo__contenedor--imgcausas{
    max-width: 600px;
}

.img--causas{
    max-width: 100%;
}


.articulo{
    padding: 15px;
    font-family: var(--tipoletra);
    
}

.articulo__contenedor--video{
    max-width: 600px;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    position: relative;
    align-items: start;
}

.articulo__contenedor--videonosotros{
    max-width: 600px;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    position: relative;
    align-items: start;
}

.nosotros--video{
    max-width: 400px;
    max-height: 500px;
}

.span--servir{
    font-size: 15px;
    font-weight: bold;
}

.articulo--video{
    width: 100%;
    max-width: 100%;
}

.comentario--video{
    margin-right: 40px;
    max-width: 100%;
    color: rgb(11, 62, 138);
    font-size: 12px;
}


@media(min-width:600px){

    .articulo__titulo{
     font-size: 45px;
    }

    h2{
      font-size: 32px;
    }

    .articulo__contenedor--img{       
        max-width: 800px;
        height: 600px;
        display: flex;
        justify-self: center;
    }

    .img--dialeones{
        width: 100%;
        height: 100%;
    }

    .articulo__contenedor--imgcausas{
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .articulo__contenedor--video{
        flex-direction: row;
        max-width: 800px;
        height: 500px;
        
    }

    .articulo--video{
        width: 100%;
        height: 100%;
    }

    .articulo__contenedor--videonosotros{
        max-width: 1200px;
        max-height: auto;
        aspect-ratio: 16/9;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        margin-top: 10px;
        position: relative;
        align-items: start;
        justify-content: center;
    }

    .nosotros--video{
        max-width: 100%;
        max-height: 100%;
    }

    .span--servir{
        font-size: 30px;
        font-weight: bold;
    }

    .comentario--video{
        font-size: 20px;
        padding-top: 22px;
    }
}



/*-----------------FOOTER--------------------*/



.ftr{
    width: 100%;
    max-width: 650px;
    height: 380px;
    max-height: 380px;
    background-color: var(--base);
    border: 2px solid #000 ;
    color: azure;
    font-family: var(--tipoletra);
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    font-size: 15px;
}

.cont__1{
  width: 100%;
    max-width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 10px;
}

.cont__1 a{
  text-decoration: none;
  color: white;
  white-space: nowrap;
}

.ftr_tu{
  font-family: var(--tipoletra);
  font-size: 20px;
  font-weight: bold;
  color: #EBB700;
}

.ftr_aviso{
  color: white;
  font-size: 17px;
}

.ftr_separador{
  background-color: white;
  width: 100%;
  max-width: 150px;
  height: 2px; 
}

.cont_insta{
  width: 100px;
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.imginsta{
width: 20px;
height: 20px;
border-radius: 5px;
}


@media (min-width:650px){

    .ftr{
      width: 100%;
        max-width: 100%;
        flex-direction: row;
        gap: 60px;
    }

    .ftr_separador{
      background-color: white;
      width: 100%;
      max-width: 2px;
      height: 150px; 
    }



} 





/*----CONTACT SECTION---*/

.form{
    min-height: 50vh;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    container-name: form;
    container-type: inline-size;
    
   }

   .form__form{
    flex: 1;
    padding: 12px;
    max-width: 600px;
    width: 100%;
    display: grid;
    
   }


   .form__input-container :is(input,textarea){
     width: 100%;
     padding: 9px 6px;
     font-size: 16px;
     margin: 4px;
     border: none;
     box-shadow: 2px 2px 4px #0003;
   }

   .form__input-container textarea{
    resize: none;
    min-height: 120px;
    font-family: inherit;
   }

   .form__input-container input{
    padding: 12px;
    background-color: #18233f;
    color: #fff;
   }

   label{
    font-family: Roboto;
    font-weight: bold;
   }

   .cont__instagram{
    max-width: 100%;
    height: 320px;
    max-height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   
   }

   .img_instagram{

    width: 200px;
    height: 210px;
   }

   .img_instagram:hover{
    opacity: 0.7;
   }

   .txt_seguinos{
    text-align: center;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgb(11, 62, 138);
    font-size: 25px;
    font-weight: bold;
   }


   /*----CONTACT QUERIES----*/

   @container form (min-width: 56.25rem){
.form__form{
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "name lastname"
    "email email"
    "message message"
    "button button";
    gap: 12px;

}


.form__input-container:first-child{
    grid-area: name;
}
.form__input-container:nth-child(2){
    grid-area: lastname;
}
.form__input-container:nth-child(3){
    grid-area: email;
}
.form__input-container:nth-child(4){
    grid-area: message;
}
.form__input-container:nth-child(5){
    grid-area: button;
}

   }


   /*--------------NOSOTROS-----------------*/

.mainnosotros{
    max-width: 600px;
    
}

.mainnosotros__texto{
    max-width: 400px;
    padding: 15px;
   
}


   .contenedor__sobrenos {
    display: flex;
    position: relative;
    max-width: 250px; /* o lo que prefieras */
    height: 210px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 40px;
  }
  
  .contenedor__sobrenos img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: alternar 6s infinite;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  /* Mostrar solo una imagen a la vez */
  .contenedor__sobrenos img:nth-child(1) {
    animation-delay: 0s;
  }
  
  .contenedor__sobrenos img:nth-child(2) {
    animation-delay: 3s;
  }
  
  @keyframes alternar {
    0%   { opacity: 1; }
    45%  { opacity: 1; }
    55%  { opacity: 0; }
    100% { opacity: 0; }
  }


  .contenedor__fondo{
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 330px;
    background-image: url(Fondo.png);
    background-size:cover;
    box-shadow: 20px #000;
    padding: 5px;
    
  }

  .mainnosotros__h1{
    color: #fff;
    font-size: 25px;
  }

  .mainnosotros__texto2{

    font-size: 18px;
    color: #fff;
  }