/* ================================
NAVBAR (VERSIÓN LIMPIA Y PRO)
================================ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 120px;
    padding: 0 60px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: rgba(245, 246, 248, 0.65);
    backdrop-filter: blur(10px);

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    border-bottom: 1px solid rgba(0,0,0,0.05);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

    transition: all 0.3s ease;
}

/* SCROLL (SIN CAMBIAR ALTURA) */
.nav.scrolled {
    background: rgba(245, 246, 248, 0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ================================
LOGO
================================ */
.logo img {
    height: 60px;
}

/* ================================
MENU
================================ */
.menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    list-style: none;
}

/* LINKS */
.nav a {
    position: relative;
    color: #022752;
    text-decoration: none;

    margin-left: 35px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;

    padding: 6px 0;

    transition: all 0.2s ease;
}

/* HOVER */
.nav a:hover {
    color: var(--rojo);
}

/* LINEA */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: var(--rojo);
    border-radius: 2px;

    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ================================
DROPDOWN
================================ */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;

    background: rgba(245, 246, 248, 0.95);
    backdrop-filter: blur(10px);

    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    border: 1px solid rgba(0,0,0,0.05);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    color: #333;
}

.dropdown-content li a:hover {
    background: rgba(0,0,0,0.05);
    padding-left: 24px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================
ICONOS
================================ */
.nav-icon {
    font-size: 22px;
    color: #022752;
    transition: 0.3s;
}

.nav-icon:hover {
    color: #4cc9f0;
    transform: scale(1.1);
}

/* ================================
BOTÓN HAMBURGUESA (OCULTO DESKTOP)
================================ */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #022752;
}

/* ================================
RESPONSIVE (SOLO AQUÍ APARECE)
================================ */
@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;

        background: rgba(245, 246, 248, 0.95);
        backdrop-filter: blur(10px);

        padding: 20px;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 600px;
    }

    .menu li {
        width: 100%;
        margin: 10px 0;
    }

    .menu a {
        margin-left: 0;
        font-size: 16px;
    }

    /* DROPDOWN MOBILE */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 15px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}