@charset "UTF-8";
/* Navbar — Bajo Nalón Tema WP */

/* ══════════════════════════════════════════
   BASE: Navbar flotante + Pills
══════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 1rem; left: 0; right: 0;
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin-inline: auto;
    /* z-navbar (1000) garantiza que la navbar quede sobre cualquier section/hero
       de Elementor desde el primer momento, sin depender de body.navbar-active. */
    z-index: var(--bn-z-navbar);
    transition: background-color .4s ease, backdrop-filter .4s ease,
                -webkit-backdrop-filter .4s ease, box-shadow .4s ease,
                border-color .4s ease;
}
@media (min-width: 768px) { #navbar { top: 2rem; } }
body.admin-bar #navbar { top: calc(1rem + 32px); }
@media (min-width: 768px) { body.admin-bar #navbar { top: calc(2rem + 32px); } }
body.admin-bar.navbar-active #navbar {z-index: 2000 !important; top: 32px;}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-pill {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--bn-radius-pill);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.05);
    height: 56px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: all .3s;
}

/* Logo pill */
.logo-pill {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    height: 96px;
    padding: 0;
    transition: all .4s ease-out;
    display: grid;
    align-items: center;
    justify-items: start;
}
@media (min-width: 1024px) { .logo-pill { justify-items: start; padding: 0; } }
.logo-pill img { height: 64px; width: auto; }
@media (min-width: 768px) { .logo-pill img { height: 80px; } }
.logo-pill img { transition: height .4s ease; }
.logo-white, .logo-color { grid-area: 1 / 1; transition: opacity .4s ease; }
.logo-color { opacity: 0; }
.logo-white { opacity: 1; }

/* Nav pill */
#navbar-links {
    overflow: visible;
    padding: 0 6px;
}
#navbar-links .bn-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    list-style: none;
    margin: 0; padding: 0;
    overflow: visible;
}

/* Social pill */
#navbar-social {
    padding: 0 6px;
    gap: 4px;
}
.social-link {
    width: 40px; height: 40px;
    border-radius: var(--bn-radius-pill);
    display: flex; align-items: center; justify-content: center;
    color: var(--bn-color-white);
    transition: all .2s;
}
.social-link:hover { background: rgba(255,255,255,.2); color: var(--e-global-color-primary); }
.social-icon { width: 16px; height: 16px; fill: currentColor; }

/* Language pill */
#navbar-language {
    position: relative;
    min-width: 184px;
    padding: 0 8px 0 10px;
    overflow: visible;
    box-shadow:
        0 24px 44px -28px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}
.bn-language-switcher {
    transform: translateY(0);
    transition:
        background-color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}
.bn-language-switcher:hover { transform: translateY(-1px); }
.bn-language-trigger {
    width: 100%;
    min-height: 56px;
    padding: 7px 6px 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.bn-language-trigger__orb {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bn-color-white);
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 48%),
        linear-gradient(135deg, color-mix(in srgb, var(--e-global-color-primary) 82%, white) 0%, color-mix(in srgb, var(--bn-color-yellow) 78%, var(--e-global-color-primary)) 100%);
    box-shadow:
        0 16px 28px -18px color-mix(in srgb, var(--e-global-color-primary) 75%, transparent),
        inset 0 1px 0 rgba(255,255,255,.35);
}
.bn-language-trigger__orb svg { width: 18px; height: 18px; }
.bn-language-trigger__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}
.bn-language-trigger__eyebrow,
.bn-language-menu__eyebrow,
.bn-mobile-language__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .7;
}
.bn-language-trigger__value,
.bn-language-trigger__abbr {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bn-language-trigger__abbr { display: none; }
.bn-language-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
}
.bn-language-switcher.is-open .bn-language-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.bn-language-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: min(360px, calc(100vw - 2 * var(--bn-container-pad)));
    padding: 16px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.28);
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 32px 80px -40px rgba(0, 24, 34, .65),
        0 12px 24px -16px rgba(0, 34, 46, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    transition: opacity .2s ease, visibility .2s ease, transform .25s ease;
    z-index: calc(var(--bn-z-dropdown) + 5);
}
.bn-language-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 28px;
    width: 18px;
    height: 18px;
    border-top: 1px solid rgba(255,255,255,.34);
    border-left: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.96);
    transform: rotate(45deg);
}
.bn-language-switcher.is-open .bn-language-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.bn-language-menu__header,
.bn-mobile-language__intro { margin-bottom: 14px; }
.bn-language-menu__header p,
.bn-mobile-language__intro p {
    margin-top: 6px;
    color: var(--bn-color-text-strong);
    font-size: 13px;
    line-height: 1.45;
}
.bn-language-grid,
.bn-mobile-language__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bn-language-option { position: relative; }
.bn-language-option__code {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: var(--bn-radius-pill);
    background: rgba(0, 34, 46, .06);
    color: var(--bn-color-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    transition: all var(--bn-dur-fast);
}
.bn-language-option > a {
    min-height: 72px;
    padding: 14px 50px 14px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 34, 46, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,251,.92) 100%);
    color: var(--e-global-color-text);
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 18px 38px -34px rgba(0, 34, 46, .8);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        color .2s ease;
}
.bn-language-option > a:hover,
.bn-language-option > a:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--e-global-color-primary) 28%, rgba(0,34,46,.08));
    box-shadow:
        0 22px 40px -32px color-mix(in srgb, var(--e-global-color-primary) 55%, transparent),
        inset 0 1px 0 rgba(255,255,255,.78);
    color: var(--e-global-color-primary);
}
.bn-language-option > a img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
}
.bn-language-option > a span {
    display: block;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.bn-language-option.is-current > a {
    border-color: color-mix(in srgb, var(--e-global-color-primary) 42%, white);
    background: linear-gradient(135deg, color-mix(in srgb, var(--e-global-color-primary) 10%, white) 0%, rgba(255,255,255,.98) 100%);
    box-shadow:
        0 24px 42px -34px color-mix(in srgb, var(--e-global-color-primary) 60%, transparent),
        inset 0 1px 0 rgba(255,255,255,.86);
}
.bn-language-option.is-current > a span { color: var(--e-global-color-primary); }
.bn-language-option.is-current .bn-language-option__code {
    background: var(--e-global-color-primary);
    color: var(--bn-color-white);
    box-shadow: 0 12px 20px -16px color-mix(in srgb, var(--e-global-color-primary) 78%, transparent);
}

/* Pills frosted text */
#navbar-links a, #navbar-links button,
#navbar-social a,
#navbar-language { color: var(--bn-color-white); transition: color .25s, background-color .25s; }
#navbar-links button:hover { background: rgba(255,255,255,.2); color: var(--bn-color-text-muted); }

/* ══════════════════════════════════════════
   NAVBAR ACTIVE (scroll > 80px)
══════════════════════════════════════════ */
body.navbar-active #navbar {
    top: 0;
    /* Resetear el width: min(...) heredado del estado base para ocupar todo el viewport */
    width: 100vw;
    max-width: none;
    padding: .5rem 0;
    margin: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border-bottom: 1px solid var(--bn-color-border-soft);
}
body.navbar-active .navbar-inner {
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin-inline: auto;
}

body.navbar-active .navbar-pill {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.navbar-active .logo-pill { height: 56px; padding: 0; }
body.navbar-active .logo-pill img { height: 40px; }
body.navbar-active .logo-white { opacity: 0; }
body.navbar-active .logo-color { opacity: 1; }

body.navbar-active #navbar-links button:not(.is-active) { color: var(--bn-color-text-muted); }
body.navbar-active #navbar-links button:not(.is-active):hover { color: var(--bn-color-surface-dark); background: var(--bn-color-bg-soft); }

body.navbar-active #navbar-social {
    background: var(--e-global-color-secondary); border-color: var(--e-global-color-secondary);
    height: 40px; padding: 0 4px;
}
body.navbar-active .social-link { width: 32px; height: 32px; color: rgba(255,255,255,.85); }
body.navbar-active .social-link:hover { color: var(--bn-color-yellow); background: rgba(255,255,255,.12); }
body.navbar-active #navbar-language,
body.header-type-internal #navbar-language {
    min-width: 168px;
    padding: 0 6px 0 8px;
    border-color: rgba(0,34,46,.06);
    background: rgba(0, 34, 46, .03);
    box-shadow: none;
}
body.navbar-active .bn-language-trigger,
body.header-type-internal .bn-language-trigger {
    min-height: 44px;
    color: var(--e-global-color-text);
}
body.navbar-active .bn-language-trigger__eyebrow,
body.header-type-internal .bn-language-trigger__eyebrow {
    opacity: .55;
}
body.navbar-active .bn-language-trigger__orb,
body.header-type-internal .bn-language-trigger__orb {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}
body.navbar-active .bn-language-menu,
body.header-type-internal .bn-language-menu {
    border-color: rgba(0,34,46,.08);
    box-shadow:
        0 36px 70px -42px rgba(0, 34, 46, .4),
        0 16px 34px -24px rgba(0, 34, 46, .2);
}

/* Pills emerge on scroll */
#navbar-links, #navbar-social {
    transform-origin: center;
    opacity: 0; transform: scale(.7);
    pointer-events: none;
    transition: transform .5s var(--bn-ease-bounce) .1s, opacity var(--bn-dur-slow) ease-out .15s;
}
body.navbar-active #navbar-links,
body.navbar-active #navbar-social,
body.header-type-internal #navbar-links,
body.header-type-internal #navbar-social {
    opacity: 1; transform: scale(1); pointer-events: auto;
}

/* ══════════════════════════════════════════
   DROPDOWN MENUS
══════════════════════════════════════════ */
.nav-item { position: relative; }

.nav-trigger {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border-radius: var(--bn-radius-pill);
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .075em;
    white-space: nowrap;
    background: none; border: none; cursor: pointer;
    color: inherit;
    transition: all var(--bn-dur-base);
}
.nav-trigger:hover { background: rgba(255,255,255,.2); }
.nav-trigger.is-active {
    background: var(--e-global-color-primary); color: var(--bn-color-white);
    border: 1px solid var(--e-global-color-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.nav-trigger.is-active:hover { background: var(--e-global-color-accent); }

.nav-dropdown {
    position: absolute; top: 100%; left: 50%;
    margin-top: 24px; width: 220px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bn-color-border-soft);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
    padding: 6px; z-index: var(--bn-z-dropdown);
    transform-origin: top center;
    transform: translateX(-50%) scale(.95) translateY(-15px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease .15s, transform .2s ease .15s, visibility .2s ease .15s;
}
.nav-dropdown::before {
    content: ''; position: absolute;
    top: -30px; left: -15px; right: -15px; height: 30px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) scale(1) translateY(0);
    transition: opacity .3s ease 0s, transform var(--bn-dur-slow) var(--bn-ease-bounce) 0s, visibility .3s ease 0s;
}
/* !important sobreescribe el color heredado del <a> de WP cuando el menú es nativo */
.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 600;
    color: var(--e-global-color-text) !important; text-decoration: none;
    transition: background var(--bn-dur-fast), color var(--bn-dur-fast);
    white-space: nowrap;
}
.nav-dropdown a:hover { background: #fff7f3 !important; color: var(--e-global-color-primary) !important; }
.nav-dropdown .dot {
    width: 6px; height: 6px; border-radius: var(--bn-radius-pill);
    background: var(--bn-color-border-soft); flex-shrink: 0; transition: background var(--bn-dur-fast);
}
.nav-dropdown a:hover .dot { background: var(--e-global-color-primary); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--bn-color-border-soft); margin: 4px 8px; }

/* Chevron */
.nav-chevron { width: 12px; height: 12px; transition: transform .2s ease; opacity: .5; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown right-aligned (last item) */
.nav-dropdown-right {
    left: auto !important; right: 0 !important;
    transform: scale(.95) translateY(-15px) !important;
    transform-origin: top right;
}
.nav-item:hover .nav-dropdown-right,
.nav-item:focus-within .nav-dropdown-right {
    transform: scale(1) translateY(0) !important;
}
@media (max-width: 1100px) { .nav-dropdown-right { right: -1rem !important; } }

/* Icon hover animations */
.nav-item button svg:first-child { transition: transform .3s var(--bn-ease-bounce); }
.nav-item:nth-child(1):hover button svg:first-child { transform: rotate(-20deg); }
.nav-item:nth-child(2):hover button svg:first-child { transform: rotate(180deg); }
.nav-item:nth-child(3):hover button svg:first-child { transform: rotate(15deg); }
.nav-item:nth-child(4):hover button svg:first-child { animation: icon-wave .5s ease; }
@keyframes icon-wave {
    0%, 100% { transform: translateY(0) rotate(0); }
    25%  { transform: translateY(-3px) rotate(-8deg); }
    75%  { transform: translateY(2px) rotate(5deg); }
}
.nav-item:nth-child(5):hover button svg:first-child { transform: scale(1.2) rotate(5deg); }

/* ══════════════════════════════════════════
   SOCIAL PILL COLLAPSE (1024–1170px)
   !important del bloque: legítimos — sobreescriben el comportamiento
   por defecto del social-pill cuando entra en modo colapsado.
══════════════════════════════════════════ */
#social-toggle { display: none; }
#social-expand { display: none; }
@media (max-width: 1050px) and (min-width: 1024px) {
    .nav-trigger { padding: 0 10px; font-size: 10px; gap: 5px; }
    .nav-trigger svg:first-child { width: 14px; height: 14px; }
    #navbar-language { min-width: 154px; }
    .bn-language-trigger { gap: 10px; }
    .bn-language-trigger__value { font-size: 13px; }
}
@media (max-width: 1170px) and (min-width: 768px) {
    #navbar-social > .social-link { display: none !important; }
    #navbar-social { width: 40px !important; height: 40px !important; padding: 0 !important; gap: 0 !important;
        align-items: center !important; justify-content: center !important;
        position: relative !important; overflow: visible !important; }
    #social-toggle {
        display: flex !important; align-items: center; justify-content: center;
        width: 100% !important; height: 100% !important;
        border: none; cursor: pointer; background: transparent; color: var(--bn-color-white);
        padding: 0 !important; margin: 0 !important; border-radius: var(--bn-radius-pill);
        transition: transform .3s ease, background var(--bn-dur-fast), color var(--bn-dur-fast);
    }
    #social-toggle:hover { background: rgba(255,255,255,.2); color: var(--e-global-color-primary); }
    body.navbar-active #social-toggle:hover { background: rgba(255,255,255,.12); color: var(--bn-color-yellow); }
    #social-expand {
        display: flex !important; flex-direction: column !important; align-items: center !important;
        gap: 4px !important; position: absolute !important;
        top: calc(100% + 24px) !important; right: 0 !important; left: auto !important;
        width: 40px !important; height: auto !important; padding: 4px 0 !important;
        background: rgba(255,255,255,.15) !important;
        backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255,255,255,.3) !important;
        border-radius: var(--bn-radius-pill) !important; box-shadow: 0 20px 25px -5px rgba(0,0,0,.05) !important;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateY(-20px);
        transition: opacity .2s ease, transform var(--bn-dur-base) ease, visibility .2s; z-index: var(--bn-z-dropdown);
    }
    body.navbar-active #social-expand { background: var(--e-global-color-secondary) !important; border-color: var(--e-global-color-secondary) !important; }
    #navbar-social.social-open #social-expand {
        opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    #social-expand a {
        display: flex !important; align-items: center !important; justify-content: center !important;
        width: 32px !important; height: 32px !important; border-radius: var(--bn-radius-pill) !important;
        color: var(--bn-color-white) !important; transition: all var(--bn-dur-fast);
    }
    #social-expand a:hover { background: rgba(255,255,255,.2) !important; color: var(--e-global-color-primary) !important; }
    body.navbar-active #social-expand a { color: rgba(255,255,255,.85) !important; }
    body.navbar-active #social-expand a:hover { color: var(--bn-color-yellow) !important; background: rgba(255,255,255,.12) !important; }
    #social-expand svg { width: 16px !important; height: 16px !important; fill: currentColor !important; }
    #social-toggle { transition: transform .3s ease; }
    #navbar-social.social-open #social-toggle { transform: rotate(180deg); }
    body.navbar-active #navbar-social { background: var(--e-global-color-secondary) !important; border-color: var(--e-global-color-secondary) !important; }
    body.navbar-active #social-toggle { color: rgba(255,255,255,.85) !important; }
    #navbar-language { min-width: 152px; }
    .bn-language-trigger__eyebrow { display: none; }
    .bn-language-trigger__value { font-size: 13px; }
}

/* ══════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════ */
@media (max-width: 1023px) {
    #navbar-links, #navbar-social { display: none !important; }
    #navbar-language {
        min-width: auto;
        width: auto;
        padding: 0 4px 0 6px;
        margin-left: auto;
        margin-right: 8px;
    }
    .bn-language-trigger {
        min-height: 48px;
        padding: 6px 4px 6px 0;
        gap: 9px;
    }
    .bn-language-trigger__orb {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
    .bn-language-trigger__eyebrow,
    .bn-language-trigger__value {
        display: none;
    }
    .bn-language-trigger__abbr {
        display: block;
        font-size: 12px;
        letter-spacing: .08em;
    }
    .bn-language-menu {
        position: fixed;
        top: 88px;
        left: var(--bn-container-pad);
        right: var(--bn-container-pad);
        width: auto;
        transform-origin: top center;
    }
    .admin-bar .bn-language-menu {
        top: calc(88px + 32px);
    }
    .bn-language-menu::before {
        right: 80px;
    }
}

/* Burger */
.burger-label { display: none; }
#burger-check { display: none; }
@media (max-width: 1023px) {
    .burger-label {
        display: flex; flex-direction: column; justify-content: center;
        width: 48px; height: 48px; padding: 10px;
        border-radius: var(--bn-radius-pill); cursor: pointer;
        background: rgba(255,255,255,.15);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,.3);
        transition: background .3s, border-color .3s;
    }
    body.navbar-active .burger-label { background: var(--bn-color-border-soft); border-color: transparent; }
    .burger-label span {
        display: block; background: var(--bn-color-white); border-radius: 4px;
        height: 2px; margin: 2px 0;
        transition: .4s cubic-bezier(.68,-.6,.32,1.6); transform-origin: center;
    }
    body.navbar-active .burger-label span { background: var(--e-global-color-text); }
    .burger-label span:nth-of-type(1) { width: 50%; }
    .burger-label span:nth-of-type(2) { width: 100%; }
    .burger-label span:nth-of-type(3) { width: 75%; }
    #burger-check:checked ~ span:nth-of-type(1) { width: 100%; transform: translateY(6px) rotate(45deg); }
    #burger-check:checked ~ span:nth-of-type(2) { transform: scaleX(0); opacity: 0; }
    #burger-check:checked ~ span:nth-of-type(3) { width: 100%; transform: translateY(-6px) rotate(-45deg); }
}

/* Mobile panel */
#mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1100; /* sobre navbar (1000) y map widget (≤950) */
    background: rgba(10,37,49,.80);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; flex-direction: column;
    padding: 9rem 0 0;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-100%);
    transition: transform var(--bn-dur-slow) cubic-bezier(.4,0,.2,1), visibility var(--bn-dur-slow);
    visibility: hidden;
}
#mobile-menu .mobile-nav-item,
#mobile-menu .bn-mobile-language,
#mobile-menu .mobile-social {
    opacity: 0; transform: translateY(-10px);
    transition: opacity .1s ease, transform .1s ease;
}
#mobile-menu.is-open { transform: translateY(0); visibility: visible; }
#mobile-menu.is-open .mobile-nav-item,
#mobile-menu.is-open .bn-mobile-language,
#mobile-menu.is-open .mobile-social {
    opacity: 1; transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(1) { transition-delay: .25s; }
#mobile-menu.is-open .mobile-nav-item:nth-child(2) { transition-delay: .32s; }
#mobile-menu.is-open .mobile-nav-item:nth-child(3) { transition-delay: .39s; }
#mobile-menu.is-open .mobile-nav-item:nth-child(4) { transition-delay: .46s; }
#mobile-menu.is-open .mobile-nav-item:nth-child(5) { transition-delay: .53s; }
#mobile-menu.is-open .bn-mobile-language { transition-delay: .58s; }
#mobile-menu.is-open .mobile-social { transition-delay: .66s; }

.mobile-menu-inner {
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin-inline: auto;
}

.bn-mobile-language {
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin: 1.25rem auto 0;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.05) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 28px 48px -40px rgba(0, 0, 0, .7);
}
.bn-mobile-language__intro p { color: rgba(255,255,255,.74); }
.bn-language-option--panel > a {
    min-height: 68px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.1);
    color: var(--bn-color-white);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bn-language-option--panel > a:hover,
.bn-language-option--panel > a:focus-visible {
    color: var(--bn-color-white);
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
}
.bn-language-option--panel .bn-language-option__code {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
}
.bn-language-option--panel.is-current > a {
    background: linear-gradient(135deg, color-mix(in srgb, var(--e-global-color-primary) 38%, rgba(255,255,255,.12)) 0%, rgba(255,255,255,.14) 100%);
    border-color: rgba(255,255,255,.18);
}
.bn-language-option--panel.is-current > a span { color: var(--bn-color-white); }
.bn-language-option--panel.is-current .bn-language-option__code {
    background: var(--bn-color-white);
    color: var(--e-global-color-primary);
}

/* Language switcher - simplified minimal variant */
#navbar-language {
    min-width: 142px;
    padding: 0 6px;
    box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .28);
}
.bn-language-switcher:hover { transform: none; }
.bn-language-trigger {
    min-height: 42px;
    padding: 0 6px;
    gap: 10px;
}
.bn-language-trigger__flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -7px rgba(0, 0, 0, .45);
}
.bn-language-trigger__value,
.bn-language-trigger__abbr {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bn-language-trigger__abbr { display: none; }
.bn-language-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
}
.bn-language-menu {
    top: calc(100% + 12px);
    width: 190px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 24px 40px -28px rgba(0, 24, 34, .35);
}
.bn-language-menu::before {
    top: -7px;
    right: 22px;
    width: 12px;
    height: 12px;
}
.bn-language-menu__header,
.bn-mobile-language__intro { display: none; }
.bn-language-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bn-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 14px;
}
.bn-language-option__code { display: none; }
.bn-language-option__flag {
    width: 18px;
    height: 18px;
    margin-left: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.bn-language-option__flag img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}
.bn-language-option > a {
    min-height: 40px;
    width: 100%;
    padding: 10px 12px 10px 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: var(--e-global-color-text);
    gap: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bn-language-option > a:hover,
.bn-language-option > a:focus-visible {
    transform: none;
    border-color: transparent;
    background: rgba(0, 34, 46, .05);
    box-shadow: none;
    color: var(--e-global-color-primary);
}
.bn-language-option > a img { display: none; }
.bn-language-option > a span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bn-language-option.is-current {
    background: rgba(231, 79, 8, .08);
}
.bn-language-option.is-current > a {
    background: transparent;
    color: var(--e-global-color-primary);
    box-shadow: none;
}

.bn-mobile-language {
    margin: 1rem auto 0;
    padding: .85rem;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    box-shadow: none;
}
.bn-mobile-language__head {
    margin-bottom: .55rem;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.bn-language-list--mobile .bn-language-option {
    border-radius: 12px;
}
.bn-language-option--panel {
    background: transparent;
}
.bn-language-option--panel > a {
    min-height: 42px;
    padding-right: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.bn-language-option--panel > a:hover,
.bn-language-option--panel > a:focus-visible {
    background: rgba(255,255,255,.08);
    border: 0;
    box-shadow: none;
}
.bn-language-option--panel .bn-language-option__flag {
    margin-left: 10px;
}
.bn-language-option--panel.is-current {
    background: rgba(255,255,255,.12);
}
.bn-language-option--panel.is-current > a,
.bn-language-option--panel.is-current > a span {
    color: var(--bn-color-white);
}

/* !important: bloquea scroll del body cuando menú abierto — necesario, no es defensivo */
html.menu-open, body.menu-open { overflow: hidden !important; }
.admin-bar #mobile-menu { padding-top: calc(9rem + 32px); }

/* Mobile nav items */
.mobile-nav-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav-trigger {
    display: flex; align-items: center; gap: 1rem;
    width: 100%; padding: 1.125rem 0;
    background: none; border: none; cursor: pointer;
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 1rem; font-weight: 600;
    text-align: left; color: var(--bn-color-white);
}
.mobile-nav-trigger .trigger-label { position: relative; display: inline-block; }
.mobile-nav-trigger .trigger-label-base { color: rgba(255,255,255,.85); transition: color .5s ease; }
.mobile-nav-trigger .trigger-label-fill {
    position: absolute; top: 0; left: 0; color: var(--e-global-color-primary);
    clip-path: inset(0 100% 0 0); transition: clip-path .5s ease;
}
.mobile-nav-item.is-expanded .trigger-label-base { color: rgba(255,255,255,.4); }
.mobile-nav-item.is-expanded .trigger-label-fill { clip-path: inset(0 0 0 0); }
.mobile-nav-trigger.is-active .trigger-label-fill { clip-path: inset(0 100% 0 0); }
.mobile-nav-trigger.is-active .trigger-label-base { color: rgba(255,255,255,.85); }
.mobile-nav-item.is-expanded .mobile-nav-trigger.is-active .trigger-label-fill { clip-path: inset(0 0 0 0); }
.mobile-nav-item.is-expanded .mobile-nav-trigger.is-active .trigger-label-base { color: rgba(255,255,255,.4); }

/* Mobile icons + chevron */
.mobile-nav-trigger svg:first-child { width: 20px; height: 20px; opacity: .5; transition: color .5s ease, opacity .5s ease; }
.mobile-chevron { margin-left: auto; width: 16px; height: 16px; transition: transform .5s ease, color .5s ease; opacity: .4; }
.mobile-nav-item.is-expanded .mobile-nav-trigger svg:first-child,
.mobile-nav-trigger.is-active svg:first-child { color: var(--e-global-color-primary); opacity: 1; }
.mobile-nav-item.is-expanded .mobile-chevron { transform: rotate(180deg); opacity: .7; color: var(--e-global-color-primary); }

/* Accordion — CSS Grid */
.mobile-sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .5s ease; }
.mobile-nav-item.is-expanded .mobile-sub { grid-template-rows: 1fr; opacity: 1; margin-bottom: 1rem; }
.mobile-sub-overflow { overflow: hidden; }

/* Vertical line */
.mobile-sub-inner { position: relative; margin-left: 10px; padding-left: 28px; padding-bottom: 8px; }
.mobile-sub-inner::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 8px;
    width: 2px; background: var(--e-global-color-primary);
    transform-origin: top; transform: scaleY(0); transition: transform .35s ease;
}
.mobile-nav-item.is-expanded .mobile-sub-inner::before { transform: scaleY(1); transition: transform var(--bn-dur-slow) ease .1s; }

.mobile-sub a {
    display: block; padding: 8px 0;
    color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color var(--bn-dur-fast);
}
.mobile-sub a:hover { color: var(--bn-color-white); }
.mobile-sub a.is-current { color: var(--e-global-color-primary); }

/* Mobile social */
.mobile-social {
    margin-top: auto; padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: center; gap: 12px;
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin-inline: auto;
}
.mobile-social a {
    width: 44px; height: 44px; border-radius: var(--bn-radius-pill);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
    transition: all .2s;
}
.mobile-social a:hover { background: var(--e-global-color-primary); color: var(--bn-color-white); }
.mobile-social svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 639px) {
    .bn-language-grid,
    .bn-mobile-language__grid { grid-template-columns: 1fr; }
    .bn-language-menu::before { right: 38px; }
    .bn-mobile-language {
        padding: .9rem;
        border-radius: 24px;
    }
}

/* Final minimal language switcher */
.navbar-inner { position: relative; }

#navbar-language {
    position: relative;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    border-radius: var(--bn-radius-pill);
    box-shadow: 0 10px 20px -18px rgba(0, 0, 0, .28);
}

.bn-language-switcher,
.bn-language-switcher:hover {
    transform: none;
}

.bn-language-trigger {
    min-height: 42px;
    padding: 0 4px;
    gap: 10px;
}

.bn-language-trigger__flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 8px -6px rgba(0, 0, 0, .42);
}

.bn-language-trigger__value,
.bn-language-trigger__abbr {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bn-language-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
}

.bn-language-menu {
    top: calc(100% + 12px);
    width: 190px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.97);
    box-shadow: 0 22px 40px -28px rgba(0, 24, 34, .3);
}

.bn-language-menu::before {
    top: -7px;
    right: 22px;
    width: 12px;
    height: 12px;
}

.bn-language-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bn-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 14px;
}

.bn-language-option__flag {
    width: 18px;
    height: 18px;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
}

.bn-language-option__flag img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.bn-language-option > a {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px 10px 0;
    gap: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: var(--e-global-color-text);
}

.bn-language-option > a:hover,
.bn-language-option > a:focus-visible {
    transform: none;
    border-color: transparent;
    background: rgba(0, 34, 46, .05);
    box-shadow: none;
    color: var(--e-global-color-primary);
}

.bn-language-option > a img,
.bn-language-option__code,
.bn-language-menu__header,
.bn-mobile-language__intro {
    display: none;
}

.bn-language-option > a span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bn-language-option.is-current {
    background: rgba(231, 79, 8, .08);
}

.bn-language-option.is-current > a {
    color: var(--e-global-color-primary);
}

body.header-type-landing:not(.navbar-active) #navbar-language {
    display: none;
}

body.header-type-landing:not(.navbar-active) .bn-language-menu {
    left: 0;
    right: auto;
}

body.header-type-landing:not(.navbar-active) .bn-language-menu::before {
    left: 20px;
    right: auto;
}

body.navbar-active #navbar-language,
body.header-type-internal #navbar-language {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
}

body.navbar-active .bn-language-trigger,
body.header-type-internal .bn-language-trigger {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
}

body.navbar-active .bn-language-trigger__value,
body.header-type-internal .bn-language-trigger__value,
body.navbar-active .bn-language-chevron,
body.header-type-internal .bn-language-chevron {
    display: none;
}

body.navbar-active .bn-language-trigger__abbr,
body.header-type-internal .bn-language-trigger__abbr {
    display: none;
}

.bn-mobile-language {
    width: min(100% - 2 * var(--bn-container-pad), var(--bn-container-max));
    margin: 1rem auto 0;
    padding: .85rem;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
}

.bn-mobile-language__head {
    margin-bottom: .55rem;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bn-language-list--mobile .bn-language-option {
    border-radius: 12px;
}

.bn-language-option--panel {
    background: transparent;
}

.bn-language-option--panel > a {
    min-height: 42px;
    padding-right: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bn-color-white);
}

.bn-language-option--panel > a:hover,
.bn-language-option--panel > a:focus-visible {
    background: rgba(255,255,255,.08);
    color: var(--bn-color-white);
}

.bn-language-option--panel.is-current {
    background: rgba(255,255,255,.12);
}

.bn-language-option--panel.is-current > a,
.bn-language-option--panel.is-current > a span {
    color: var(--bn-color-white);
}

@media (max-width: 1023px) {
    #navbar-language {
        width: 42px;
        min-width: 42px;
        padding: 0;
        margin-left: auto;
        margin-right: 8px;
    }

    .bn-language-trigger {
        width: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
    }

    .bn-language-trigger__value,
    .bn-language-chevron {
        display: none;
    }

    .bn-language-menu {
        position: fixed;
        top: 88px;
        left: var(--bn-container-pad);
        right: auto;
        width: 176px;
    }

    .admin-bar .bn-language-menu {
        top: calc(88px + 32px);
    }

    .bn-language-menu::before {
        left: 18px;
        right: auto;
    }
}

/* ══════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════ */
.skip-to-content {
    position: absolute; top: -100px; left: 0;
    background: var(--e-global-color-primary); color: var(--bn-color-white); padding: 8px 16px;
    z-index: var(--bn-z-toast); font-weight: 600;
}
.skip-to-content:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
