/* ==========================================================================
   Elite Machining Group — Landing page
   Sistema visual basado en Brandboard EMG v1.0 "Precisión Industrial Monocromática"
   Paleta: Negro Profundo #0A0A0A · Gris Industrial #2B2B2E · Gris Acero #6B7785
           Gris Claro #D9DEE3 · Blanco #FFFFFF
   Tipografía: Montserrat (títulos) · Source Sans 3 (cuerpo)
   Recursos: corte a 45° del isotipo, dibujo técnico, retícula, metal cepillado
   ========================================================================== */

:root {
  --black: #0A0A0A;
  --ink: #111214;
  --industrial: #2B2B2E;
  --graphite: #1A1B1E;
  --steel: #6B7785;
  --steel-2: #8C97A3;
  --light: #D9DEE3;
  --paper: #F3F4F6;
  --white: #FFFFFF;
  --wa: #1FAF55;

  --line-dark: rgba(255, 255, 255, .10);
  --line-dark-2: rgba(255, 255, 255, .18);
  --line-light: rgba(10, 10, 10, .12);

  --f-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 140px);
  --chamfer: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--industrial);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); color: var(--black); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel-2); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--white); color: var(--black); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons (corte a 45° como el isotipo) ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .72rem; --cut: 10px; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--light); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--white); box-shadow: inset 0 0 0 1px var(--line-dark-2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--industrial); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #17964a; }
.btn-dark .icon:hover, .btn-wa:hover .icon, .btn-dark:hover .icon { transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--black);
  padding-bottom: 6px; border-bottom: 1px solid var(--black);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrows / section tags ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--steel);
}
.eyebrow-light { color: var(--light); }
.eyebrow-line { width: 44px; height: 1px; background: currentColor; }

.section-tag { display: flex; align-items: center; gap: 0; margin-bottom: 26px; font-family: var(--f-head); text-transform: uppercase; }
.tag-index {
  display: inline-grid; place-items: center; min-width: 42px; height: 28px; padding: 0 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--white); background: var(--black);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  font-variant-numeric: tabular-nums;
}
.tag-label {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; color: var(--steel);
  border: 1px solid var(--line-light); border-left: 0;
}
.section-dark .tag-index { background: var(--white); color: var(--black); }
.section-dark .tag-label { color: var(--light); border-color: var(--line-dark-2); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-light { background: var(--white); }
.section-steel { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--light); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* regla de medición en el borde superior de cada sección */
.section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--line-light) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(10,10,10,.22) 0 1px, transparent 1px 100px);
  background-size: 100% 5px, 100% 10px; background-repeat: no-repeat;
  opacity: .9;
}
.section-dark::before {
  background:
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 100px);
  background-size: 100% 5px, 100% 10px; background-repeat: no-repeat;
}

.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { max-width: 15ch; }
.section-intro { font-size: 1.08rem; color: var(--steel); max-width: 52ch; }
.section-dark .section-intro { color: var(--steel-2); }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px 80px; align-items: end; }
.split-aside p + p { margin-top: 16px; }
.split-aside p { color: var(--steel); }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--industrial) !important; font-weight: 500; }
.statement { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 600; line-height: 1.16; letter-spacing: -.022em; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 10, 10, .0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 10, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header .container { max-width: 1400px; }
.brand { flex-shrink: 0; display: block; }
.brand-logo { height: 44px; width: auto; max-width: none; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  position: relative; padding: 8px 0; white-space: nowrap;
  font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78);
  transition: color .2s;
}
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-wa { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.header-wa:hover { color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-dark-2); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--light);
  background:
    radial-gradient(ellipse 70% 60% at 78% 40%, rgba(107,119,133,.22), transparent 70%),
    linear-gradient(180deg, #0A0A0A 0%, #111214 100%);
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 72px));
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%);
}
/* ---------- Firma de marca (logo protagonista) ---------- */
.hero-brand { position: relative; }
.hero-brand-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-logo {
  position: relative; width: min(100%, 900px);
  animation: logo-cut 1.5s cubic-bezier(.7, 0, .2, 1) .15s both;
}
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
/* destello monocromático: una franja gris (paleta EMG) recorre el logo blanco */
@supports ((-webkit-mask-image: url("x.png")) or (mask-image: url("x.png"))) {
  .hero-logo-sweep {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 0 40%, rgba(107,119,133,.55) 47%, rgba(43,43,46,.35) 50%, rgba(107,119,133,.55) 53%, transparent 60% 100%) no-repeat;
    background-size: 250% 100%;
    background-position: 160% 0;
    -webkit-mask: url("../img/emg-logo-white.png") center / 100% 100% no-repeat;
            mask: url("../img/emg-logo-white.png") center / 100% 100% no-repeat;
    animation: logo-sweep 7s ease-in-out 1.6s infinite;
  }
}
@keyframes logo-sweep {
  0%   { background-position: 160% 0; }
  22%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
@keyframes logo-cut {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}
.hero-brand-meta { flex-shrink: 0; display: flex; align-items: flex-end; gap: 18px; padding-bottom: 6px; animation: fade-up 1s var(--ease) 1.1s both; }
.hero-brand-meta p { font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1.35; color: var(--light); }
.hero-slash { width: 9px; height: 48px; background: var(--white); transform: skewX(-24deg); }
.hero-brand-rule { display: flex; align-items: center; gap: 24px; margin-top: clamp(22px, 2.6vw, 34px); animation: fade-up 1s var(--ease) .9s both; }
.rule-ticks {
  flex: 1; height: 12px; border-top: 1px solid var(--line-dark-2);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 50px) top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 10px) top / 100% 6px no-repeat;
}
.rule-ticks:first-child { flex: 0 0 64px; }
.hero-tagline { font-family: var(--f-head); font-size: .78rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--light); white-space: nowrap; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Con el logo protagonista en el hero, el logo del header aparece al hacer scroll */
.site-header .brand { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.site-header:not(.is-scrolled) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav-open .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 {
  margin: 22px 0 22px; color: var(--white);
  font-size: clamp(2.1rem, 3.2vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1.2px rgba(217,222,227,.75); font-weight: 700; }
@supports not (-webkit-text-stroke: 1px #000) { .hero h1 span { color: var(--steel-2); } }
.hero-lead { max-width: 54ch; font-size: 1.15rem; color: rgba(217,222,227,.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: rgba(217,222,227,.7); font-size: .98rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.hero-wa .icon { color: var(--wa); }
.hero-wa:hover { color: var(--white); border-color: rgba(255,255,255,.4); }

/* Dibujo técnico */
.drawing-frame {
  position: relative; padding: 46px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line-dark);
}
.crop { position: absolute; width: 18px; height: 18px; border-color: rgba(255,255,255,.55); border-style: solid; border-width: 0; }
.crop.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.crop.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.crop.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.crop.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.drawing-head {
  position: absolute; top: 0; left: 0; right: 0; height: 34px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-head); font-size: .62rem; font-weight: 600; letter-spacing: .22em; color: var(--steel-2);
  border-bottom: 1px solid var(--line-dark);
}
.drawing { width: 100%; height: auto; overflow: visible; }
.d-center { stroke: rgba(140,151,163,.55); stroke-width: 1; stroke-dasharray: 22 5 3 5; }
.d-geo { stroke: rgba(230,234,238,.82); stroke-width: 1.4; }
.d-holes circle { stroke-width: 1.2; }
.d-dim { stroke: rgba(140,151,163,.9); stroke-width: 1; }
.d-ext { stroke-dasharray: 2 4; }
.d-text { fill: rgba(217,222,227,.85); font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.d-tool { stroke: var(--white); stroke-width: 1.5; }
.d-tool-orbit { transform-origin: 280px 260px; transform-box: view-box; animation: orbit 14s linear infinite; }
.d-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s var(--ease) .3s forwards; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.dro {
  position: absolute; right: -1px; bottom: -1px;
  display: grid; grid-template-columns: repeat(3, auto) auto; gap: 0;
  background: rgba(10,10,10,.92); border: 1px solid var(--line-dark-2);
  font-family: var(--f-head); font-variant-numeric: tabular-nums;
}
.dro > div { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-right: 1px solid var(--line-dark); }
.dro span { font-size: .62rem; font-weight: 700; color: var(--steel-2); letter-spacing: .1em; }
.dro b { font-size: .82rem; font-weight: 600; color: var(--white); letter-spacing: .04em; min-width: 7.2ch; }
.dro .dro-status { border-right: 0; align-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .2em; color: var(--light); }
.dro-status i { width: 7px; height: 7px; background: var(--wa); border-radius: 50%; box-shadow: 0 0 0 3px rgba(31,175,85,.2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Dibujos técnicos animados (lenguaje del hero, reutilizable) ---------- */
.tech { padding-bottom: 64px; }
.tech .drawing { display: block; }
.tech .d-geo, .tech .d-dim, .tech .d-center, .tech .d-tool, .tech .t-marks { fill: none; }
.tech .t-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tech.is-live .t-draw { animation: t-draw 2.2s var(--ease) var(--d, 0s) forwards; }
@keyframes t-draw { to { stroke-dashoffset: 0; } }
.tech .t-late { opacity: 0; transition: opacity 1s var(--ease) 1.5s; }
.tech.is-live .t-late { opacity: 1; }
.d-hidden { stroke-dasharray: 4 3; stroke-width: 1 !important; opacity: .7; }
.d-thin { stroke-width: .8 !important; }
.d-small { font-size: 9px; letter-spacing: .14em; }
.hatch-line { stroke: rgba(140,151,163,.5); stroke-width: 1; }
.t-solid { fill: var(--white); }
.tp { stroke: var(--white); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; fill: none; }
.t-marks { stroke: var(--white); stroke-width: 1.2; }
.t-marks text { fill: var(--white); stroke: none; font-family: var(--f-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; }

/* variante clara (secciones blancas) */
.drawing-frame.is-light { background: linear-gradient(180deg, #FFFFFF, #F6F7F8); border-color: rgba(10,10,10,.14); }
.is-light .crop { border-color: rgba(10,10,10,.6); }
.is-light .drawing-head { color: var(--steel); border-color: var(--line-light); }
.is-light .d-center { stroke: rgba(107,119,133,.75); }
.is-light .d-geo { stroke: #1B1C1F; }
.is-light .d-dim { stroke: var(--steel); }
.is-light .d-text { fill: var(--industrial); }
.is-light .d-tool { stroke: var(--black); }
.is-light .t-solid { fill: var(--black); }
.is-light .hatch-line { stroke: rgba(43,43,46,.42); }

.tech-wrap { margin-top: clamp(56px, 7vw, 88px); }
.tech-lathe { padding-left: 20px; padding-right: 20px; }

/* ---------- Procesos animados (fresado, torneado, hilo, penetración) ---------- */
.proc.drawing-frame {
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(107,119,133,.16), transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    #121315;
  border-color: rgba(255,255,255,.12);
  padding: 44px 18px 64px;
}
.proc .crop { border-color: rgba(255,255,255,.55); }
.proc .proc-svg { overflow: hidden; } /* nada (rebaba, chispa, humo, cabezales) sale del marco */
.proc .drawing-head { color: var(--steel-2); border-color: var(--line-dark); }
.proc .d-geo { stroke: rgba(230,234,238,.82); stroke-width: 1.4; }
.proc .d-center { stroke: rgba(140,151,163,.55); stroke-width: 1; stroke-dasharray: 22 5 3 5; }
.proc .d-dim { stroke: rgba(140,151,163,.9); stroke-width: 1; }
.proc .d-text { fill: rgba(217,222,227,.85); font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.proc .t-solid { fill: var(--white); }
.proc .dro-status em { font-style: normal; }
.stock { stroke: rgba(230,234,238,.82); stroke-width: 1.2; fill: rgba(140,151,163,.12); }
.stock-solid { fill: #1B1C1F; }
.flutes { stroke: rgba(230,234,238,.7); stroke-width: 1.2; }
.hose { stroke: rgba(140,151,163,.6); stroke-width: 5; stroke-dasharray: 5 2; fill: none; }
.coolant { stroke: rgba(217,222,227,.55); stroke-width: 1.2; stroke-dasharray: 3 4; }
.spin path { stroke: rgba(230,234,238,.6); stroke-width: 1; }
.jaws path { stroke: rgba(230,234,238,.9); stroke-width: 7; stroke-linecap: butt; }
.chuck-body { fill: #1B1C1F; stroke: rgba(230,234,238,.85); stroke-width: 1.4; }
.chuck-ring { stroke: rgba(230,234,238,.45); }
.jaws-solid path { fill: #26282C; stroke: rgba(230,234,238,.9); stroke-width: 1.2; stroke-linejoin: round; }
.bar { fill: #1E1F23; stroke: rgba(230,234,238,.9); stroke-width: 1.3; stroke-linejoin: round; }
.helix path { stroke: rgba(230,234,238,.55); stroke-width: 1; }
.holes circle { fill: none; stroke: rgba(230,234,238,.7); stroke-width: 1; }
.wire { stroke: #FFFFFF; stroke-width: 1.2; }
.wire-glow { stroke: #FFFFFF; stroke-width: 3.5; opacity: .6; }
.inset-frame { stroke: rgba(140,151,163,.5); stroke-width: 1; stroke-dasharray: 3 3; }
.d-geo-line { stroke: rgba(230,234,238,.82); stroke-width: 1.2; }
.contour-ghost { stroke: rgba(140,151,163,.35); stroke-width: 1; stroke-dasharray: 2 3; }
.contour { stroke: #FFFFFF; stroke-width: 1.6; }
.contour-dot { fill: #FFFFFF; }
.contour-fill { fill: #050506; stroke: none; }
/* Wire EDM isométrico */
.wf { stroke: rgba(230,234,238,.8); stroke-width: 1; stroke-linejoin: round; }
.wf-0 { fill: #222327; } .wf-1 { fill: #18191C; } .wf-2 { fill: #1C1D20; }
.wb.wf-0 { fill: #26282C; }
.w-slot { stroke: rgba(255,255,255,.85); stroke-width: 1.2; }
.w-hidden { stroke: rgba(217,222,227,.55); stroke-width: 1; stroke-dasharray: 4 3; fill: none; }
.w-kerf { stroke: #FFFFFF; stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.w-kerf-s { stroke: #FFFFFF; stroke-width: 1.8; }
.w-inside { stroke: #FFFFFF; stroke-width: 1.2; stroke-dasharray: 3 3; filter: url(#glowW); }
.w-wire { stroke: #FFFFFF; stroke-width: 1.2; }
.w-flow { stroke: rgba(217,222,227,.45); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.w-guide path, .w-guide rect { fill: #1A1B1E; stroke: rgba(230,234,238,.85); stroke-width: 1.2; }
.w-slug-side { fill: #1F2124; stroke: #FFFFFF; stroke-width: 1.1; stroke-linejoin: round; }
.w-slug-top { fill: #303237; stroke: #FFFFFF; stroke-width: 1.3; stroke-linejoin: round; }
.w-spec path { stroke: rgba(140,151,163,.35); stroke-width: 1; }
.w-spec text, .w-legend text { fill: rgba(217,222,227,.85); font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.w-spec .w-spec-h { fill: var(--steel-2); font-size: 10px; letter-spacing: .24em; }
.w-legend text { font-size: 10px; }
.slug { fill: #26282C; stroke: #FFFFFF; stroke-width: 1.3; }
.slug-line { stroke: rgba(230,234,238,.5); }
.hole { fill: #08090A; stroke: rgba(230,234,238,.85); stroke-width: 1.2; stroke-dasharray: 4 3; }
.fluid { fill: rgba(140,151,163,.08); }
.fluid-line { stroke: rgba(217,222,227,.6); stroke-width: 1; }
.cavity { fill: #0A0A0A; stroke: rgba(230,234,238,.85); stroke-width: 1.2; }
.electrode { stroke: rgba(230,234,238,.9); stroke-width: 1.4; fill: rgba(217,222,227,.1); }
.fx-chip { fill: none; stroke: #E6EAEE; stroke-width: 1.3; stroke-linecap: round; }
.fx-drop { fill: rgba(217,222,227,.75); }
.fx-spark { stroke: #FFFFFF; stroke-width: 1.3; stroke-linecap: round; }
.fx-trail { stroke: rgba(230,234,238,.9); stroke-width: 1; }
.fx-smoke { fill: rgba(200,206,212,.55); }
.fx-bubble { fill: none; stroke: rgba(217,222,227,.7); stroke-width: 1; }

/* molde explosionado */
.mf { stroke: rgba(230,234,238,.85); stroke-width: 1; stroke-linejoin: round; }
.mf-x { fill: #1A1B1E; }
.mf-y { fill: #141518; }
.mf-z { fill: #222327; }
.mf-part.mf-x { fill: #2E3035; } .mf-part.mf-y { fill: #26282C; } .mf-part.mf-z { fill: #383A40; }
.mf-part { stroke: #FFFFFF; stroke-width: 1.3; }
.md { stroke: rgba(217,222,227,.6); stroke-width: .9; fill: none; }
.m-labels path { stroke: rgba(140,151,163,.9); stroke-width: 1; }
.m-labels circle { fill: #0A0A0A; stroke: #FFFFFF; stroke-width: 1.2; }
.m-labels text { fill: #FFFFFF; font-family: var(--f-head); font-size: 11px; font-weight: 700; }
.m-legend text { font-size: 10.5px; letter-spacing: .06em; }
.proc-mold .dro { grid-template-columns: auto auto; }

.proc-show { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.proc-show.is-rev .proc-copy { order: -1; }
.proc-kicker { display: inline-block; margin-bottom: 14px; font-family: var(--f-head); font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-2); }
.section-light .proc-kicker { color: var(--steel); }
.proc-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; margin-bottom: 14px; }
.proc-copy > p { color: var(--steel-2); font-size: 1.05rem; max-width: 44ch; }
.section-light .proc-copy > p { color: var(--steel); }
.proc-points { margin: 22px 0 8px; }
.proc-points li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line-dark); color: var(--light); font-size: .98rem; }
.proc-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--steel-2); }
.section-light .proc-points li { border-color: var(--line-light); color: var(--industrial); }
.section-light .proc-points li::before { background: var(--black); }
.section-light .srv-link { color: var(--black); }
.proc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.proc-pair .proc-svg { aspect-ratio: 16 / 9; height: auto; }
.proc-fig { margin: 0; }
.proc-cap { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px 0; }
.proc-cap strong { font-family: var(--f-head); font-size: 1.02rem; color: var(--black); }
.proc-cap span { font-size: .94rem; color: var(--steel); }

/* Franja inferior del hero */
.hero-strip { position: relative; border-top: 1px solid var(--line-dark); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item {
  display: flex; align-items: center; gap: 14px; padding: 26px 24px;
  font-family: var(--f-head); font-size: .86rem; font-weight: 600; color: var(--light); letter-spacing: .02em;
  border-right: 1px solid var(--line-dark); transition: background .25s, color .25s;
}
.strip-item:first-child { border-left: 1px solid var(--line-dark); }
.strip-item span { font-size: .68rem; color: var(--steel-2); letter-spacing: .14em; }
.strip-item:hover { background: rgba(255,255,255,.04); color: var(--white); }

/* Marquee */
.marquee { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line-light); padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--f-head); font-size: .82rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--black); white-space: nowrap; }
.mark-sm { width: 14px; height: 20px; fill: var(--steel); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   ENFOQUE / DIFERENCIADORES
   ========================================================================== */
.diff-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--black); }
.diff { padding: 28px 26px 8px 0; border-right: 1px solid var(--line-light); }
.diff + .diff { padding-left: 26px; }
.diff:last-child { border-right: 0; }
.diff-n { display: block; margin-bottom: 40px; font-family: var(--f-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--steel); }
.diff h3 { margin-bottom: 10px; font-size: 1.04rem; }
.diff p { font-size: .96rem; color: var(--steel); }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.srv-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; font-family: var(--f-head); }
.srv-n { font-size: .72rem; font-weight: 700; color: var(--white); letter-spacing: .1em; }
.srv-en { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-2); }
.srv-icon { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 1.2; stroke-linecap: square; margin-bottom: 22px; }
.srv-icon-lg { width: 48px; height: 48px; }

.srv-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 1px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 45%, rgba(255,255,255,.05)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    var(--graphite);
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.srv-featured-main { padding: clamp(32px, 4vw, 56px); border-right: 1px solid var(--line-dark); }
.srv-featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; letter-spacing: -.02em; }
.srv-featured-main > p { color: var(--steel-2); max-width: 46ch; font-size: 1.05rem; }
.srv-benefit { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 34px; padding: 16px 18px; border-left: 2px solid var(--white); background: rgba(255,255,255,.04); color: var(--light) !important; font-size: .98rem !important; }
.srv-benefit .icon { margin-top: 2px; color: var(--white); }
.srv-featured-side { display: flex; flex-direction: column; gap: 0; padding: clamp(24px, 3vw, 40px); }
.tech-compact { padding: 42px 16px 60px; margin-bottom: 18px; background: rgba(10,10,10,.35); }
.tech-compact .dro > div { padding: 8px 12px; }
.tech-compact .d-text { font-size: 15px; fill: rgba(217,222,227,.95); }
.tech-compact .dro b { font-size: .76rem; }
.srv-featured-side .srv-featured-list { padding: 0; }
.srv-featured-side .srv-featured-list li { padding: 13px 0; font-size: 1rem; }
.srv-featured-list { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 44px); }
.srv-featured-list li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: var(--light); font-size: 1.05rem; }
.srv-featured-list li:last-child { border-bottom: 0; }
.srv-featured-list span { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--line-dark-2); font-family: var(--f-head); font-size: .7rem; font-weight: 700; color: var(--steel-2); }

.srv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-top: 0; }
.srv-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
  background: var(--ink); transition: background .35s var(--ease);
}
.srv-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.srv-card:hover { background: #17181b; }
.srv-card:hover::after { transform: scaleX(1); }
.srv-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.srv-card p { font-size: .96rem; color: var(--steel-2); }
.srv-card ul { margin-top: 18px; }
.srv-card li { position: relative; padding: 7px 0 7px 18px; font-size: .92rem; color: var(--light); border-top: 1px solid var(--line-dark); }
.srv-card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--steel-2); }
.srv-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; font-family: var(--f-head); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.srv-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.srv-link:hover .icon { transform: translateX(4px); }

.complementary { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-dark-2); }
.complementary-head h3 { font-size: 1.15rem; margin-bottom: 8px; }
.complementary-head p { font-size: .9rem; color: var(--steel-2); }
.complementary-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.complementary-list li { display: flex; gap: 14px; align-items: flex-start; }
.complementary-list .icon { width: 26px; height: 26px; color: var(--white); stroke-width: 1.3; margin-top: 2px; }
.complementary-list strong { display: block; margin-bottom: 4px; font-family: var(--f-head); font-size: .92rem; color: var(--white); font-weight: 700; }
.complementary-list span { display: block; font-size: .9rem; color: var(--steel-2); line-height: 1.5; }

/* ==========================================================================
   INDUSTRIAS
   ========================================================================== */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ind {
  position: relative; padding: 34px 26px 30px; min-height: 260px;
  background: var(--paper); display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.ind-icon { width: 40px; height: 40px; fill: none; stroke: var(--black); stroke-width: 1.2; stroke-linecap: square; margin-bottom: auto; transition: stroke .35s; }
.ind h3 { margin: 40px 0 10px; font-size: 1.04rem; transition: color .35s; }
.ind p { font-size: .93rem; color: var(--steel); transition: color .35s; }
.ind:hover { background: var(--black); }
.ind:hover .ind-icon { stroke: var(--white); }
.ind:hover h3 { color: var(--white); }
.ind:hover p { color: var(--steel-2); }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.section-black {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(107,119,133,.16), transparent 70%),
    var(--black);
}
.g-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.g-filter {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  font-family: var(--f-head); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel-2); background: transparent; border: 1px solid var(--line-dark-2);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: color .25s, background .25s, border-color .25s;
}
.g-filter span { font-size: .64rem; color: var(--steel); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.g-filter:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.g-filter.is-active { background: var(--white); color: var(--black); border-color: var(--white); }
.g-filter.is-active span { color: var(--steel); }

.g-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 12px;
}
.g-item { position: relative; margin: 0; overflow: hidden; background: var(--graphite); }
.g-item.g-wide { grid-column: span 2; }
.g-item.g-tall { grid-row: span 2; }
.g-item.g-big  { grid-column: span 2; grid-row: span 2; }
.g-item.is-hidden { display: none; }
.g-grid.is-filtered { grid-template-columns: repeat(var(--g-cols, 4), 1fr); grid-auto-rows: 320px; }
.g-grid.is-filtered .g-item { grid-column: auto; grid-row: auto; }

.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.g-btn img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.92);
  transform: scale(1.01);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
}
/* recortes sin fondo: "estudio" monocromático con retícula y piso */
.g-cut { background:
  radial-gradient(ellipse 70% 60% at 50% 42%, rgba(217,222,227,.13), transparent 70%),
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(180deg, #1c1d20 0%, #121315 100%);
}
.g-cut::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14%; height: 18px; background: radial-gradient(ellipse at center, rgba(0,0,0,.65), transparent 70%); pointer-events: none; z-index: 0; }
.g-cut .g-btn img { object-fit: contain; padding: 7% 7% 12%; position: relative; z-index: 1; filter: grayscale(1) contrast(1.08) drop-shadow(0 14px 18px rgba(0,0,0,.55)); }

/* capa de oscurecido para lectura de pie de foto */
.g-item::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,.85) 100%);
  opacity: .9; transition: opacity .6s var(--ease);
}
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
  transform: translateY(8px); transition: transform .6s var(--ease);
}
.g-code { font-family: var(--f-head); font-size: .58rem; font-weight: 700; letter-spacing: .22em; color: var(--steel-2); }
.g-item figcaption strong { font-family: var(--f-head); font-size: .95rem; font-weight: 700; color: var(--white); letter-spacing: -.005em; line-height: 1.25; }
.g-cat { font-family: var(--f-head); font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--light); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* marcas de registro (precisión) */
.g-btn::before, .g-btn::after {
  content: ""; position: absolute; z-index: 4; width: 18px; height: 18px; pointer-events: none;
  border: 0 solid var(--white); opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.g-btn::before { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; transform: translate(6px, 6px); }
.g-btn::after { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; transform: translate(-6px, 6px); }

/* hover / foco / color en móvil: revela el color real */
.g-item:hover .g-btn img, .g-btn:focus-visible img, .g-item.is-color .g-btn img { filter: grayscale(0) contrast(1.02) brightness(1); transform: scale(1.05); }
.g-cut:hover .g-btn img, .g-cut .g-btn:focus-visible img, .g-cut.is-color .g-btn img { filter: grayscale(0) contrast(1) drop-shadow(0 18px 22px rgba(0,0,0,.6)); transform: scale(1.04) translateY(-4px); }
.g-item:hover figcaption, .g-item.is-color figcaption { transform: none; }
.g-item:hover .g-cat, .g-item.is-color .g-cat { opacity: 1; transform: none; }
.g-item:hover .g-btn::before, .g-item:hover .g-btn::after, .g-btn:focus-visible::before, .g-btn:focus-visible::after { opacity: 1; transform: none; }
.g-btn:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }

/* entrada: corte tipo pasada de máquina */
/* el recorte se aplica al interior (no a la figura observada), así el navegador sí detecta su entrada */
.js .g-item .g-btn { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); }
.js .g-item.is-in .g-btn { clip-path: inset(0 0 0 0); }
.js .g-item figcaption, .js .g-item::before { opacity: 0; transition: opacity .6s var(--ease) .5s, transform .6s var(--ease); }
.js .g-item.is-in figcaption, .js .g-item.is-in::before { opacity: 1; }
.js .g-item.is-in::before { opacity: .9; }
.js .g-item .g-btn img { transform: scale(1.12); }
.js .g-item.is-in .g-btn img { transform: scale(1.01); }
.js .g-item.is-in:hover .g-btn img, .js .g-item.is-in.is-color .g-btn img { transform: scale(1.05); }
.js .g-cut.is-in:hover .g-btn img, .js .g-cut.is-in.is-color .g-btn img { transform: scale(1.04) translateY(-4px); }
.g-item.is-filtering { animation: g-pop .7s var(--ease) both; }
@keyframes g-pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.g-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.g-more-wrap .btn[hidden] { display: none; }
#g-more span { color: var(--steel-2); }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 12px;
  padding: 72px 24px 40px; background: rgba(10,10,10,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage { position: relative; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 0; }
.lb-stage .crop { border-color: rgba(255,255,255,.4); }
.lb-img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.lb-img.is-swapping { opacity: 0; transform: scale(.98); }
.lb-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; text-align: center; }
.lb-code, .lb-cat, .lb-count { font-family: var(--f-head); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-2); }
.lb-title { font-family: var(--f-head); font-size: 1.05rem; color: var(--white); }
.lb-count { color: var(--light); font-variant-numeric: tabular-nums; }
.lb-nav, .lb-close { display: grid; place-items: center; width: 56px; height: 56px; background: transparent; border: 1px solid var(--line-dark-2); color: var(--white); transition: background .25s, border-color .25s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.lb-nav .icon { width: 22px; height: 22px; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; }
.lb-close span { position: absolute; width: 20px; height: 1.5px; background: var(--white); }
.lb-close span:first-child { transform: rotate(45deg); }
.lb-close span:last-child { transform: rotate(-45deg); }
body.lb-lock { overflow: hidden; }

/* ==========================================================================
   CAPACIDADES
   ========================================================================== */
.cap-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: stretch; }
.spec-sheet { background: var(--white); border: 1px solid var(--line-light); }
.spec-head, .form-head {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 24px;
  background: var(--black); color: var(--light);
  font-family: var(--f-head); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.spec-head span:last-child, .form-head span:last-child { color: var(--steel-2); }
.spec-sheet table { width: 100%; border-collapse: collapse; }
.spec-sheet th { text-align: left; padding: 16px 24px; font-family: var(--f-head); font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--black); }
.spec-sheet td { padding: 20px 24px; border-bottom: 1px solid var(--line-light); font-size: 1rem; vertical-align: middle; }
.spec-sheet td:first-child { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--black); }
.spec-sheet td:last-child { color: var(--industrial); }
.spec-code { display: inline-block; width: 46px; margin-right: 14px; font-size: .64rem; font-weight: 700; letter-spacing: .12em; color: var(--steel); }
.spec-note { padding: 18px 24px; font-size: .88rem; color: var(--steel); }

.org { padding: 32px; background: var(--black); color: var(--light); display: flex; flex-direction: column; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.org-title { font-family: var(--f-head); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 26px; }
.org-lead { position: relative; align-self: center; text-align: center; padding: 16px 28px; border: 1px solid var(--line-dark-2); background: var(--graphite); margin-bottom: 44px; }
.org-lead::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--line-dark-2); }
.org-kicker { display: block; font-family: var(--f-head); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 4px; }
.org-lead strong { font-family: var(--f-head); color: var(--white); font-size: 1rem; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.org-branches::before { content: ""; position: absolute; left: 25%; right: 25%; top: -22px; height: 1px; background: var(--line-dark-2); }
.org-cell { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.org-cell:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.org-cell .icon { width: 24px; height: 24px; color: var(--white); margin-bottom: 10px; stroke-width: 1.3; }
.org-cell strong { font-family: var(--f-head); color: var(--white); font-size: .95rem; }
.org-cell span { font-size: .88rem; color: var(--steel-2); }
.org-foot { margin-top: auto; padding-top: 24px; font-size: .9rem; color: var(--steel-2); }

/* ==========================================================================
   CALIDAD / PROCESO
   ========================================================================== */
.section-metal {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(107,119,133,.18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    var(--black);
}
/* Inspección animada */
.insp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: clamp(56px, 7vw, 88px); }
.insp-report { display: flex; flex-direction: column; border: 1px solid var(--line-dark-2); background: rgba(255,255,255,.02); }
.insp-head {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 20px;
  background: var(--white); color: var(--black);
  font-family: var(--f-head); font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.insp-head span:last-child { color: var(--steel); }
.insp-table { flex: 1; display: flex; flex-direction: column; }
.insp-row {
  display: grid; grid-template-columns: 38px 1.6fr 1fr 1fr 64px; align-items: center; gap: 8px;
  padding: 13px 20px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-head); font-size: .8rem; font-weight: 500; color: var(--light); font-variant-numeric: tabular-nums;
}
.insp-row span:first-child { font-weight: 700; color: var(--white); }
.insp-row span:nth-child(3), .insp-row span:nth-child(4) { text-align: right; }
.insp-th { font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-2); }
.insp-th span:first-child { color: var(--steel-2); }
.insp-row .m { color: var(--white); font-weight: 600; }
.insp-row .ok {
  justify-self: end; display: inline-grid; place-items: center; width: 44px; height: 24px;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; color: var(--black); background: var(--white);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.insp-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-family: var(--f-head); }
.insp-foot span { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-2); }
.insp-foot strong { font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
/* sincronizado con el palpador por JS (ciclo de 12 s) */
.insp-row:not(.insp-th) { opacity: .35; transition: opacity .35s var(--ease); }
.insp-row .ok, .insp-row .m { opacity: 0; transition: opacity .35s var(--ease); }
.insp-row.is-done { opacity: 1; }
.insp-row.is-done .ok, .insp-row.is-done .m { opacity: 1; }
.insp-foot strong { opacity: 0; transition: opacity .4s var(--ease); }
.insp-report.is-done .insp-foot strong { opacity: 1; }
/* Plano recibido (cotización) */
.rfq-sheet { margin: -6px -6px 20px; padding: 0; background: #FFFFFF; }
.rfq-sheet .drawing { width: 100%; height: auto; }
.sheet-border { stroke: rgba(10,10,10,.35); stroke-width: 1; fill: none; }
.scan { fill: var(--black); opacity: 0; }
.stamp { stroke: var(--black); stroke-width: 2; fill: rgba(255,255,255,.92); opacity: 0; }
.stamp .stamp-inner { stroke-width: .8; fill: none; }
.stamp text { stroke: none; fill: var(--black); font-family: var(--f-head); }
.stamp .stamp-big { font-size: 17px; font-weight: 800; letter-spacing: .14em; }
.stamp .stamp-small { font-size: 7.5px; font-weight: 700; letter-spacing: .2em; }
.rfq-sheet .d-text text { font-size: 11px; }
.rfq-sheet .d-text .d-small { font-size: 7px; }

.process { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-dark-2); }
.step { position: relative; padding-right: 24px; }
.step-n {
  position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 30px;
  font-family: var(--f-head); font-size: .8rem; font-weight: 700; color: var(--black); background: var(--white);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.step h3 { margin-bottom: 10px; font-size: 1.02rem; }
.step p { font-size: .93rem; color: var(--steel-2); }

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.pvm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
.pvm-card { padding: 34px 32px; background: var(--paper); border-top: 2px solid var(--black); }
.pvm-label { display: block; margin-bottom: 18px; font-family: var(--f-head); font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); }
.pvm-card p { font-family: var(--f-head); font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: var(--black); letter-spacing: -.01em; }

.pillars-wrap { margin-top: clamp(64px, 8vw, 100px); }
.pillars-title { font-family: var(--f-head); font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); margin-bottom: 26px; }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.pillar { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line-light); }
.pillar:last-child { border-right: 0; }
.pillar .icon { width: 38px; height: 38px; color: var(--black); stroke-width: 1.2; margin: 0 auto 18px; transition: transform .4s var(--ease); }
.pillar:hover .icon { transform: translateY(-4px); }
.pillar h3 { font-size: 1.04rem; margin-bottom: 8px; }
.pillar p { font-size: .9rem; color: var(--steel); }

/* Banda de slogan */
.slogan-band {
  position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0;
  background:
    linear-gradient(100deg, rgba(10,10,10,.96) 35%, rgba(10,10,10,.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px),
    linear-gradient(120deg, #2B2B2E, #6B7785 45%, #1A1B1E 70%, #3a3d42);
  color: var(--white);
}
.slogan-mark { position: absolute; right: 6%; top: 50%; width: clamp(160px, 22vw, 300px); height: auto; aspect-ratio: 269 / 398; transform: translateY(-50%); fill: rgba(255,255,255,.07); }
.slogan-inner { position: relative; }
.slogan { font-family: var(--f-head); font-style: italic; font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -.03em; }
.slogan::before { content: ""; display: block; width: 14px; height: 64px; margin-bottom: 30px; background: var(--white); transform: skewX(-24deg); }
.slogan-sub { margin-top: 26px; max-width: 60ch; font-family: var(--f-head); font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--light); line-height: 1.9; }

/* ==========================================================================
   COTIZACIÓN
   ========================================================================== */
.rfq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.rfq-info { position: sticky; top: calc(var(--header-h) + 24px); }
.rfq-info h2 { margin-bottom: 20px; }
.rfq-info > p { color: var(--steel); font-size: 1.08rem; }
.channels { margin-top: 36px; border-top: 1px solid var(--line-light); }
.channel { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line-light); transition: padding .3s var(--ease); }
.channel > .icon { width: 26px; height: 26px; color: var(--black); stroke-width: 1.3; }
.channel div { flex: 1; min-width: 0; }
.channel span { display: block; font-family: var(--f-head); font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); }
.channel strong { display: block; font-family: var(--f-head); font-size: 1rem; font-weight: 600; color: var(--black); overflow-wrap: anywhere; }
.channel-arrow { width: 18px !important; height: 18px !important; color: var(--steel) !important; transition: transform .25s var(--ease), color .25s; }
a.channel:hover { padding-left: 12px; }
a.channel:hover .channel-arrow { transform: translateX(4px); color: var(--black) !important; }
.checklist { margin-top: 36px; padding: 26px 26px 22px; background: var(--white); border: 1px solid var(--line-light); }
.checklist-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--f-head); font-size: .86rem; font-weight: 700; color: var(--black); }
.checklist li { position: relative; padding: 6px 0 6px 22px; font-size: .95rem; color: var(--industrial); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 1px; background: var(--black); }

.rfq-form { background: var(--white); border: 1px solid var(--line-light); box-shadow: 0 30px 60px -30px rgba(10,10,10,.25); }
.rfq-form fieldset { border: 0; margin: 0; padding: 28px 32px 6px; }
.rfq-form fieldset + fieldset { border-top: 1px solid var(--line-light); }
.rfq-form legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; font-family: var(--f-head); font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--steel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; clear: both; }
.field-row-3 { grid-template-columns: 1.3fr .8fr 1fr; }
.field { margin-bottom: 20px; clear: both; }
.field-row .field { clear: none; }
.field label { display: block; margin-bottom: 7px; font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--industrial); }
.field label em, .check em { font-style: normal; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--f-body); font-size: 1rem; color: var(--black);
  background: var(--paper); border: 1px solid transparent; border-bottom: 1px solid rgba(10,10,10,.28); border-radius: 0;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--black); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; background: #fdf3f2; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: .95rem; color: var(--industrial); cursor: pointer; clear: both; }
.check input { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid rgba(10,10,10,.4); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--black); border-color: var(--black); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: translateY(-1px) rotate(-45deg); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check-legal { padding: 0 32px; margin-top: 18px; }
.check-legal.has-error input { border-color: #b3261e; }
.attach-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 14px 16px; background: var(--paper); font-size: .9rem; color: var(--steel); border-left: 2px solid var(--steel); }
.attach-note .icon { color: var(--industrial); margin-top: 1px; }

.form-error { margin: 0 32px 16px; padding: 12px 16px; font-size: .92rem; color: #b3261e; background: #fdf3f2; border-left: 2px solid #b3261e; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 8px 32px 32px; }
.form-actions .btn { min-width: 260px; }
.form-actions .btn:disabled { opacity: .7; cursor: progress; }
.btn.is-loading .icon { animation: spin-arrow 1s linear infinite; }
@keyframes spin-arrow { to { transform: translateX(4px); opacity: .3; } }
.form-urgent { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--steel); }
.form-urgent .icon { width: 18px; height: 18px; color: var(--wa); }
.form-urgent a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* adjuntar planos */
.field label .opt { font-weight: 500; color: var(--steel); letter-spacing: 0; }
.field .file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.rfq-form .field { position: relative; }
.file-drop {
  display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 18px 18px;
  background: var(--paper); border: 1px dashed rgba(10,10,10,.3); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.is-over, .file-input:focus-visible + .file-list, .file-drop:focus-within { border-color: var(--black); background: var(--white); }
.file-drop .icon { width: 26px; height: 26px; color: var(--black); stroke-width: 1.3; }
.file-drop-text { display: flex; flex-direction: column; gap: 3px; }
.file-drop-text strong { font-family: var(--f-head); font-size: .86rem; font-weight: 600; color: var(--black); }
.file-drop-text small { font-family: var(--f-body); font-size: .78rem; letter-spacing: .04em; color: var(--steel); font-weight: 400; }
.file-drop.has-files { border-style: solid; border-color: var(--black); background: var(--white); }
.file-list { margin-top: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-light); font-size: .9rem; }
.file-list .fl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--industrial); }
.file-list .fl-size { font-family: var(--f-head); font-size: .72rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.file-list button { width: 26px; height: 26px; border: 1px solid var(--line-light); background: transparent; color: var(--industrial); font-size: 1rem; line-height: 1; }
.file-list button:hover { border-color: var(--black); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error a { color: #b3261e; font-weight: 600; text-decoration: underline; }
.form-success { display: flex; gap: 16px; margin: 0 32px 32px; padding: 20px; background: var(--black); color: var(--light); }
.form-success[hidden], .form-error[hidden] { display: none; }
.form-success > .icon { width: 28px; height: 28px; color: var(--wa); stroke-width: 2; }
.form-success strong { display: block; font-family: var(--f-head); color: var(--white); margin-bottom: 4px; }
.form-success p { font-size: .94rem; color: var(--steel-2); }
.form-success a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.btn-copy { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; background: transparent; border: 1px solid var(--line-dark-2); color: var(--white); font-family: var(--f-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.btn-copy:hover { background: rgba(255,255,255,.08); }
.btn-copy .icon { width: 16px; height: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--black); color: var(--steel-2); padding: 80px 0 104px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 230px; }
.footer-tagline { margin-top: 22px; font-family: var(--f-head); font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--light); }
.footer-h { margin-bottom: 18px; font-family: var(--f-head); font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-plain { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; transition: color .2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); }
.footer-col .icon { width: 18px; height: 18px; color: var(--light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 28px; font-size: .85rem; }
.footer-phrase { font-family: var(--f-head); font-style: italic; color: var(--light); }
.footer-bottom a:hover { color: var(--white); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  background: var(--wa); color: var(--white);
  font-family: var(--f-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
  transform: translateY(120%); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease), background .2s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #17964a; }
.wa-float .icon { width: 24px; height: 24px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1360px) {
  .header-wa span { display: none; }
}

/* el menú pasa a hamburguesa antes de que el logo tenga que reducirse */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--black); padding: 32px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: var(--black); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a { display: block; padding: 20px 0; font-size: .95rem; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta-mobile { display: block; border: 0; padding-top: 28px; }
  .main-nav .nav-cta-mobile .btn { display: flex; width: 100%; color: var(--black); padding: 0 28px; font-size: .8rem; }
}

@media (max-width: 1180px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .complementary { grid-template-columns: 1fr; gap: 28px; }
  .complementary-list { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .g-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .g-grid.is-filtered { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 48px 0; }
  .process::before { display: none; }
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .diff:nth-child(3) { border-right: 0; }
  .diff:nth-child(4) { padding-left: 0; }
  .diff:nth-child(n+4) { border-top: 1px solid var(--line-light); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-brand-meta { display: none; }
  .hero-visual { max-width: 620px; }
  .section-head, .split { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .srv-featured { grid-template-columns: 1fr; }
  .srv-featured-main { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .cap-layout { grid-template-columns: 1fr; }
  .insp { grid-template-columns: minmax(0, 1fr); }
  .proc-show { grid-template-columns: minmax(0, 1fr); }
  .proc-show.is-rev .proc-copy { order: 0; }
  .proc-pair { grid-template-columns: minmax(0, 1fr); }
  .insp-row span { min-width: 0; }
  .rfq { grid-template-columns: 1fr; }
  .rfq-info { position: static; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(3) { border-right: 0; }
  .pillar:nth-child(n+4) { border-top: 1px solid var(--line-light); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-brand-rule { gap: 14px; }
  .rule-ticks:first-child { flex-basis: 24px; }
  .hero-tagline { white-space: normal; font-size: .66rem; letter-spacing: .26em; line-height: 1.7; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 18px 14px; font-size: .78rem; border-bottom: 1px solid var(--line-dark); }
  .strip-item:nth-child(odd) { border-left: 0; }
  .strip-item:nth-child(even) { border-right: 0; }
  .drawing-frame { padding: 40px 12px 64px; }
  .drawing-head span:first-child { display: none; }
  .dro { left: -1px; grid-template-columns: repeat(3, 1fr); }
  .tech .dro { grid-template-columns: repeat(2, 1fr); }
  .m-legend, .w-legend { display: none; }
  .tech-lathe .d-text, .tech-lathe .d-dim { display: none; }
  .tech-lathe { padding: 40px 10px 60px; }
  .insp-row { grid-template-columns: 24px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 40px; padding: 11px 12px; font-size: .68rem; gap: 6px; }
  .insp-th { font-size: .5rem; letter-spacing: .12em; }
  .insp-th span:first-child { font-size: 0; }
  .insp-th span:first-child::after { content: "P"; font-size: .5rem; }
  .insp-row .ok { width: 38px; height: 22px; font-size: .56rem; }
  .insp-head, .insp-foot { padding: 12px; }
  .dro .dro-status { display: none; }
  .dro > div { padding: 9px 10px; justify-content: center; }
  .dro b { font-size: .74rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff, .diff + .diff { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .diff:first-child { border-top: 0; }
  .diff-n { margin-bottom: 14px; }
  .srv-grid { grid-template-columns: 1fr; }
  .complementary-list { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .g-filters::-webkit-scrollbar { display: none; }
  .g-filter { flex-shrink: 0; }
  .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 168px; gap: 8px; }
  .g-grid.is-filtered { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .g-item figcaption { padding: 12px 12px; }
  .g-item figcaption strong { font-size: .8rem; }
  .g-code { font-size: .52rem; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 20px; }
  .lb-stage { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .lb-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .ind { min-height: 0; padding: 24px 20px; }
  .ind h3 { margin-top: 24px; }
  .ind:last-child { grid-column: 1 / -1; }
  .spec-sheet th, .spec-sheet td { padding: 14px 16px; }
  .spec-code { display: none; }
  .org { padding: 24px; }
  .org-branches { grid-template-columns: 1fr 1fr; }
  .org-cell { padding: 16px; }
  .process { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .step { padding-right: 0; }
  .pvm { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar:nth-child(3) { border-right: 1px solid var(--line-light); }
  .pillar:nth-child(even) { border-right: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .pillar:last-child { grid-column: 1 / -1; border-right: 0; }
  .rfq-form fieldset { padding: 24px 20px 4px; }
  .check-legal { padding: 0 20px; }
  .form-error { margin: 0 20px 16px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; padding: 8px 20px 24px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .form-urgent { justify-content: center; }
  .form-success { margin: 0 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 14px; bottom: 14px; height: 54px; padding: 0 16px; }
  .wa-float span { display: none; }
  .slogan-mark { opacity: .6; right: -40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .d-draw { stroke-dashoffset: 0; }
}
