@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root{
    --text-black: #111111;
    --text-dark: #292929;
    --text-white: #FAFAFA;
    --text-gray-dark: #444444;
    --text-gray: #797979;
    --green-button: #25d366;
    --text-yellow: #EDC93D;

    --bg-input-form: #;
    --bg-nav: #;
    --bg-body: #;
    --bg-services: #F3F3F3;
    --bg-cards: #FAFBFD;
    --bg-footer: #2C3E50;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html{
    font-size: 16px;
    scroll-behavior: smooth;
}

body{
    list-style: none;
    text-decoration: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-body);
    font-family: "DM Sans", serif;
}

body.no-scroll {
    overflow: hidden;
}


h1 {
    font-size: 5.625rem; /* 90px / 16 */
    font-weight: 500;
    letter-spacing: -0.5%;
    color: var(--text-white);
}

h2 {
    font-size: 3.75rem; /* 60px / 16 */
    font-weight: 300;
    line-height: 4.5rem; /* 72px / 16 */
    letter-spacing: -0.5%;
    color: var(--text-black);
}

h3 {
    font-size: 2.125rem; /* 34px / 16 */
    font-weight: 500;
    letter-spacing: -0.5%;
}

h4 {
    font-size: 1.625rem; /* 26px / 16 */
    font-weight: 400;
    line-height: 2.5rem; /* 40px / 16 */
    letter-spacing: -0.5%;
    color: var(--text-gray-dark);
}

h5 {
    font-size: 1.5rem; /* 24px / 16 */
    font-weight: 300;
    line-height: 2.5rem; /* 40px / 16 */
    letter-spacing: 6%;    
    color: var(--text-dark);
}

h6 {
    font-size: 1.375rem; /* 22px / 16 */
    font-weight: 500;
    line-height: 2.5rem; /* 40px / 16 */
    letter-spacing: -0.5%;
}

p {
    font-size: 1.25rem; /* 20px / 16 */
    line-height: 2rem; /* 32px / 16 */
    letter-spacing: 6%;
    color: var(--text-gray);
}

.btn-1 {
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 0.125rem solid var(--text-white); /* 2px / 16 */
    transition: all 200ms ease-in-out;
}

.btn-1 a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.625rem; /* 26px / 16 */
    font-weight: 300;
    color: var(--text-white);
}

.btn-1:hover{
    background-color: var(--text-yellow);
    color: var(--text-white);
}

.btn-2 {
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 0.125rem solid var(--text-gray-dark); /* 2px / 16 */
    transition: all 200ms ease-in-out;
}

.btn-2 a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 3rem;
    font-size: 1.25rem; /* 20px / 16 */
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-dark);
}

.btn-2:hover{
    background-color: var(--text-yellow);
    border: 0.125rem solid var(--text-white);
}

.btn-2:hover a{
    color: var(--text-white);
}

@media screen and (max-width:1500px) {
    html{
        font-size: 90%;
    }
}

@media screen and (max-width:1350px) {
    html{
        font-size: 80%;
    }
}

@media screen and (max-width:1200px) {
    html{
        font-size: 70%;
    }
}


@media screen and (max-width:675px) {
    html{
        font-size: 60%;
    }
}

@media screen and (max-width:600px) {
    
    h1 {
        font-size: 4.2rem;

    }

    h2 {
        font-size: 3rem;
        line-height: 4.5rem;

    }

}

@media screen and (max-width:480px) {
    
    h1 {
        font-size: 3.6rem;

    }

    h2 {
        font-size: 2.6rem;
        line-height: 4.2rem;

    }

}

@media screen and (max-width:375px) {
    
    h1 {
        font-size: 3.2rem;

    }

    h2 {
        font-size: 2.2rem;
        line-height: 2.8rem;

    }

}

@media screen and (max-width:340px) {
    
    h1 {
        font-size: 3rem;

    }

    h2 {
        font-size: 2rem;
        line-height: 2.6rem;

    }

}



/*Overall Settings*/

    a{
        text-decoration: none;
        font-family: "DM Sans", serif;
    }

    /* Elementos ocultos por defecto */
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.75s ease, transform 0.75s ease;
    }

    /* Activa las transiciones cuando el loader desaparece */
    .fade-in.visible{
        opacity: 1;
        transform: translateY(0);
    }


/*Loader*/

    .loader{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--text-yellow);
        transition: opacity 0.75s, visibility 0.75s;
        z-index: 9999;
    }

    .loader-hidden{
        visibility: hidden;
        opacity: 0;
    }

    .loader::after{
        content: '';
        width: 75px;
        height: 75px;
        border: 15px solid var(--text-black);
        border-top: 15px solid var(--text-white);
        border-radius: 50%;
        animation: loading 1s linear infinite;
    }

    @keyframes loading{
        from{
            transform: rotate(0turn);
        }
        to{
            transform: rotate(1turn);
        }
    }



/*Whatsapp*/

    #whatsapp {
        width: 70px;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 40px;
        right: 40px;
        border: none;
        border-radius: 50%;
        background-color: #25d366;
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
        cursor: pointer;
        transition: all 200ms ease-in-out;
        opacity: 0.9;
        z-index: 100;
    }

    #whatsapp::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid rgba(37, 211, 102, 0.5);
        animation: pulse 3s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(2);
            opacity: 0;
        }
    }

    #whatsapp img {
        width: 40px;
        height: 40px;
    }

    #whatsapp:hover {
        transform: scale(1.1);
        opacity: 1;
    }


/*Header*/


header{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--text-white);
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 0;
    z-index: 10;
    box-shadow: #111111 0px 0px 10px;
    transition: all 200ms ease-in-out;
}

header .cont{
    width: 90%;
    height: 8rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 200ms ease-in-out;
}

header .cont .logo{
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

header .cont .logo img{
    width: 15rem;
    height: auto;
}

header.sticky .cont{
    height: 4.5rem;
}

header nav{
    flex-grow: 1;
    width: auto;
    max-width: 1000px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

header nav ul{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

header nav ul li{
    width: auto;
    height: auto;
}

header nav ul li a {
    width: auto;
    height: auto;
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    position: relative; /* Esencial para posicionar el pseudo-elemento */
    overflow: hidden; /* Opcional, pero ayuda a controlar la animación */
    padding-bottom: 0.3rem;
}

/* Pseudo-elemento que actuará como el subrayado */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* El grosor del subrayado */
    background-color: var(--text-yellow); /* El color del subrayado */
    transform: scaleX(0); /* Inicialmente el subrayado no es visible */
    transition: transform 0.3s ease-in-out; /* La animación de la transición */
}

/* Estado al pasar el cursor (hover) y al enfocar (focus) */
header nav ul li a:hover::after,
header nav ul li a:focus::after {
    transform: scaleX(1); /* El subrayado se hace visible */
}

/* Animación del color de texto */
header nav ul li a:hover,
header nav ul li a:focus {
    color: var(--text-yellow); /* Cambia el color del texto a amarillo al pasar el cursor */
    transition: color 0.3s ease-in-out;
}

/* Selector de Idioma */
.language-selector {
    width: 15rem;
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease-in-out;
}

.language-selector span:hover {
    color: var(--text-yellow);
}

.language-selector span img {
    width: 1rem;
    transition: transform 0.3s ease-in-out;
}

.language-selector:hover span img {
    transform: rotate(180deg);
}

/* Menú Desplegable de Idiomas (con altura reducida) */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-white);
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    list-style: none;
    padding: 1rem 0rem; /* Eliminado el padding vertical del contenedor principal */
    margin: 0;
    border-radius: 5px;
    min-width: 30px;
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}
to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
}

.language-selector:hover .language-dropdown {
    display: block; /* Muestra el menú al hacer hover en el contenedor principal */
}

.language-dropdown li a {
    color: var(--color-text);
    padding: 0.5rem 2rem; /* Reducido el padding vertical a 0.2rem */
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.language-dropdown li a:hover {
    background-color: var(--text-yellow);
    color: var(--text-white);
}




/*Menu Lateral*/

.icon-bars{
    display: none;
    width: 30px;
    height: fit-content;
}

.icon-bars img{
    width: 100%;
    height: auto;
}

.close{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.icon-close{
    width: 30px;
}


/*Menu Desplegable*/

/* Contenedor principal del menú desplegable */
.menu-desplegable {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF; /* Fondo blanco */
    z-index: 1000;
    
    /* Efecto de transición para que aparezca suavemente */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;

    /* Usamos flex para organizar el contenido verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-sizing: border-box;
    
    /* Detalle en amarillo, como pediste */
    border-top: 5px solid var(--text-yellow, #C5A560);
}

/* Estado activo: cuando el menú es visible */
.menu-desplegable.active {
    transform: translateX(0);
}

.menu

.menu-desplegable.hidden {
    transform: translateX(1000);
}

/* Sección superior con logo y botón de cerrar */
.menu-desplegable .top {
    display: flex;
    justify-content: space-between; /* Esto coloca un item al inicio y otro al final */
    align-items: center;
    width: 100%;
}

.menu-desplegable .top .img {
    max-width: 150px;
}

.menu-desplegable .top .img img {
    width: 100%;
}

.menu-desplegable .top .close .icon-close {
    cursor: pointer;
}

.menu-desplegable .top .close .icon-close img {
    width: 3rem;
    height: 3rem;
}

/* Lista de enlaces del menú */
.menu-desplegable .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.menu-desplegable .menu li a {
    text-decoration: none;
    color: var(--text-black);
    font-size: 2.5rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.menu-desplegable .menu li a:hover {
    color: var(--text-yellow, #C5A560); /* Detalle amarillo al pasar el mouse */
}

/* Sección de idiomas en la parte inferior */
.menu-desplegable .languages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 10rem;
}

.menu-desplegable .languages a {
    text-decoration: none;
    color: var(--text-gray, #888); /* Color de texto gris */
    font-size: 2rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-desplegable .languages a.active {
    color: var(--text-yellow, #C5A560);
    border-bottom: 2px solid var(--text-yellow, #C5A560); /* Detalle amarillo */
}

    @media screen and (min-width:849px) {

        .menu-desplegable.active{
            display: none;
        }

    }


    @media screen and (max-width:850px) {
        header .cont nav{
            display: none;
        }

        header .cont .language-selector{
            display: none;
        }

        .icon-bars{
            display: block;
            cursor: pointer;
        }

    }

    @media screen and (max-width: 600px) {
        .menu-desplegable{
            width: 100%;
        }
    }


/*Contacto*/

.contacto{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.contacto .cont{
    width: 90%;
    max-width: 1500px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex;
    gap: 4rem;
}

.contacto .cont .text{
    width: 50%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
}

.contacto .cont .text .tittles{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.contacto .cont .text .tittles h2{
    width: 100%;
}

.contacto .cont .text .tittles h5{
    width: 100%;
}

.contacto .cont .text .info{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
}

.contacto .cont .text .info .item{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.contacto .cont .text .info .item img{
    width: 2.25rem;
    height: 2.25rem;
}

.contacto .cont .text .info .item h4{
    width: 100%;
}

.contacto .cont .form-wrap{
    width: 50%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
}

.contacto .cont .form-wrap form{
    width: 100%;
    max-width: 600px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    font-family: "DM Sans", serif;
}

.contacto .cont .form-wrap form .name{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

input{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 0.125rem solid var(--text-gray);
    transition: all 200ms ease-in-out;
}

input::placeholder{
    font-family: "DM Sans", serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.5%;
    line-height: 0.15625rem;
    color: var(--text-gray);
}

textarea{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    border: 0.125rem solid var(--text-gray);
    transition: all 200ms ease-in-out;
}

textarea::placeholder{
    font-family: "DM Sans", serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.5%;
}

#btnSend{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
    font-size: 1.25rem;
    background-color: var(--text-yellow);
    border: 1px solid var(--text-white);
    transition: all 200ms ease-in-out;
    cursor: pointer;
}

#btnSend:hover{
    background-color: var(--text-white);
    color: var(--text-yellow);
    border: 1px solid var(--text-yellow);

}


@media screen and (max-width:600px) {
    .contacto .cont{
        max-width: 500px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contacto .cont .text{
        width: 100%;
    }

    .contacto .cont .form-wrap{
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-start;
    }
}



/*Footer*/

footer{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-footer);
}

footer .cont{
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

footer .cont{}

footer .cont h5{
    color: var(--text-white);
    text-align: center;
}

footer .cont .credencial{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

footer .cont .credencial .tittles{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

footer .cont .credencial .tittles h2{
    color: var(--text-white);
}

footer .cont .credencial .tittles h5{
    color: var(--text-white);
}

footer .cont .credencial .images{
    width: 80%;
    max-width: 250px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

footer .cont .credencial .images img{
    width: 50%;
    height: auto;
}

footer .bottom{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-top: 2px solid var(--text-gray);
    padding: 1rem 0;
}


footer .bottom a h5{
    font-style: italic;
    color: var(--text-white);
    text-decoration: underline;
}

footer .cont{
    transform: scale(0.8);
}