/*fuentes*/
@font-face {
    font-family: "nevis";
    src: url("fonts/nevis.eot");
    src: url("fonts/nevis.eot?#iefix") format("embedded-opentype"),
         url("fonts/nevis.woff") format("woff"),
         url("fonts/nevis.ttf") format("truetype"),
         url("fonts/nevis.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "fajala";
    src: url("fonts/FjallaOne-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "icons";
    src: url("fonts/websymbols-regular-webfont.svg#WebSymbolsRegular") format("svg"),
        url("fonts/websymbols-regular-webfont.eot");
        src: url("fonts/websymbols-regular-webfont.eot?#iefix") format("embedded-opentype"),
        url("fonts/websymbols-regular-webfont.woff") format("woff"),
        url("fonts/websymbols-regular-webfont.ttf") format("truetype");
        font-weight: normal;
        font-style: normal;
}


@font-face{
    font-family: "TrebuchetMS";
    src: url("fonts/TrebuchetMS.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "BebasNeue";
    src: url("fonts/BebasNeue.otf");
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "HIESELATsa";
    src: url("fonts/HIESELATsa.otf")
}

/*eslitos generales*/

/*GENERALES*/
*{
    margin: 0px;
    padding: 0px;
}

.contenedor-texto-principal {
    background-color: #e0e0e0; /* Color de fondo del contenedor */
    padding: 20px; /* Espacio interno del contenedor */
    border: 3px solid #ccc; /* Borde del contenedor */
}

.btn-volver {
    background-color: #ADD8E6; /* Color de fondo */
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0px 0px;
    cursor: pointer;
}

.wrap{
    width: 1250px;
    margin: 0px auto;
}

.gear, .iconpeque{
    font-family: "icons";
}
.clearfix{
    float: none;
    clear: both;
}
/*CABECERA*/

*{
    padding: 0px;
    margin: 0px;
}

body{
    background-image: url("../img/fondo002.jpg" );
    background-size: cover; /* Escala la imagen para cubrir toda la pantalla */
    background-repeat: no-repeat; /* Evita que se repita */
    background-attachment: fixed; /* Mantiene el fondo fijo al hacer scroll */
    background-position: center; /* Centra la imagen */
} 

body::-webkit-scrollbar{
width: 15px;
}

body::-webkit-scrollbar-thumb{
    background: rgb(47, 217, 240);
    border-radius: 2px;
}

/*BARRA DE NAVEGACION*/

#nav{
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 40px;
    background-color: rgb(68, 124, 245);
    color: white;
    font-family: "TrebuchetMS";
    font-size: 14px;
    box-shadow: 0px 0px 2px gray;    
}

#nav ul{
    list-style: none;
    text-decoration: none;
    margin: 0px auto;
    width: 1090px;
}

#nav > ul > li {
    line-height: 40px;
    float: left;
    border-right: 1px solid white;
    transition: all 300ms;    
}

#nav > ul > li a{
    display: block;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
    text-decoration: none;   
}


#nav p{
    float: right;
    color:white;
    padding: 10px;
    font-size: 15px;
    font-family: "TrebuchetMS" ;
}
#nav ul > li > a:first-child{
   border-left: 1px solid white; 
}

#nav > ul > li:hover{
    background-color: rgb(18, 25, 61);
    box-shadow: 0px 0px 4px rgb(8, 10, 46);
}

/*CSS DE TODO EL RESTO DE CUERPO*/

/*BANNER*/
#banner{
    width: 95%;
    height: 100px;
    border: 0px solid white;
    box-shadow: 0px 0px 2px gray;
    background: url("../img/fondo011.jpg");
    background-position: -200px -200px;
    margin: 20px auto;
    overflow: hidden;
    animation: backBanner 10s linear;
}

@keyframes backBanner{
    0%{
        background-position: 0px 0px;
    }
    100%{
        background-position: -200px -200px; 
    }
}

#banner h1{
    display: block;
    width: 95%;
    font-family: "nevis";
    color: rgb(10, 48, 71);
    font-size: 60px;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 2px 2px 1px rgb(15, 37, 66);
    margin: 27px auto;
    animation: showText 10s linear;
}


/*BARRA LATERAL*/

#lateral{ 
    position: fixed;
    left: 0px;
    top: 40%;
    display: block;
    width: 250px;
    min-height: 200px;
    font-family: "icons";
    float: left;
}

#social{
    height: 190px;
}

#social a{
display: block;
color: rgb(0, 0, 139);
text-decoration: none;
font-size: 30px;
margin-left: 20px;
margin-top: 10px;
margin-bottom: 20px;
}

#social .overlay{
display: block;
height: 20px;
font-family: "nevis";
color: rgb(17, 54, 75);
font-weight: bold;
letter-spacing: 1px;
text-shadow: 0px 0px 1px #ccc;
border: 3px solid #ccc;
box-shadow: 0px 0px 4px #ccc;
background: rgb(53, 188, 250);
position: absolute;
padding: 5px;
margin-left: 70px;
margin-top: -52px;
transform: translateX(-80%);
opacity: 0;
transition: all 400ms;
}

#social div:hover .overlay{
    opacity: 1;
    transform: translateX(0%);
}

/*INICIO TARJETAS*/
/*TARJETAS*/
.card{
    float: right;
    width: 250px;
    height: 200px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    box-shadow: 1px 1px 2px #dddddd;
    background: white;
    overflow: hidden;
    margin: 22px;
    margin-top: 40px;
    cursor: pointer;
    transition: all 300ms;
}

.card:hover{
    background: rgb(22, 32, 46);
}
.card:last-child{
    margin-right: 0px;
}

.card .iconpeque{
    display: block;
    width: 100%;
    height: 130px;
    font-size: 80px;
    line-height:110px;
    text-align: center;
    margin: 0px auto;
    color: rgb(64, 135, 228);
    transition: all 300ms;
    font-family: "HIESELATsa";
}

.card:hover .iconpeque{
    font-size: 90px;
    color: white;
    animation: showiconpeque 300ms linear;
}

@keyframes showiconpeque{
    from{
        transform: translateY(-200%);
    }
    to{
        transform: translateY(0%);
    }
}
.card .category{
    width: 100%;
    height: 30px;
    font-family: "TrebuchetMS";
    font-size: 14px;
    font-weight: bold;
    color: rgb(33, 49, 95);
    text-align: center;
    transition: all 300ms;
}

.card:hover .category{
    color: white;
    animation: showcategory 400ms linear;
}

@keyframes showcategory{
    from{
        transform: translateY(-300%);
        color: black;
    }
    to{
        transform: translateY(0%);
        color: white;
    }
}


.card .mas{
    width: 100%;
    height: 50px;
    font-family: "TrebuchetMS";
    font-size: 14px;
    font-weight: bold;
    color: rgb(33, 49, 95);
    text-align: center;
    transition: all 300ms;
}

.card:hover .mas{
    color: white;
    animation: showcategory 400ms linear;
}

@keyframes showmas{
    from{
        transform: translateY(-300%);
        color: black;
    }
    to{
        transform: translateY(0%);
        color: white;
    }
}

.card .description{
    font-family: "TrebuchetMS";
    text-align: center;
    color:  rgb(33, 49, 95);
    font-size: 15px;
    transition: all 400ms linear;
}

.card:hover .description{
    color: white;
    animation: showdescription;
}

@keyframes showdescription{
    from{
        transform: translateX(-300%);
        color: black;
    }
    to{
        transform: translateX(0%);
    }
}



/*CSS COMIENZO DE TODO EL CUERPO*/


/*ARTICULOS*/
#articles{
    width: 100%;
    float: right;
}

#articles h2{
    display: block;
    float: right;
    width: 90%;
    height: 75px;
    line-height: 75px;
    border-radius: 50px;
    text-align: center;
    font-family: "BebasNeue";
    font-size: 40px;
    font-weight: normal;
    letter-spacing: 2px;
    background: rgb(77, 167, 252);
    box-shadow: 0px 1px 0px #393d3f, 1px 2px 0px #393d3f, 2px 3px 4px #393d3f  ;
    margin: 0px auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

#articles article{
    float: right;
    width: 83%;
    height: auto;
    border: 1px solid #ccc;
    margin: 40px auto;
    padding: 40px;
    padding-bottom: 20px;
    font-family: "TrebuchetMS";
    color: black;
    box-shadow: 1px 1px 2px #ddd;
}

#articles article h4{
    display: block;
    font-size: 23px;
    margin:3px;
    color:  rgb(33, 49, 95);
}

#articles article h4 a{
    text-decoration: none;
    color: rgb(25, 123, 252);  
}

#articles article h4 a:hover{
text-decoration: underline;
cursor: pointer;
}

#articles article p{
    display: inline-block;
    display: block;
    width: 50%;
    float: left;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: "TrebuchetMS";
    text-align: justify;
    color:  rgb(33, 49, 95);
    font-size: 20px;
    line-height: 30px;
}

#articles article #servi01 a img{
        width: 75%;
        padding-left: 60px;
}
/*CSS FIN DE TODO EL CUERPO*/
/*FIN TARJETAS*/
#footer{
    width: 100%;
    position: fixed;
    bottom: 0; left: 0;
    text-align:center;
    margin: 0;
    background-color: rgb(56, 155, 236);
    padding: 10px 0; color: rgb(32, 59, 94);
    font-family: sans-serif;
    font-size: 14px;
    box-shadow: 0px 0px 2px gray;

}