*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: sans-serif;
    --base: #00338D;
    --bordo: #7A2582;
    --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 18px 5px 18px;
}

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 15px 5px 15px;
    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 50px 5px 50px;
}

.boton2{
    padding: 5px 30px 5px 30px;
}

.nav__logocent{
    width: 200px;
    height: 200px;
    bottom: 40px;
    right: 25px;
}

}





/*----------------MAIN----------------*/

.main{
 
    max-width: var(--ancho);
    width: 100%;
    position: relative;
    
}

.titulo-principal{
    color: var(--base);
}

.centrar{
display: flex;
justify-content: center;
align-items: center;
}

.centrar1{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    }

.imgcarrusel{
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.imgcarrusel::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.slide{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* imagen visible */
.slide.activo{
    opacity: 1;
}

.spnsomos{
    font-family: var(--tipoletra);
    font-size: 30px;
    font-weight:550;
    color: var(--base);
    padding-top: 30px;
    padding-left: 10px;
    padding-right: 10px;
}

.contcubos{
 display: flex;
 flex-direction: column;
 width: 100%;
 height: auto;
 justify-content: center;
 align-items: center;
 margin-top: 40px;
}

.cuboclubes{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: aliceblue;
    font-size: 25px;
    font-weight: bold;
    max-width: 320px;
    width: 100%;
    height: 250px;
    background-color:#00338D;
}

.cubosocios{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    color: aliceblue;
    max-width: 320px;
    width: 100%;
    height: 250px;
    background-color:var(--bordo)
}

.spnnum{
    color: #EBB700;
    font-size: 40px;
    font-weight: bold;
}


.cont__capacitate{
    display: flex;
    flex-direction: column;
    max-width: 320px;
    width: 100%;
    height: 400px;
    background-color:#00338D;
    border-radius: 10px;
    margin-top: 20px;
    padding: 10px;
}

.p--capacitate{
    color: aliceblue;
    font-size: 30px;
    font-family: roboto;
    font-weight: bold;
    animation: grow 5s both infinite;
}

.cont__imgcapacitate{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 400px;
    background-color: aliceblue;

}

.img--capacitacion{
width: 280px;
height: 200px;
animation: flotar 5s ease-in-out infinite;
border-radius: 5px;
}

.boton__capacitate{
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 35px;
    border: 2px solid aliceblue;
    border-radius: 1px;
    color: aliceblue;
    font-family: roboto;
    font-weight: bold;
    font-size: 15px;
}



.articulo__titulo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family:var(--tipoletra);
    color:aliceblue;
    font-size: 32px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    height: 160px;
    background-color: #00338D;
}

.articulo__linea__titulo{
    border: 2px solid #EBB700;
    width: 50px;
    

}

.articulo_novedades{
    margin-bottom: 50px;
    border: 1px solid var(--base);
    border-radius: 10px;
    padding: 8px;
}

.cont__imglogo{
   box-shadow: 1px 2px 2px 1px #000;
    position: absolute;
    max-width: 60px;
    max-height: 800px;
    right:40px;
    top: 2750px;
}

.img__logoson{
    width: 100%;
    height: 100%;
}

.articulo__linea{
    border: 2px solid #EBB700;
    margin-top: 30px;
    margin-bottom: 30px;   
}

h2{
    font-family: sans-serif;
    color: rgb(11, 62, 138);
}

.subtitulo--fecha{
    color: rgb(11, 62, 138);
}

p{
    font-size: 20px;
}


.articulo__contenedor--img{
    max-width: 600px;
}

.img--dialeones{
    max-width: 100%;
}


.seccion{
    padding: 15px;
    font-family: var(--tipoletra);    
}

.btnleermas{
background-color: var(--bordo);
color: aliceblue;
width: 100px;
height: 30px;
font-family: var(--tipoletra);
font-weight: bold;
border-radius: 10px;
cursor: pointer;
}

.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--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){

    .contcubos{
        flex-direction: row;
    }

    .articulo__titulo{
     font-size: 45px;
    }

    h2{
      font-size: 32px;
    }
    
    .noticias{
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
    }

    .articulo_novedades{
       border: none;
       max-width: 900px;
       height: 900px;
       margin-bottom: 0px;
       padding: 0px;
    }

    .articulo__contenedor--img{       
        max-width: 800px;
        height: 500px;
        display: flex;
        justify-self: center;
    }

    .img--dialeones{
        width: 100%;
        height: 100%;
    }

    .articulo__contenedor--video{
        flex-direction: row;
        max-width: 800px;
        height: 500px;
    }

    .articulo--video{
        width: 100%;
        height: 100%;
    }

    .comentario--video{
        font-size: 20px;
        padding-top: 22px;
    }

    .cont__imglogo{
        box-shadow: 1px 2px 2px 1px #000;
         position: absolute;
         max-width: 60px;
         max-height: 800px;
         right:40px;
         top: 1240px;
     }

     .btnleermas{
    
        width: 120px;
        height: 50px;
        font-size: 20px;
   
        }
}

@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
  }

  @keyframes grow {
    from{
    color: #00338D;
    }
    to{
    color: aliceblue;
    }
}

/*-----------------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; 
      }
  
  
  
  } 