/* Marquesina de landings: una única banda visible, contenido y estilo atómicos. */
/* Full-width notice strip; no outer spacing between header, band and hero. */
.fmo-landing-marquees {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    background: radial-gradient(62% 120% at 56% 120%, rgba(45, 131, 203, 0.04), rgba(0, 0, 0, 0) 64%), linear-gradient(105deg, rgb(1, 23, 42), rgb(1, 25, 44) 52%, rgb(2, 29, 50));
    /* Same brand face on every host (home declares Manrope but never loads it). */
    font-family: Montserrat, 'FMO Montserrat', system-ui, sans-serif;
}
.fmo-landing-marquees :is(a, button, span, strong) { font-family: inherit; }
.fmo-landing-marquee { position: relative; border-radius: 0; overflow: hidden; box-shadow:none; }
.fmo-landing-marquee-stage { position:relative; overflow:hidden; border-radius:0; }
.fmo-landing-marquee-stage.has-multiple .fmo-landing-marquee-inner { min-height:76px; padding-top:6px; padding-bottom:6px; }
.fmo-landing-marquee-stage .is-exiting { position:absolute; inset:0; z-index:1; pointer-events:none; }
.fmo-landing-marquee[hidden] { display: none !important; }
.fmo-landing-marquee-inner { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; align-items: center; gap: 18px; min-height: 60px; padding: 6px 24px; box-sizing: border-box; }
.fmo-landing-marquee-tag { display: inline-flex; align-items: center; gap: 10px; max-width: 420px; min-width: 0; font-size: 14px; line-height: 1.35; font-weight: 900; letter-spacing: .045em; }
.fmo-landing-marquee-tag > span { min-width: 0; overflow-wrap: anywhere; }
.fmo-landing-marquee-tag svg { width: 21px; height: 21px; fill: currentColor; flex: 0 0 21px; opacity: .8; }
.fmo-landing-marquee-viewport { grid-column:2; grid-row:1; display:flex; justify-content:center; align-items:center; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.fmo-landing-marquee-viewport.is-overflowing { justify-content:flex-start; }
.fmo-landing-marquees[data-marquee-ready] .fmo-landing-marquee-viewport { scrollbar-width: none; }
.fmo-landing-marquees[data-marquee-ready] .fmo-landing-marquee-viewport::-webkit-scrollbar { display: none; }
.fmo-landing-marquee-track { display:flex;align-items:center;gap:11px;flex:0 0 auto;width: max-content; max-width: none; white-space: nowrap; font-size: 16px; line-height: 1.6; font-weight: 650; }
.fmo-landing-marquee-message-icon { display:flex;flex:0 0 20px; }
.fmo-landing-marquee-message-mobile { display:none; }
.fmo-landing-marquee-message-icon svg { display:block;width:20px;height:20px;fill:currentColor;opacity:.8; }
.fmo-landing-marquee-inner > .fmo-landing-marquee-cta { grid-column:3;grid-row:1;justify-self:end; }
.fmo-landing-marquee-cta { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 7px 18px 7px 10px; border:1px solid #ffffff26; border-radius: 9px; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow:inset 0 1px 0 #ffffff14,0 3px 8px #0016261a; transition:filter .2s,box-shadow .2s; }
.fmo-landing-marquee-cta-icon { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border-radius:6px; color:#67d7f5; background:#29c5f01a; }
.fmo-landing-marquee-cta-icon svg { display:block; width:19px; height:19px; }
.fmo-landing-marquee-cta-short { display:none; }
.fmo-landing-marquee-cta.has-large-count .fmo-landing-marquee-cta-full { display:none; }
.fmo-landing-marquee-cta.has-large-count .fmo-landing-marquee-cta-short { display:inline; }
.fmo-landing-marquee--a { background: #29c5f0; color: #031e30; }
.fmo-landing-marquee--a .fmo-landing-marquee-cta,
.fmo-landing-marquee--b .fmo-landing-marquee-cta { background: #031e30; color: #fff; }
.fmo-landing-marquee--b { background: #f24843; color: #fff; }
.fmo-landing-marquee--c { background: #031e30; color: #e3f5fc; border:0; }
.fmo-landing-marquee--c .fmo-landing-marquee-tag { color: #79dcf7; }
.fmo-landing-marquee--c .fmo-landing-marquee-cta { background: #29c5f0; color: #031e30; }
.fmo-landing-marquee--c .fmo-landing-marquee-cta-icon { color:#031e30; background:#031e3012; }
/* CTA colour (per campaign; «auto» = opposite of the band, resolved server-side). */
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta--red { background: #f24843; color: #fff; border-color: #ffffff3d; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta--blue { background: #29c5f0; color: #031e30; border-color: #031e3026; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta--navy { background: #031e30; color: #fff; border-color: #ffffff26; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta--white { background: #fff; color: #031e30; border: 1.5px solid #031e30; }
.fmo-landing-marquee .fmo-landing-marquee-cta--red .fmo-landing-marquee-cta-icon { color: #fff; background: #ffffff24; }
.fmo-landing-marquee .fmo-landing-marquee-cta--blue .fmo-landing-marquee-cta-icon { color: #031e30; background: #031e3012; }
.fmo-landing-marquee .fmo-landing-marquee-cta--white .fmo-landing-marquee-cta-icon { color: #fff; background: #031e30; }
.fmo-landing-marquee .fmo-landing-marquee-cta--navy .fmo-landing-marquee-cta-icon { color: #67d7f5; background: #29c5f01a; }
/* CTA text + icon colour (per campaign; «auto» resolved server-side). Icon follows the text. */
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta-text--white { color: #fff; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta-text--navy { color: #031e30; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta-text--cyan { color: #29c5f0; }
.fmo-landing-marquee .fmo-landing-marquee-cta.fmo-landing-marquee-cta-text--red { color: #f24843; }
.fmo-landing-marquee .fmo-landing-marquee-cta[class*="-cta-text--"] .fmo-landing-marquee-cta-icon { color: inherit; background: rgba(255, 255, 255, .16); }
.fmo-landing-marquee .fmo-landing-marquee-cta:is(.fmo-landing-marquee-cta-text--navy, .fmo-landing-marquee-cta-text--red, .fmo-landing-marquee-cta-text--cyan):is(.fmo-landing-marquee-cta--blue, .fmo-landing-marquee-cta--white) .fmo-landing-marquee-cta-icon { background: rgba(3, 30, 48, .08); }
/* Attention loop: heartbeat + colour ring + shine sweep + tag wiggle (≈3.2 s). */
.fmo-landing-marquee .fmo-landing-marquee-cta { position: relative; overflow: hidden; isolation: isolate; --fmo-cta-ring: 242, 72, 67; animation: fmoCtaBeat 3.2s ease-in-out 1.2s infinite; }
.fmo-landing-marquee .fmo-landing-marquee-cta--navy { --fmo-cta-ring: 3, 30, 48; }
.fmo-landing-marquee .fmo-landing-marquee-cta--blue { --fmo-cta-ring: 41, 197, 240; }
.fmo-landing-marquee .fmo-landing-marquee-cta--white { --fmo-cta-ring: 255, 255, 255; }
.fmo-landing-marquee .fmo-landing-marquee-cta::before { content: ''; position: absolute; inset: -2px auto -2px -60%; z-index: 1; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: fmoCtaShine 3.2s ease-in-out 1.2s infinite; }
.fmo-landing-marquee .fmo-landing-marquee-cta-icon svg { transform-origin: 30% 30%; animation: fmoCtaTag 3.2s ease-in-out 1.2s infinite; }
@keyframes fmoCtaBeat {
    0%, 30%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--fmo-cta-ring), .65); }
    8% { transform: scale(1.07); }
    16% { transform: scale(.98); }
    24% { transform: scale(1.04); }
    45% { box-shadow: 0 0 0 9px rgba(var(--fmo-cta-ring), 0); }
}
@keyframes fmoCtaShine { 0%, 40% { left: -60%; } 70%, 100% { left: 130%; } }
@keyframes fmoCtaTag { 0%, 40%, 100% { transform: rotate(0); } 46% { transform: rotate(-16deg); } 52% { transform: rotate(12deg); } 58% { transform: rotate(-6deg); } 64% { transform: rotate(0); } }
.fmo-landing-marquee .fmo-landing-marquee-cta:is(:hover, :focus-visible),
.fmo-landing-marquee .fmo-landing-marquee-cta:is(:hover, :focus-visible)::before,
.fmo-landing-marquee .fmo-landing-marquee-cta:is(:hover, :focus-visible) .fmo-landing-marquee-cta-icon svg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .fmo-landing-marquee .fmo-landing-marquee-cta, .fmo-landing-marquee .fmo-landing-marquee-cta::before, .fmo-landing-marquee .fmo-landing-marquee-cta-icon svg { animation: none; }
}
.fmo-landing-marquee-cta:is(:hover,:focus-visible) { filter: brightness(1.12);box-shadow:inset 0 1px 0 #ffffff28,0 0 0 2px #ffffff20,0 4px 12px #00162625; }
.fmo-landing-marquee :focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.fmo-landing-marquee.is-entering { animation: fmoLandingBandEnter .65s cubic-bezier(.22,.61,.36,1) both; }
.fmo-landing-marquee.is-entering::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, #ffffff1f 50%, transparent 65%); animation: fmoLandingBandSheen .8s ease-out both; }
@keyframes fmoLandingBandEnter { from { transform:translateX(100%); } to { transform:translateX(0); } }
@keyframes fmoLandingBandSheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.fmo-landing-marquee-nav { position:absolute; z-index:3; bottom:0; left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:0; }
.fmo-landing-marquee-nav button { display:grid; place-items:center; width:28px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; }
.fmo-landing-marquee-nav button::after { content:''; display:block; width:7px; height:7px; border:1px solid #fff; border-radius:10px; background:#ffffff55; box-shadow:0 1px 3px #00172666; transition:width .2s ease; }
.fmo-landing-marquee-nav button[aria-current="true"]::after { width:23px; background:#fff; }
.fmo-landing-marquee-nav button:focus-visible { outline:2px solid #fff; outline-offset:-2px; border-radius:8px; }

/* Tablet has no room for the desktop's symmetric empty column. */
@media (min-width:721px) and (max-width:1023px) {
    .fmo-landing-marquee-inner { grid-template-columns:minmax(0,1fr) auto; }
    .fmo-landing-marquee-viewport { grid-column:1; }
    .fmo-landing-marquee-inner > .fmo-landing-marquee-cta { grid-column:2; }
}
@media (max-width: 720px) {
    .fmo-landing-marquee-message-full { display:none; }
    .fmo-landing-marquee-message-mobile { display:inline; }
    .fmo-landing-marquees { padding:0; }
    /* One balanced row: readable moving message, stable touch target at right. */
    .fmo-landing-marquee-inner { grid-template-columns:minmax(0,1fr) auto; min-height:56px; padding:6px 12px; gap:12px; }
    .fmo-landing-marquee-stage.has-multiple .fmo-landing-marquee-inner { min-height:70px; padding-top:6px; padding-bottom:6px; }
    .fmo-landing-marquee-nav { left:50%;bottom:0;transform:translateX(-50%);max-width:calc(100% - 24px);flex-wrap:nowrap; }
    .fmo-landing-marquee-nav button { height:22px; }
    .fmo-landing-marquee-tag { grid-column: 1; font-size: 11px; letter-spacing: .025em; gap: 7px; }
    .fmo-landing-marquee-tag svg { width: 16px; height: 16px; flex-basis: 16px; }
    .fmo-landing-marquee-inner > .fmo-landing-marquee-cta { grid-column:2;grid-row:1; }
    .fmo-landing-marquee-cta { min-height:44px; padding:0 12px; gap:7px; font-size:11px; border-radius:7px; box-shadow:inset 0 1px 0 #ffffff14; }
    .fmo-landing-marquee-cta-icon { width:17px;height:17px;flex-basis:17px;background:transparent; }
    .fmo-landing-marquee .fmo-landing-marquee-cta[class] .fmo-landing-marquee-cta-icon { background:transparent; }
    .fmo-landing-marquee-cta-icon svg { width:17px;height:17px; }
    .fmo-landing-marquee-cta-full { display:none; }
    .fmo-landing-marquee-cta-short { display:inline; }
    .fmo-landing-marquee-viewport { grid-column: 1; grid-row: 1; }
    .fmo-landing-marquee-track { font-size:12px;line-height:1.5;font-weight:600;gap:8px; }
    .fmo-landing-marquee-message-icon { flex-basis:16px; }
    .fmo-landing-marquee-message-icon svg { width:16px;height:16px; }
}
@media (prefers-reduced-motion: reduce) {
    .fmo-landing-marquee-cta { transition:none; }
    .fmo-landing-marquee.is-entering, .fmo-landing-marquee.is-entering::after { animation: none; }
    .fmo-landing-marquee-track { width: auto;max-width:100%;white-space: normal; overflow-wrap: anywhere;text-align:center; }
    .fmo-landing-marquee-viewport.is-overflowing { justify-content:center; }
    .fmo-landing-marquee-stage.has-multiple .fmo-landing-marquee-viewport { padding-block:16px; }
}

/* Sitewide host: one band set under the shared header on every page.
   --fmo-site-marquee-h = real band height (JS ResizeObserver keeps it exact);
   the values below are the first-paint fallback, so nothing jumps. */
.fmo-site-marquee { position: relative; z-index: 1; width: 100%; min-width: 0; }
html:has(.fmo-site-marquee .fmo-landing-marquee-stage) { --fmo-site-marquee-h: 60px; }
html:has(.fmo-site-marquee .fmo-landing-marquee-stage.has-multiple) { --fmo-site-marquee-h: 76px; }
@media (max-width: 720px) {
    html:has(.fmo-site-marquee .fmo-landing-marquee-stage) { --fmo-site-marquee-h: 56px; }
    html:has(.fmo-site-marquee .fmo-landing-marquee-stage.has-multiple) { --fmo-site-marquee-h: 70px; }
}
/* Sticky band: stays visible right under the header while scrolling, sitewide.
   Offsets are published live by landing-campaign-marquee.js. Above page content and
   the search cassette (8802), below the header (100150) and contact drawer. */
.fmo-site-marquee { position: sticky; top: var(--fmo-site-marquee-top, var(--fmo-header-total-height, 0px)); z-index: 9000; }
/* Phones: the overflow guard's `overflow-x: hidden` on html/body turns body into a
   scroll container and disables sticky. `clip` clips the same, without that side
   effect (desktop already uses clip). Scroll locks keep working: their
   overflow-y:hidden turns clip back into hidden for that state. */
@supports (overflow: clip) {
    html.fmo-site-marquee-sticky, html.fmo-site-marquee-sticky body { overflow-x: clip !important; }
}
/* Everything the search page anchors to the header bottom (desktop cassette, its
   pull handle and dropdowns) now anchors below header + band. A stylesheet
   !important beats the inline value the cassette script writes on <html>. */
html.fmo-site-marquee-sticky { --fmo-desktop-header-bottom: var(--fmo-site-sticky-bottom, 0px) !important; }
/* Mobile searches: the fixed «Filtros» tab hangs below the band. */
html.fmo-contact-header-enhanced body.fmo-has-mobile-filters .fmo-mobile-filter-tab-slot { margin-top: var(--fmo-site-marquee-push, 0px); }
/* Mobile filters sheet open: the band steps aside like the header does. */
body.mobile-filters-open .fmo-site-marquee { opacity: 0; pointer-events: none; transition: opacity .2s ease .34s; }
/* Touch slider: horizontal drags belong to the band, vertical ones to the page. */
.fmo-landing-marquees.is-swipeable, .fmo-landing-marquees.is-swipeable * { touch-action: pan-y; }
.fmo-landing-marquees.is-swipeable .fmo-landing-marquee-viewport { overflow-x: hidden; }
@media (hover: none) { .fmo-landing-marquees.is-swipeable .fmo-landing-marquee-stage { user-select: none; -webkit-user-select: none; } }
/* Home hero keeps filling exactly the first screen below header + band. */
html body .hm-hero-container {
    height: calc(100vh - var(--fmo-header-total-height, 190px) - var(--fmo-site-marquee-h, 0px));
    height: calc(100svh - var(--fmo-header-total-height, 190px) - var(--fmo-site-marquee-h, 0px));
    min-height: min(390px, calc(100svh - var(--fmo-header-total-height, 190px) - var(--fmo-site-marquee-h, 0px)));
}
@media (max-width: 900px) and (orientation: portrait) {
    html body .hm-hero-container { height: calc(100svh - 130px - var(--fmo-site-marquee-h, 0px)); min-height: 390px; }
}

/* Montserrat local de respaldo (fichero ya presente en producción). Sólo se
   descarga donde el host no aporta Montserrat (p. ej. la home). */
@font-face {
    font-family: 'FMO Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/campaign-preview/montserrat-latin-variable.woff2') format('woff2');
}
