/* =========================
   CABECERA INSTITUCIONAL LB
========================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* ===== HEADER BASE ===== */

.lb-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* más presencia */
    background: #ffffff;
    z-index: 9999;
    padding: 0 8%;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.lb-header.lb-scrolled {
    background: #000000;
}

.lb-header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO ===== */

.lb-logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* ===== NAV ===== */

.lb-nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.lb-nav a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
    transition: color 0.3s ease;
}

.lb-header.lb-scrolled .lb-nav a {
    color: #fff;
}

.lb-nav a:hover {
    color: #BB1755;
}

/* ===== BOTÓN MENÚ ===== */

.lb-btn-menu {
    background: #BB1755;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
}

.lb-btn-menu:hover {
    background: #8f123f;
}
/* ===== SUBMENU ===== */

.has-submenu {
    position: relative;
    cursor: pointer;
}

.has-submenu > span {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
}

.lb-header.lb-scrolled .has-submenu > span {
    color: #fff;
}

.submenu {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 20px 0;
    min-width: 260px;
    display: none;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lb-header.lb-scrolled .submenu {
    background: #000;
}

.submenu li {
    padding: 0 25px;
}

.submenu a {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.lb-header.lb-scrolled .submenu a {
    color: #fff;
}

.submenu a:hover {
    color: #BB1755;
}

.submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.2s ease;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* ===== HAMBURGUESA ===== */

.lb-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.lb-hamburger span {
    width: 30px;
    height: 3px;
    background: #000;
    transition: 0.3s;
}

.lb-header.lb-scrolled .lb-hamburger span {
    background: #fff;
}

/* ===== MAIN OFFSET ===== */

main {
    margin-top: 120px; /* igual a altura header */
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {

    .lb-nav {
        position: absolute;
        top: 120px;
        right: 0;
        background: #000;
        width: 100%;
        display: none;
    }

    .lb-nav ul {
        flex-direction: column;
        padding: 50px 0;
        gap: 35px;
    }

    .lb-nav a {
        color: #fff;
        font-size: 20px;
    }

    .lb-nav.lb-nav-active {
        display: block;
    }

    .lb-hamburger {
        display: flex;
    }
}