:root {
    --primary: #124B7E;
    --primary-dark: #0d3a63;
    --hover: #C8E3F5;
    --text-light: #ffffff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ================= NAV ================= */
header {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    gap: 24px;
    padding: 10px 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    margin: 10px 0;
}

header .logo {
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

.nav {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* centra cada fila */
    gap: 6px;
    /* separa items sin romper */
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    border-radius: 10px;
}

.menu-link:hover {
    background-color: var(--hover);
    color: var(--primary-dark);
}

/* ================= DROPDOWN ================= */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: #ffffff;
    list-style: none;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    padding: 0;
    z-index: 999;
}


.dropdown-menu.open-left {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-item {
    padding: 0;
    margin: 0;
}

.dropdown-item a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.dropdown-item a:hover {
    background-color: var(--hover);
    color: var(--primary-dark);
}

/* Iconos */
.menu-icon {
    font-size: 12px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.separator {
    width: 1px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    /* 40% visible */
    margin: 0 20px;
}

.logos {
    display: flex;
    align-items: center;

}

@media (max-width: 1200px) {
    .separator {
        justify-content: center;
    }

    header {
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
    }

    .menu-header {
        padding: 0;
    }
}

@media (max-width: 900px) {

    .separator {
        justify-content: center;
    }

    header {
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle {
        display: block;
        align-self: flex-end;
    }

    .nav {
        width: 100%;
        display: none;
    }

    .nav.active {
        display: flex;
    }

    .menu-header {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .menu-link {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }

    .menu-item {
        width: 100%;
    }

    .nav {
        overflow: hidden;
        transition: max-height 0.3s ease;
        max-height: 0;
    }

    .nav.active {
        max-height: 1000px;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
}