/**
 * Bloques dedicados cabecera/pie (layout_*)
 */
/* display:contents evita que el wrapper acorte el "track" de position:sticky del <header>
   (sin esto la barra pegajosa/cristal no se comporta respecto al scroll de la ventana). */
.site-layout.site-layout--header {
    display: contents;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.site-layout.site-layout--footer {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

/* ——— Cabecera ——— */
.lb-header {
    --lb-accent: #A64114;
    --lb-bg: #ffffff;
    --lb-bg-scroll: #ffffff;
    --lb-bg-rgb: 255, 255, 255;
    --lb-bg-rgb-scroll: 255, 255, 255;
    --lb-logo-max-h: 60px;
    --lb-logo-max-w: 250px;
    --lb-bar-min-h: 72px;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: var(--primary-font, system-ui, sans-serif);
    transition: background 0.28s ease, backdrop-filter 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.lb-header--pos-static {
    position: relative;
    z-index: 100;
}

.lb-header--pos-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
}

.lb-header--pos-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

/* Apariencia inicial (parte superior de la página) */
.lb-header[data-lb-header]:not(.is-scrolled).lb-header--top-solid {
    background: var(--lb-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lb-header[data-lb-header]:not(.is-scrolled).lb-header--top-transparent {
    background: transparent !important;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lb-header[data-lb-header]:not(.is-scrolled).lb-header--top-glass {
    background: rgba(var(--lb-bg-rgb), 0.62) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* "Al desplazar" = igual que arriba: si JS fuerza .is-scrolled (p. ej. páginas internas), repetir la apariencia superior */
.lb-header[data-lb-header].is-scrolled.lb-header--scroll-same.lb-header--top-solid {
    background: var(--lb-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lb-header[data-lb-header].is-scrolled.lb-header--scroll-same.lb-header--top-transparent {
    background: transparent !important;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lb-header[data-lb-header].is-scrolled.lb-header--scroll-same.lb-header--top-glass {
    background: rgba(var(--lb-bg-rgb), 0.62) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Tras hacer scroll (solo si "al desplazar" ≠ igual que arriba; lo marca JS con .is-scrolled) */
.lb-header.is-scrolled.lb-header--scroll-solid {
    background: var(--lb-bg-scroll) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.lb-header.is-scrolled.lb-header--scroll-transparent {
    background: transparent !important;
    border-bottom-color: transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.lb-header.is-scrolled.lb-header--scroll-glass {
    background: rgba(var(--lb-bg-rgb-scroll), 0.62) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Cajón móvil abierto o cierre en curso: sin animación del fondo del <header> para no
   desfasarse respecto al transform del panel (apertura/cierre en un solo movimiento). */
.lb-header--mq-mobile.lb-header--m-open,
.lb-header--mq-mobile.lb-header--m-closing {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background 0s, backdrop-filter 0s, border-color 0s, box-shadow 0s, color 0s !important;
}
.lb-header--mq-mobile.lb-header--m-closing:not(.lb-header--m-open) {
    /* Al cerrar, snapshot del fondo mientras el panel se desliza (evita flash de cristal a mitad de cierre). */
    background: var(--lb-bg) !important;
}
.lb-header--mq-mobile.lb-header--m-closing:not(.lb-header--m-open).is-scrolled {
    background: var(--lb-bg-scroll) !important;
}
.lb-header--mq-mobile.lb-header--m-open.is-scrolled {
    background: var(--lb-bg-scroll) !important;
}
.lb-header--mq-mobile.lb-header--m-open:not(.is-scrolled) {
    background: var(--lb-bg) !important;
}
.lb-header--mq-mobile.lb-header--m-open:not(.is-scrolled).lb-header--nav-light .lb-header__brand-text {
    color: #111;
}
.lb-header--mq-mobile.lb-header--m-open:not(.is-scrolled).lb-header--nav-light .lb-header__menu-toggle {
    color: var(--lb-m-hamburger, #111);
}
.lb-header--mq-mobile.lb-header--m-open:not(.is-scrolled).lb-header--nav-custom .lb-header__brand-text {
    color: #1a1a1a;
}
.lb-header--mq-mobile.lb-header--m-open:not(.is-scrolled).lb-header--nav-custom .lb-header__menu-toggle {
    color: var(--lb-m-hamburger, #1a1a1a);
}

/* Texto claro sobre imagen / hero oscuro (solo tiene efecto con fondo transparente o cristal arriba) */
.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__brand-text,
.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__link {
    color: rgba(255, 255, 255, 0.92);
}

.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__subnav {
    background: rgba(20, 20, 20, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__sublink {
    color: rgba(255, 255, 255, 0.9);
}

.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__sublink:hover,
.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__sublink.is-active {
    color: #fff;
    border-left-color: var(--lb-accent);
    background: rgba(255, 255, 255, 0.06);
}

.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__link:hover,
.lb-header.lb-header--nav-light:not(.is-scrolled) .lb-header__link.is-active {
    color: #fff;
    border-bottom-color: var(--lb-accent);
}

.lb-header.lb-header--nav-light.is-scrolled .lb-header__brand-text {
    color: #111;
}

.lb-header.lb-header--nav-light.is-scrolled .lb-header__link {
    color: #1a1a1a;
}

.lb-header.lb-header--nav-light.is-scrolled .lb-header__link:hover,
.lb-header.lb-header--nav-light.is-scrolled .lb-header__link.is-active {
    color: var(--lb-accent);
    border-bottom-color: var(--lb-accent);
}

.lb-header.lb-header--nav-light.is-scrolled .lb-header__sublink {
    color: #1a1a1a;
}

.lb-header.lb-header--nav-light.is-scrolled .lb-header__sublink:hover,
.lb-header.lb-header--nav-light.is-scrolled .lb-header__sublink.is-active {
    color: var(--lb-accent);
    border-left-color: var(--lb-accent);
}

/* Color fijo opcional (arriba, sin scroll): sustituye los presets claro/oscuro */
.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__brand-text,
.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__link {
    color: var(--lb-nav-top);
}

.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__sublink {
    color: var(--lb-nav-top);
}

.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__sublink:hover,
.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__sublink.is-active {
    color: var(--lb-accent);
    border-left-color: var(--lb-accent);
}

.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__link:hover,
.lb-header.lb-header--nav-custom:not(.is-scrolled) .lb-header__link.is-active {
    color: var(--lb-accent);
    border-bottom-color: var(--lb-accent);
}

.lb-header.lb-header--nav-custom.is-scrolled .lb-header__brand-text,
.lb-header.lb-header--nav-custom.is-scrolled .lb-header__link {
    color: #1a1a1a;
}

.lb-header.lb-header--nav-custom.is-scrolled .lb-header__link:hover,
.lb-header.lb-header--nav-custom.is-scrolled .lb-header__link.is-active {
    color: var(--lb-accent);
    border-bottom-color: var(--lb-accent);
}

.lb-header.lb-header--nav-custom.is-scrolled .lb-header__sublink:hover,
.lb-header.lb-header--nav-custom.is-scrolled .lb-header__sublink.is-active {
    color: var(--lb-accent);
    border-left-color: var(--lb-accent);
}

/* Compensar cabecera fija: la altura la fija layout-header.js en --lb-fixed-header-h */
body.lb-has-fixed-header main {
    padding-top: var(--lb-fixed-header-h, 72px);
}

/* Evita scroll horizontal por secciones full-bleed (hero, sliders, etc.) */
main {
    overflow-x: clip;
}
@supports not (overflow: clip) {
    main {
        overflow-x: hidden;
    }
}

/*
 * Si el primer bloque es hero full-bleed (.me-hero--cover), el padding de main deja
 * un hueco con el fondo del body (blanco) bajo una cabecera transparente: parece barra opaca.
 * Subimos el hero para que la imagen quede detrás de la barra y re-sincronizamos el padding superior.
 */
body.lb-has-fixed-header main:has(> .me-hero--cover:first-child) {
    padding-top: 0;
}
body.lb-has-fixed-header main > .me-hero--cover:first-child {
    margin-top: calc(-1 * var(--lb-fixed-header-h, 72px));
    padding: calc(var(--lb-fixed-header-h, 72px) + clamp(6.5rem, 12vw, 8.5rem)) 1.25rem 4.5rem;
}

.lb-header__inner {
    max-width: var(--site-max-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
}

.lb-header__row--main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--lb-bar-min-h, 72px);
}

/* Logo | menú | CTA: grid para que el bloque central no se comprima a 0 con flex (enlaces “invisibles”) */
.lb-header--three_col .lb-header__row--main,
.lb-header--nav_center .lb-header__row--main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: var(--lb-bar-min-h, 72px);
}

.lb-header--three_col .lb-header__nav,
.lb-header--nav_center .lb-header__nav {
    justify-content: center;
    min-width: 0;
}

.lb-header--minimal .lb-header__row--main {
    min-height: var(--lb-bar-min-h, 72px);
}

.lb-header--minimal .lb-header__link {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.lb-header--nav_center .lb-header__nav {
    flex: 1;
    justify-content: center;
}

.lb-header--nav_center .lb-header__brand {
    flex-shrink: 0;
}

.lb-header--stacked .lb-header__row--main {
    flex-wrap: wrap;
}

.lb-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
}

.lb-header__logo-wrap {
    display: flex;
    align-items: center;
    line-height: 0;
}

.lb-header__logo-img {
    max-height: var(--lb-logo-max-h, 60px);
    max-width: var(--lb-logo-max-w, 250px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.lb-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.25rem;
}

.lb-header__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-header__nav-list--stacked {
    width: 100%;
    justify-content: center;
}

.lb-header__nav-item {
    position: relative;
    list-style: none;
}

.lb-header__subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--lb-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    z-index: 300;
}

.lb-header__has-sub:hover > .lb-header__subnav,
.lb-header__has-sub:focus-within > .lb-header__subnav {
    display: block;
}

.lb-header__subnav-item {
    position: relative;
    list-style: none;
}

.lb-header__subnav .lb-header__has-sub > .lb-header__subnav {
    top: 0;
    left: 100%;
    margin-left: 2px;
}

.lb-header__sublink {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lb-header__sublink:hover,
.lb-header__sublink.is-active {
    color: var(--lb-accent);
    border-left-color: var(--lb-accent);
    background: rgba(0, 0, 0, 0.03);
}

.lb-header__nav--stacked {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.25rem;
}

.lb-header__link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.lb-header__link:hover,
.lb-header__link.is-active {
    color: var(--lb-accent);
    border-bottom-color: var(--lb-accent);
}

.lb-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: var(--lb-cta-bg, var(--lb-accent));
    color: #fff !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.lb-header__cta:hover {
    opacity: 0.92;
}

/* Vista estrecha: clase .lb-header--mq-mobile (breakpoint = data-lb-m-bp en layout-header.js) */
.lb-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
}

.lb-header__menu-toggle:focus-visible {
    outline: 2px solid var(--lb-accent);
    outline-offset: 2px;
}

.lb-header__backdrop {
    display: none;
}

/* Barra “cerrar” del cajón: oculta en escritorio; .lb-header--mq-mobile + reglas de cajón la muestran en móvil */
.lb-header--m-drawer .lb-header__drawer-top {
    display: none;
}

.lb-header--mq-mobile .lb-header__inner {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Lista apilada (mobile_nav_mode = inline): mismo comportamiento que antes */
.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header--three_col .lb-header__row--main,
.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header--nav_center .lb-header__row--main {
    display: flex;
    flex-wrap: wrap;
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lb-header--mq-mobile .lb-header__has-sub:hover > .lb-header__subnav,
.lb-header--mq-mobile .lb-header__has-sub:focus-within > .lb-header__subnav {
    display: block !important;
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__subnav {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(166, 65, 20, 0.35);
    margin: 0 0 0 0.5rem;
    padding: 0.35rem 0 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.03);
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__subnav .lb-header__has-sub > .lb-header__subnav {
    left: auto;
    margin-left: 0;
    margin-top: 0.35rem;
    border-left-color: rgba(166, 65, 20, 0.22);
}

.lb-header--mq-mobile .lb-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.lb-header--mq-mobile .lb-header__sublink {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.45rem 0.5rem;
    font-size: 0.74rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.lb-header--mq-mobile:not(.lb-header--m-drawer) .lb-header__cta {
    margin-left: auto;
}

/* Cajón lateral + hamburguesa */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__cta--desk {
    display: none !important;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__row--main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__brand {
    flex: 0 1 calc(var(--lb-m-logo-pct, 80) * 1%);
    max-width: calc(var(--lb-m-logo-pct, 80) * 1%);
    min-width: 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__logo-img {
    max-height: var(--lb-m-bar-logo-max-h, var(--lb-logo-max-h, 60px));
    max-width: 100%;
}

/* Píldora detrás de la hamburguesa: 44px (área táctil), el % del admin ya no ancha toda la franja. */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
    z-index: 402;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    box-sizing: border-box;
    background: var(--lb-m-hamburger-bg, rgba(255, 255, 255, 0.94));
    box-shadow: var(--lb-m-hamburger-shadow, 0 1px 4px rgba(0, 0, 0, 0.2));
    border: 1px solid var(--lb-m-hamburger-border, rgba(0, 0, 0, 0.1));
    border-radius: var(--lb-m-hamburger-radius, 5px);
    color: var(--lb-m-hamburger, #1a1a1a);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.lb-header--mq-mobile.lb-header--m-drawer.lb-header--m-hbg-plain .lb-header__menu-toggle {
    background: transparent;
    box-shadow: none;
    border: none;
    color: var(--lb-m-hamburger, inherit);
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__menu-toggle:hover {
    filter: brightness(0.99);
}

/* Con el cajón abierto, la X está en el panel: ocultar hamburguesa (evita duplicar con cerrar) */
.lb-header--mq-mobile.lb-header--m-drawer.lb-header--m-open .lb-header__menu-toggle {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

/* Flex: el <nav> no debe ocupar hueco en la fila; el ancho del panel es solo position:fixed (no usar width:0 en el nav: gana por especificidad y colapsa el cajón). */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__row--main > .lb-header__nav {
    flex: 0 0 0;
    min-width: 0;
    margin: 0;
    overflow: visible;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    /* % del viewport (80–100), desde --lb-m-drawer-pct en la cabecera */
    width: calc(var(--lb-m-drawer-pct, 92) * 1vw);
    max-width: 100vw;
    min-width: min(18rem, 100vw);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0 1.15rem max(1.25rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    /* Fondo sólido en todo el panel (evita “solo la franja superior” en algunos navegadores) */
    background-color: var(--lb-m-drawer-bg, var(--lb-bg, #ffffff));
    background-image: none;
    color: var(--lb-m-drawer-text, #1a1a1a);
    box-shadow: -10px 0 32px rgba(0, 0, 0, 0.18);
    z-index: 401;
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drawer-top {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    margin: 0 -1.15rem 0.35rem;
    padding: calc(env(safe-area-inset-top, 0px) + 0.45rem) 0.35rem 0.55rem 1rem;
    background-color: inherit;
    border-bottom: 1px solid rgba(128, 128, 128, 0.28);
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--lb-m-drawer-close, var(--lb-accent, #A64114));
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    z-index: 420;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drawer-close:focus-visible {
    outline: 2px solid var(--lb-accent, #A64114);
    outline-offset: 2px;
}

.lb-header--mq-mobile.lb-header--m-drawer.lb-header--m-open .lb-header__nav {
    transform: translateX(0);
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Color de enlaces del cajón (variable --lb-m-drawer-text en el <header> si se define en el bloque) */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__link,
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__sublink {
    color: var(--lb-m-drawer-text, #1a1a1a);
}
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__link:hover,
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__link.is-active,
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__sublink:hover,
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav .lb-header__sublink.is-active {
    color: var(--lb-accent);
}

/* Submenú en columna mientras no haya “drill” (HTML original todavía) */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav:not([data-lb-drill="1"]) .lb-header__subnav {
    display: block !important;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(166, 65, 20, 0.35);
    margin: 0 0 0 0.5rem;
    padding: 0.35rem 0 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.03);
}

/* Drill móvil: submenús en capas, sin sublista inline */
.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav[data-lb-drill="1"] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lb-header__drill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.lb-header__drill-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.lb-header__drill-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    will-change: transform;
    transition: transform 0.32s ease;
    height: 100%;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .lb-header__drill-track:not(.lb-header__drill-track--no-motion) {
        transition: transform 0.01s linear;
    }
}

.lb-header__drill-panel {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.lb-header__drill-back {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lb-header__drill-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0.4rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--lb-m-drill-volver, var(--lb-m-drawer-close, var(--lb-accent, #A64114)));
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

.lb-header__drill-back-ico {
    display: inline-flex;
    line-height: 0;
}

.lb-header__drill-back-txt {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lb-header__drill-back-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lb-m-drill-title, #64748b);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-header__drill-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.lb-header__drill-link-main {
    flex: 1 1 auto;
    min-width: 0;
}

.lb-header__drill-next {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--lb-m-drill-next-bg, rgba(0, 0, 0, 0.04));
    color: var(--lb-m-drill-chevron, var(--lb-m-drawer-close, var(--lb-accent, #A64114)));
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

.lb-header__drill-next:hover,
.lb-header__drill-next:focus-visible {
    background: var(--lb-m-drill-next-bg-hover, rgba(0, 0, 0, 0.08));
}

.lb-header__drill-next:focus-visible {
    outline: 2px solid var(--lb-accent, #A64114);
    outline-offset: 2px;
}

.lb-header__drill-chev {
    display: block;
    flex-shrink: 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drill-item--parent {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__drill-item--parent > .lb-header__drill-row .lb-header__link {
    border: none;
    padding: 0.5rem 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__nav--stacked {
    border-top: none;
    margin-top: 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
}

.lb-header__cta--m-below {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: 0.5rem;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__cta--m-below {
    display: inline-flex;
}

.lb-header__cta--drawer-foot {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
}

.lb-header--mq-mobile.lb-header--m-drawer .lb-header__cta--drawer-foot {
    display: inline-flex;
}

body.lb-header-m-open {
    overflow: hidden;
}

body.lb-has-site-tabbar {
    padding-bottom: var(--lb-site-tabbar-h, 0px);
}

/* Barra inferior móvil: pill flotante + glass (tipo tab bar app) */
.lb-site-tabbar {
    display: none;
    position: fixed;
    z-index: 190;
    font-family: var(--primary-font, system-ui, sans-serif);
    box-sizing: border-box;
    /* valores por defecto si no hay --on */
    left: 0;
    right: 0;
    bottom: 0;
}

.lb-site-tabbar.lb-site-tabbar--on {
    display: block;
    left: 50%;
    right: auto;
    width: min(calc(100vw - 1.25rem), 28rem);
    max-width: calc(100vw - 1.25rem);
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.06),
        0 18px 48px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lb-site-tabbar__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0.55rem 0.45rem;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.08rem;
}

.lb-site-tabbar__item {
    flex: 1 1 0;
    min-width: 0;
}

button.lb-site-tabbar__link {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lb-site-tabbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 48px;
    padding: 0.2rem 0.12rem 0.32rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.lb-site-tabbar__link:active {
    background: rgba(0, 0, 0, 0.06);
}

.lb-site-tabbar__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.lb-site-tabbar__ico svg {
    display: block;
    width: 22px;
    height: 22px;
}

.lb-site-tabbar__ico img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.lb-site-tabbar__link--icon-only {
    gap: 0;
    min-height: 44px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.lb-site-tabbar__link.is-active .lb-site-tabbar__ico,
.lb-site-tabbar__link.is-active {
    color: var(--lb-accent, #A64114);
}

.lb-site-tabbar__txt {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-header--mq-mobile.lb-header--m-tabbar:not(.lb-header--m-tabbar-hybrid) .lb-header__nav,
.lb-header--mq-mobile.lb-header--m-tabbar:not(.lb-header--m-tabbar-hybrid) .lb-header__menu-toggle,
.lb-header--mq-mobile.lb-header--m-tabbar .lb-header__cta,
.lb-header--mq-mobile.lb-header--m-tabbar:not(.lb-header--m-tabbar-hybrid) .lb-header__backdrop {
    display: none !important;
}

/* Barra inferior + al menos una pestaña “Abrir menú”: cajón lateral sigue activo (sin hamburguesa visible). */
.lb-header--mq-mobile.lb-header--m-tabbar.lb-header--m-tabbar-hybrid.lb-header--m-drawer .lb-header__menu-toggle {
    display: none !important;
}

.lb-header--mq-mobile.lb-header--m-tabbar .lb-header__row--main {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.lb-header--mq-mobile.lb-header--m-tabbar .lb-header__brand {
    flex: 1 1 auto;
    max-width: 100%;
}

/* Respaldo si JS no aplica la clase (mismo corte por defecto que --lb-m-bp) */
@media (max-width: 900px) {
    .lb-header[data-lb-header]:not(.lb-header--mq-mobile) .lb-header__inner {
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
}

/* ——— Pie principal (3 columnas) ——— */
.lb-footer-main {
    --lf-accent: #A64114;
    padding: 3rem 0 2.5rem;
    color: #333;
}

.lb-footer-main__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .lb-footer-main__grid {
        grid-template-columns: 1fr;
    }
}

.lb-footer-main__brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
    color: #111;
}

.lb-footer-main__brand-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #555;
}

.lb-footer-main__col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lf-accent);
}

.lb-footer-main__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-footer-main__links li {
    margin-bottom: 0.65rem;
}

.lb-footer-main__links a {
    color: #444;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-footer-main__links a:hover {
    color: var(--lf-accent);
}

/* ——— 2 columnas enlaces + redes ——— */
.lb-footer-links-social {
    --lf-accent: #A64114;
    padding: 3rem 0 2.5rem;
    color: #333;
}

.lb-footer-links-social__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .lb-footer-links-social__grid {
        grid-template-columns: 1fr;
    }
}

.lb-footer-links-social__col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lf-accent);
}

.lb-footer-links-social__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-footer-links-social__links li {
    margin-bottom: 0.65rem;
}

.lb-footer-links-social__links a {
    color: #444;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-footer-links-social__links a:hover {
    color: var(--lf-accent);
}

.lb-footer-links-social__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lb-footer-links-social__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #444;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
}

.lb-footer-links-social__social-link:hover {
    color: var(--lf-accent);
}

.lb-footer-links-social__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-footer-links-social__ico {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.lb-footer-links-social__ico--img {
    width: 24px;
    height: 24px;
}

.lb-footer-links-social__social-text {
    letter-spacing: 0.04em;
}

/* ——— Columna suelta ——— */
.lb-footer-column {
    --lf-accent: #A64114;
    padding: 1.5rem 0;
}

.lb-footer-column__title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lf-accent);
}

.lb-footer-column__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-footer-column__links li {
    margin-bottom: 0.5rem;
}

.lb-footer-column__links a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
}

.lb-footer-column__links a:hover {
    color: var(--lf-accent);
}

/* ——— Solo marca ——— */
.lb-footer-brand {
    padding: 2rem 0 1rem;
    background: #fafafa;
}

.lb-footer-brand__inner {
    max-width: 720px;
}

.lb-footer-brand__logo img {
    max-height: 48px;
    margin-bottom: 1rem;
}

.lb-footer-brand__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: 0.05em;
}

.lb-footer-brand__text {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ——— Barra inferior ——— */
.lb-footer-bar {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 0;
}

.lb-footer-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lb-footer-bar__copy {
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    max-width: 100%;
}

.lb-footer-bar__social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lb-footer-bar__credit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lb-footer-bar__credit-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity 0.2s;
}

.lb-footer-bar__credit-link:hover {
    opacity: 0.85;
}

.lb-footer-bar__credit-logo {
    display: block;
    width: auto;
    max-width: 140px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.lb-footer-bar__social-link {
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.lb-footer-bar__social-link:hover {
    color: #A64114;
}

.lb-footer-bar__ico {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
