* {
    box-sizing: border-box;
    margin:0;
    padding: 0;
    font-family: 'montserrat','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    --color-principal: #135;
    --color-secundario: #193;
    --color-terciario: #d59;
    --color-background: #fffd;
    transition:0.2s;
    scroll-behavior: smooth;
    text-wrap: pretty;
}

/* Header */

.header  {
    display: flex;
    flex-direction: row;        
    height: 15dvh;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top:0px;
    backdrop-filter: blur(10px);/*background: linear-gradient(#fff 50%, #fff9 75%, transparent);*/
    z-index: 10;
}

.header_logcont { 
    display: flex;
}

.header_logcont:hover { 
    filter: drop-shadow(0px 0px 10px #000);
}

.header_nav {
    display: flex;
    justify-content: center;
    padding-right: 10%;
}

.header_redes{
    width: 175px;
    display: flex;
    justify-content: end;
}

.header_logo { 
    max-height: 70px;
        height: 80%;
    }

.header_nav > label{
    display: none;
}

#abrir_menu{
    display: none;
}

.header_nav_opciones {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.header_nav_opciones > li    {
    list-style: none;
    text-align: center;
}

.header_nav_opciones > li > a {
    text-decoration: none;
    color: var(--color-principal);
    background-color: #fff5;
    padding:10px;
    border-radius: 10px;
}

.header_nav_opciones > li > a:hover {
    background-color: var(--color-secundario);
    opacity: 0.75;
}

.header_redes > a > img {
    height: 30px;
    margin: 10px;
}

.header_redes > a :hover{
    filter: drop-shadow(0px 0px 10px #000);
}

/* Presentación */

.presentacion{
    height: 85dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: url("/img/Power\ module.jpg");
    background-size: cover;
    background-position: bottom;
    width: 100%;
}

.presentacion > .tit_princ {
    display: flex;
    align-items: end;
    height: 50%;
    padding: 20px;
}

#space-nav1 {
height: 15dvh;
}

.presentacion > h2 {
    color:var(--color-principal);
    font-size: 2.5rem;
    padding: 20px;
    background-color: var(--color-background);
    border-radius: 50px;
    font-style: italic;
}

/*.presentacion > .img {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;   
    padding: 10px;
}*/

.tit_princ > h1{
    color:var(--color-secundario);
    font-size: 5rem;
    padding: 20px 50px;
    border-radius: 50px;
    background-color: var(--color-background);

}

.presentacion > div > img {
    height: 50px;
    filter: drop-shadow(0px 0px 10px #000);
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

/* Quienes somos? */

.description{
        height: 85dvh;
        background-image: url("/img/fondo6.png  ");
        background-size: cover;
        background-position: bottom;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        animation: aparecer both;
        animation-timeline: view();
        animation-range-start: cover 0%;
        animation-range-end: contain 100%;
    }

.description_quienes {
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: space-evenly
}

#space-nav2-aux {
    height: 85dvh;
    position: absolute;
    align-content: end;
    }

    #space-nav2 {
        height: 15dvh;
        }
    

#quienes_somos {
    color:var(--color-secundario);
    font-size: 2rem;
    padding: 10px;
    border-radius: 50px;
    background-color: var(--color-background);
    width: fit-content;
}

.description_quienes > p{
    color:var(--color-terciario);
    font-size: 1rem;
    padding: 20px 30px;
    background-color: var(--color-background);
    border-radius: 50px;
    font-style:italic;
    font-weight: bold;
    text-align: left;
}

.description_quienes > ul{
    color:var(--color-principal);
    font-size: 0.85rem;
    padding: 20px 30px;
    background-color: var(--color-background);
    border-radius: 50px;
    font-style:italic;
    font-weight: bold;
    text-align: left;
}

.tareas {
    padding: 20px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.tareas > div {
    height: 33%;
    width: 50%  ;
    display: flex;  
    justify-content: center;
    align-items: center;
    border: solid;
    flex-direction: column;
    background-size: cover;
    border-radius: 25px;
}

.tareas > div > h3 {
    padding: 10px;
    background-color: var(--color-background);
    border-radius: 10px;
    color: var(--color-secundario);
    text-align: center;
}

.medic {
    background-image: url(/img/Servicios.jpg);
    background-position: center;
}


.ing {
    background-image: url(/img/TabEpl.jpg);
    background-position: center;
}

.eject {
    background-image: url(/img/FAT.png);
}

.medic:hover, .ing:hover ,.eject:hover{
    opacity: 0.75;
}

/* Servicios */

.servicios {
    display: flex;
    flex-direction: column;
    height: 85dvh;
    align-items: center;
    justify-content: space-between;
    animation: aparecer both;
    animation-timeline: view();
    animation-range-start: cover 0%;
    animation-range-end: contain 100%;
    background-image: url(/img/Celdas.jpg);
    background-size: cover;
    background-position: center;
}

.contserv {
    display: grid;
    height: 80%;
    width: 100%;
    padding: 10px 65px;
    grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
    grid-template-rows: repeat(minmax(230px,1fr));
    grid-auto-flow: row;
    gap: 10px;
}

.tab_elec{
    background-image: url(/img/Tablero.png);
    background-size: cover;
    background-position: center;
}

.canal{
    background-image: url(/img/Canaliz.jpg);
    background-size: cover;
    background-position: center;
}

.selectividad{
    background-image: url(/img/Selectiviti.png);
    background-size: cover;
    background-position: center;
}

.arcflash{
    background-image: url(/img/analisis-arc-flash.jpg);
    background-size: cover;
    background-position: center;
}

.SPAT{
    background-image: url(/img/SPAT.png);
    background-size: cover;
    background-position: top;
}

.ilum{
    background-image: url(/img/il_ext.png);
    background-size: cover;
    background-position: bottom;
}

.solar{
    background-image: url(/img/solar.jpg);
    background-size: cover;
    background-position: center;
}

.SPCR{
    background-image: url(/img/SPCR.jpg);
    background-size: cover;
    background-position: center;
}

.digit{
    background-image: url(/img/Modeling.jpg);
    background-size: cover;
    background-position: center;
}

.simul{
    background-image: url(/img/Etap.png);
    background-size: cover;
    background-position: center;
}

.tab_elec:hover ,.canal:hover ,.selectividad:hover ,.arcflash:hover ,.SPAT:hover ,.ilum:hover ,.solar:hover ,.SPCR:hover ,.digit:hover ,.simul:hover{
    opacity: 0.85;
} 


#Servicios {
    margin-top: 10px;
    padding: 20px;
    background-color: var(--color-background);
    border-radius: 10px;
    color: var(--color-secundario);
    font-weight: bold   ;
    border-radius: 50px;
}

.contserv > div {
    border: solid;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px;
}

.contserv > div > a {
    padding: 10px;
    border: solid;
    border-radius: 50px;
    background-color: var(--color-background);
    text-wrap: wrap;
    text-align: center;
    text-decoration: none;
    color: var(--color-principal);
}

/* Footer */

footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(#ccc 60%, #000);
}

#Contacto{
    width: fit-content;
    padding: 20px;
    background-color: var(--color-background);
    margin-top: 10px;
    border-radius: 10px;
    color: var(--color-secundario);
    font-weight: bold   ;
    border-radius: 50px;
}

.cont_info{
    display: flex;
    width: 100%;
    justify-content: space-between;
    color: var(--color-principal); 
    margin-bottom: 10px;
}

.cont_info > form{
    display: flex;
    width: 66%;
    justify-content: space-evenly;
    color: var(--color-principal); 
}

.info{
    flex-grow: 1;
    margin: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
}

.msj{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
    margin: 10px;
    align-items: center;
    justify-content: space-between  ;
}

.msj>textarea{
    height: 100px;
    width: 100%;
    resize: none;
    margin: 5px;
    font-family: 'montserrat','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: var(--color-terciario); 
    border-radius: 5px;
}

.msj>label{
    width: 100%;
}

.msj>input{
    margin: 10px;
    color: var(--color-terciario);    
}

.ubicacion{
    flex-grow: 1;
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.ubicacion >div{
    display: flex;
    align-items: center;
    background-color: var(--color-background);
    padding: 5px;
    border-radius: 5px;
}

.ubicacion >div>img{
    height: 25px;
}

.info>input{
    height: 30px;
    margin: 5px;
    border-radius: 5px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.butt_env{
    width: 25%;
    height: 30px;
    border-radius: 10px;
    background-color: #ccc;
}

.copy{
    margin-bottom: 10px;
    font-size: 10px;
    background-color: var(--color-background);
    padding: 5px;
    border-radius: 10px;
}
.copy > a{
text-decoration: none;
}

.copy > a> p{
text-decoration: none;
color: var(--color-terciario);
}

iframe{
    height: 150px;
    width: 70%;
}


/* Celular */

@media screen and (max-width:1000px){
    .header{
        justify-content: space-between;
        height: 10dvh;
    }
    
    .header_logcont{
        padding-left: 10px;
        justify-content: center;
        width: 100%;
    }
    .header_logo {
        height: 80%;
    }
    .header_nav {
        width: 10%;
        order: -1;
    }
    .header_nav_opciones {
        display: none;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 10dvh;
        left: 0dvw;
        padding: 10dvh;
        z-index: 10;
        border: solid;
        background-color: var(--color-background);
        border-radius: 10px;
    }
    .header_nav_opciones > li {
        padding: 10px;
        margin: 10px;
        border-radius: 10px;
        width: 100%;
        font-size: 2rem;
    }
    .header_nav_opciones > li > a{
        background-color: var(--color-background);
        border: solid;
    }
    .header_nav > label{
        display:block;
        height: 200px;
        display: flex;
        align-items: center;
    }
    .header_nav > label:hover{
        filter: drop-shadow(0px 0px 10px #000);
    }
    .header_redes{
        width: auto;
    }
    .header_redes > a > img {
        margin: 2px;
    }
    #abrir_menu:checked ~ .header_nav_opciones {
        display: block;
        animation-name: crece;
        animation-duration: 0.3s;
        animation-fill-mode: both;
        animation-direction: alternate;
    }
    .tit_princ > h1{
        font-size: 6rem;
    }
    .presentacion > h2 {
        font-size: 3rem;
    }
    .presentacion > div > img {
        height: 35px;
    }
    .description{
        height: 100%;
        animation-range-end: contain 60%
    }
    .description_quienes{
        width: 100%;
    }
    #quienes_somos {
        font-size: 4rem;
    }
    .description_quienes > p{
        font-size: 2rem;
    }
    .description_quienes > ul{
        font-size: 2rem;
    }
    .tareas{
        flex-direction: row;
        width: 100%;
        height: fit-content
    }
    .tareas>div{
        height: 33dvw;
    }
    .servicios {
        height: 100%;
        animation-range-end: contain 30%;
    }
    .info>input{
    width: 70%;
    }
    .cont_info{
        flex-direction: column;
        align-items: center;
    }
    .info{
        width: 100%;
        align-items: center;
    }
    .msj{
        width: 100%;
        align-items: center;
    }
    .ubicacion{
        width: 100%;
    }
    .cont_info > form{
        flex-direction: column;
    }
}

/* Animaciones */

@keyframes crece {
    from{
        font-size: 0;
        width: 20%;
    }
    to{
        font-size: 100%;
        width: 100%;
    }
}

@keyframes aparecer {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}