/* Cabecera global LBB: navegacion compacta, fija y responsive. */
.lbb-site-header {
    --lbb-header-primary: #014478;
    --lbb-header-deep: #031b4e;
    --lbb-header-accent: #47c2e7;
    --lbb-header-ink: #102f46;
    --lbb-header-muted: #526f82;
    --lbb-header-line: #d9e6ee;
    --lbb-header-soft: #eef6fb;
    --lbb-header-white: #ffffff;
    position: sticky;
    z-index: 1030;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(1, 68, 120, 0.10);
}

body.lbb-mobile-menu-open {
    overflow: hidden;
}

.lbb-header-topbar {
    max-height: 36px;
    overflow: hidden;
    color: var(--lbb-header-white);
    background: var(--lbb-header-deep);
    opacity: 1;
    transition: max-height 240ms ease, opacity 180ms ease;
}

.lbb-site-header.is-scrolled .lbb-header-topbar {
    max-height: 0;
    opacity: 0;
}

.lbb-header-topbar-inner,
.lbb-header-nav-inner,
.lbb-header-mobile-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.lbb-header-topbar-inner {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.82rem;
}

.lbb-header-address,
.lbb-header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lbb-header-white);
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

/* Ubicación LBB: comparte el mismo estado interactivo que teléfono y correo. */
a.lbb-header-address:hover,
a.lbb-header-address:focus-visible,
.lbb-header-contact a:hover,
.lbb-header-contact a:focus-visible {
    color: var(--lbb-header-accent);
}

.lbb-header-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lbb-header-navbar {
    position: relative;
    background: var(--lbb-header-white);
}

.lbb-header-nav-inner {
    display: grid;
    min-height: 80px;
    grid-template-columns: 205px 1fr auto;
    align-items: center;
    gap: 28px;
    transition: min-height 240ms ease;
}

.lbb-site-header.is-scrolled .lbb-header-nav-inner {
    min-height: 68px;
}

.lbb-header-brand {
    display: inline-flex;
    width: 190px;
    align-items: center;
}

.lbb-header-brand img {
    display: block;
    width: 100%;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

/* Identidad Dorignac: marca textual legible sin modificar el logo global LBB. */
.lbb-header-brand-text {
    color: var(--lbb-header-primary);
    font-family: "Red Rose", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.lbb-header-desktop-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lbb-header-link,
.lbb-header-dropdown > summary {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    padding: 0 14px;
    align-items: center;
    gap: 6px;
    color: #23465d;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
}

.lbb-header-dropdown > summary::-webkit-details-marker,
.lbb-header-mobile-dropdown > summary::-webkit-details-marker {
    display: none;
}

.lbb-header-link::after,
.lbb-header-dropdown > summary::after {
    position: absolute;
    right: 14px;
    bottom: 3px;
    left: 14px;
    height: 2px;
    content: "";
    background: var(--lbb-header-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.lbb-header-link:hover,
.lbb-header-link:focus-visible,
.lbb-header-link.is-active,
.lbb-header-dropdown > summary.is-active,
.lbb-header-dropdown > summary:hover,
.lbb-header-dropdown > summary:focus-visible,
.lbb-header-dropdown[open] > summary,
.lbb-header-dropdown.is-active > summary {
    color: var(--lbb-header-primary);
}

.lbb-header-link:hover::after,
.lbb-header-link:focus-visible::after,
.lbb-header-link.is-active::after,
.lbb-header-dropdown > summary.is-active::after,
.lbb-header-dropdown > summary:hover::after,
.lbb-header-dropdown > summary:focus-visible::after,
.lbb-header-dropdown[open] > summary::after,
.lbb-header-dropdown.is-active > summary::after {
    transform: scaleX(1);
}

.lbb-header-dropdown {
    position: relative;
}

.lbb-header-dropdown > summary i {
    font-size: 0.75rem;
    transition: transform 180ms ease;
}

.lbb-header-dropdown[open] > summary i {
    transform: rotate(180deg);
}

.lbb-header-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    width: 430px;
    padding: 12px;
    border: 1px solid var(--lbb-header-line);
    border-radius: 8px;
    background: var(--lbb-header-white);
    box-shadow: 0 18px 44px rgba(3, 27, 78, 0.14);
    grid-template-columns: 1fr 1fr;
    transform: translateX(-50%);
}

.lbb-header-menu-pages {
    width: 230px;
    grid-template-columns: 1fr;
}

.lbb-header-menu a {
    display: flex;
    min-height: 42px;
    padding: 9px 11px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    color: #34566c;
    font-size: 0.9rem;
    font-weight: 500;
}

.lbb-header-menu a:hover,
.lbb-header-menu a:focus-visible {
    color: var(--lbb-header-primary);
    background: var(--lbb-header-soft);
}

.lbb-header-menu a i {
    width: 18px;
    color: var(--lbb-header-primary);
    text-align: center;
}

.lbb-header-actions,
.lbb-header-mobile-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lbb-header-social,
.lbb-header-mobile-action,
.lbb-header-menu-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--lbb-header-line);
    border-radius: 6px;
    color: var(--lbb-header-primary);
    background: var(--lbb-header-white);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.lbb-header-social:hover,
.lbb-header-social:focus-visible,
.lbb-header-mobile-action:hover,
.lbb-header-mobile-action:focus-visible,
.lbb-header-menu-button:hover,
.lbb-header-menu-button:focus-visible {
    border-color: var(--lbb-header-primary);
    color: var(--lbb-header-white);
    background: var(--lbb-header-primary);
}

.lbb-header-cta,
.lbb-header-mobile-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--lbb-header-primary);
    border-radius: 6px;
    color: var(--lbb-header-white);
    background: var(--lbb-header-primary);
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lbb-header-cta:hover,
.lbb-header-cta:focus-visible,
.lbb-header-mobile-cta:hover,
.lbb-header-mobile-cta:focus-visible {
    border-color: var(--lbb-header-deep);
    color: var(--lbb-header-white);
    background: var(--lbb-header-deep);
    transform: translateY(-2px);
}

.lbb-header-mobile-tools,
.lbb-header-mobile-panel,
.lbb-header-mobile-backdrop {
    display: none;
}

@media (max-width: 1120px) {
    .lbb-header-nav-inner {
        grid-template-columns: 170px 1fr auto;
        gap: 14px;
    }

    .lbb-header-brand {
        width: 165px;
    }

    .lbb-header-link,
    .lbb-header-dropdown > summary {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 0.9rem;
    }

    .lbb-header-social {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .lbb-header-topbar,
    .lbb-header-desktop-nav,
    .lbb-header-actions {
        display: none;
    }

    .lbb-header-nav-inner {
        display: flex;
        width: min(calc(100% - 32px), 720px);
        min-height: 70px;
        justify-content: space-between;
        gap: 16px;
    }

    .lbb-site-header.is-scrolled .lbb-header-nav-inner {
        min-height: 64px;
    }

    .lbb-header-brand {
        width: min(175px, 48vw);
    }

    .lbb-header-brand img {
        height: 46px;
    }

    .lbb-header-mobile-tools {
        display: flex;
        gap: 8px;
    }

    .lbb-header-menu-button i {
        font-size: 1.35rem;
    }

    .lbb-header-mobile-backdrop {
        position: fixed;
        z-index: -1;
        inset: 70px 0 0;
        display: block;
        background: rgba(3, 27, 78, 0.34);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .lbb-header-mobile-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        max-height: 0;
        overflow: auto;
        border-top: 1px solid var(--lbb-header-line);
        background: var(--lbb-header-white);
        box-shadow: 0 18px 34px rgba(3, 27, 78, 0.12);
        opacity: 0;
        pointer-events: none;
        transition: max-height 280ms ease, opacity 180ms ease;
    }

    body.lbb-mobile-menu-open .lbb-header-mobile-panel {
        max-height: calc(100vh - 70px);
        opacity: 1;
        pointer-events: auto;
    }

    body.lbb-mobile-menu-open .lbb-header-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .lbb-header-mobile-inner {
        width: min(calc(100% - 32px), 720px);
        padding: 16px 0 24px;
    }

    .lbb-header-mobile-link,
    .lbb-header-mobile-dropdown > summary {
        display: flex;
        min-height: 50px;
        padding: 0 4px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e7eff4;
        color: #23465d;
        font-weight: 700;
        list-style: none;
    }

    .lbb-header-mobile-link.is-active,
    .lbb-header-mobile-dropdown.is-active > summary {
        color: var(--lbb-header-primary);
    }

    .lbb-header-mobile-dropdown[open] > summary i {
        transform: rotate(180deg);
    }

    .lbb-header-mobile-submenu {
        display: grid;
        padding: 8px 0 10px 14px;
        border-bottom: 1px solid #e7eff4;
        grid-template-columns: 1fr 1fr;
    }

    .lbb-header-mobile-submenu a {
        min-height: 42px;
        padding: 10px 8px;
        color: var(--lbb-header-muted);
        font-size: 0.9rem;
    }

    .lbb-header-mobile-contact {
        display: grid;
        margin: 18px 0;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }

    .lbb-header-mobile-contact a {
        display: flex;
        min-width: 0;
        padding: 12px;
        align-items: center;
        gap: 9px;
        border: 1px solid var(--lbb-header-line);
        border-radius: 6px;
        color: var(--lbb-header-primary);
        font-size: 0.84rem;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .lbb-header-mobile-cta {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lbb-header-brand {
        width: min(148px, 43vw);
    }

    .lbb-header-mobile-action,
    .lbb-header-menu-button {
        width: 40px;
        height: 40px;
    }

    .lbb-header-brand-text {
        font-size: 0.95rem;
    }

    .lbb-header-mobile-contact,
    .lbb-header-mobile-submenu {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbb-site-header *,
    .lbb-site-header *::before,
    .lbb-site-header *::after {
        transition-duration: 0.01ms !important;
    }
}
