/**
 * Latin LA - Global Header.
 * Alcance: Header Global creado con Penci Header Builder.
 */

/* Franja principal: marca, redes y búsqueda. */
#pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-midbar {
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
}

#pcbdhd_header-global-latin-la .pc-logo-desktop img {
    display: block;
    width: clamp(7.5rem, 10vw, 10rem);
    max-width: 100%;
    height: auto;
}

#pcbdhd_header-global-latin-la .header-social .inner-header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pcbdhd_header-global-latin-la .main-builder-header .header-social .inner-header-social a,
#pcbdhd_header-global-latin-la .main-builder-header .penci-top-search > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    border: 1px solid #151515 !important;
    border-radius: 50%;
    background: #fff !important;
    color: #151515 !important;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

#pcbdhd_header-global-latin-la .main-builder-header .penci-top-search {
    margin-left: 0.6rem !important;
}

#pcbdhd_header-global-latin-la .main-builder-header .header-social .inner-header-social a:hover,
#pcbdhd_header-global-latin-la .main-builder-header .header-social .inner-header-social a:focus-visible,
#pcbdhd_header-global-latin-la .main-builder-header .penci-top-search > a:hover,
#pcbdhd_header-global-latin-la .main-builder-header .penci-top-search > a:focus-visible {
    border-color: #151515 !important;
    background: #ffd34e !important;
    color: #151515 !important;
    transform: translateY(-2px);
}

/* Navegación: nueve secciones reales de WordPress en una sola línea. */
#pcbdhd_header-global-latin-la .lla-header-nav {
    width: 100%;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li {
    flex: 0 0 auto;
    margin: 0 clamp(0.5rem, 0.85vw, 0.8rem) 0 0 !important;
    padding: 0 !important;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li:last-child {
    margin-right: 0 !important;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a {
    position: relative;
    color: #151515 !important;
    font-family: var(--lla-font-subtitle) !important;
    font-size: clamp(0.72rem, 0.94vw, 0.84rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a:hover,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a:focus-visible,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > .current-menu-item > a,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > .current-menu-ancestor > a {
    color: #151515 !important;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a::after {
    position: absolute;
    right: 0;
    bottom: -0.34rem;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: #ffd34e;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a:hover::after,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a:focus-visible::after,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > .current-menu-item > a::after,
#pcbdhd_header-global-latin-la .lla-header-nav > ul > .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Navegación normal: más aire y separadores, sin el marco de Soledad. */
#pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar {
    padding: 0.72rem 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

#pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar .lla-header-nav > ul > li {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
}

#pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar .lla-header-nav > ul > li:not(:last-child)::after {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 0.95rem;
    margin: 0 clamp(0.25rem, 0.45vw, 0.4rem);
    background: #d8d5cc;
    content: "";
}

#pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar .lla-header-nav > ul > li > a {
    font-size: clamp(0.72rem, 0.94vw, 0.84rem) !important;
}

/* Sticky desktop: conserva las nueve secciones sin invadir el logo. */
#pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop.sticky-apply {
    border-bottom: 1px solid rgba(21, 21, 21, 0.06) !important;
    background: #fff !important;
    box-shadow: 0 0.55rem 1.5rem rgba(21, 21, 21, 0.1) !important;
}

@media (min-width: 1101px) {
    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_row {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_left {
        flex: 0 0 6.75rem !important;
        width: 6.75rem !important;
        min-width: 6.75rem;
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .pc-logo-desktop img {
        width: 5.6rem !important;
        max-height: 3.25rem;
        object-fit: contain;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_center {
        flex: 1 1 auto !important;
        min-width: 0;
        padding-right: 0.25rem !important;
        padding-left: 0.25rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_right {
        flex: 0 0 2.75rem !important;
        width: 2.75rem !important;
        min-width: 2.75rem;
        padding-right: 0.35rem !important;
        padding-left: 0.35rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li {
        display: flex !important;
        align-items: center;
        margin-right: 0 !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li:not(:last-child)::after {
        display: block;
        flex: 0 0 1px;
        width: 1px;
        height: 0.8rem;
        margin: 0 clamp(0.36rem, 0.58vw, 0.52rem);
        background: rgba(21, 21, 21, 0.18);
        content: "";
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li > a {
        font-size: 0.69rem !important;
        letter-spacing: 0 !important;
    }
}

@media (min-width: 961px) and (max-width: 1100px) {
    #pcbdhd_header-global-latin-la .lla-header-nav > ul > li {
        margin-right: 0.4rem !important;
    }

    #pcbdhd_header-global-latin-la .lla-header-nav > ul > li > a {
        font-size: 0.65rem !important;
    }

    #pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar .lla-header-nav > ul > li:not(:last-child)::after {
        margin-right: 0.25rem;
        margin-left: 0.25rem;
    }

    #pcbdhd_header-global-latin-la .main-builder-header .penci-desktop-bottombar .lla-header-nav > ul > li > a {
        font-size: 0.65rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_left {
        flex: 0 0 5.75rem !important;
        width: 5.75rem !important;
        min-width: 5.75rem;
        padding-right: 0.35rem !important;
        padding-left: 0.35rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .pc-logo-desktop img {
        width: 4.9rem !important;
        max-height: 3rem;
        object-fit: contain;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_center {
        min-width: 0;
        padding-right: 0.15rem !important;
        padding-left: 0.15rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .penci_nav_right {
        flex: 0 0 2.25rem !important;
        width: 2.25rem !important;
        min-width: 2.25rem;
        padding-right: 0.2rem !important;
        padding-left: 0.2rem !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li {
        display: flex !important;
        align-items: center;
        margin-right: 0 !important;
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li:not(:last-child)::after {
        display: block;
        flex: 0 0 1px;
        width: 1px;
        height: 0.72rem;
        margin: 0 0.24rem;
        background: rgba(21, 21, 21, 0.16);
        content: "";
    }

    #pcbdhd_header-global-latin-la .penci_builder_sticky_header_desktop .lla-header-nav > ul > li > a {
        font-size: 0.62rem !important;
        letter-spacing: 0 !important;
    }
}

/* Base visual móvil; el contenido continúa en manos del builder. */
@media (max-width: 960px) {
    #pcbdhd_header-global-latin-la .penci_navbar_mobile.mobile-sticky {
        border-bottom: 1px solid rgba(21, 21, 21, 0.06) !important;
        background: #fff !important;
        box-shadow: 0 0.5rem 1.35rem rgba(21, 21, 21, 0.11) !important;
    }

    #pcbdhd_header-global-latin-la .penci_navbar_mobile .penci_mobile_midbar {
        background: #fff !important;
        border-bottom: 0 !important;
    }

    #pcbdhd_header-global-latin-la .pb-logo-mobile img {
        display: block;
        width: 6rem;
        max-width: 100%;
        height: auto;
        max-height: 2.75rem;
        object-fit: contain;
    }

    #penci_off_canvas .menu-hgb-main > li > a {
        color: #151515 !important;
        font-family: var(--lla-font-subtitle) !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        letter-spacing: 0.01em !important;
        text-transform: uppercase;
    }

    #penci_off_canvas .menu-hgb-main > .current-menu-item > a,
    #penci_off_canvas .menu-hgb-main > .current-menu-ancestor > a,
    #penci_off_canvas .menu-hgb-main > li > a:hover,
    #penci_off_canvas .menu-hgb-main > li > a:focus-visible {
        background: rgba(255, 214, 90, 0.24) !important;
        color: #151515 !important;
        box-shadow: inset 4px 0 0 #ffd34e;
    }

    #penci_off_canvas .pc-searchform input,
    #penci_off_canvas .pc-searchform button {
        font-family: "avant-book", "ITC Avant Garde", sans-serif !important;
    }
}
