/* ======= RESET Y CONFIGURACIÓN GENERAL ======= */
* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

html {
    width: 100dvw;
    height: 100dvh;
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* ======= ENCABEZADO INSTITUCIONAL ======= */
.encabezado {
    z-index: 100;
    width: 100%;
    height: 10%;
    position: sticky;
    top: 0;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0 20px;
}

/* ======= LOGO ======= */
.contenedor-logo {
    max-width: 200px;
    height: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
}

#logo {
    width: 100%;
    height: auto;
}

/* ======= BOTÓN MENÚ MÓVIL ======= */
#btn-menu {
    display: none;
    color: var(--color-primary-red);
    background-color: var(--color-white);
    border: 1px solid var(--color-primary-red);
    border-radius: 5px;
    cursor: pointer;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
}

#btn-menu svg {
    height: 24px;
    width: 24px;
}

/* ======= BARRA DE NAVEGACIÓN ======= */
.barra-navegacion {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Alinea el menú al inicio y permite que .menu crezca */
    align-items: center;
    padding-left: 20px;
}

.menu {
    height: 100%;
    display: flex;
}

.lista-navegacion {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end; /* Distribuye los ítems uniformemente */
}

.item-navegacion {
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
}

.enlace {
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    color: var(--color-text-dark);

    transition: all 0.3s ease;
    cursor: pointer;
}

.enlace:hover {
    color: #ea2173;
}

/* ======= BOTONES CTA ======= */
.cta-container {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.cta-button {
    padding: 10px 20px;
    border-radius: 50px;

    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    justify-content: center;
    text-decoration: none;
}

#apoyar-btn {
    background-color: #ea2173;
    color: white;
}

#apoyar-btn:hover {
    background-color: white;
    color: #ea2173;
    border: 2px solid #ea2173;
}

#formarme-btn {
    background-color: #ea2173;
    color: white;
}

#formarme-btn:hover {
    background-color: white;
    color: #ea2173;
    border: 2px solid #ea2173;
}

/* ======= ANIMACIONES DEL MENÚ ======= */
/* Las animaciones ahora se gestionan mediante la propiedad 'transition' en .barra-navegacion y la clase 'menu-open' */

/* ======= RESPONSIVE ======= */
@media screen and (max-width: 800px) {
   

    .contenedor-logo {
        height: 90%;
        width: auto;
    }

    #btn-menu {
        display: flex;
    }

    .barra-navegacion {
        position: fixed;
        background-color: white;
        width: 100%;
        height: 90%;
        left: -100%; /* Oculto por defecto en móvil */
        top: 10%;
        flex-direction: column;
        padding: 20px;
        justify-content: flex-start;
        transition: left 0.5s ease-in-out;
    }

    .barra-navegacion.menu-open {
        left: 0; /* Visible cuando tiene la clase menu-open */
    }

    .menu {
        width: 100%;
        height: auto;
        
    }

    .lista-navegacion {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .item-navegacion {
        width: 100%;
        height: 100%; /* Permitir que la altura se adapte al contenido */
        padding: 10px 0;
    }

    .enlace {
        width: 100%;
        justify-content: center;
    }

    .cta-container {
        width: 100%;
        flex-direction: column;
        margin: 20px 0;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        padding: 15px;
    }

  
}
