/* 
    BARRA DE NAVEGACIÓN 
*/
/* Estilos base de la navbar */
.navbar {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.12);
    position: fixed;
    z-index: 1000;
    background-color: #fff;
    padding: 0 20px;
}

/* Estilos del logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-link-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.navbar-title {
    font-weight: 900;
    font-size: 25px;
    color: #1a584b;
    margin: 10px;
}

/* Botón hamburguesa */
.navbar-mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #1a584b;
}

/* Enlaces principales */
.navbar-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    list-style: none;
    position: relative;
}

.navbar-link {
    text-decoration: none;
    color: #888;
    padding: 25px 50px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
}

/* Submenú */
.navbar-sublinks {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 5px 5px;
    padding: 10px;
    top: 100%;
    left: 0;
    min-width: 200px;
}

.navbar-links li:hover .navbar-sublinks {
    display: block;
}

.navbar-sublink {
    color: #888;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* Botón Únete */
.navbar-join-button {
    background-color: transparent;
    border: 2px solid #1a584b;
    padding: 15px 40px;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

/* Efectos hover */
.navbar-link:hover,
.navbar-link.active {
    background-color: #1a584b;
    color: #fff;
}

.navbar-sublink:hover {
    color: #1a584b;
}

.navbar-join-button:hover {
    background-color: #1a584b;
    color: #fff;
    transform: scale(1.1);
}

/* Media Queries para diseño responsive */

@media screen and (max-width: 1300px) {
    .navbar-link {
        padding: 25px 30px;
    }
}

@media screen and (max-width: 1110px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar-mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .navbar-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 60px 0;
        z-index: 1000;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-link {
        padding: 15px 20px;
        text-align: center;
        font-size: 1.2em;
        margin: 20px;
        border-radius: 10px;
    }

    .navbar-item-dropdown {
        width: 100%;
    }

    .navbar-sublinks {
        position: static;
        box-shadow: none;
        width: 100%;
        padding: 0;
        background-color: #f5f5f5;
    }

    .navbar-item-dropdown.active .navbar-sublinks {
        display: block;
    }

    .navbar-sublink {
        padding: 15px 20px;
        text-align: center;
        font-size: 1.1em;
    }

    .navbar-button {
        position: fixed;
        bottom: 40px;
        left: 0;
        width: 100%;
        display: none;
        justify-content: center;
        padding: 20px;
        z-index: 1001;
    }

    .navbar-links.active + .navbar-button {
        display: flex;
    }

    .navbar-join-button {
        padding: 15px 40px;
        font-size: 1.1em;
        width: 80%;
        max-width: 300px;
    }
}