/* The existing Porto design stays intact. Accessibility preferences win over the theme. */
/* Individual audio controls must remain visible over the site's custom menu CSS. */
html body.lrpm-facil-integrated.laraiz-speakers-enabled #main#main .laraiz-speak-button,
html body.lrpm-facil-integrated.laraiz-speakers-enabled #footer#footer .laraiz-speak-button {
    position:static!important;inset:auto!important;transform:none!important;float:none!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
    margin:0 .5rem .25rem 0!important;padding:0!important;vertical-align:middle!important;flex:0 0 44px!important;
}
html body.lrpm-facil-integrated.laraiz-speakers-enabled #main#main .n2-ss-button-container {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;width:auto!important;max-width:100%!important;
}
html body.lrpm-facil-integrated.laraiz-speakers-enabled #header#header .laraiz-menu-speak-button.laraiz-menu-speak-button,
html body.lrpm-facil-integrated.laraiz-speakers-enabled .laraiz-menu-speak-button.laraiz-menu-speak-button {
    display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    position:relative!important;inset:auto!important;transform:none!important;
    align-items:center!important;justify-content:center!important;flex:0 0 32px!important;
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;
    padding:0!important;margin:2px 4px 2px 0!important;border-radius:50%!important;
    color:#fff!important;background:#d95100!important;border:1px solid #9b3900!important;
}
html body.lrpm-facil-integrated.laraiz-speakers-enabled #header#header .laraiz-menu-speak-button svg {
    display:block!important;width:16px!important;height:16px!important;fill:currentColor!important;
}
html body.lrpm-facil-integrated.laraiz-speakers-enabled #header#header .main-menu > li {display:inline-flex!important;align-items:center!important;flex-wrap:nowrap!important}
html body.lrpm-facil-integrated #header#header .main-menu {flex-wrap:wrap!important;row-gap:6px!important}
@media(max-width:1499px){
    html body.lrpm-facil-integrated #laraiz-a11y-widget#laraiz-a11y-widget {
        position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;
        width:auto!important;max-width:none!important;transform:none!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;justify-content:flex-end!important;
    }
    html body.lrpm-facil-integrated #laraiz-a11y-widget#laraiz-a11y-widget > :is(.laraiz-easy-open,.laraiz-a11y-open) {
        flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:180px!important;min-height:48px!important;
        padding:8px!important;gap:6px!important;font-size:14px!important;
    }
    html body.lrpm-facil-integrated #laraiz-a11y-widget#laraiz-a11y-widget > :is(.laraiz-easy-open,.laraiz-a11y-open) svg {width:22px!important;height:22px!important}
    html body.lrpm-facil-integrated.laraiz-speakers-enabled #header#header .laraiz-menu-speak-button.laraiz-menu-speak-button {
        flex-basis:44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
    }
}
/* Home photographs fill their own panels instead of leaving black letterboxes. */
html body.lrpm-facil-integrated #main#main .n2-ss-slide-background-image img {
    object-fit:cover!important;object-position:center!important;width:100%!important;height:100%!important;
}
html body.lrpm-facil-integrated #main#main .n2-ss-slide-backgrounds,
html body.lrpm-facil-integrated #main#main .n2-ss-slide-background-color {background-color:#000!important}
/* One owned Grid/Flex header: visible links plus an optional expanded menu. */
html body.lrpm-header-ready #header#header#header .header-main > .container {display:grid!important;grid-template-areas:none!important;grid-auto-flow:row!important;grid-template-columns:clamp(140px,9.5vw,190px) minmax(0,1fr)!important;gap:12px!important;align-items:center!important;width:100%!important;max-width:none!important;padding:12px 16px!important}
html body.lrpm-header-ready #header#header#header .header-left,
html body.lrpm-header-ready #header#header#header .header-right {position:relative!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important}
html body.lrpm-header-ready #header#header#header .header-left {display:block!important;grid-column:1!important;grid-row:1!important}
html body.lrpm-header-ready #header#header#header .header-right {grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:8px!important}
html body.lrpm-header-ready #header#header#header .logo,
html body.lrpm-header-ready #header#header#header .logo > a {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
html body.lrpm-header-ready #header#header#header .logo img {display:block!important;width:100%!important;max-width:100%!important;height:auto!important;transition:none!important}
html body.lrpm-header-ready #header#header#header #main-menu {display:block!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-evenly!important;gap:3px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li {position:relative!important;display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;height:auto!important;max-height:none!important;min-height:0!important;align-items:center!important;gap:2px!important;min-width:0!important;padding:0!important;margin:0!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li > :is(a,h5) {display:inline-flex!important;flex:0 0 auto!important;order:1!important;font-size:clamp(10px,.6vw,11px)!important;line-height:1.3!important;white-space:nowrap!important;padding:8px 2px!important;margin:0!important}
html body.lrpm-header-ready.laraiz-speakers-enabled #header#header#header #main-menu .main-menu > li > .laraiz-menu-speak-button {position:static!important;order:0!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;flex:0 0 24px!important;padding:0!important;margin:0!important;transform:none!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li::before,
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li::after {pointer-events:none!important}
html body.lrpm-header-ready:not(.laraiz-speakers-enabled) #header#header#header .laraiz-speak-button {display:none!important;visibility:hidden!important;margin:0!important;padding:0!important}
html body.lrpm-header-ready #header#header#header .lrpm-menu-toggle {display:flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;width:44px!important;height:48px!important;padding:0!important;margin:0!important}
html body.lrpm-header-ready #header#header#header #nav-panel,
html body.lrpm-header-ready #header#header#header .mobile-nav-wrap {display:none!important}
html body.lrpm-header-ready #header#header#header .lrpm-menu-toggle {border:0!important;border-radius:12px!important;background:#f58b00!important;color:#fff!important;cursor:pointer!important}
html body.lrpm-header-ready #header#header#header .lrpm-menu-toggle svg {width:20px!important;height:20px!important;fill:currentColor!important}
/* When one row cannot fit, keep all entries visible under the centred logo. */
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting) #header#header#header .header-main > .container {grid-template-columns:minmax(0,1fr)!important;row-gap:18px!important}
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting) #header#header#header .header-left {grid-column:1!important;grid-row:1!important;width:min(280px,100%)!important;margin:0 auto!important}
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting) #header#header#header .header-right {grid-column:1!important;grid-row:2!important}
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting) #header#header#header #main-menu .main-menu {flex-wrap:wrap!important;justify-content:center!important;gap:10px 12px!important}
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting) #header#header#header #main-menu .main-menu > li > :is(a,h5) {font-size:clamp(10px,1.6vw,12px)!important}
html body.lrpm-header-ready.lrpm-header-wrapped:not(.lrpm-header-fitting).laraiz-speakers-enabled #header#header#header #main-menu .main-menu > li > .laraiz-menu-speak-button {width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;flex-basis:32px!important}
html body.lrpm-header-ready.lrpm-mobile-menu-open #header#header#header #nav-panel {display:block!important}
html body.lrpm-header-ready #header#header#header #nav-panel > .container {display:block!important;width:100%!important;max-width:none!important;padding:0 12px!important}
html body.lrpm-header-ready.lrpm-mobile-menu-open #header#header#header .mobile-nav-wrap {display:block!important;width:100%!important;max-height:min(480px,calc(100dvh - 140px))!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:8px 8px 24px!important}
html body.lrpm-header-ready #header#header#header .mobile-menu li {display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center!important;gap:6px!important;padding:6px 0!important}
html body.lrpm-header-ready:not(.laraiz-speakers-enabled) #header#header#header .mobile-menu li {grid-template-columns:0 minmax(0,1fr) 44px!important}
html body.lrpm-header-ready #header#header#header .mobile-menu li > :is(a,h5) {grid-column:2!important;min-width:0!important;padding:8px!important;white-space:normal!important;font-size:14px!important}
html body.lrpm-header-ready #header#header#header .mobile-menu li > .laraiz-menu-speak-button {grid-column:1!important;grid-row:1!important}
html body.lrpm-header-ready #header#header#header .mobile-menu li > :is(.sub-menu,.popup) {grid-column:1/-1!important}
html body.lrpm-header-ready #header#header#header .mobile-menu li > .arrow {grid-column:3!important;grid-row:1!important;position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;transform:none!important}
html body.lrpm-header-ready.lrpm-mobile-menu-open #laraiz-a11y-widget#laraiz-a11y-widget {display:none!important;visibility:hidden!important;pointer-events:none!important}
/* Keep the optional menu control reachable while a primary submenu is open. */
html body.lrpm-header-ready #header#header#header #main-menu {position:relative!important;z-index:1!important}
html body.lrpm-header-ready #header#header#header .lrpm-menu-toggle {position:relative!important;z-index:100!important}
html body.lrpm-header-ready.lrpm-header-wrapped #header#header#header .lrpm-menu-toggle {align-self:start!important}
/* Hidden overflow allowed focus/scrollIntoView to pan Porto's page wrapper
   horizontally after resizing. Clip preserves the boundary without a scrollport. */
html body.lrpm-header-ready .page-wrapper {overflow:clip!important}
/* Keep expanded navigation in the document, on an opaque surface. */
html body.lrpm-header-ready .header-wrapper,
html body.lrpm-header-ready #header#header#header,
html body.lrpm-header-ready #header#header#header .header-main {height:auto!important;overflow:visible!important}
html body.lrpm-header-ready #header#header#header .header-main {position:relative!important;inset:auto!important;width:100%!important}
html body.lrpm-header-ready #header#header#header #nav-panel {position:relative!important;inset:auto!important;float:none!important;clear:both!important;width:100%!important;height:auto!important;opacity:1!important;transform:none!important;background:#fff!important;border-radius:18px!important;z-index:60!important}
html body.lrpm-header-ready #header#header#header .mobile-nav-wrap {position:relative!important;inset:auto!important;float:none!important;height:auto!important;opacity:1!important;transform:none!important;background:#fff!important}
html body.lrpm-header-ready #header#header#header .mobile-menu {background:#fff!important}
/* An open primary submenu must paint over every later row of links. */
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li {z-index:1!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li:is(:hover,:focus-within,.laraiz-menu-open) {z-index:50!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li > :is(.popup,.sub-menu) {position:absolute!important;z-index:51!important;left:var(--lrpm-popup-left,0px)!important;right:auto!important;top:var(--lrpm-popup-top,100%)!important;width:var(--lrpm-popup-width,360px)!important;min-width:0!important;max-width:calc(100vw - 24px)!important;max-height:var(--lrpm-popup-height,480px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;transform:none!important;background:#fff!important;box-sizing:border-box!important}
html body.lrpm-header-ready #header#header#header #main-menu .popup > .inner {width:100%!important;min-width:0!important;box-sizing:border-box!important;background:#fff!important}
html body.lrpm-header-ready #header#header#header #main-menu .popup ul {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.lrpm-header-ready #header#header#header #main-menu .popup li {display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;height:auto!important;padding:6px!important;box-sizing:border-box!important}
html body.lrpm-header-ready #header#header#header #main-menu .popup li > :is(a,h5) {flex:1 1 0!important;min-width:0!important;white-space:normal!important;text-align:left!important;font-size:14px!important}
html body.lrpm-header-ready.laraiz-speakers-enabled #header#header#header #main-menu .popup .laraiz-menu-speak-button {order:0!important;position:static!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;flex:0 0 32px!important;padding:0!important;margin:0!important}
/* The integrated panel replaces these two exact, obsolete custom HTML controls.
   Scoped to its owner so safe mode and rollback restore the original interface. */
html body.lrpm-facil-integrated #guia-fina-definitiva,
html body.lrpm-facil-integrated #btn-permanente-lf {display:none!important;visibility:hidden!important;pointer-events:none!important}
html body.lrpm-a11y-integrated.laraiz-modern-site #header#header :is(a,button,input,select,textarea,[tabindex]):focus-visible,
html body.lrpm-a11y-integrated.laraiz-modern-site #footer#footer :is(a,button,input,select,textarea,[tabindex]):focus-visible,
html body.lrpm-a11y-integrated.laraiz-modern-site #main#main :is(a,button,input,select,textarea,[tabindex]):focus-visible,
html body.lrpm-a11y-integrated.laraiz-modern-site.laraiz-is-speaking #main#main :is(a,button,input,select,textarea,[tabindex]):focus-visible,
html body.lrpm-a11y-integrated #laraiz-a11y-widget#laraiz-a11y-widget :is(a,button,select,input):focus-visible {
    outline:3px solid #005da8!important; outline-offset:3px!important; box-shadow:0 0 0 2px #fff!important;
}
html body.lrpm-a11y-integrated.laraiz-contrast #main#main :is(a,button,input,select,textarea,[tabindex]):focus-visible {outline-color:#ffd166!important;box-shadow:0 0 0 2px #111!important}
html body.lrpm-a11y-integrated.laraiz-modern-site:not(.laraiz-speakers-enabled) #main#main .laraiz-speak-button,
html body.lrpm-a11y-integrated.laraiz-modern-site:not(.laraiz-speakers-enabled) #header#header .laraiz-speak-button,
html body.lrpm-a11y-integrated.laraiz-modern-site:not(.laraiz-speakers-enabled) .laraiz-speak-button,
html body.lrpm-a11y-integrated.laraiz-modern-site.laraiz-reading-mode #main#main .laraiz-speak-button {display:none!important;visibility:hidden!important;pointer-events:none!important}
html body.lrpm-a11y-integrated.laraiz-contrast .lrpm :is(.lrpm-card,.lrpm-summary,.lrpm-hero,.lrpm-detail,.lrpm-notice,input,select){background:#171717!important;color:#fff!important;border-color:#b9b9b9!important}
html body.lrpm-a11y-integrated.laraiz-contrast .lrpm :is(h2,h3,p,span,label,strong){color:#fff!important}
html body.lrpm-a11y-integrated.laraiz-contrast .lrpm :is(a,button){color:#ffe17a!important;background:#202020!important;border-color:#ffe17a!important}
html body.lrpm-a11y-integrated.laraiz-contrast #main#main .laraiz-reading-now {background:#3d3d3d!important;color:#fff!important;box-shadow:inset 0 0 0 2px #ffd166!important}
html body.lrpm-a11y-integrated:not(.laraiz-contrast) #main#main .laraiz-reading-now {outline:2px solid #915100!important;outline-offset:3px!important}
html body.lrpm-a11y-integrated.laraiz-font-large .lrpm :is(p,li,label){font-size:1.15em!important;line-height:1.65!important}
html body.lrpm-a11y-integrated.laraiz-reduced-motion .laraiz-modern-motion {display:none!important}
@media(prefers-reduced-motion:reduce){html body.lrpm-a11y-integrated .laraiz-modern-motion{display:none!important}}
html body.lrpm-news-integrated.laraiz-noticias-encajadas.laraiz-modern-site #main#main .post :is(.post-image,.post-image-single,.post-media,.post-thumbnail) img,
html body.lrpm-news-integrated.laraiz-noticias-encajadas #main#main img[data-laraiz-original="1"] {object-fit:contain!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1140/445!important;object-position:center!important}
@media(max-width:600px){html body.lrpm-a11y-integrated #laraiz-a11y-widget#laraiz-a11y-widget .laraiz-a11y-panel {max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}}

/* The primary menu has one explicit open owner, including legacy LF layouts. */
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li > :is(.popup,.sub-menu) {display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li.lrpm-submenu-open {z-index:70!important}
html body.lrpm-header-ready #header#header#header #main-menu .main-menu > li.lrpm-submenu-open > :is(.popup,.sub-menu) {display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
html body.lrpm-auto-easy .page-top {display:none!important}

html body #main#main iframe[data-lrpm-local-blocked] {display:none!important}
html body #main#main .lrpm-local-video {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:28px!important;min-height:280px!important;border:1px solid #cbd9cc!important;border-radius:22px!important;background:#fffdf7!important;text-align:center!important;box-sizing:border-box!important}
html body #main#main .lrpm-local-video img {display:block!important;width:min(280px,100%)!important;height:auto!important;object-fit:contain!important;margin:0 auto!important}
html body #main#main .lrpm-local-video h2 {font-size:26px!important;margin:10px 0!important}
html body #main#main .lrpm-local-video p {font-size:17px!important;line-height:1.7!important;max-width:620px!important;margin:0!important}
html body #main#main .wpb_video_wrapper:has(>.lrpm-local-video) {padding-top:0!important;height:auto!important;min-height:0!important}
html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget) {display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;gap:30px!important;align-items:center!important;padding:16px!important;margin:16px auto 32px!important;max-width:1280px!important;width:auto!important;left:auto!important;right:auto!important}
html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget)::before,html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget)::after {display:none!important}
html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget)>.vc_column_container {width:100%!important;min-width:0!important;padding:0!important;float:none!important}
html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget) p {font-size:18px!important;line-height:1.7!important}
html body.lrpm-raices-page #main#main .vc-zigzag-wrapper {display:none!important}
html body.lrpm-raices-page #main#main .vc_btn3-container {display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;flex-wrap:nowrap!important}
html body.lrpm-raices-page #main#main .vc_btn3-container>.laraiz-speak-button {flex:0 0 44px!important;margin:0!important}
@media(max-width:800px){html body.lrpm-raices-page:not(.lrpm-auto-easy) #main#main .wpb-content-wrapper>.vc_row:has(>.vc_column_container .wpb_video_widget) {grid-template-columns:minmax(0,1fr)!important}}

/* Keep the orange speech controls legible against their white symbols. */
html body.lrpm-facil-integrated #main#main button.laraiz-speak-button,
html body.lrpm-facil-integrated #footer#footer button.laraiz-speak-button {background:#b84b00!important;color:#fff!important;border-color:#853600!important}
html body.lrpm-facil-integrated #main#main button.laraiz-speak-button:hover,
html body.lrpm-facil-integrated #footer#footer button.laraiz-speak-button:hover {background:#963d00!important}
html body.lrpm-facil-integrated button.laraiz-speak-button:focus-visible {outline:3px solid #005da8!important;outline-offset:3px!important}
