/* ##################################### GENERAL #####################################*/

:root {
    --color_negro: #2b2b2b;
    --color_blanco: #ffffff;
    --color_gris_claro: #f0f0f0;
    --color_gris_oscuro: #c6c6c6;
    --color_verde: #22934a;
}

body {
    background-color: var(--color_verde);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    font-size: 17px;
    text-align: justify;
}

main {
    display: flex;
    flex-direction: column;
}

a,
button {
    text-decoration: none;
    cursor: pointer;
}

ul {
    padding-left: 0px;
}

ul li {
    margin: 20px;
    list-style-type: none;
}

section {
    scroll-margin-top: 100px;
}

.titulo {
    color: var(--color_verde);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin: 0px;
    margin-top: 20px;
    /* padding: 20px; */
}

.secciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.e_boton,
.e_boton_linkedin,
.f_boton,
.f_boton_play,
.c_boton {
    background-color: var(--color_verde);
    color: var(--color_blanco);
    font-weight: 500;
    padding: 12px;
    border-radius: 10px;
    border: none;
}

.e_boton:active,
.e_boton_linkedin,
.f_boton:active,
.f_boton_play:active,
.c_boton:active {
    background-color: var(--color_verde);
    transform: scale(0.95);
}

/* ##################################### SPINNER #####################################*/

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color_blanco);
    z-index: 9999; /* Asegura que el spinner esté en la parte superior */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* No permite eventos del mouse en esta capa */
}

.spinner {
    width: 100px;
    height: 100px;
    border: 10px solid var(--color_gris_claro);
    border-radius: 50%;
    border-top-color: var(--color_verde);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ##################################### HEADER #####################################*/

#header {
    position: fixed;
    width: 100%;
    z-index: 3;
}

#h_header {
    display: flex;
    justify-content: space-between;
    padding: 0px 20px;
}

#h_logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#h_imagen, #h_imagen_invertido {
    height: 40px;
    width: auto;
}

#h_nombre {
    font-size: 25px;
    margin-left: 10px;
}

#h_nombres_secciones {
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
}

#h_nombres_secciones a:hover {
    color: var(--color_verde);
}

#h_menu,
.contenido_modal {
    display: none;
}

/* ##################################### BOTON ARRIBA #####################################*/

/* Estilos para el botón */
#arriba {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 25px;
    border: none;
    outline: none;
    background-color: var(--color_verde);
    color: var(--color_blanco);
    cursor: pointer;
    padding: 15px;
    border-radius: 100%;
    height: 60px;
    width: 60px;
    align-items: center;
    justify-content: center;
}

/* ##################################### FOOTER #####################################*/

#f_texto {
    background-color: var(--color_blanco);
    border-top: 5px solid var(--color_verde);
    color: var(--color_verde);
    margin: 0px;
    padding: 30px;
    display: flex;
    justify-content: center;
}

@media (max-width: 800px) {
    /* ##################################### HEADER #####################################*/

    #h_header {
        padding: 25px 20px;
    }

    #h_nombres_secciones {
        display: none;
    }

    #h_menu {
        background: none;
        border: none;
        display: block;
        width: 50px;
        height: auto;
    }

    #h_menu .material-symbols-rounded {
        font-size: 40px;
    }

    /* Estilos para el popup */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .contenido_modal {
        background-color: var(--color_blanco);
        border-left: 5px solid var(--color_verde);
        float: right;
        font-weight: 700;
        width: 50%;
        height: 100%;
        display: flex;
        flex-direction: column;
        animation-name: modal-entrada;
        transition: ease-in-out;
        animation-duration: 0.3s;
    }

    /* Animación de entrada del modal */
    @keyframes modal-entrada {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    #cerrar_modal {
        display: flex;
        justify-content: flex-end;
        margin-top: 15px;
    }

    .cerrar {
        color: var(--color_negro);
        cursor: pointer;
        font-size: 50px;
        margin-right: 30px;
    }

    .modal ul {
        font-size: 30px;
    }

    .modal ul li a {
        color: var(--color_verde);
    }

    #h_nombres_secciones_opciones {
        color: var(--color_verde);
        font-size: 25px;
    }
}

@media (max-width: 600px) {
    /* ##################################### HEADER #####################################*/

    .modal ul {
        font-size: 20px;
    }
}
