/* Estilos del menú compartido */
.main-menu {
    background: #495057;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.menu-item {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.menu-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s;
    cursor: pointer;
}

.menu-link:hover {
    background: #343a40;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    border-top: 3px solid #fff59d;
}

.menu-item:hover .menu-dropdown {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-link:hover {
    background: #fff9c4;
    color: #343a40;
}

.dropdown-link:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
    }
    .menu-item {
        min-width: 100%;
    }
    .menu-dropdown {
        position: static;
        width: 100%;
    }
}
