@font-face {
    font-family: 'OpenSans';
    src: url('fuentes/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('fuentes/OpenSans-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('fuentes/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

* {
    --blanco: #fff;
    --negro: #101523;
    --azul: #3a4aa1;
    --azul-fondo:#27316b;
    --gris-fondo: #9da4b5;
    --amarillo: #F7CE07;
    --azul-claro: #1d67cd;
    --naranja: #f58d2d;
    margin: 0;
    padding: 0;
    font-family: "OpenSans", serif;
    /*css para whatsapp chat*/
    --verde: #0ec12f;
    --blanco: #fff;
    --negro:#111;
}

::selection {
    background: var(--azul-claro);
    color: var(--blanco);
}

:root{
    background: var(--blanco) !important;
}

html{
    background: var(--blanco);
    font-size: 16px;
}

/*css para whatsapp chat*/

#whatsapp{
    display: flex;
    position: fixed;
    z-index: 1000;
    bottom: 35px;
    right: 20px;
    flex-direction: column-reverse;
    align-items: flex-end;
}

#whatsapp > aside{
    padding: 10px 25px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--verde);
    cursor: pointer;
    transition: all .2s ease;
    z-index: 1300;
}

#whatsapp > aside:hover{
    background: rgba(14, 193, 47, .75);
    transform: scale(1.005);
}

#whatsapp > aside > span{
    color: var(--blanco);
    font-size: 1em;
    font-weight: 700;
}

#whatsapp > aside > img{
    margin-right: 10px;
}

#whatsapp > div{
    opacity: 0;
    height: 0;
    transform: translateY(20px);    
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 360px;
    transition: all 0.5s ease;
    position: relative;
    border-radius: 15px;
    background: var(--blanco);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 30px 0px;
    z-index: 1200;
}

#whatsapp > div > div{
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

#whatsapp > div > #titulo-modal{
    align-items: center;
    justify-content: flex-start;
    padding: 20px 25px;
}

#whatsapp > div > #titulo-modal > img{
    margin-right: 10px;
    position: relative;
}

#whatsapp > div > #titulo-modal > img:before{
    content: "";
    width: 2px;
    height: 2px;
    border: 1px solid var(--blanco);
    border-radius: 100%;
    background: var(--verde);
    position: absolute;
    bottom: 0;
    right: 0;
}

#whatsapp > div > #titulo-modal > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#whatsapp > div > #titulo-modal > div > p{
    color: var(--negro);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2em;
}

#whatsapp > div > #titulo-modal > div > span{
    font-weight: 500;
    color: var(--negro);
    font-size: .9em;
}

#whatsapp > div > #mensaje-modal{
    padding: 20px;
    background-image: url("/imagenes/fondo-whatsapp.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-direction: column;
    align-items: flex-start;
}

#whatsapp > div > #mensaje-modal > span{
    width: 100%;
    text-align: center;
    color: var(--negro);
    font-size: .65em;
    margin-bottom: 15px;
    opacity: .3;
    font-weight: 500;
}

#whatsapp > div > #mensaje-modal > div{
    width: 80%;
    background: var(--blanco);
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 5px 10px;
}

#whatsapp > div > #mensaje-modal > div:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8.66px solid var(--blanco); /* Color del triángulo */
    transform: rotate(57deg);
    top: 0;
    left: -5px;
    position: absolute;
}

#whatsapp > div > #mensaje-modal > div > span{
    font-weight: 700;
    color: var(--negro);
    font-size: 1em;
    text-align: left;
    margin-bottom: 15px;
}

#whatsapp > div > #mensaje-modal > div > p{
    font-weight: 500;
    color: var(--negro);
    font-size: .9em;
    text-align: left;
}

#whatsapp > div > #respuesta-modal{
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    min-height: 28px;
    max-height: 64px;
    position: relative;
}

#whatsapp > div > #respuesta-modal > textarea::-webkit-scrollbar {
  width: 5px; 
}

#whatsapp > div > #respuesta-modal > textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

#whatsapp > div > #respuesta-modal > textarea::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

#whatsapp > div > #respuesta-modal > textarea::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

#whatsapp > div > #respuesta-modal > textarea{
    outline: none;
    appearance: none;
    font-size: 1em;
    font-weight: 500;
    color: var(--negro);
    margin-left: 5%;
    padding-top: 10px;
    width: 90%;
    overflow-y: scroll;
    border: none;
    resize: none;
    padding-right: 10%;
}

#whatsapp > div > #respuesta-modal > img{
    position: absolute;
    bottom: 12px;
    right: 12px;
    cursor: pointer;
    border-radius: 100%;
    background: var(--verde);
    padding: 6.5px;
}

#whatsapp > div > span{
    position: absolute;
    top: 7px;
    right: 10px;
    color: var(--negro);
    opacity: .5;
    cursor: pointer;
    font-size: 1em;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    background: none;
    line-height: 1.2;
    font-weight: 500;
    font-family: "Open Sans", serif;
    font-size: 1rem;
    overflow-x: hidden;
}

body > section {
    max-width: 1500px;
}


header{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0 ;
    height: 70px;
    background: #c9cbda;
}

.menu{
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15);
}

header > p,
header > .llamada{
    border: 1px solid var(--naranja);
    transition: all 0.2s ease;
    padding: 11px 20px;
    box-sizing: border-box;
    width: 250px;
    border-radius: 5px;
    font-weight: 700;
    color: var(--negro);
    font-size: 1rem;
    cursor: pointer;
    background: var(--naranja);
    text-align: center;
    text-decoration: none;

}

header > p:hover,
header > .llamada:hover{
    background: var(--blanco);
    color: var(--naranja);
}

header > .llamada{
    opacity: 0;
    cursor: default;
}

.menu > .llamada{
    opacity: 1;
    cursor: pointer;
}

header > #movil,
header > #icono-movil,
footer > nav > #logo-movil{
    display: none;
}

header > .logo-menu{
    text-decoration: none;
    z-index: 1100;
}

header > .logo-menu > img{
    cursor: pointer;
    aspect-ratio: 146/49;
}

header > #escritorio{
    display:flex;
    align-items: center;
    justify-content: flex-start;
    width: 905px;
    transition: all .2s ease;
}

/*descomentar si se quiere volver a ocultar
.menu > #escritorio{
    opacity: 0;
}
*/

header > #escritorio > ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    box-sizing: border-box;
    padding-right: 2%;
    width: 100%;
}

header > #escritorio > ul > li,
header > #escritorio > ul > ul > li{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    margin: 0px 15px;
}

header > #escritorio > ul > li > a,
header > #escritorio > ul > ul > li > a{
    font-weight: 600;
    font-size: 1rem;
    color: var(--negro);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all .5s ease;
    border-bottom: 3px solid rgba(0, 0, 0, 0);
    padding-bottom: 0;
}

header > #escritorio > ul > li > a:hover,
header > #escritorio > ul > ul > li > a:hover{
    color: var(--amarillo);
    border-bottom: 3px solid var(--amarillo);
}

header > #escritorio > ul > ul{
    position: absolute;
    top: 100%;
    transition: all .5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 10px ;
    background: #c9cbda;
    left: 36%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

header > #escritorio > ul > ul > li{
    margin-bottom: 10px;
}

header > #escritorio > ul > ul > li:last-of-type{
    margin-bottom: 0;
}

header > #escritorio > ul > li:hover + ul,
header > #escritorio > ul > ul:hover{
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

header > #escritorio > ul > ul:last-of-type{
    left: 56%;
}


footer{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--azul-fondo);
    padding-top: 20px;
}

footer > nav{
    width: 90%;
    max-width: 1300px;
    padding-top: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 110px;
}

footer > nav > #logo-escritorio-footer{
    width: 50px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
}

footer > nav > #logo-escritorio-footer > img{
    aspect-ratio: 1/1;
}

footer > nav > .logo-movil{
    display: none;
}

footer > nav > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px;
    width: 35%;
    min-width: 140px;
    margin-right: 4px;
}

footer > nav > div > p{
    font-weight: 500;
    font-size: 1rem;
    color: var(--blanco);
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.7rem;
    cursor: pointer;
}

footer > nav > div:last-of-type > p{
    margin-bottom: 0;
}

footer > nav > div > a,
footer > nav > div > .btn-footer{
    font-weight: 400;
    font-size: .9rem;
    color: var(--blanco);
    text-align: left;
    line-height: 1.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

footer > nav > div > a{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

footer > nav > div > a:hover,
footer > nav > div > .btn-footer:hover{
    color: var(--amarillo);
}

footer > nav > div > a > p > span{
    font-weight: bold;
}

footer > nav > div > a > img{
    aspect-ratio: 20/11;
    margin-right: 10px;
}

footer > nav > span{
    color: var(--blanco);
    font-weight: 400;
    font-size: .8rem;
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: left;
    line-height: 1.7rem;
}

/*Relaciones de aspecto escritorio*/
@media screen and (min-width: 1100px) and (max-width: 1460px) {
    header > #escritorio > ul > li > a, 
    header > #escritorio > ul > ul > li > a{
        font-size: .9em;
    }
    header > p, header > .llamada{
        width: 300px;
        margin-right: 15px;
    }
}

/*Relaciones de aspecto tablet*/
@media screen and (min-width: 750px) and (max-width: 1099px) {
    header{
        flex-direction: column;
        align-items: center;
        height: 100px;
        padding-bottom: 10px;
    }
    header > .llamada{
        display: none;
    }
    header > .logo-menu{
        margin-right: 0;
        margin-bottom: 0;
    }
    header > #escritorio{
        width: 95%;
    }
    .menu > #escritorio{
        opacity: 1;
    }
    header > #escritorio > ul{
        justify-content: center;
    }
    header > #escritorio > ul > ul{
        left: 12%;
    }
    header > #escritorio > ul > ul:last-of-type{
        left: 33%;
    }
    header > #escritorio > ul > li > a, 
    header > #escritorio > ul > ul > li > a{
        font-size: .85rem;
    }
    header > a > img{
        width: 145px;
    }
}

/*Relaciones de aspecto movil*/
/*relacion general*/
@media screen and (max-width: 750px) {
    header > #escritorio,
    footer > nav > #logo-escritorio-footer,
    header > .llamada{
        display: none;
    }

    header{
        justify-content: space-between;
        padding: 10px 0;
    }
    
    header > .logo-menu{
        display: flex;
        margin-left:25px;
        z-index: 1100;
        width: 25%;
    }
    
    header > #movil{
        display: flex;
        position: fixed;
        flex-direction: column;
        top: 0;
        right: 100%;
        opacity: 0;
        background-color: rgba(239,237,233,.95);
        transition: all 0.2s ease;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        overflow-y: scroll;
    }
    
    header > #movil > ul{
        width: 100%;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 75px;
    }

    header > #movil > ul > li{
        width: 100%;
        box-sizing: border-box;
        padding-left: 25px;
        display: flex;
        justify-content: flex-start;
        margin: 7px 0 ;
        line-height: 1.7rem;
    }

    header > #movil > ul > li > a{
        text-decoration: none;
        color: var(--negro);
        font-weight: 700;
        font-size: 1.25rem;
        margin: 5px 0;
    }

    header > #icono-movil{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 2rem;
        height: 1.35rem;
        border: 0;
        background: transparent;
        z-index: 1100;
        margin-right: 5%;
    }
    header > #icono-movil > span{
        background: var(--negro);
        height: 4px;
        width: 95%;
        border-radius: 10px;
        transition: all 0.2s ease;
        transform-origin: left;
    }

    header > #icono-movil > .abierto:first-of-type{
        transform: rotate(42deg) translateY(-1px);
    }

    header > #icono-movil > .abierto:nth-of-type(2){
        opacity: 0;
    }

    header > #icono-movil > .abierto:last-of-type{
        transform: rotate(-42deg) translateY(2px);
    }
    footer > nav{
        flex-direction: column;
        align-items: center;
        padding-bottom: 7vh;
    }
    footer > nav > #logo-movil{
        display: flex;
        width: 60%;
        margin-bottom: 5vh;
        justify-content: center;
        align-items: center;
    }
    footer > nav > div{
        width: 80%;
        margin-bottom: 4vh;
        padding-bottom: 2vh;
        border-bottom: 1px solid var(--blanco);
        align-items: center;
    }
    footer > nav > div:first-of-type{
        width: 80%;
    }
    footer > nav > span{
        position: initial;
        font-size: .75rem;
        text-align: center;
        width: 80%;
    }
}

