.navi {
    position: sticky;
    top: 0;
    z-index: 999;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 30px;
    border-bottom: 2px solid #c8dec8;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
}

.menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    display: none;
    cursor: pointer;
    color: #000000;
    padding: 12px; /* Aumenta el área clickeable */
    border-radius: 8px;
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-list a,
.nav-auth a,
.nav-user-btn,
.dropdown-content form button {
    color: #000000; /* Texto en negro */
    font-weight: bold;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 5px;
}

.nav-list a:hover,
.login-btn:hover,
.register-btn:hover,
.dropdown-content form button:hover {
    background-color: #90ec90; /* Verde suave */
}

.nav-auth a {
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 5px;
}

.dropdown {
    position: relative;
}

.nav-user-btn {
    background-color: #74e474; /* Verde suave */
    color: black;           /* Texto verde oscuro */
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-user-btn:hover {
    background-color: #6dff6d; /* Verde más intenso al hacer hover */
}

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    z-index: 100;
    min-width: 150px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-content form button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-toggle:hover {
    background-color: #e0f2e0; /* Verde suave */
    color: #1b3d1b;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content .dropdown-link {
    display: block;
    width: 100%;
    box-sizing: border-box; /* importante para que padding no desborde */
    padding: 8px 12px;
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit; /* para que coincida con el resto */
    font-size: 1rem;
    border-radius: 5px;
    text-align: left;
}

.dropdown-content .dropdown-link:hover {
    background-color: #90ec90; /* Mismo verde suave */
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        padding: 10px 0;
        margin-top: 10px;
        align-items: center; /* Centra horizontalmente los elementos */
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list a,
    .nav-auth a,
    .nav-user-btn,
    .dropdown-content form button {
        display: block;
        width: 90%; /* Ocupa casi todo el ancho disponible */
        text-align: center;
        /* margin: 5px 0; */
        padding: 10px;
    }

    .nav-auth {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px; /* Espacio vertical entre botones */
    }

    .dropdown-content {
        left: 10px;
        right: 10px;
    }
}
