/* Estilos generales para el dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 20px;
    background-color: white;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 10px;
}
.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    color: #4A4A49;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.dropdown-content li a:hover {
    background-color: #f0f0f0;
    color: #3EAB35;
}
.dropdown:hover .dropdown-content {
    display: flex;
}

/* Scroll estilizado */
.dropdown-content::-webkit-scrollbar {
    width: 8px;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

@media (max-width: 1100px) {
    .dropdown {
        top: 0px;
    }
}
@media(max-width: 768px) {
    .dropdown-content {
        position: static;
        max-height: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        overflow: visible;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content li a {
        padding: 10px 0;
        font-size: 16px;
        color: #4A4A49;
        background-color: transparent;
    }

    .dropdown-content li a:hover {
        background-color: #f0f0f0;
        color: #3EAB35;
    }
}
@media (max-width: 768px) {
    .dropdown-content {
        max-height: 250px; /* Altura máxima visible */
        overflow-y: auto;  /* Scroll vertical si excede la altura */
        background-color: white; /* Fondo blanco para contraste */
        padding: 0.5rem 1rem;
        margin-left: 10px;
        border-radius: 10px;
    }

    .dropdown-content li {
        margin-bottom: 10px;
    }

    .dropdown-content::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown-content::-webkit-scrollbar-thumb {
        background-color: #bbb;
        border-radius: 3px;
    }
}