/* BA Metalwork · design system · unified responsive interface (ES / EN) */
:root { --ba-deep:#111719; --ba-cream:#f6f5f0; --ba-stone:#d0b69e; --ba-border:rgba(13,19,22,.12); --ba-side:clamp(18px,3.5vw,58px); }
html { scroll-padding-top:84px; }
.ba-site-header,.ba-site-header *,.ba-site-wa,.ba-site-wa * { box-sizing:border-box; }
.ba-site-header { position:fixed!important; inset:0 0 auto!important; z-index:10000!important; height:72px!important; background:rgba(250,249,245,.97)!important; color:#172022!important; border-bottom:1px solid rgba(8,15,19,.12)!important; box-shadow:0 2px 18px rgba(0,0,0,.05); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); transition:height .2s ease, box-shadow .2s ease; font-family:Geist,Manrope,system-ui,sans-serif!important; }
.ba-site-header.scrolled { box-shadow:0 10px 26px rgba(0,0,0,.1)!important; }
.ba-site-nav { height:100%; max-width:1536px; padding:0 var(--ba-side); margin:auto; display:flex; align-items:center; gap:clamp(14px,2vw,36px); justify-content:space-between; }
.ba-site-brand { display:inline-flex;align-items:center;gap:10px;flex-shrink:0;white-space:nowrap;color:#171c1f!important;text-decoration:none!important;letter-spacing:.055em;font-size:clamp(.79rem,1vw,.94rem);font-weight:800; }
.ba-site-brand img { display:block!important;position:static!important;width:36px!important;height:36px!important;max-width:none!important;min-width:36px;object-fit:contain!important;filter:none!important;opacity:1!important;border-radius:0!important; }
.ba-site-links { flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:clamp(11px,1.6vw,26px); }
.ba-site-links a { position:relative;text-decoration:none!important;color:#3e474a!important;font-size:.75rem;font-weight:700!important;letter-spacing:.035em;white-space:nowrap;line-height:1.2;text-transform:none!important; }
.ba-site-links a:hover,.ba-site-links a[aria-current] { color:#111!important; }
.ba-site-links a[aria-current]::after { content:'';height:2px;background:#171d1f;position:absolute;bottom:-10px;left:0;right:0; }
.ba-site-actions { display:flex;gap:11px;align-items:center;flex-shrink:0; }
.ba-site-quote { min-height:40px!important;padding:0 15px!important;background:#1a2225!important;border:1px solid #1a2225!important;color:#fff!important;border-radius:30px!important;text-decoration:none!important;display:inline-flex!important;justify-content:center;align-items:center;gap:14px;font-size:.73rem!important;font-weight:750!important;white-space:nowrap;letter-spacing:0!important;line-height:1.2!important; }
.ba-site-quote:hover { background:#333e42!important; }
.ba-site-quote span { font-size:1rem; }
.ba-site-lang { color:#384345!important;text-decoration:none!important;font-size:.69rem!important;font-weight:750!important;white-space:nowrap;line-height:1.15; }
.ba-site-menu-toggle { display:none;width:43px!important;height:43px!important;flex-shrink:0;align-items:center;justify-content:center;gap:4px;flex-direction:column;background:transparent!important;border:1px solid rgba(0,0,0,.2)!important;border-radius:50%!important;color:#101719!important;cursor:pointer;padding:0!important; }
.ba-site-menu-toggle span { display:block;width:17px;height:1.6px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s; }
.ba-site-menu-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(5.6px) rotate(45deg); }
.ba-site-menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
.ba-site-menu-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-5.6px) rotate(-45deg); }
.ba-site-mobile-nav[hidden] { display:none!important; }
.ba-site-mobile-nav { position:fixed!important;left:0;right:0;top:72px;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;padding:13px var(--ba-side) max(25px,env(safe-area-inset-bottom));background:#faf9f5;box-shadow:0 18px 25px #0002;z-index:10001;display:grid;gap:0; }
.ba-site-mobile-nav a { text-decoration:none!important;color:#172022!important;display:flex!important;align-items:center;justify-content:space-between;min-height:52px;padding:13px 4px;border-bottom:1px solid #e5e5e0!important;font-size:1rem;font-weight:650; }
.ba-site-mobile-nav a span {font-size:.9rem;color:#6b7374}
.ba-site-mobile-nav .ba-site-mobile-contact {margin:15px 0 8px;padding:13px 18px!important;background:#172022;color:#fff!important;border-radius:6px;border:0!important;}
.ba-site-mobile-nav .ba-site-mobile-lang {font-size:.83rem;color:#596164!important;border:0!important;}
.ba-site-header a:focus-visible,.ba-site-header button:focus-visible,.ba-site-wa:focus-visible { outline:3px solid #bd916c!important;outline-offset:3px!important; }
/* WhatsApp: recognizable centered white handset + outline in official green circle. */
.ba-site-wa { position:fixed!important;z-index:11000!important;right:max(20px,env(safe-area-inset-right))!important;bottom:max(21px,env(safe-area-inset-bottom))!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;padding:0!important;border-radius:50%!important;background:#25d366!important;border:3px solid #fff!important;box-shadow:0 10px 28px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.07)!important;color:white!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important;transform:none;transition:transform .2s ease,box-shadow .2s ease;overflow:visible!important;text-decoration:none!important; }
.ba-site-wa svg { display:block!important;position:static!important;flex:none!important;width:34px!important;height:34px!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;color:#fff!important;fill:#fff!important;stroke:none!important;transform:none!important;opacity:1!important;filter:none!important; }
.ba-site-wa:hover { transform:translateY(-3px)!important;box-shadow:0 15px 35px #0004!important; }
/* Consistent editorial rhythm on existing page templates; leave page-specific forms intact. */
html[lang="es-MX"] body,html[lang="en-US"] body { -webkit-font-smoothing:antialiased; }
html[lang="es-MX"] .hero h1 {font-size:clamp(2.7rem,6vw,6.4rem);line-height:.98;letter-spacing:-.055em;max-width:1050px}
html[lang="es-MX"] .hero-content {padding-top:max(130px,14vh)}
html[lang="es-MX"] .hero-actions {gap:12px}
html[lang="es-MX"] .section {padding-top:clamp(55px,7vw,100px);padding-bottom:clamp(55px,7vw,100px)}
html[lang="es-MX"] .section h2 {line-height:1.02;letter-spacing:-.048em}
html[lang="es-MX"] .btn,html[lang="es-MX"] .bm-button {border-radius:3px}
html[lang="es-MX"] .space-card img,html[lang="es-MX"] .gallery img { transition:transform .6s ease }
html[lang="en-US"] body {font-family:Geist,Manrope,system-ui,sans-serif}
html[lang="en-US"] .section-index { display:none!important; }
html[lang="en-US"] .product-meta>span:first-child {display:none!important}
html[lang="en-US"] .hero h1 {line-height:1;letter-spacing:-.055em}
html[lang="en-US"] .header-cta {border-radius:3px}
/* Keep the special configurator control topbar; it is an application workspace. */
@media(max-width:1180px) {
 .ba-site-links {display:none!important;}
 .ba-site-menu-toggle {display:flex!important;}
 .ba-site-brand {margin-right:auto}
}
@media(max-width:620px) {
 :root {--ba-side:17px}
 .ba-site-header {height:66px!important;}
 .ba-site-brand {gap:6px;font-size:.72rem;letter-spacing:.02em}
 .ba-site-brand img {width:31px!important;min-width:31px;height:31px!important}
 .ba-site-nav {gap:8px}
 .ba-site-actions {gap:8px}
 .ba-site-quote {padding:0 11px!important;min-height:38px!important;font-size:.65rem!important;gap:5px;max-width:140px;white-space:normal;text-align:center;}
 .ba-site-quote span {display:none}
 .ba-site-lang {display:none!important}
 .ba-site-menu-toggle {width:39px!important;height:39px!important}
 .ba-site-mobile-nav {top:66px;max-height:calc(100dvh - 66px)}
 .ba-site-wa {width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;right:15px!important;bottom:max(16px,env(safe-area-inset-bottom))!important}
 .ba-site-wa svg {width:33px!important;height:33px!important}
 html[lang="es-MX"] .hero h1 {font-size:clamp(2.45rem,11vw,4.4rem)!important;line-height:.98!important;max-width:100%;}
 html[lang="es-MX"] .hero-content {padding:112px 19px 48px!important}
 html[lang="es-MX"] .section {padding-top:50px;padding-bottom:50px}
 html[lang="es-MX"] .container {width:calc(100% - 34px)!important}
 html[lang="es-MX"] .hero-actions .btn {min-height:47px;padding:0 14px;font-size:.72rem}
 html[lang="en-US"] .hero h1 {font-size:clamp(2.6rem,10vw,4.15rem)!important}
}
@media(max-width:370px){.ba-site-brand span {font-size:.65rem}.ba-site-quote{max-width:118px;font-size:.62rem!important}}
@media(prefers-reduced-motion:reduce){.ba-site-wa,.ba-site-header,.ba-site-menu-toggle span{transition:none!important}}


/* BA Metalwork v7 — deliberate movement / lightweight carousel. */
body.bm-home .bm-selected-track {
  display:flex!important;
  grid-template-columns:none!important;
  gap:clamp(11px,1.4vw,20px)!important;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:9px;
}
body.bm-home .bm-selected-track::-webkit-scrollbar { display:none; }
body.bm-home .bm-selected-track .bm-inspo-card {
  flex:0 0 min(46%,550px)!important;
  width:min(46%,550px)!important;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}
body.bm-home .bm-selected-track:focus-visible {outline:2px solid #be997b;outline-offset:5px;}
body.bm-home .bm-inspo-visual { border-radius:3px; }
.bm-carousel-controls { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px; }
.bm-carousel-hint {font-size:.63rem;letter-spacing:.14em;font-weight:700;color:#aaa9a5;}
.bm-carousel-arrows {display:flex;gap:9px;align-items:center;}
.bm-carousel-arrows button {width:44px;height:44px;min-height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid #5a5e5e;background:transparent;color:#f4f4f0;cursor:pointer;transition:transform .24s ease,background-color .24s ease,border-color .24s ease;}
.bm-carousel-arrows button svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.bm-carousel-arrows button:focus-visible {outline:2px solid #dbc1a7;outline-offset:3px;}
@media(hover:hover) and (pointer:fine) {
 .bm-carousel-arrows button:hover {background:#f4f4f0;border-color:#f4f4f0;color:#171d1f;transform:translateY(-2px);}
 .ba-site-links a:not([aria-current])::after {content:'';position:absolute;bottom:-7px;left:0;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .22s ease;}
 .ba-site-links a:not([aria-current]):hover::after {transform:scaleX(1);}
 .ba-site-quote:hover span,.bm-inline-link:hover span {transform:translate(3px,-2px);}
 .ba-site-quote span,.bm-inline-link span {transition:transform .22s ease;}
 .bm-inspo-card:hover img {transform:scale(1.025)!important;}
 :is(.model-card,.product-card,.space-card,.bm-service-card,.ba-editorial-primary):active {transform:scale(.995);}
}
/* Touch acknowledgement on interactive surfaces, without moving page layout. */
:is(.bm-inspo-visual,.bm-carousel-arrows button,.ba-site-menu-toggle,.ba-site-quote):focus-visible {outline:3px solid #bb9475;outline-offset:3px;}
@media(max-width:760px) {
 body.bm-home .bm-selected-track {margin-right:0!important;padding-right:17px!important;}
 body.bm-home .bm-selected-track .bm-inspo-card {flex:0 0 min(78vw,350px)!important;width:min(78vw,350px)!important;}
 .bm-carousel-controls {margin-top:7px;}
 .bm-carousel-hint {font-size:.57rem;letter-spacing:.08em;}
}
@media(prefers-reduced-motion:reduce) {
 body.bm-home .bm-selected-track {scroll-behavior:auto!important;}
 .bm-carousel-arrows button,.ba-site-links a::after {transition:none!important;}
 .reveal {opacity:1!important;transform:none!important;transition:none!important;}
}

/* v8: true continuous movement rather than timed snap transitions. */
body.bm-home .bm-selected-track.ba-auto-carousel {
  scroll-snap-type:none!important;
  scroll-behavior:auto!important;
  overflow-anchor:none;
}
