/* BA Metalwork V5 · image-first visual system / mobile-first.
   Intent: every service hero is a photographic canvas, with service title only.
   Site content, SEO markup and lead forms remain available below the fold. */
:root{--ba5-dark:#151b1b;--ba5-paper:#f5f4f0;--ba5-light:#fff;--ba5-sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
/* Respect lightweight, accessible motion defaults. */
html{scroll-padding-top:76px}
body{overflow-x:clip}
:is(.bm-home,.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home,.ba-v4-racks) :is(.hero,.bm-sapiens-hero,.rack-hero) img{image-rendering:auto}
/* ONE visual language across interior pages, standalone galleries, industrial and English OEM. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero:not(.hero-rfq){height:clamp(540px,calc(90svh - 66px),920px)!important;min-height:0!important;display:flex!important;align-items:flex-end!important;background:#141b1d!important}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-rfq{height:clamp(460px,70svh,690px)!important;min-height:0!important;align-items:flex-end!important;position:relative!important}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero :is(img.hero-photo,img:not([class]),img.hero-image){filter:none!important;transform:none!important;object-fit:cover!important;object-position:center 49%;}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero:not(.hero-rfq)::after{background:linear-gradient(180deg,rgba(3,7,9,.23) 0%,transparent 24%,transparent 54%,rgba(3,7,9,.12) 70%,rgba(3,7,9,.70) 100%)!important;}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero .hero-shadow{background:linear-gradient(0deg,rgba(3,7,9,.43),transparent 42%)!important;pointer-events:none}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content{width:100%!important;max-width:1440px!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;margin-inline:auto!important;padding:34px clamp(23px,5vw,77px) clamp(50px,7svh,88px)!important;z-index:2!important;}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero h1{font-family:var(--ba5-sans)!important;font-size:clamp(2.35rem,4.9vw,4.65rem)!important;font-weight:650!important;line-height:1.06!important;letter-spacing:-.054em!important;max-width:900px!important;margin:0!important;text-shadow:0 2px 18px rgba(0,0,0,.18)!important;text-wrap:balance;}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero h1 :is(small,span){font-size:inherit!important;line-height:inherit!important;display:inline!important;font-weight:inherit!important;}
/* Subtitle, extra CTA buttons and technical notes move out of the image, not hidden SEO titles. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero :is(.hero-subtitle,.bm-hero-description,.configurator-note,.hero-corner,.hero-buttons,.hero-actions){display:none!important}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content>p:not(.eyebrow),
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content>small{display:none!important}
/* Tiny service signpost at the TOP of the image, away from the product photograph. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content::before{content:'FABRICACIÓN A LA MEDIDA';position:absolute;top:clamp(28px,5vh,60px);left:clamp(23px,5vw,77px);color:#fff;font:700 .65rem/1.35 var(--ba5-sans);letter-spacing:.19em;text-shadow:0 1px 8px #0005;pointer-events:none;}
body.ba-v4-industrial .hero-content::before{content:'FABRICACIÓN INDUSTRIAL'}
body:is(.ba-v4-oem,.ba-v4-oem-home) .hero-content::before{content:'CUSTOM METAL FABRICATION'}
/* A single exception: the pergola hero should offer ONLY 'Diseña en 3D'. */
body.ba-v4-interior .hero-pergolas .hero-actions{display:flex!important;margin:18px 0 0!important;gap:0!important}
body.ba-v4-interior .hero-pergolas .hero-actions>a:not(.bm-design-option){display:none!important}
body.ba-v4-interior .hero-pergolas .hero-actions>.bm-design-option{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:12px;min-height:44px!important;padding:0 19px!important;border-radius:50px!important;background:#fff!important;color:#162022!important;border:1px solid #fff!important;font-size:.83rem!important;letter-spacing:0!important;text-decoration:none!important;font-weight:700!important;transition:transform .2s ease,background .2s ease}
body.ba-v4-interior .hero-pergolas .hero-actions>.bm-design-option:hover{transform:translateY(-2px);background:#e9e6e1!important}
/* Some legacy standalone content has its own injected hero label; keep a single one. */
body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content :is(.bm-kicker,.steel-kicker,.eyebrow.light){display:none!important}
/* Industrial breadcrumb remains usable but outside the photographic composition. */
body.ba-v4-industrial .steel-crumbs{position:relative!important;z-index:2!important;background:var(--ba5-paper)!important;min-height:35px}
/* Dedicated racks hero with the same photo-first proportion. */
body.ba-v4-racks .rack-hero{height:clamp(540px,calc(90svh - 66px),920px)!important;min-height:0!important;align-items:flex-end!important;position:relative}
body.ba-v4-racks .rack-hero-copy{padding:30px clamp(23px,5vw,77px) clamp(50px,7svh,88px)!important;margin:0 auto!important;width:100%!important;max-width:1440px!important}
body.ba-v4-racks .rack-hero h1{font-size:clamp(2.35rem,4.9vw,4.65rem)!important;line-height:1.06!important;font-weight:650;letter-spacing:-.054em!important;max-width:860px}
body.ba-v4-racks .rack-hero :is(p,.rack-hero-actions,.hero-actions,.rack-hero-copy>span){display:none!important}
/* Homepage hero: emphasize the photo and the two product lines, not form CTAs. */
body.bm-home .bm-sapiens-hero,body.bm-home .bm-sapiens-hero-inner{min-height:0!important;height:clamp(550px,calc(91svh - 66px),940px)!important}
body.bm-home .bm-sapiens-hero-image{filter:none!important;object-fit:cover;object-position:54% center}
body.bm-home .bm-hero-shade{background:linear-gradient(180deg,rgba(5,7,9,.17) 0%,transparent 35%,transparent 56%,rgba(5,7,9,.7) 100%)!important}
body.bm-home .bm-sapiens-hero-inner{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;padding:30px clamp(23px,5vw,77px) clamp(50px,7svh,88px)!important}
body.bm-home .bm-hero-topline{position:absolute;top:28px;left:clamp(23px,5vw,77px);font-size:.65rem;letter-spacing:.16em;color:#fff}
body.bm-home .bm-hero-center{padding:0!important;max-width:900px!important}
body.bm-home .bm-hero-center h1{font-size:clamp(2.6rem,5.3vw,5rem)!important;line-height:1.04!important;letter-spacing:-.06em!important;margin:0!important;font-weight:650!important}
body.bm-home .bm-hero-center :is(p,.bm-hero-btns){display:none!important}
body.bm-home .bm-hero-bottom{display:none!important}
body.bm-home .bm-marquee{display:none!important}
/* Below the photograph: a compact editorial strip instead of a card obscuring the hero. */
.ba-editorial-band{width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--ba5-paper)!important}
.ba-editorial-band-inner{max-width:1320px;margin:0 auto!important;padding:32px clamp(23px,5vw,77px)!important;gap:26px!important;grid-template-columns:minmax(0,1fr) auto!important}
.ba-editorial-band h2{font-size:clamp(1.48rem,2.4vw,2.2rem)!important;letter-spacing:-.04em!important}
.ba-editorial-band p{margin-top:8px!important;font-size:.92rem!important;line-height:1.5!important}
.ba-editorial-eyebrow{margin-bottom:7px!important;font-size:.57rem!important}
.ba-editorial-primary{min-height:44px!important;padding:10px 17px!important;font-size:.78rem!important}
.ba-editorial-related{display:none!important}
/* Product images dominate. The modal owns the conversion action, not every card. */
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card{border-radius:3px!important;overflow:hidden!important;background:#e9e7e1;outline-offset:3px;transition:transform .28s ease!important}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card:after{background:linear-gradient(0deg,rgba(0,0,0,.22),transparent 35%)!important;opacity:0!important;transition:opacity .28s ease!important;pointer-events:none}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card :is(.model-copy,.bm-model-wa,.model-number){display:none!important}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card img{width:100%;height:100%;object-fit:cover;transform:none!important;filter:none!important;transition:transform .4s ease!important}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card:focus-visible{outline:3px solid #17837b}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .gallery a{overflow:hidden;border-radius:3px}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .gallery a>img{filter:none!important;transform:none!important;transition:transform .42s ease!important}
body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .gallery a>span{font-size:.83rem!important;letter-spacing:0!important}
/* Large project photos, light captions and small breathing spaces. */
body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-standalone,.ba-v4-oem,.ba-v4-oem-home) .space-card{border-radius:3px!important;overflow:hidden}
body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-standalone,.ba-v4-oem,.ba-v4-oem-home) .space-card>img{filter:none!important;transform:none!important;transition:transform .45s ease!important}
body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-standalone) .space-copy{padding:0!important}
body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-standalone) .space-copy h3{font-size:clamp(1.35rem,2vw,2rem)!important;line-height:1.09!important}
/* Home project cards: photos and one 'Ver' action only; WhatsApp remains always in floating UI. */
body.bm-home .bm-service-card img{filter:none!important}
body.bm-home .bm-service-overlay p{display:none!important}
body.bm-home .bm-service-overlay h3{font-size:clamp(2.4rem,4vw,4rem)!important;line-height:1.06!important}
body.bm-home .bm-service-actions>a:nth-child(n+2){display:none!important}
body.bm-home .bm-service-actions{margin-top:16px!important}
body.bm-home .bm-inspo-meta>a{display:none!important}
body.bm-home .bm-inspo-meta{padding:14px 0 6px!important}
body.bm-home .bm-inspo-meta h3{font-size:clamp(1.05rem,1.5vw,1.35rem)!important;margin:6px 0 0!important}
/* Lightweight touch-friendly image dialog; image stays clear. */
.ba5-preview-dialog{padding:0;border:0;background:var(--ba5-paper);color:#182224;max-width:min(1040px,calc(100% - 20px));max-height:min(92svh,860px);width:100%;box-shadow:0 22px 90px #0006;overflow:auto;border-radius:8px;overscroll-behavior:contain}
.ba5-preview-dialog::backdrop{background:rgba(9,15,17,.81);backdrop-filter:blur(2px)}
.ba5-preview-img{display:block;object-fit:contain;width:100%;height:auto;max-height:68svh;background:#141819}
.ba5-preview-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(15px,2.6vw,32px)}
.ba5-preview-panel>span{display:none}
.ba5-preview-panel h2{margin:0!important;font:650 clamp(1rem,2.4vw,1.45rem)/1.2 var(--ba5-sans)!important;letter-spacing:-.04em!important}
.ba5-preview-panel a{display:inline-flex;gap:12px;align-items:center;justify-content:center;background:#162124;color:#fff!important;border-radius:50px;text-decoration:none!important;padding:14px 20px;font-weight:700;font-size:.86rem;white-space:nowrap}
.ba5-preview-close{display:grid;place-items:center;position:sticky;top:10px;float:right;margin:10px 10px -56px 0;border:0;background:#fff;color:#162124;border-radius:50%;width:44px;height:44px;font:400 1.6rem/1 var(--ba5-sans);cursor:pointer;z-index:2;box-shadow:0 2px 15px #0003}
/* Lead input and form retain their real submit action, but never occupy the hero image. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) :is(.contact,.form-section){scroll-margin-top:80px}
/* Microinteractions use cheap compositor properties, not scroll handlers or image filters. */
@media (hover:hover) and (pointer:fine){
 body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card:hover img{transform:scale(1.035)!important}
 body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .model-card:hover:after{opacity:1!important}
 body:is(.ba-v4-standalone,.ba-v4-interior,.ba-v4-industrial) .gallery a:hover img{transform:scale(1.035)!important}
 body:is(.ba-v4-interior,.ba-v4-industrial,.ba-v4-standalone,.ba-v4-oem,.ba-v4-oem-home) .space-card:hover>img{transform:scale(1.025)!important}
}
@media(max-width:760px){
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero:not(.hero-rfq){height:clamp(540px,calc(87svh - 66px),780px)!important;min-height:0!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-rfq{height:clamp(470px,72svh,620px)!important;min-height:0!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content{padding:20px 21px clamp(40px,7svh,70px)!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero-content::before{top:27px!important;left:21px!important;font-size:.57rem!important;letter-spacing:.14em!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero h1{font-size:clamp(1.95rem,8.6vw,3.05rem)!important;line-height:1.08!important;letter-spacing:-.048em!important;max-width:93%!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero :is(img.hero-photo,img:not([class]),img.hero-image){object-position:52% center!important}
 body.ba-v4-interior .hero-pergolas .hero-actions{margin-top:14px!important}
 body.ba-v4-interior .hero-pergolas .hero-actions>.bm-design-option{min-height:42px!important;font-size:.8rem!important}
 body.bm-home .bm-sapiens-hero,body.bm-home .bm-sapiens-hero-inner{height:clamp(550px,calc(87svh - 66px),780px)!important;min-height:0!important}
 body.bm-home .bm-sapiens-hero-inner{padding:22px 21px clamp(40px,7svh,70px)!important}
 body.bm-home .bm-hero-topline{top:25px!important;left:21px!important;max-width:calc(100% - 42px);font-size:.54rem!important;letter-spacing:.14em!important}
 body.bm-home .bm-hero-center{padding:0!important}
 body.bm-home .bm-hero-center h1{font-size:clamp(2.15rem,9.7vw,3.5rem)!important;line-height:1.04!important;letter-spacing:-.055em!important;max-width:350px!important}
 body.bm-home .bm-service-card{min-height:clamp(420px,70svh,680px)!important}
 body.bm-home .bm-service-overlay{left:21px!important;right:21px!important;bottom:26px!important}
 body.bm-home .bm-service-overlay h3{font-size:clamp(2.1rem,9vw,3.2rem)!important}
 body.bm-home .bm-selected{padding-block:52px!important}
 body.bm-home .bm-promise{padding-block:55px!important}
 .ba-editorial-band-inner{display:block!important;padding:21px!important}
 .ba-editorial-band h2{font-size:1.35rem!important}
 .ba-editorial-band p{font-size:.84rem!important;line-height:1.47!important;margin-top:6px!important}
 .ba-editorial-eyebrow{font-size:.53rem!important;margin-bottom:6px!important}
 .ba-editorial-band-action{display:block!important;margin-top:13px!important}
 .ba-editorial-primary{min-height:38px!important;padding:9px 13px!important;width:auto!important;font-size:.76rem!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial) .model-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial) .model-card{aspect-ratio:3/4!important;min-height:0!important}
 body:is(.ba-v4-interior,.ba-v4-industrial) .space-grid{grid-template-columns:1fr!important;display:grid!important;gap:10px!important}
 body:is(.ba-v4-interior,.ba-v4-industrial) .space-card{min-height:0!important;aspect-ratio:4/4.4!important}
 body.ba-v4-racks .rack-hero{height:clamp(540px,calc(87svh - 66px),780px)!important;min-height:0!important}
 body.ba-v4-racks .rack-hero-copy{padding:20px 21px clamp(40px,7svh,70px)!important}
 body.ba-v4-racks .rack-hero h1{font-size:clamp(1.95rem,8.6vw,3.05rem)!important;line-height:1.08!important}
 .ba5-preview-panel{display:block;padding:16px!important}
 .ba5-preview-panel h2{font-size:1.18rem!important;margin-bottom:13px!important}
 .ba5-preview-panel a{width:100%;font-size:.8rem}
 .ba5-preview-img{max-height:68svh}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
/* V5 corrective: anchor all tiny eyebrow captions to the image, not the bottom text. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero .hero-content{position:absolute!important;inset:0!important;height:100%!important;box-sizing:border-box!important}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero .hero-content::before{position:absolute!important;top:29px!important;left:clamp(23px,5vw,77px)!important}
body.ba-v4-racks .rack-hero :is(.rack-hero-ctas,.rack-hero-buttons,.rack-hero-action,.rack-hero .btn){display:none!important}
body.ba-v4-racks .rack-hero-copy{position:absolute!important;inset:0!important;height:100%!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important}
body.ba-v4-racks .rack-hero-copy::before{content:'FABRICACIÓN INDUSTRIAL';position:absolute;top:29px;left:clamp(23px,5vw,77px);font:700 .65rem/1.35 var(--ba5-sans);letter-spacing:.15em;color:#fff;text-shadow:0 1px 9px #0009}
@media(max-width:760px){
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero .hero-content::before{top:24px!important;left:21px!important}
 body.ba-v4-racks .rack-hero-copy::before{top:24px;left:21px;font-size:.57rem}
}
/* Ensure the small top label sits at the photo's top edge on every template. */
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero .hero-content::before{display:none!important}
body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero::before{content:'FABRICACIÓN A LA MEDIDA';display:block!important;position:absolute!important;top:24px!important;left:clamp(23px,5vw,77px)!important;z-index:7!important;pointer-events:none;color:#fff;font:700 .61rem/1.35 var(--ba5-sans);letter-spacing:.17em;text-shadow:0 2px 9px #0009}
body.ba-v4-industrial .hero::before{content:'FABRICACIÓN INDUSTRIAL'}
body:is(.ba-v4-oem,.ba-v4-oem-home) .hero::before{content:'CUSTOM METAL FABRICATION'}
body.bm-home .bm-hero-topline{display:none!important}
body.bm-home .bm-sapiens-hero::before{content:'FABRICACIÓN A LA MEDIDA';display:block!important;position:absolute!important;top:24px;left:clamp(23px,5vw,77px);z-index:7!important;pointer-events:none;color:#fff;font:700 .61rem/1.35 var(--ba5-sans);letter-spacing:.17em;text-shadow:0 2px 9px #0009}
/* Reduce repeated above-the-fold conversion blocks: primary contact remains in sticky header and floating WhatsApp. */
body.ba-v4-interior .ba-editorial-band .ba-editorial-band-action,
body.ba-v4-standalone .ba-editorial-band .ba-editorial-band-action{display:none!important}
@media(max-width:760px){
 body:is(.ba-v4-interior,.ba-v4-standalone,.ba-v4-industrial,.ba-v4-oem,.ba-v4-oem-home) .hero::before,body.bm-home .bm-sapiens-hero::before{top:21px!important;left:21px!important;font-size:.54rem!important;letter-spacing:.13em!important}
}
