/* ==========================================================================
   SMGRUPO INDUSTRIAL — Sistema de diseño
   Concepto: panel de control industrial en frío. Grafito, rojo SM, hielo.
   ========================================================================== */

:root {
  --ink: #0d0f12;
  --ink-2: #14171c;
  --ink-3: #1c2027;
  --steel: #2a2f37;
  --mute: #8b929d;
  --line-d: rgba(255, 255, 255, .09);
  --paper: #f2f1ed;
  --paper-2: #e7e5df;
  --white: #fff;
  --text: #15181d;
  --text-2: #4c535e;
  --line: rgba(20, 23, 28, .12);
  --red: #d3121c;
  --red-2: #a50d15;
  --ember: #ff6b2c;
  --frost: #8fd4f5;
  --wa: #25d366;
  --wa-2: #1db954;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 6px;
  --r-lg: 14px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: .005em; line-height: .92; text-transform: uppercase; }
.display em { font-style: normal; color: var(--red); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; color: #000; padding: 10px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* Textura de costillas — paneles de cuarto frío */
.ribs { position: relative; isolation: isolate; }
.ribs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em; line-height: 1;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn .ico { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--wa { --bg: var(--wa); --fg: #062b14; box-shadow: 0 10px 30px -10px rgba(37,211,102,.6); }
.btn--wa:hover { --bg: #2ee373; box-shadow: 0 16px 36px -10px rgba(37,211,102,.7); }
.btn--wa::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  animation: shine 4.5s 2s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--red { --bg: var(--red); box-shadow: 0 10px 28px -12px rgba(211,18,28,.7); }
.btn--red:hover { --bg: #e81a25; }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { --bg: var(--steel); }
.btn--ghost { --bg: rgba(255,255,255,.06); --bd: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bd: #fff; --bg: rgba(255,255,255,.12); }
.btn--ghost-dark { --bg: transparent; --fg: var(--text); --bd: var(--line); }
.btn--ghost-dark:hover { --bd: var(--text); }
.btn--light { --bg: #fff; --fg: var(--red-2); }
.btn--light .ico { color: var(--wa-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar { background: #07080a; color: #b9bfc8; font-size: 13px; border-bottom: 1px solid var(--line-d); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 38px; white-space: nowrap; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ico { width: 15px; height: 15px; }
.topbar__status { min-width: 0; }
.topbar__status [data-open-text] { overflow: hidden; text-overflow: ellipsis; }
.topbar__status .dot { flex: none;  width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.topbar__status.is-open .dot { background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ping 2s infinite; }
.topbar__status.is-open { color: #d9f7e5; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
.topbar__right { margin-left: auto; display: flex; gap: 18px; }
.topbar__right a:hover { color: #fff; }

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h); color: #fff;
  border-bottom: 1px solid var(--line-d); transition: top .3s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(13,15,18,.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled::before { background: rgba(13,15,18,.97); box-shadow: 0 10px 40px -20px rgba(0,0,0,.6); }
.is-home .header:not(.is-scrolled) { border-color: transparent; }
.is-home .header:not(.is-scrolled)::before { background: linear-gradient(180deg, rgba(7,8,10,.7), rgba(7,8,10,0)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .header { position: fixed; left: 0; right: 0; top: 38px; }
.is-home .header.is-scrolled { top: 0; }
.brand, .header__cta { position: relative; z-index: 2; }
.header__in { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; font-weight: 500; font-size: 15px; color: #d7dbe1; border-radius: 4px; transition: color .2s;
}
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.header__cta { display: flex; align-items: center; gap: 12px; }

.nav__drop { position: relative; }
.nav__drop .ico--sm { transition: transform .25s; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(760px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__drop:hover .mega, .nav__drop.is-open .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop:hover .ico--sm, .nav__drop.is-open .ico--sm { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 10px; transition: background .2s; }
.mega__item:hover { background: var(--paper); }
.mega__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: #fff; flex: none; transition: background .2s; }
.mega__item:hover .mega__ico { background: var(--red); }
.mega__num { display: block; font: 500 11px var(--f-mono); color: var(--red); letter-spacing: .1em; }
.mega__item strong { display: block; font-size: 15px; line-height: 1.25; }
.mega__item small { color: var(--text-2); font-size: 13px; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding: 14px 14px 6px; border-top: 1px solid var(--line); font-size: 14px; }
.mega__foot p { display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.mega__foot p .ico { color: var(--red); width: 18px; }

.burger { display: none; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line-d); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; right: 18px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); right: 12px; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; background: linear-gradient(90deg, var(--red), var(--ember)); transform-origin: left; transform: scaleX(0); }

/* ── Secciones genéricas ──────────────────────────────────── */
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--flush { padding-top: 24px; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .lead-p { color: #aeb5bf; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: none; }
.section-head--split > div { max-width: 760px; }
.section-head--split .lead-p { max-width: 420px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 500 12.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.section--dark .eyebrow, .phero .eyebrow { color: #9aa3ae; }
.eyebrow__num { color: var(--red); }
.eyebrow__line { width: 36px; height: 1px; background: currentColor; opacity: .5; }
.h2 { font-size: clamp(40px, 6vw, 76px); }
.lead-p { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); line-height: 1.6; }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks .ico { width: 20px; height: 20px; color: var(--red); }

/* ── Hero (inicio) ────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 80px) 0 110px; }
.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,10,.94) 0%, rgba(7,8,10,.78) 38%, rgba(7,8,10,.35) 70%, rgba(7,8,10,.55) 100%),
    linear-gradient(0deg, rgba(7,8,10,.9) 0%, transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__k { display: inline-flex; align-items: center; gap: 10px; color: #c9d0d8; padding: 8px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 100px; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--frost); animation: ping-f 2.2s infinite; }
@keyframes ping-f { 0% { box-shadow: 0 0 0 0 rgba(143,212,245,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(143,212,245,0); } }
.hero__t { font-size: clamp(54px, 7.6vw, 114px); margin: 18px 0 26px; font-weight: 900; line-height: .8; }
.hero__line { display: block; padding-top: .08em; }
.hero__line { animation: rise 1s var(--ease) both; }
.hero__line:nth-child(2) { animation-delay: .1s; }
.hero__line:nth-child(3) { animation-delay: .2s; }
.hero__line--red { background: linear-gradient(92deg, var(--red) 10%, var(--ember) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% -10% -20% -10%); } }
.hero__lead { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: #c6ccd4; animation: fade 1s .35s both; }
.hero__lead strong { color: #fff; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fade 1s .45s both; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: #aab1bb; font-size: 14.5px; animation: fade 1s .55s both; }
.hero__trust li { display: flex; gap: 8px; align-items: center; }
.hero__trust .ico { width: 18px; color: var(--frost); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #8b929d; font-size: 11px; }
.hero__scroll span { width: 1px; height: 44px; background: linear-gradient(var(--frost), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Panel de control */
.panel {
  background: linear-gradient(160deg, rgba(28,32,39,.82), rgba(13,15,18,.86)); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 20px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  animation: fade 1.1s .6s both;
}
.panel__head { display: flex; justify-content: space-between; align-items: center; color: #8b929d; padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.panel__leds { display: flex; gap: 6px; }
.panel__leds i { width: 8px; height: 8px; border-radius: 50%; background: #3a4049; }
.panel__leds i:nth-child(1) { background: var(--wa); box-shadow: 0 0 10px var(--wa); animation: blink 2.4s infinite; }
.panel__leds i:nth-child(2) { background: #f5b83d; }
.panel__leds i:nth-child(3) { background: var(--red); opacity: .35; }
@keyframes blink { 50% { opacity: .35; } }
.panel__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.panel__l { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #c3c9d1; }
.panel__l .ico { color: var(--frost); }
.panel__row strong { font-size: 18px; font-weight: 500; color: var(--frost); letter-spacing: 0; text-shadow: 0 0 18px rgba(143,212,245,.35); }
.panel__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.panel__bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--frost), #fff); border-radius: inherit; transform-origin: left; animation: bar 1.6s .9s var(--ease) both; }
@keyframes bar { from { transform: scaleX(0); } }
.panel__foot { display: flex; gap: 10px; align-items: center; padding-top: 14px; color: #9aa3ae; font-size: 11px; line-height: 1.4; }
.panel__foot .ok { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--wa); }

/* ── Marquee de marcas ────────────────────────────────────── */
.marquee { background: var(--ink-2); color: #fff; padding: 22px 0; display: flex; align-items: center; gap: 30px; overflow: hidden; border-block: 1px solid var(--line-d); }
.marquee__label { flex: none; padding-left: var(--gut); color: #7f8792; max-width: 140px; line-height: 1.4; font-size: 11px; }
.marquee__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__row span { font: 800 30px var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: #dfe3e8; }
.marquee__row i { color: var(--red); }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Tarjetas de servicio (bento) ─────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 14px; }
.svc { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; isolation: isolate; background: var(--ink); }
.svc--1 { grid-column: 1 / span 6; grid-row: span 2; }
.svc--2 { grid-column: 7 / span 6; }
.svc--3 { grid-column: 7 / span 6; }
.svc--4 { grid-column: 1 / span 4; }
.svc--5 { grid-column: 5 / span 4; }
.svc--6 { grid-column: 9 / span 4; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.svc__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,10,.4) 0%, rgba(7,8,10,.12) 28%, rgba(7,8,10,.72) 58%, rgba(7,8,10,.96) 100%); transition: background .5s; }
.svc:hover img { transform: scale(1.06); filter: saturate(1); }
.svc:hover .svc__shade { background: linear-gradient(180deg, rgba(7,8,10,.35) 0%, rgba(120,8,14,.35) 40%, rgba(7,8,10,.95) 100%); }
.svc__top { display: flex; justify-content: space-between; align-items: center; }
.svc__top > .mono:first-child { background: rgba(0,0,0,.4); padding: 6px 10px; border-radius: 4px; backdrop-filter: blur(6px); }
.svc__temp { color: var(--frost); background: rgba(7,8,10,.55); padding: 6px 10px; border-radius: 4px; border: 1px solid rgba(143,212,245,.3); }
.svc__tag { color: var(--frost); display: block; margin-bottom: 8px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.svc__t { display: block; font-size: clamp(28px, 2.6vw, 38px); max-width: 16ch; }
.svc--1 .svc__t { font-size: clamp(38px, 4.4vw, 64px); }
.svc__d { display: block; color: #c3c9d1; font-size: 15px; max-width: 46ch; margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.svc--1 .svc__d { max-height: 120px; opacity: 1; }
.svc:hover .svc__d, .svc:focus-visible .svc__d { max-height: 120px; opacity: 1; }
.svc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 14px; }
.svc__go .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--red); box-sizing: content-box; transition: transform .3s var(--ease); }
.svc:hover .svc__go .ico { transform: rotate(45deg); }

/* ── Franja de urgencia ───────────────────────────────────── */
.urgent { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.urgent::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 18px, transparent 18px 36px); }
.urgent__in { position: relative; display: flex; align-items: center; gap: 28px; padding-block: 34px; }
.urgent__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.18); flex: none; animation: alarm 2s infinite; }
.urgent__ico .ico { width: 30px; height: 30px; }
@keyframes alarm { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 60% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.urgent__t { font-size: clamp(28px, 3.2vw, 42px); }
.urgent__p { margin-top: 6px; color: #ffe1e2; max-width: 640px; }
.urgent .btn { margin-left: auto; flex: none; }

/* ── Por qué ──────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why__badge { position: absolute; right: -20px; bottom: 32px; background: var(--ink); color: #fff; padding: 20px 24px; border-radius: var(--r); border-left: 4px solid var(--red); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.why__badge .mono { color: var(--frost); font-size: 11px; }
.why__badge strong { display: block; font: 800 28px/1 var(--f-display); text-transform: uppercase; margin: 6px 0 4px; }
.why__badge small { color: #aab1bb; font-size: 13px; }
.why__txt .lead-p { margin: 24px 0 36px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-bottom: 36px; }
.pillar__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--paper); color: var(--red); margin-bottom: 14px; }
.pillar h3 { font-size: 18px; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--text-2); }

/* ── Sectores ─────────────────────────────────────────────── */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sectors li { display: flex; flex-direction: column; gap: 18px; padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 700 26px/1 var(--f-display); text-transform: uppercase; transition: background .3s, color .3s; }
.sectors li .ico { width: 32px; height: 32px; color: var(--red); transition: color .3s, transform .4s var(--ease); }
.sectors li:hover { background: var(--ink); color: #fff; }
.sectors li:hover .ico { color: var(--frost); transform: translateY(-4px); }

/* ── Mosaico / galerías ───────────────────────────────────── */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 14px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.mosaic__item--1 { grid-column: span 2; grid-row: span 2; }
.mosaic__item img, .sgal__item img, .pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic__item:hover img, .sgal__item:hover img, .pcard:hover img { transform: scale(1.05); }
.mosaic__cap { position: absolute; left: 12px; bottom: 12px; right: 12px; text-align: left; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(7,8,10,.72); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 4px; opacity: 0; transform: translateY(8px); transition: .35s var(--ease); }
.mosaic__item:hover .mosaic__cap, .mosaic__item:focus-visible .mosaic__cap { opacity: 1; transform: none; }

/* ── Pasos ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-d); }
.step { padding: 32px 28px 8px 0; position: relative; }
.step:not(:last-child) { border-right: 1px solid var(--line-d); margin-right: 28px; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--red); }
.step__n { color: var(--frost); }
.step__ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 22px 0 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.step h3 { font: 800 30px/1 var(--f-display); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: #aab1bb; font-size: 15.5px; }

/* ── Stats ────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 32px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(56px, 6vw, 88px); line-height: .9; color: var(--ink); }
.stat strong::first-letter { color: var(--red); }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; max-width: 22ch; }

/* ── Cotizador ────────────────────────────────────────────── */
.quote-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.quote-wrap__intro .lead-p { margin-top: 22px; }
.quote { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 90px -40px rgba(13,15,18,.35), 0 0 0 1px var(--line); position: relative; }
.quote__bar { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.quote__bar span { display: block; height: 100%; width: 33.3%; background: linear-gradient(90deg, var(--red), var(--ember)); transition: width .5s var(--ease); }
.quote__steps { margin: 14px 0 22px; color: var(--text-2); }
.quote__steps span { color: var(--red); }
.quote__panel { display: none; animation: fade .45s var(--ease); }
.quote__panel.is-active { display: block; }
.quote__q { font: 800 clamp(30px, 3vw, 40px)/1 var(--f-display); text-transform: uppercase; margin-bottom: 22px; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tiles--rows { grid-template-columns: 1fr 1fr; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__in { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.tile__in .ico { color: var(--text-2); }
.tile__in strong { font-size: 15px; line-height: 1.25; }
.tile__in small { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.35; }
.tile--row .tile__in { flex-direction: row; align-items: flex-start; }
.tile:hover .tile__in { border-color: var(--text); }
.tile input:checked + .tile__in { border-color: var(--red); background: #fff5f5; box-shadow: inset 0 0 0 1px var(--red); }
.tile input:checked + .tile__in .ico { color: var(--red); }
.tile input:focus-visible + .tile__in { outline: 2px solid var(--frost); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,15,18,.07); }
.field .is-invalid, .field input:user-invalid { border-color: var(--red); }
.quote__err { color: var(--red); font-size: 14px; margin-top: 14px; font-weight: 600; }
.quote__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head .lead-p { margin: 20px 0 28px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 10px; padding: 24px 0; cursor: pointer; font-weight: 600; font-size: 18.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .mono { color: var(--red); }
.faq__item summary i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq__item summary i .ico { width: 16px; height: 16px; }
.faq__item[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__item div { padding: 0 42px 26px 54px; color: var(--text-2); }

/* ── CTA band ─────────────────────────────────────────────── */
.ctaband { background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 110px); overflow: hidden; }
.ctaband::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(211,18,28,.28), transparent 60%); z-index: -1; }
.ctaband__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.ctaband__k { display: flex; align-items: center; gap: 8px; color: var(--frost); margin-bottom: 18px; }
.ctaband__k .ico { width: 16px; }
.ctaband__t { font-size: clamp(44px, 6.4vw, 92px); max-width: 14ch; }
.ctaband__p { margin-top: 18px; color: #aab1bb; max-width: 520px; font-size: 18px; }
.ctaband__btns { display: flex; flex-direction: column; gap: 12px; flex: none; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: #07080a; color: #aab1bb; padding-top: 80px; position: relative; overflow: hidden; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.footer__brand img { width: 200px; margin-bottom: 22px; }
.footer__slogan { font-size: 28px; color: #fff; margin-bottom: 14px; }
.footer__brand > p:not(.footer__slogan) { max-width: 360px; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); color: #fff; transition: background .2s, border-color .2s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__social .ico { width: 18px; height: 18px; }
.footer__h { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; word-break: break-word; }
.footer__contact .ico { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 13.5px; position: relative; z-index: 1; }
.footer__bottom .mono { font-size: 11px; color: #5d646e; }
.footer__giant { font-size: clamp(90px, 22vw, 340px); line-height: .75; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); text-align: center; white-space: nowrap; margin-bottom: -.12em; user-select: none; padding-bottom: 96px; }

/* ── Hero de páginas internas ─────────────────────────────── */
.phero { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.phero::after { content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(143,212,245,.10), transparent 60%); z-index: -1; }
.phero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.crumbs { color: #7f8792; margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--frost); }
.phero__k { color: var(--red); font-size: 13px; margin-bottom: 16px; }
.phero__t { font-size: clamp(46px, 7vw, 104px); }
.phero__t em { color: var(--red); font-style: normal; }
.phero__lead { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19.5px); color: #b9c0c9; max-width: 620px; }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.phero__media { position: relative; }
.phero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.phero__media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); z-index: -1; }
.phero__chip { position: absolute; left: -18px; top: 28px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--frost); padding: 12px 16px; border-radius: 6px; border: 1px solid rgba(143,212,245,.3); font-size: 16px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.phero--contact .phero__lead { max-width: 720px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); font-weight: 500; font-size: 14.5px; transition: .2s; }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .ico { color: var(--red); }

/* Filas de servicio */
.srows { display: grid; gap: clamp(48px, 7vw, 96px); }
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.srow:nth-child(even) .srow__media { order: 2; }
.srow__media { position: relative; overflow: hidden; border-radius: var(--r-lg); display: block; }
.srow__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.srow__media:hover img { transform: scale(1.04); }
.srow__temp { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; align-items: center; background: rgba(13,15,18,.8); color: var(--frost); padding: 8px 12px; border-radius: 4px; }
.srow__n { color: var(--red); margin-bottom: 14px; }
.srow__t { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 18px; }
.srow__t a:hover { color: var(--red); }
.srow__txt > p:not(.srow__n) { color: var(--text-2); font-size: 17.5px; }
.srow__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 24px 0 30px; font-size: 15px; font-weight: 500; }
.srow__list li { display: flex; gap: 8px; align-items: flex-start; }
.srow__list .ico { color: var(--red); margin-top: 3px; }
.srow__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Servicio individual */
.sv-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.sv-intro .h2 { font-size: clamp(38px, 4.6vw, 64px); }
.sv-intro__p p { font-size: 18px; color: var(--text-2); }
.sv-intro__p p + p { margin-top: 16px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.item { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden; }
.item::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.item:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.item:hover::after { transform: scaleX(1); }
.item__n { color: var(--red); }
.item h3 { font: 800 28px/1 var(--f-display); text-transform: uppercase; margin: 18px 0 10px; }
.item p { color: var(--text-2); font-size: 15.5px; }

.diag { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.diag__txt .lead-p { margin-top: 20px; }
.diag__form { background: var(--ink-3); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.diag__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.check { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 8px; border: 1px solid var(--line-d); cursor: pointer; font-size: 15px; transition: .2s; }
.check input { position: absolute; opacity: 0; }
.check > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid #59616c; flex: none; transition: .2s; }
.check > span .ico { width: 14px; height: 14px; opacity: 0; color: #fff; }
.check:hover { border-color: rgba(255,255,255,.3); }
.check:has(input:checked) { border-color: var(--wa); background: rgba(37,211,102,.08); }
.check input:checked + span { background: var(--wa); border-color: var(--wa); }
.check input:checked + span .ico { opacity: 1; color: #062b14; }
.check input:focus-visible + span { outline: 2px solid var(--frost); outline-offset: 2px; }
.diag__note { text-align: center; color: #7f8792; margin-top: 14px; }

.sgal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.sgal__item { overflow: hidden; border-radius: var(--r-lg); }
.sgal__item--big { grid-column: span 2; grid-row: span 2; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.rel { display: flex; align-items: center; gap: 16px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--line); transition: .25s var(--ease); }
.rel > .ico:first-child { width: 28px; height: 28px; color: var(--red); }
.rel small { display: block; color: var(--text-2); font-size: 10.5px; }
.rel strong { display: block; font-size: 16px; line-height: 1.25; margin-top: 2px; }
.rel__go { margin-left: auto; transition: transform .3s var(--ease); }
.rel:hover { border-color: var(--ink); transform: translateY(-2px); }
.rel:hover .rel__go { transform: rotate(45deg); color: var(--red); }

/* Nosotros */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story__txt p { color: var(--text-2); font-size: 17.5px; margin-top: 18px; }
.story__txt p strong { color: var(--text); }
.story__fig img { border-radius: var(--r-lg); }
.story__fig figcaption { margin-top: 12px; color: var(--text-2); }
.story__fig { margin: 0; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv__card { border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, rgba(255,255,255,.04), transparent); }
.mv__k { color: var(--frost); margin-bottom: 20px; }
.mv__card h3 { font-size: clamp(32px, 3.2vw, 46px); margin-bottom: 18px; }
.mv__card p { color: #aab1bb; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { padding: 28px; border-radius: var(--r-lg); background: var(--paper); position: relative; }
.value__n { position: absolute; top: 24px; right: 24px; color: var(--text-2); }
.value > .ico { width: 34px; height: 34px; color: var(--red); margin-bottom: 40px; }
.value h3 { font: 800 28px/1 var(--f-display); text-transform: uppercase; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: 15.5px; }
.cover { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cover .lead-p { margin: 20px 0 28px; }
.cover__list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cover__list li { display: flex; gap: 8px; align-items: center; padding: 14px; background: #fff; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.cover__list .ico { color: var(--red); }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: .2s; }
.filter .mono { font-size: 11px; color: var(--text-2); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active .mono { color: var(--frost); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; text-align: left; transition: opacity .3s, transform .4s var(--ease); }
.pcard.is-hidden, .pgrid:not(.show-all) .pcard.is-more { display: none; }
.pmore { display: flex; justify-content: center; margin-top: 36px; }
.pmore[hidden] { display: none; }
.pcard__cap { position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(7,8,10,.9)); color: #fff; font-weight: 600; font-size: 16px; }
.pcard__cap small { display: block; color: var(--frost); margin-bottom: 6px; font-size: 10.5px; }
.pcard__zoom { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); transform: scale(.6); opacity: 0; transition: .3s var(--ease); }
.pcard:hover .pcard__zoom, .pcard:focus-visible .pcard__zoom { transform: none; opacity: 1; }

/* Contacto */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-d); background: rgba(255,255,255,.03); transition: .25s var(--ease); min-width: 0; }
.ccard > .ico:first-child { width: 28px; height: 28px; color: var(--frost); }
.ccard small { display: block; color: #7f8792; font-size: 10.5px; }
.ccard strong { display: block; font-size: 17px; margin-top: 3px; overflow-wrap: anywhere; }
.ccard span { min-width: 0; }
.ccard__go { margin-left: auto; color: #7f8792; transition: .3s var(--ease); }
a.ccard:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); transform: translateY(-2px); }
a.ccard:hover .ccard__go { transform: rotate(45deg); color: #fff; }
.ccard--wa { background: var(--wa); color: #062b14; border-color: var(--wa); }
.ccard--wa > .ico:first-child, .ccard--wa small, .ccard--wa .ccard__go { color: #062b14; }
a.ccard--wa:hover { background: #2ee373; }
.map { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.map .lead-p { margin-top: 20px; }
.map__frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); }
.map__frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* 404 */
.nf { background: var(--ink); color: #fff; min-height: 70vh; display: flex; align-items: center; padding-block: 100px; }
.nf__k { color: var(--frost); margin-bottom: 20px; }
.nf__t { font-size: clamp(60px, 11vw, 160px); }

/* ── Carrusel de clientes ─────────────────────────────────── */
.logos { padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 56px); }
.logos__k { display: inline-flex; align-items: center; gap: 14px; color: var(--red); margin-bottom: 16px; }
.logos__k span { width: 28px; height: 1px; background: currentColor; opacity: .5; }
.logos__t { font-size: clamp(32px, 4vw, 54px); }
.logos__sub { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }
.logos__rows { display: grid; gap: clamp(18px, 2.4vw, 30px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; width: max-content; animation: logos 70s linear infinite; will-change: transform; }
.logos__track--rev { animation-direction: reverse; animation-duration: 80s; }
.logos__rows:hover .logos__track { animation-play-state: paused; }
.logos__row { display: flex; align-items: center; }
.logos__item { display: grid; place-items: center; height: 92px; padding: 0 clamp(26px, 3vw, 44px); flex: none; position: relative; }
.logos__item::after { content: ""; position: absolute; right: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.logos__item img { display: block; object-fit: contain; transition: transform .4s var(--ease); }
.logos__item:hover img { transform: scale(1.08); }
@keyframes logos { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ── Repuestos ────────────────────────────────────────────── */
.rteaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.rteaser__txt .lead-p { margin: 22px 0 30px; }
.rteaser__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rteaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rteaser__grid a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 15.5px; line-height: 1.25; transition: .25s var(--ease); }
.rteaser__grid a > .ico:first-child { width: 26px; height: 26px; color: var(--red); }
.rteaser__grid a > .ico:last-child { margin-left: auto; color: var(--text-2); transition: transform .3s var(--ease); }
.rteaser__grid a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.rteaser__grid a:hover > .ico:first-child { color: var(--frost); }
.rteaser__grid a:hover > .ico:last-child { color: #fff; transform: rotate(45deg); }

.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.part { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px); transition: box-shadow .35s, transform .35s var(--ease); }
.part:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); }
.part:target { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.part__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.part__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.part:hover .part__media img { transform: scale(1.06); }
.part__ico { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px rgba(211,18,28,.6); }
.part__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.part__n { color: var(--text-2); font-size: 11px; }
.part__t { font: 800 26px/1 var(--f-display); text-transform: uppercase; margin: 8px 0 14px; }
.part__body ul { display: grid; gap: 7px; margin-bottom: 20px; font-size: 14.5px; color: var(--text-2); flex: 1; }
.part__body li { display: flex; gap: 8px; align-items: flex-start; }
.part__body li .ico { color: var(--red); margin-top: 3px; }

.mini-steps { display: grid; gap: 16px; margin-top: 32px; }
.mini-steps li { display: flex; gap: 16px; align-items: flex-start; }
.mini-steps__n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: var(--frost); }
.mini-steps strong { display: block; font-size: 16px; }
.mini-steps p { color: #aab1bb; font-size: 14.5px; }
.fields--dark { margin-bottom: 18px; }
.fields--dark .field span { color: #aab1bb; }
.fields--dark .field input, .fields--dark .field select, .fields--dark .field textarea { background: var(--ink-2); border-color: var(--line-d); color: #fff; }
.fields--dark .field input::placeholder, .fields--dark .field textarea::placeholder { color: #6b727c; }
.fields--dark .field input:focus, .fields--dark .field select:focus, .fields--dark .field textarea:focus { border-color: var(--frost); box-shadow: 0 0 0 4px rgba(143,212,245,.12); }

/* ── Widget WhatsApp ──────────────────────────────────────── */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 16px 40px -10px rgba(37,211,102,.75); transition: transform .3s var(--ease); }
.wa-fab .ico { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab__badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); font: 700 12px/22px var(--f-body); text-align: center; border: 2px solid #fff; }
.wa-widget.is-open .wa-fab__badge, .wa-widget.seen .wa-fab__badge { display: none; }
.wa-widget.is-open .wa-fab::before { display: none; }
.wa-teaser { position: relative; max-width: 260px; background: #fff; color: var(--text); padding: 14px 34px 14px 16px; border-radius: 14px 14px 4px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 20px 50px -15px rgba(0,0,0,.35), 0 0 0 1px var(--line); animation: pop .5s var(--ease) both; }
.wa-teaser strong { display: block; }
.wa-teaser__x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.wa-teaser__x .ico { width: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.wa-panel { width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: #efeae2; box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); animation: pop .35s var(--ease) both; transform-origin: bottom right; }
.wa-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: #075e54; color: #fff; }
.wa-panel__avatar img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.wa-panel__head strong { display: block; font-size: 15.5px; }
.wa-panel__head small { display: block; font-size: 12.5px; opacity: .85; }
.wa-panel__x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.wa-panel__x:hover { background: rgba(255,255,255,.12); }
.wa-panel__body { padding: 18px 16px; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { position: relative; background: #fff; padding: 12px 14px 22px; border-radius: 0 12px 12px 12px; font-size: 14.5px; line-height: 1.5; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-bubble__t { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #8696a0; }
.wa-panel__opts { display: grid; gap: 8px; margin-top: 14px; }
.wa-panel__opts a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #075e54; box-shadow: 0 1px 1px rgba(0,0,0,.06); transition: .2s; }
.wa-panel__opts a .ico:first-child { width: 18px; color: #128c7e; }
.wa-panel__opts a .ico:last-child { margin-left: auto; opacity: .5; }
.wa-panel__opts a:hover { background: #dcf8c6; transform: translateX(3px); }

/* Barra móvil */
.mbar { display: none; }

/* ── Popup de captación ───────────────────────────────────── */
.lead { padding: 0; border: 0; border-radius: 18px; width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: var(--text); box-shadow: 0 60px 120px -30px rgba(0,0,0,.6); overflow: auto; }
.lead::backdrop { background: rgba(7,8,10,.72); backdrop-filter: blur(6px); }
.lead[open] { animation: pop .45s var(--ease); }
.lead__in { display: grid; grid-template-columns: .85fr 1.15fr; }
.lead__media { position: relative; background: var(--ink); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.lead__readout { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(13,15,18,.85); backdrop-filter: blur(8px); color: #9aa3ae; padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(143,212,245,.25); display: flex; justify-content: space-between; align-items: center; }
.lead__readout span { display: flex; gap: 6px; align-items: center; }
.lead__readout .ico { width: 16px; color: var(--frost); }
.lead__readout strong { color: var(--frost); font-size: 22px; font-weight: 500; letter-spacing: 0; }
.lead__body { position: relative; padding: clamp(26px, 4vw, 44px); display: grid; gap: 14px; }
.lead__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); }
.lead__x:hover { background: var(--paper-2); }
.lead__k { color: var(--red); }
.lead__t { font-size: clamp(36px, 4vw, 50px); padding-right: 36px; }
.lead__p { color: var(--text-2); font-size: 15.5px; }
.lead__no { font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7,8,10,.94); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; animation: pop .35s var(--ease); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { color: #c3c9d1; text-align: center; margin-top: 14px; font-size: 15px; }
.lightbox__x, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__x { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 14px; }
.lightbox__prev .ico { transform: rotate(180deg); }
.lightbox__next { right: 14px; }

/* ── Revelado al hacer scroll ─────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .parts { grid-template-columns: repeat(3, 1fr); }
  .topbar .topbar__areas { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .panel { max-width: 460px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .rteaser { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr 1fr; }
  :root { --header-h: 68px; }
  body { padding-bottom: 68px; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .brand img { width: 148px; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: calc(var(--header-h) + 56px) var(--gut) 120px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { font: 800 34px/1 var(--f-display); text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid var(--line-d); justify-content: space-between; color: #fff; }
  .nav__link::after { display: none; }
  .nav__drop .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; display: none; background: transparent; box-shadow: none; padding: 6px 0 12px; color: #fff; }
  .nav__drop.is-open .mega { display: block; transform: none; }
  .nav__drop:hover .mega { transform: none; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__item { padding: 10px 0; }
  .mega__item:hover { background: transparent; }
  .mega__item small { color: #8b929d; }
  .mega__ico { background: var(--ink-3); }
  .mega__foot { display: none; }
  .nav__mobile-extra { display: grid; gap: 10px; margin-top: 28px; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .svc--1, .svc--2, .svc--3, .svc--4, .svc--5, .svc--6 { grid-column: span 1; grid-row: span 1; }
  .svc--1 { grid-column: 1 / -1; grid-row: span 1; }
  .svc--1 .svc__t { font-size: 44px; }
  .svc__d { display: none; }
  .urgent__in { flex-wrap: wrap; }
  .urgent .btn { margin-left: 0; }
  .why, .quote-wrap, .faq, .phero__in, .sv-intro, .diag, .story, .cover, .map, .srow { grid-template-columns: 1fr; }
  .srow:nth-child(even) .srow__media { order: 0; }
  .why__badge { right: 12px; }
  .faq__head { position: static; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .step:not(:last-child) { border-right: 0; margin-right: 0; }
  .step { padding-right: 0; border-bottom: 1px solid var(--line-d); padding-bottom: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .mosaic__item--1 { grid-column: 1 / -1; grid-row: span 1; }
  .ctaband__in { flex-direction: column; align-items: flex-start; }
  .ctaband__btns { flex-direction: row; flex-wrap: wrap; }
  .mv { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .ccards { grid-template-columns: 1fr 1fr; }
  .phero__media { max-width: 640px; }
  .lead__in { grid-template-columns: 1fr; }
  .lead__media { display: none; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: rgba(13,15,18,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line-d);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #c3c9d1; font-size: 12px; font-weight: 600; padding: 6px; border-radius: 10px; }
  .mbar a .ico { width: 22px; height: 22px; }
  .mbar .mbar__wa { background: var(--wa); color: #062b14; flex-direction: row; gap: 8px; font-size: 15px; }
  .wa-widget { bottom: 86px; right: 14px; }
  .wa-fab { width: 56px; height: 56px; }
  .footer__giant { padding-bottom: 40px; }
}

@media (max-width: 640px) {
  .parts { grid-template-columns: 1fr; }
  .logos__item { height: 76px; padding: 0 22px; }
  .logos__item img { zoom: .74; }
  .logos__sub { font-size: 15px; }
  .rteaser__grid a { padding: 14px 12px; font-size: 14px; gap: 10px; }
  .rteaser__grid a > .ico:last-child { display: none; }
  .rteaser__btns .btn { flex: 1; }
  body { font-size: 16px; }
  .topbar__right a:not(:first-child) { display: none; }
  .topbar__status, .topbar__right a { white-space: nowrap; }
  .topbar__in { overflow: hidden; }
  .topbar__in { justify-content: space-between; gap: 12px; font-size: 12px; }
  .hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 80px; }
  .hero__t { font-size: clamp(54px, 16vw, 80px); }
  .hero__ctas .btn { width: 100%; }
  .hero__scroll { display: none; }
  .marquee { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee__track { width: 100%; }
  .marquee__row span { font-size: 24px; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .pillars { grid-template-columns: 1fr; }
  .sectors li { font-size: 21px; padding: 22px 18px; }
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles--rows, .fields { grid-template-columns: 1fr; }
  .quote__nav .btn { flex: 1; }
  .faq__item summary { grid-template-columns: 34px 1fr 32px; font-size: 16.5px; }
  .faq__item div { padding: 0 0 22px 44px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
  .items, .values { grid-template-columns: 1fr; }
  .diag__opts { grid-template-columns: 1fr; }
  .sgal { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .srow__list { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard__cap { padding: 40px 12px 12px; font-size: 13.5px; line-height: 1.3; }
  .pcard__zoom { display: none; }
  .ccards { grid-template-columns: 1fr; }
  .cover__list { grid-template-columns: 1fr 1fr; }
  .phero__chip { left: 10px; top: 10px; }
  .phero__media::before { display: none; }
  .ctaband__btns { flex-direction: column; width: 100%; }
  .ctaband__btns .btn { width: 100%; }
  .urgent .btn { width: 100%; }
  .wa-teaser { max-width: 220px; }
  .lightbox { padding: 60px 12px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
