@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #000000;
    position: absolute;
    width: 100%;
    z-index: 1000; 
    align-items: center;
}

/* Barra de navegación */
.navbar {
    font-family: Jost;
    font-size: 1rem;
    justify-content: center;
    font-weight: 500;
    line-height: 28.9px;
}

.navbar-nav {
    align-items: center;
}

.menu {
    background: #fff;
    height: 100vh;
    width: 100vw;

}
.buttonIcons {
    border: none;
}
.barIcon, .timesIcon {
    font-size: 40px;
    background-color: black;
    color: white;
}


.navbar-nav .nav-link {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 15px;
    line-height: 65px;
    transition: color 0.3s ease;
}

.nav-link {
    width: 100%;
    font-family: Jost;
    font-weight: 400;
    line-height: 28.9px;
    text-align: left;
}

.nav-link--icon {
    padding-right: .5em;
}

.navbar-nav .nav-link:hover {
    color: #d3f9d8;
}
#navbarDropdown2:hover ,#navbarDropdown2 {
    color: #82c9ff !important;
}

.nav-item {
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    flex-direction: column;
    width: 100%;
}

.nav-item.nav-item-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    background: #E0E0E0;
}

.navbar__buttons {
    border: 2px solid #9FCCA5;
    border-radius: 8px;
    color: #000000;
    width: min(200px, 350px);
    padding: .5em 1em;
    text-transform: uppercase;
    text-align: center;
}

.navbar__btn-login {
    color: #9FCCA5;
    background: #ffffff;
}

.navbar__btn-register {
    background: #9FCCA5;
    color: #ffffff;
}

.navbar-nav {
    width: 100%;
}

/* Diseño de los menús desplegables */
.dropdown-menu {
    transition: all 0.3s ease;
    position: relative;
    display: block;
    width: 100%;
}

.dropdown .dropdown-menu {
    background: #E0E0E0;
    border-radius: 0;
}

.dropdown .dropdown-menu {
    background: #FFFFFF40;
}

/* Estilos para los elementos dentro del menú */
.dropdown .dropdown-item {
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Línea sutil entre items */
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    background: #E0E0E0;
}

.dropdown-item:hover {
    background-color: rgba(166, 198, 164, 0.1);
    color: #a6c6a4;
}

/* Estilo personalizado para dropdowns dentro de "Personas" y "Organizaciones" */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    /* Asegura que el menú se despliegue al hacer hover */
    opacity: 1;
    /* Hace el menú completamente visible */
    transform: translateY(0);
}

/* Estilo del hover para items personalizados */
.custom-drop:hover {
    background-color: transparent !important;
    color: #82c9ff !important;
    font-weight: bold !important;
}

.custom-drop:focus {
    background-color: white !important;
}


@media (min-width: 992px) {
    header {
        position: absolute;
        background-color: transparent;
    }

    .buttonIcons {
        display: none;
    }

    .nav-item {
        border: none;
    }

    .navbar-nav .nav-link {
        color: #ffffff;
    }

    .menu {
        height: auto;
        background: transparent;
        display: flex;
        justify-content: flex-end;
    }

    .nav-item .nav-link:hover {
        padding-bottom: 2px;
        top: 0;
        border-bottom: 2px solid #9FCCA5;
    }

    .nav-item {
        width: auto;
    }


    .nav-item .nav-link--icon {
        display: none;
    }

    .nav-item.nav-item-buttons {
        display: inline;
        background: transparent;
    }

    .navbar__btn-register {
        color: #00000059;
    }

    .navbar__btn-login {
        background: #D9D9D959;
        color: #9FCCA5;
    }

    .dropdown-menu {
        transition: all 0.3s ease;
        position: relative;
        display: block;
        width: 100%;
    }

    .dropdown .dropdown-item {
        background: none;
        color: #ffffff;
    }

    .dropdown .dropdown-menu {
        top: 65px;
        border-radius: 0.25rem;
    }
}
#dropdownPersonasOptions, #dropdownOrganizacionesOptions {
    list-style-type: none;
    display: none;
    flex-direction: column;
    align-items: start;
    width: 100%;
    padding: 0 15px;
    background: #E0E0E0;
    & a {
        text-decoration: none;
        padding: 5px 0;
    }
    & li {
        color: black;
    }
    & i, svg {
        width: 30px;
    }
}
#dropdownPersonas::after, #dropdownOrganizaciones::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
#dropdownPersonasOptions.active, #dropdownOrganizacionesOptions.active  {
    display: flex;
}


@media(min-width:992px) {
    #personas, #organizaciones {
        position: relative;
    }
    #dropdownPersonasOptions, #dropdownOrganizacionesOptions {
        width: 150px;
        position: absolute; 
        top: 65px;
        left: 50%;
        transform: translateX(-50%);
        background: #FFFFFF40;
        padding: 7px 0;
        font-size: 14px;
        border-radius: 5px;
        & li {
            width: 100%;
            color: white;
            padding: 5px 0px;
        }
        & a {
            width: 100%;
            padding: 0px 5px;
        }
        & i, svg {
            display: none;
        }
        & a:hover{
            background-color: white;
        }
        & li:hover {
            color: black;
        }
    }
}