/* ============================================================
   FERRALLA — Sitio público · Dirección Fundición
   Portado del proyecto Claude Design "Ferralla Nueva Web".
   Temas: oscuro (default) y claro vía html[data-theme="light"].
   ============================================================ */
:root {
  --bg: #0e0d0f;
  --bg-2: #141316;
  --bg-3: #1a191d;
  --fg: #f2efe9;
  --fg-muted: #9a978f;
  --fg-dim: #6f6c66;
  --accent: #f4640a;
  --accent-hot: #ff7a29;
  --accent-deep: #b84c05;
  --steel: #6f7d8c;
  --line: rgba(242, 239, 233, 0.09);
  --head: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* superficies dependientes de tema */
  --nav-bg: rgba(14, 13, 15, 0.92);
  --sheet-bg: rgba(14, 13, 15, 0.98);
  --label-grad: rgba(14, 13, 15, 0.92);
  --hero-glow: rgba(244, 100, 10, 0.07);
  /* fábrica animada */
  --fab-rail: #2a2528;
  --fab-arm: #2f2a2e;
  --fab-disc: #1d1a1d;
  --fab-disc-stroke: #3a333a;
  --fab-col: #2e2a30;
  --fab-slab: #38333a;
  --fab-glass: #333d47;
  --fab-lit: #ffd9a0;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f5f2ec;
  --bg-2: #ece7dd;
  --bg-3: #e0dacd;
  --fg: #181611;
  --fg-muted: #5b564c;
  --fg-dim: #8b8578;
  --accent: #e85d04;
  --accent-hot: #b64a03;
  --accent-deep: #b84c05;
  --steel: #5c6a79;
  --line: rgba(24, 22, 17, 0.13);
  --nav-bg: rgba(245, 242, 236, 0.92);
  --sheet-bg: rgba(245, 242, 236, 0.98);
  --label-grad: rgba(236, 231, 221, 0.94);
  --hero-glow: rgba(232, 93, 4, 0.10);
  --fab-rail: #cfc7b8;
  --fab-arm: #8b8578;
  --fab-disc: #efe9de;
  --fab-disc-stroke: #b0a794;
  --fab-col: #c4bcab;
  --fab-slab: #afa693;
  --fab-glass: #a9b9c6;
  --fab-lit: #e8971e;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--head); font-weight: 400; font-stretch: 100%; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.35s ease, color 0.35s ease; }
img { max-width: 100%; display: block; }
a { color: var(--accent-hot); text-decoration: none; }
a:hover { color: var(--fg); }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ---- type helpers ---- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-hot); }
.h-display { font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; }
.section-title { font-size: clamp(30px, 4vw, 52px); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.04; }
.section-lead { color: var(--fg-muted); font-size: clamp(15px, 1.3vw, 17px); max-width: 60ch; }

/* corrugado en texto */
.corru { font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; background: repeating-linear-gradient(115deg, var(--accent) 0 9px, var(--accent-deep) 9px 12px); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes corruShift { to { background-position: 26px 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

section { position: relative; }
/* al saltar a una ancla del nav (#servicios, #proyectos…), deja que el
   título quede debajo del nav fijo en vez de tapado por él */
section[id], [id].section { scroll-margin-top: clamp(74px, 8vh, 92px); }
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-header { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; margin-bottom: clamp(44px, 5vw, 72px); }
.section-header .eyebrow { padding-top: 10px; }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 4vw, 56px); transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { display: block; }
.brand .corru { font-size: 21px; }

/* ---- marca: lockup compacto (marca + FERRALLA) vs logo completo ---- */
.brand-compact { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-word { font-family: var(--head); font-weight: 900; font-stretch: 125%; letter-spacing: -0.015em; text-transform: uppercase; line-height: 1; font-size: 25px; color: #f4640a; }
.brand-full { height: 44px; width: auto; display: block; }
/* toggle: por defecto compacto */
.brand-full { display: none; }
html[data-logo="full"] .brand-compact { display: none; }
html[data-logo="full"] .brand-full { display: block; }
/* el logo completo lleva una placa clara en tema oscuro para que el
   subtítulo azul marino sea legible sobre el fondo negro */
html:not([data-theme="light"]) .brand-full { background: #f5f2ec; padding: 5px 12px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--fg-muted); text-transform: uppercase; transition: color 0.25s ease; }
.nav-links > a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-family: var(--head); font-weight: 700; font-stretch: 110%; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; padding: 12px 24px; border: none; cursor: pointer; transition: background 0.25s ease, transform 0.25s ease; }
.btn:hover { background: var(--accent-hot); color: #fff; transform: translateY(-1px); }
html[data-theme="light"] .btn:hover { background: #c95204; }
.btn.wa { background: #1d3d2a; color: #7fd99a; }
.btn.wa:hover { background: #234a33; color: #9be8b3; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-hot); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--fg); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }

/* iconos de utilidades del nav (tema / columnas) */
.nav-tools { display: flex; align-items: center; gap: 6px; }
.nav-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--fg-muted); cursor: pointer; border-radius: 8px; transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.nav-icon-btn:hover { color: var(--accent-hot); border-color: var(--accent); }
.nav-icon-btn.active { color: var(--accent-hot); border-color: var(--accent-deep); background: rgba(244, 100, 10, 0.08); }
.nav-icon-btn svg { width: 17px; height: 17px; }
.nav-icon-btn .ico-sun { display: none; }
html[data-theme="light"] .nav-icon-btn .ico-sun { display: block; }
html[data-theme="light"] .nav-icon-btn .ico-moon { display: none; }

.nav-sheet { position: fixed; inset: 0; z-index: 99; background: var(--sheet-bg); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 80px clamp(24px, 6vw, 48px) 40px; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.nav-sheet.open { opacity: 1; pointer-events: auto; }
.nav-sheet > a { font-weight: 900; font-stretch: 120%; font-size: clamp(26px, 6vw, 40px); text-transform: uppercase; color: var(--fg); padding: 6px 0; border-bottom: 1px solid var(--line); }
.nav-sheet > a:hover { color: var(--accent-hot); }
.nav-sheet-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.nav-sheet-foot { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-dim); text-transform: uppercase; margin-top: 12px; }

/* ============ HERO ============ */
/* Mod: la fábrica (corte → doblado → edificio) vive DENTRO del primer
   viewport — el hero es una columna flex que centra el copy y ancla la
   animación al fondo, siempre visible al cargar. */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding: 84px 0 0; }
.hero-grain { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--hero-glow), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; width: 100%; }
.hero-copy { margin: auto 0; padding-top: 10px; }
.hero-kicker { font-family: var(--mono); font-size: clamp(11px, 1.1vw, 13px); letter-spacing: 0.22em; color: var(--accent-hot); text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-size: clamp(34px, 5.6vw, 74px); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; }
.hero-sub { margin-top: 18px; font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px); color: var(--fg-muted); max-width: 52ch; }
.hero-ctas { margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-fab-stage { position: relative; flex-shrink: 0; margin-top: clamp(14px, 3vh, 36px); padding-bottom: 10px; }
.hero-fab-stage svg.factory3 { position: relative; width: 100%; height: clamp(150px, 24vh, 250px); display: block; overflow: visible; }

/* estribo alrededor del titular */
.estribo-wrap { position: relative; display: inline-block; padding: clamp(16px, 2.4vw, 36px) clamp(22px, 3.4vw, 52px); }
.estribo-wrap .bend-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.estribo-wrap rect.bend-path { x: 3px; y: 3px; width: calc(100% - 6px); height: calc(100% - 6px); rx: 18px; }

/* ---- motor de doblado ---- */
.bend-path { fill: none; stroke: var(--accent-hot); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.bend-path.st-corru { stroke: url(#corru-pat); }
.bend-path.st-corru-fine { stroke: url(#corru-fine); stroke-width: 3.5; }

/* ===== Toggle de corruga realista =====
   Con html[data-corru="real"] los strokes de TODA varilla animada apuntan a
   los patrones 3D en relieve (groove + luz + sombra), sin borrar los planos.
   Cubre estribo del hero, fábrica, CTA, divisores y rieles laterales. */
html[data-corru="real"] .bend-path.st-corru,
html[data-corru="real"] .fb2-feed,
html[data-corru="real"] .fb2-est { stroke: url(#corru-pat-3d); }
html[data-corru="real"] .bend-path.st-corru-fine { stroke: url(#corru-fine-3d); }
.bend-head { fill: #ffe9c4; filter: drop-shadow(0 0 8px rgba(255, 150, 50, 0.95)); opacity: 0; transition: opacity 0.35s ease; transform-box: fill-box; transform-origin: center; }
html[data-theme="light"] .bend-head { fill: #ff9438; filter: drop-shadow(0 0 8px rgba(220, 110, 20, 0.9)); }
.bend-head.cut-flash { animation: cutFlash 0.5s ease-out; }
@keyframes cutFlash { 0% { transform: scale(1); } 30% { transform: scale(2.8); } 100% { transform: scale(1); } }

/* chispas y brasas */
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffd9a0; box-shadow: 0 0 6px rgba(255, 180, 80, 1); animation: sparkFly 0.6s ease-out forwards; pointer-events: none; z-index: 8; }
html[data-theme="light"] .spark { background: #e8760a; box-shadow: 0 0 6px rgba(210, 100, 10, 1); }
@keyframes sparkFly { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffb066; box-shadow: 0 0 6px rgba(255, 150, 60, 0.9); animation: emberRise var(--dur, 3s) ease-out forwards; z-index: 3; pointer-events: none; }
html[data-theme="light"] .ember { background: #e8760a; box-shadow: 0 0 6px rgba(210, 100, 10, 0.8); }
@keyframes emberRise { 0% { opacity: 0.9; } 100% { transform: translate(var(--dx, 0), -180px); opacity: 0; } }

/* ---- fábrica (corte → doblado → edificio) ---- */
.factory3 .rail { stroke: var(--fab-rail); stroke-width: 2; }
.fb2-feed { stroke: url(#corru-pat); stroke-width: 8; stroke-linecap: round; fill: none; }
.fb2-feed-g { transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fb2-disc-g { transition: transform 0.35s ease; }
.fb2-disc-g.down { transform: translateY(38px); }
.fb2-arm { stroke: var(--fab-arm); stroke-width: 5; stroke-linecap: round; }
.fb2-disc { fill: var(--fab-disc); stroke: var(--fab-disc-stroke); stroke-width: 2.5; }
.fb2-disc-r { stroke: var(--fab-disc-stroke); stroke-width: 2; }
.fb2-spin-g { transform-origin: 250px 148px; }
.fb2-spin-g.fast { animation: discSpin 0.4s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }
.fb2-est { fill: none; stroke: url(#corru-pat); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fb2-est-g { transition: transform 0.65s var(--ease), opacity 0.25s ease; }
.fb2-pin { fill: var(--accent-deep); stroke: #ffd9a0; stroke-width: 2; opacity: 0; transition: opacity 0.2s ease; }
.fb2-pin.on { opacity: 1; }
.fb-part { opacity: 0; transition: opacity 0.5s ease, filter 1.3s ease 0.5s; filter: drop-shadow(0 0 10px rgba(255, 122, 41, 0.9)); }
.fb-part.on { opacity: 1; }
.fb-part.set { filter: none; }
.fb-part .col { fill: var(--fab-col); }
.fb-part .slab { fill: var(--fab-slab); }
.fb-part .glass { fill: var(--fab-glass); }
.fb-part .lit { fill: var(--fab-lit); opacity: 0.55; }
.fb-part .core { fill: var(--fab-col); }
.fb-part .ant { stroke: var(--fab-disc-stroke); stroke-width: 2.5; stroke-linecap: round; }
.fb2-bld-g.complete .fb-part { animation: completePulse 1.1s ease; }
@keyframes completePulse { 50% { filter: drop-shadow(0 0 13px rgba(255, 140, 60, 1)); } }

/* ---- CTA con estribo corrugado ---- */
.cta-bend { position: relative; display: inline-block; padding: 15px 34px; font-weight: 900; font-stretch: 115%; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg); cursor: pointer; }
.cta-bend .bend-svg { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; }
.cta-bend rect.bend-path { x: 3px; y: 3px; width: calc(100% - 6px); height: calc(100% - 6px); rx: 12px; }
.cta-bend .lbl { position: relative; z-index: 2; }
.cta-bend:hover { color: var(--accent-hot); }
/* variante compacta para el nav: mismo recuadro corrugado del hero, estático (sin data-bend-scene) */
.cta-bend-nav { padding: 10px 22px; font-size: 13px; }

/* ---- divisor de varilla entre secciones ---- */
.divider-bend { position: relative; height: 90px; overflow: visible; pointer-events: none; }
.divider-bend svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* divisor colocado ARRIBA de una sección: recuadro compacto que se encima al título */
.divider-top { z-index: 3; height: 40px; margin-top: clamp(48px, 6vw, 96px); margin-bottom: -38px; }

/* ---- Servicios: banda de color como "Por qué Ferralla"; separador alineado a la transición entre secciones ---- */
#servicios { background: var(--bg-2); border-bottom: 1px solid var(--line); padding-top: clamp(16px, 1.7vw, 26px); }

/* ---- Nosotros: misma banda de color que Servicios ---- */
#nosotros { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Por qué Ferralla (merge propuesta de valor + números): ambas tablas unidas en una sola, fondo body ---- */
.merge-porque .numbers-grid { margin-top: 0; border-top: none; }
.merge-porque .number { background: var(--bg); }
/* reduce el aire inferior para que el separador de abajo no quede tan lejos */
.merge-porque { padding-bottom: clamp(24px, 3vw, 44px); }

/* ---- Especialidades: título pegado al separador de arriba (como Servicios) ---- */
#especialidades { padding-top: clamp(16px, 1.7vw, 26px); }

/* ============ PROPUESTA DE VALOR ============ */
.value-prop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-card { background: var(--bg); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; transition: background 0.3s ease; }
.value-card:hover { background: var(--bg-2); }
.value-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-dim); }
.value-icon { width: 52px; height: 52px; color: var(--accent-hot); }
.value-icon svg { width: 100%; height: 100%; }
.value-title { font-size: 21px; font-weight: 900; font-stretch: 120%; text-transform: uppercase; line-height: 1.15; }
.value-body { color: var(--fg-muted); font-size: 14.5px; flex: 1; }
.value-highlight { font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--accent-hot); }
.value-highlight .sub { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; font-stretch: 100%; letter-spacing: 0.16em; color: var(--fg-dim); margin-top: 8px; text-transform: uppercase; }

/* ============ SERVICIOS ============ */
.services-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px) clamp(32px, 4vw, 72px); }
.svc { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.svc-num { font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: 1; background: repeating-linear-gradient(115deg, var(--accent) 0 7px, var(--accent-deep) 7px 9px); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-title { font-size: 22px; font-weight: 900; font-stretch: 120%; text-transform: uppercase; margin-bottom: 10px; }
.svc-lead { color: var(--fg-muted); font-size: 14.5px; margin-bottom: 16px; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc-list li { position: relative; padding-left: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-muted); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 5px; background: repeating-linear-gradient(115deg, var(--accent) 0 4px, var(--accent-deep) 4px 5.5px); border-radius: 3px; }

/* ============ NÚMEROS ============ */
.numbers { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(80px, 9vw, 130px) 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.number { background: var(--bg-2); padding: clamp(24px, 2.6vw, 40px); }
.number-value { font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: var(--fg); }
.number-value .small { font-size: 0.4em; color: var(--accent-hot); margin-left: 4px; }
.number-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hot); margin-top: 14px; }
.number-desc { color: var(--fg-dim); font-size: 13px; margin-top: 8px; }

/* ============ ESPECIALIDADES ============ */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 36px); }
.spec { position: relative; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.spec img { width: 100%; height: 320px; object-fit: cover; filter: saturate(0.85) contrast(1.05); transition: transform 0.8s var(--ease); }
.spec:hover img { transform: scale(1.04); }
.spec-content { padding: clamp(22px, 2.4vw, 34px); }
.spec-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: var(--accent-hot); text-transform: uppercase; }
.spec-title { font-size: 24px; font-weight: 900; font-stretch: 120%; text-transform: uppercase; margin: 10px 0 12px; }
.spec-desc { color: var(--fg-muted); font-size: 14.5px; }

/* ============ MANUFACTURA ============ */
.mfg { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mfg-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 3.5vw, 56px); align-items: start; }
.mfg-visual { position: sticky; top: 100px; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 4 / 3.4; overflow: hidden; }
.mfg-step-image { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.mfg-step-image.active { opacity: 1; }
.mfg-step-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.mfg-visual-label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: linear-gradient(transparent, var(--label-grad)); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--fg); text-transform: uppercase; }
.mfg-visual-label .num { color: var(--accent-hot); font-size: 18px; font-weight: 500; }
.mfg-steps { display: flex; flex-direction: column; }
.mfg-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 15px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; transition: background 0.3s ease; }
.mfg-step:hover { background: rgba(150, 140, 120, 0.06); }
.mfg-step-num { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); padding-top: 3px; transition: color 0.3s ease; }
.mfg-step-title { font-size: 15.5px; font-weight: 700; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.02em; transition: color 0.3s ease; }
.mfg-step-desc { color: var(--fg-dim); font-size: 13px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.5s ease, margin 0.5s ease; }
.mfg-step.active .mfg-step-num { color: var(--accent-hot); }
.mfg-step.active .mfg-step-title { color: var(--accent-hot); }
.mfg-step.active .mfg-step-desc { max-height: 90px; opacity: 1; margin-top: 6px; }
.mfg-step-meter { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.mfg-step-meter span { display: block; width: 100%; height: 0; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, var(--accent-deep) 8px 11px); }
.mfg-step.active .mfg-step-meter span { height: 100%; transition: height 5s linear; }

/* ============ PROYECTOS ============ */
/* Mod: sin scrollbar — solo flechas que avanzan de 3 en 3. */
.projects-rail { --rail-gap: clamp(16px, 2vw, 28px); display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.projects-rail::-webkit-scrollbar { display: none; }
.project-card { flex: 0 0 calc((100% - 2 * var(--rail-gap)) / 3); scroll-snap-align: start; border: 1px solid var(--line); background: var(--bg-2); }
.project-card img { width: 100%; height: 230px; object-fit: cover; filter: saturate(0.85); }
.project-card-content { padding: 22px; }
.project-card-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-dim); text-transform: uppercase; margin-bottom: 10px; }
.project-card-title { font-size: 19px; font-weight: 900; font-stretch: 118%; text-transform: uppercase; margin-bottom: 10px; }
.project-card-achievement { color: var(--fg-muted); font-size: 13.5px; min-height: 3.2em; }
.project-card-stats { display: flex; gap: 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-card-stats .v { display: block; font-weight: 900; font-stretch: 120%; font-size: 19px; color: var(--accent-hot); }
.project-card-stats .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--fg-dim); text-transform: uppercase; }
.projects-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.projects-nav button { width: 44px; height: 44px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease; }
.projects-nav button:hover { border-color: var(--accent); color: var(--accent-hot); }
.projects-nav button:disabled { opacity: 0.3; cursor: default; border-color: var(--line); color: var(--fg-dim); }
.projects-nav svg { width: 16px; height: 16px; }

/* ============ CALIDAD ============ */
.quality-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.quality-list { display: flex; flex-direction: column; gap: 26px; }
.quality-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.quality-item .icon { width: 44px; height: 44px; color: var(--accent-hot); }
.quality-item .icon svg { width: 100%; height: 100%; }
.quality-item h4 { font-size: 16px; font-weight: 700; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 5px; }
.quality-item p { color: var(--fg-muted); font-size: 14px; }
.traza-card { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 2.6vw, 38px); }
.eyebrow.muted { color: var(--fg-dim); }
.traza-flow { display: flex; align-items: center; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.traza-step { text-align: center; }
.traza-step .num { font-family: var(--mono); font-size: 11px; color: var(--accent-hot); }
.traza-step .lbl { font-weight: 700; font-stretch: 115%; font-size: 13.5px; text-transform: uppercase; }
.traza-arrow { color: var(--fg-dim); }
.traza-code { font-family: var(--mono); font-size: 12.5px; line-height: 2; background: var(--bg); border: 1px solid var(--line); padding: 18px 22px; }
.traza-code .k { color: var(--fg-dim); }
.traza-code .v { color: var(--accent-hot); }

/* ============ NOSOTROS ============ */
.nosotros-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.nosotros-image { border: 1px solid var(--line); overflow: hidden; }
.nosotros-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; filter: saturate(0.85); }
.nosotros-points { display: flex; flex-direction: column; gap: 24px; margin-top: 34px; }
.nosotros-point { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding-top: 20px; }
.nosotros-point .big { font-weight: 900; font-stretch: 125%; font-size: 36px; line-height: 1; color: var(--accent-hot); }
.nosotros-point .big .small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 400; font-stretch: 100%; letter-spacing: 0.14em; color: var(--fg-dim); margin-top: 6px; text-transform: uppercase; }
.nosotros-point h4 { font-size: 15.5px; font-weight: 700; font-stretch: 115%; text-transform: uppercase; margin-bottom: 4px; }
.nosotros-point p { color: var(--fg-muted); font-size: 13.5px; }

/* ============ PROCESO ============ */
.process { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-timeline::before { content: ""; position: absolute; top: 54px; left: 3%; right: 3%; height: 5px; border-radius: 3px; background: repeating-linear-gradient(115deg, var(--accent) 0 9px, var(--accent-deep) 9px 12px); opacity: 0.55; }
.process-step { padding: 0 18px; position: relative; }
.process-step .time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent-hot); text-transform: uppercase; }
.process-step .num { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--accent); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--fg); margin: 14px 0 16px; position: relative; z-index: 2; }
.process-step h4 { font-size: 15.5px; font-weight: 700; font-stretch: 115%; text-transform: uppercase; margin-bottom: 6px; }
.process-step p { color: var(--fg-dim); font-size: 13px; }

/* ============ CTA FINAL ============ */
.cta { padding: clamp(90px, 11vw, 160px) 0; position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.cta-title { font-size: clamp(30px, 4.4vw, 58px); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 1.04; }
.cta-title .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.cta-title .accent { background: repeating-linear-gradient(115deg, var(--accent) 0 9px, var(--accent-deep) 9px 12px); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-side { border: 1px solid rgba(0, 0, 0, 0.14); background: #fff; padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; gap: 14px; color: #1c1c1c; }
.cta-side .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: #7a746b; text-transform: uppercase; }
.cta-side .response { font-weight: 900; font-stretch: 125%; font-size: clamp(38px, 4vw, 54px); line-height: 1; color: var(--accent-hot); }
.cta-side p { color: #4a4744; font-size: 14px; }
.cta-side .btn.ghost { border-color: rgba(0, 0, 0, 0.22); color: #1a1a1a; }
.cta-side .btn.ghost:hover { border-color: var(--accent); color: var(--accent-hot); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cta-actions .btn { justify-content: center; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 6vw, 80px) 0 36px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; }
/* el logo del footer respeta el toggle compacto/completo (mismas clases que
   el nav → hereda las reglas .brand-compact / .brand-full de data-logo) */
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo .brand-mark { height: 46px; }
.footer-logo .brand-word { font-size: 28px; }
.footer-logo .brand-full { height: 62px; max-width: 100%; }
/* placa clara en tema oscuro para el subtítulo azul del logo completo */
html:not([data-theme="light"]) .footer-logo .brand-full { padding: 10px 15px; border-radius: 10px; }
.footer-brand p { color: var(--fg-dim); font-size: 13.5px; margin-top: 16px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: var(--fg-dim); text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { color: var(--fg-muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent-hot); }
.footer-col p { color: var(--fg-dim); font-size: 13px; }
.footer-bottom { display: flex; justify-content: center; gap: 10px 24px; flex-wrap: wrap; text-align: center; border-top: 1px solid var(--line); padding-top: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.footer-bottom-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--fg-dim); }
.footer-bottom a:hover { color: var(--fg); }

/* WhatsApp fab */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #24b358; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   TIENDA EN LÍNEA
   ============================================================ */
.tienda-hero { padding: 140px 0 40px; }
.tienda-hero .section-title { margin-top: 14px; }
.tienda-hero .section-lead { margin-top: 16px; }
.tienda-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 3vw, 44px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }

.tienda-tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tienda-tab { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); background: none; border: none; border-bottom: 3px solid transparent; padding: 12px 18px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.tienda-tab:hover { color: var(--fg); }
.tienda-tab.active { color: var(--accent-hot); border-bottom-color: var(--accent); }

.tienda-group-title { font-size: 19px; font-weight: 900; font-stretch: 120%; text-transform: uppercase; margin: 26px 0 6px; }
.tienda-group-sub { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); margin-bottom: 16px; }

.tienda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.titem { border: 1px solid var(--line); background: var(--bg-2); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.25s ease; }
.titem:hover { border-color: var(--accent-deep); }
.titem-figure { height: 84px; display: grid; place-items: center; color: var(--steel); }
.titem-figure svg { max-height: 84px; overflow: visible; }
.titem-name { font-weight: 900; font-stretch: 118%; font-size: 15.5px; text-transform: uppercase; line-height: 1.15; }
.titem-meta { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.titem-price { font-weight: 900; font-stretch: 120%; font-size: 19px; color: var(--accent-hot); }
.titem-price .unit { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); font-weight: 400; margin-left: 4px; }
.titem-controls { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.titem-controls .qty { width: 64px; }
.titem .btn { padding: 9px 14px; font-size: 12.5px; flex: 1; justify-content: center; }

.tinput, .tselect { background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-family: var(--mono); font-size: 13px; padding: 9px 10px; width: 100%; border-radius: 0; }
.tinput:focus, .tselect:focus { outline: none; border-color: var(--accent); }
.tfield { display: flex; flex-direction: column; gap: 5px; }
.tfield label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

/* chips selección */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 7px 14px; background: var(--bg-2); color: var(--fg-muted); border: 1px solid var(--line); cursor: pointer; transition: all 0.2s ease; }
.chip:hover { color: var(--fg); border-color: var(--fg-dim); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* personalizado */
.custom-builder { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(18px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.custom-step-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hot); }
.figuras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.figura-card { border: 1px solid var(--line); background: var(--bg); padding: 10px; cursor: pointer; text-align: center; transition: border-color 0.2s ease; }
.figura-card:hover { border-color: var(--fg-dim); }
.figura-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.figura-card img { height: 64px; width: 100%; object-fit: contain; margin: 0 auto 6px; filter: none; background: #fff; }
html[data-theme="light"] .figura-card img { background: #fff; }
.figura-card .fname { font-family: var(--mono); font-size: 10.5px; color: var(--fg-muted); line-height: 1.3; display: block; }
.dims-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.custom-result { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.custom-result .res { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); }
.custom-result .res b { display: block; font-family: var(--head); font-weight: 900; font-size: 21px; color: var(--fg); }
.custom-result .res.price b { color: var(--accent-hot); }

/* carrito */
.cart-panel { position: sticky; top: 92px; border: 1px solid var(--line); background: var(--bg-2); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-title { font-weight: 900; font-stretch: 120%; text-transform: uppercase; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.cart-title .count { font-family: var(--mono); font-size: 12px; color: var(--accent-hot); }
.cart-lines { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .cname { font-size: 13px; font-weight: 700; line-height: 1.25; }
.cart-line .cmeta { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); grid-column: 1; }
.cart-line .cprice { font-weight: 900; color: var(--accent-hot); font-size: 14px; text-align: right; }
.cart-line .cactions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.cart-line .cactions input { width: 58px; padding: 4px 6px; }
.cart-line .cremove { background: none; border: none; color: var(--fg-dim); cursor: pointer; font-family: var(--mono); font-size: 11px; text-decoration: underline; }
.cart-line .cremove:hover { color: #e05252; }
.cart-totals { font-family: var(--mono); font-size: 12.5px; color: var(--fg-muted); display: flex; flex-direction: column; gap: 6px; }
.cart-totals .row { display: flex; justify-content: space-between; }
.cart-totals .row.total { font-family: var(--head); font-weight: 900; font-size: 19px; color: var(--fg); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.cart-totals .row.total .amt { color: var(--accent-hot); }
.cart-empty { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); text-align: center; padding: 18px 0; }
.cart-panel .btn { justify-content: center; }
.cart-note { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); line-height: 1.5; }

/* checkout modal */
.tmodal-mask { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 5vh 16px 40px; }
.tmodal-mask.open { display: flex; }
.tmodal { background: var(--bg-2); border: 1px solid var(--line); width: 100%; max-width: 640px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.tmodal h3 { font-weight: 900; font-stretch: 120%; text-transform: uppercase; font-size: 21px; }
.tmodal .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tmodal .form-grid .full { grid-column: 1 / -1; }
.tmodal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.terror { color: #ff7a6b; font-family: var(--mono); font-size: 12px; display: none; }
.terror.show { display: block; }

/* página de estatus del pedido */
.pedido-status { max-width: 720px; margin: 0 auto; padding: 150px 20px 100px; }
.pedido-card { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 3vw, 40px); margin-top: 26px; }
.pedido-badge { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 14px; border-radius: 4px; background: var(--bg-3); color: var(--fg-muted); }
.pedido-badge.ok { background: #1d3d2a; color: #7fd99a; }
.pedido-badge.warn { background: #4a3413; color: #ffc65c; }
.pedido-lines { margin-top: 18px; border-top: 1px solid var(--line); }
.pedido-lines .pl { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pedido-lines .pl .m { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); display: block; }

/* ============================================================
   COTIZACIÓN (formulario)
   ============================================================ */
.coti-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 3.5vw, 56px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.coti-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.coti-side-card { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(22px, 2.6vw, 32px); }
.coti-side-card .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: var(--fg-dim); text-transform: uppercase; }
.coti-side-card .response { font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; color: var(--accent-hot); margin: 6px 0 10px; }
.coti-side-card p { color: var(--fg-muted); font-size: 14px; }
.coti-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.coti-points li { position: relative; padding-left: 26px; color: var(--fg-muted); font-size: 14px; }
.coti-points li strong { color: var(--fg); font-weight: 700; }
.coti-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 5px; background: repeating-linear-gradient(115deg, var(--accent) 0 4px, var(--accent-deep) 4px 5.5px); border-radius: 3px; }
.coti-alt { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.coti-alt-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }
.coti-alt .btn { justify-content: center; }

.coti-form-wrap { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(22px, 3vw, 40px); }
.coti-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coti-form .form-grid .full { grid-column: 1 / -1; }
textarea.tinput { resize: vertical; min-height: 96px; line-height: 1.5; }
.coti-hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--fg-dim); text-transform: none; margin-left: 6px; }
.coti-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.coti-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1px dashed var(--line); background: var(--bg); color: var(--fg-muted); padding: clamp(20px, 3vw, 32px); cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease; }
.coti-dropzone:hover, .coti-dropzone.drag { border-color: var(--accent); color: var(--accent-hot); background: rgba(244, 100, 10, 0.05); }
.coti-dropzone svg { color: var(--accent-hot); }
.coti-dz-text { font-family: var(--mono); font-size: 12px; }
.coti-dz-text b { color: var(--fg); font-weight: 500; }
.coti-dropzone input[type="file"] { display: none; }
.coti-filelist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.coti-file { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted); border-bottom: 1px solid var(--line); padding: 5px 0; }
.coti-file .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coti-file .fs { color: var(--fg-dim); flex-shrink: 0; }

.coti-error { border: 1px solid var(--accent-deep); background: rgba(244, 100, 10, 0.08); color: var(--accent-hot); font-family: var(--mono); font-size: 12.5px; padding: 12px 14px; margin-bottom: 18px; }
.coti-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.coti-submit .btn { justify-content: center; }
.coti-legal { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); max-width: 42ch; }

/* ============================================================
   PAGO (formulario propio + Openpay)
   ============================================================ */
.pago-wrap { padding: 140px 0 clamp(60px, 8vw, 110px); }
.pago-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.pago-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.pago-summary { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(20px, 2.6vw, 32px); position: sticky; top: 100px; }
.pago-summary .cart-title { margin-bottom: 12px; }
.pago-form-wrap { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(22px, 3vw, 40px); }
.pago-secure { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 20px; }
.pago-secure svg { color: var(--accent-hot); }
.pago-form-wrap .tfield { margin-bottom: 14px; }
.pago-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pago-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--fg-dim); }
.pago-badges svg { color: var(--fg-dim); }
.pago-badges .sep { opacity: 0.5; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links > a { display: none; }
  .nav-links .btn { display: none; }
  .nav-toggle { display: flex; }
  .section-header { grid-template-columns: 1fr; gap: 14px; }
  .value-prop { grid-template-columns: 1fr; }
  .services-detail { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .mfg-stage { grid-template-columns: 1fr; }
  .mfg-visual { position: relative; top: 0; }
  .quality-grid { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-image img { min-height: 300px; }
  .process-timeline { grid-template-columns: 1fr; gap: 26px; }
  .process-timeline::before { top: 0; bottom: 0; left: 19px; right: auto; width: 5px; height: auto; background: repeating-linear-gradient(25deg, var(--accent) 0 9px, var(--accent-deep) 9px 12px); }
  .process-step { padding-left: 60px; }
  .process-step .num { position: absolute; left: 0; margin: 0; top: 0; }
  .process-step .time { display: block; margin-bottom: 34px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-card { flex: 0 0 calc((100% - var(--rail-gap)) / 2); }
  .tienda-layout { grid-template-columns: 1fr; }
  .cart-panel { position: relative; top: 0; }
  .coti-layout { grid-template-columns: 1fr; }
  .coti-aside { position: relative; top: 0; order: 2; }
  .pago-grid { grid-template-columns: 1fr; }
  .pago-summary { position: relative; top: 0; order: 2; }
}
@media (max-width: 640px) {
  .project-card { flex: 0 0 86%; }
  .tmodal .form-grid { grid-template-columns: 1fr; }
  .coti-form .form-grid { grid-template-columns: 1fr; }
  .coti-submit { gap: 12px; }
}
@media (max-width: 560px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .estribo-wrap { padding: 12px 16px; }
  .hero-title { font-size: clamp(28px, 8.6vw, 40px); }
  .hero { padding-top: 72px; }
  .hero-fab-stage svg.factory3 { height: clamp(110px, 18vh, 170px); }
  .brand-mark { height: 34px; }
  .brand-word { font-size: 21px; }
  .brand-full { height: 34px; }
  html:not([data-theme="light"]) .brand-full { padding: 4px 9px; }
  .footer-logo img { height: 52px; }
}
@media (max-height: 640px) {
  .hero-fab-stage svg.factory3 { height: 120px; }
  .hero-title { font-size: clamp(28px, 4.6vw, 54px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .bend-path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
}
