/* =====================================================================
   ESTAMTEK METALIK — Estilos del sitio
   Colores de marca (sólidos): azul marino, azul y el gris plateado del logo.
   Para cambiar colores o tipografías edita las variables de :root y .dark.
   ===================================================================== */

:root {
  /* Marca */
  --navy-950: #071a35;
  --navy-900: #0a2550;
  --navy-800: #0d3166;
  --blue-700: #073b74;
  --blue-600: #065199;
  --blue-500: #1769c2;
  --periwinkle-400: #5886e8;
  --silver: #c0c0c0;       /* gris plateado del logo */
  --silver-light: #e0e0e0; /* plateado claro del logo (hover) */
  --silver-dark: #8a8a8a;  /* gris oscuro del logo (detalles sobre fondo blanco) */
  --brand: var(--silver);
  --whatsapp: #25d366;

  /* Tema claro (por defecto) */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e2eaf4;
  --line: #dbe5f1;
  --line-strong: #c7d9ef;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #065199;
  --accent-hover: #0a62b8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(6, 81, 153, 0.08);
  --accent-line: rgba(6, 81, 153, 0.3);
  --accent-text: #065199;
  --hl: #1769c2;
  --btn-primary: #065199;
  --btn-primary-hover: #0a62b8;
  --btn-ghost: #eef3f9;
  --btn-ghost-hover: #e2eaf4;
  --shadow: 0 24px 60px -32px rgba(7, 26, 53, 0.35);

  /* Tipografías */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Montserrat", "Barlow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Medidas */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 128px);
  --cut: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Secciones en azul marino */
.dark {
  --bg: #0a2550;
  --bg-alt: #071a35;
  --surface: #0f2f63;
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.13);
  --line: rgba(169, 196, 228, 0.16);
  --line-strong: rgba(169, 196, 228, 0.3);
  --text: #ffffff;
  --text-muted: #a9c4e4;
  --text-dim: #7f9cc4;
  --accent: var(--silver);
  --accent-hover: var(--silver-light);
  --accent-ink: #071a35;
  --accent-soft: rgba(192, 192, 192, 0.12);
  --accent-line: rgba(192, 192, 192, 0.4);
  --accent-text: var(--silver);
  --hl: var(--silver);
  --btn-primary: var(--silver);
  --btn-primary-hover: var(--silver-light);
  --btn-ghost: rgba(255, 255, 255, 0.08);
  --btn-ghost-hover: rgba(255, 255, 255, 0.16);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  background-color: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 7vw, 88px); font-weight: 800; line-height: 0.95; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
h4 { font-size: 18px; letter-spacing: 0.08em; }

::selection { background: var(--blue-600); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--blue-600); color: #fff;
  padding: 10px 16px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Palabras resaltadas con el color de la marca (sólido) */
.hl { color: var(--hl); }

/* ---------- Textos de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }

.mini-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--accent-text); margin-bottom: 20px;
}

.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.dark.section { border-block: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-bottom: 0; }
.section-head .lead + p { margin-top: 18px; }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
}
.section-head--row > div { max-width: 720px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--btn-primary);
  --btn-bg-hover: var(--btn-primary-hover);
  --btn-fg: var(--accent-ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  color: var(--btn-fg); white-space: nowrap; cursor: pointer;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn::before { background: var(--btn-bg); }
.btn::after { background: var(--btn-bg-hover); opacity: 0; transition: opacity 0.2s var(--ease); }
.btn:hover::after { opacity: 1; }
.btn .icon { width: 19px; height: 19px; transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--ghost { --btn-bg: var(--btn-ghost); --btn-bg-hover: var(--btn-ghost-hover); --btn-fg: var(--text); }
.btn--navy  { --btn-bg: #0a2550; --btn-bg-hover: #0d3166; --btn-fg: #fff; }
.btn--white { --btn-bg: #fff; --btn-bg-hover: #eaf3ff; --btn-fg: #0a2550; }
.btn--wa    { --btn-bg: var(--whatsapp); --btn-bg-hover: #3ee07b; --btn-fg: #04220f; }
.btn--sm    { min-height: 42px; padding: 0 18px; font-size: 15px; --cut: 9px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-box {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.icon-box .icon { width: 24px; height: 24px; }
.icon-box--sm { width: 44px; height: 44px; }
.icon-box--sm .icon { width: 20px; height: 20px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 37, 80, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { background: rgba(7, 26, 53, 0.94); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 62px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-size: 19px; font-weight: 800; letter-spacing: 0.05em; color: #fff; }
.brand-sub { margin-top: 5px; font-family: var(--font-brand); font-size: 10px; font-weight: 700; letter-spacing: 0.62em; color: #cfe2f7; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 10px 14px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--brand);
}
.nav a.nav-cta { margin-left: 14px; padding: 0 18px; color: var(--accent-ink); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header.nav-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-950); border-bottom-color: var(--line); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px;
    background: var(--navy-950); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav a { padding: 18px 0; font-size: 30px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--accent-text); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a.nav-cta { margin: 32px 0 0; padding: 0 18px; min-height: 58px; font-size: 19px; border-bottom: 0; color: var(--accent-ink); }
}

/* ---------- Fondo cuadriculado ---------- */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 196, 228, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 196, 228, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 20%, transparent 75%);
}

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background: var(--bg);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 26px; }

/* Cotización rápida dentro de la portada */
.hero-quote { margin-bottom: 22px; padding: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.hq-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.hq-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.hq-title .icon { width: 18px; height: 18px; }
.hq-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-dim); }
.hq-q { margin: 8px 0 14px; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.05; }
.hq-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hq-opts .qq-opt { gap: 10px; padding: 12px; font-size: 16.5px; }
.hq-opts .qq-opt .icon { width: 22px; height: 22px; }
.hq-opts .qq-opt .arr { width: 15px; height: 15px; }

/* Sello ISO sobre la foto de la portada */
.hero-iso {
  position: absolute; top: -30px; left: -40px; z-index: 3; width: clamp(96px, 9vw, 124px); height: auto;
  border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 20px 36px -14px rgba(0, 0, 0, 0.65);
}
@media (max-width: 1080px) { .hero-iso { left: -14px; } }
@media (max-width: 600px) {
  .hq-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-opts .qq-opt { font-size: 15.5px; }
  .hero-iso { top: -14px; left: -6px; width: 84px; box-shadow: 0 0 0 4px #fff, 0 14px 28px -12px rgba(0, 0, 0, 0.6); }
}

.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; font-size: 15px; color: var(--text-muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }

.hero-photo { position: relative; width: 100%; max-width: 500px; justify-self: end; }
.hero-photo .media { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: -1;
  border: 1px solid var(--accent-line);
}
.hero-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #fff; color: var(--navy-900);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.hero-badge span { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #475569; }
.hero-badge .icon-box { --accent-soft: rgba(6, 81, 153, 0.1); color: var(--blue-600); }
.hero-badge--iso { top: 28px; left: -28px; }
.hero-badge--ton { bottom: 32px; right: -20px; background: var(--brand); color: var(--navy-950); }
.hero-badge--ton span { color: rgba(7, 26, 53, 0.75); }
.photo-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 10px 14px;
  background: rgba(7, 26, 53, 0.82); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Clientes ---------- */
.clients { padding-block: 28px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.clients-label {
  flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
}
.clients-list { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.clients-list li {
  font-family: var(--font-brand); font-size: clamp(17px, 1.8vw, 22px); font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #5b6f8a;
  transition: color 0.2s;
}
.clients-list li:hover { color: var(--blue-600); }

/* ---------- Rejilla de celdas con líneas ---------- */
.cells { display: grid; gap: 0; padding: 0 1px 1px 0; }
.cells > * {
  background: var(--surface);
  box-shadow:
    1px 0 0 0 var(--line), 0 1px 0 0 var(--line), 1px 1px 0 0 var(--line),
    inset 1px 0 0 0 var(--line), inset 0 1px 0 0 var(--line);
}
.cells--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Tarjetas de servicio ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 36px) clamp(24px, 2.6vw, 32px);
  transition: background 0.3s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { background: var(--bg-alt); }
.service-card:hover::before { transform: scaleX(1); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; }
.service-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.service-icon { width: 54px; height: 54px; color: var(--accent); stroke-width: 1.2; }
.service-card h3 { font-size: clamp(25px, 2.2vw, 29px); }
.service-card p { font-size: 16px; color: var(--text-muted); }
.service-card .link-arrow { margin-top: auto; }

.dash-list { margin: 4px 0 28px; }
.dash-list li { position: relative; padding-left: 18px; font-size: 15px; color: var(--text-muted); }
.dash-list li + li { margin-top: 6px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--accent); }

.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--text-muted); }
.check-list li + li { margin-top: 10px; }
.check-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); stroke-width: 2.4; }

/* ---------- Ventajas y cifras ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.split--center { align-items: center; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split .section-head { margin-bottom: 0; }
.split .section-head .btn, .split .section-head .link-arrow { margin-top: 32px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.feature .icon-box { margin-bottom: 18px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { font-size: 16px; color: var(--text-muted); margin: 0; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.stat { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display); font-size: clamp(46px, 5.2vw, 72px); font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-value .unit { font-size: 0.5em; color: var(--accent-text); }
.stat-value--text { font-size: clamp(34px, 3.6vw, 48px); padding-top: 0.25em; }
.stat-label {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  padding: 7px 11px; background: var(--bg); border: 1px solid var(--accent-line);
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); line-height: 1.2;
}
.step::after {
  content: ""; position: absolute; top: 16px; left: 62px; right: -32px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--text-muted); margin: 0; }

/* ---------- Industrias ---------- */
.industry {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
  transition: background 0.25s;
}
.industry::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.industry:hover { background: var(--bg-alt); }

/* ---------- Maquinaria ---------- */
.press-table { width: 100%; border-collapse: collapse; }
.press-table th, .press-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.press-table th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.press-table td { font-size: 15.5px; color: var(--text-muted); }
.press-table td:first-child { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.press-table .ton { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.press-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); padding: 6px 16px; }

.robot-card { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.robot-card h3 { font-size: 22px; margin-bottom: 6px; }
.robot-card p { margin: 0; font-size: 15.5px; color: var(--text-muted); }

/* ---------- Fotos y marcadores de foto ---------- */
.media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }

.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background-color: #0d3166;
  background-image:
    linear-gradient(rgba(169, 196, 228, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 196, 228, 0.08) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #a9c4e4;
  transition: transform 0.6s var(--ease);
}
.ph::before { content: ""; width: 72px; height: 72px; background: var(--ph-icon, none) center / contain no-repeat; }
.ph::after {
  --c: var(--silver); --l: 18px; --t: 1.5px;
  content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: 0.6;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l);
  background-repeat: no-repeat;
}
.ph--pailera { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c0' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h20M2 19h20M2 6v13M22 6v13M2 6l5 13 5-13 5 13 5-13'/%3E%3C/svg%3E"); }
.ph--tuberia { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c0' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h7a11 11 0 0 1 11 11v5M3 11h7a5 5 0 0 1 5 5v5M3 3.5v9M13.5 21h9'/%3E%3C/svg%3E"); }
.ph--montaje { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c0' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V3h15M2 3h4M6 8l5-5M18 3v6M18 9a2 2 0 1 1-2 2M3 21h6M14 15h8v6h-8z'/%3E%3C/svg%3E"); }

/* Plano técnico (Ingeniería y diseño) */
.blueprint { position: relative; height: 100%; background: var(--bg); border: 1px solid var(--line-strong); }
.blueprint::before, .blueprint::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); z-index: 1; }
.blueprint::before { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.blueprint::after { right: -7px; bottom: -7px; border-width: 0 2px 2px 0; }
.bp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.bp-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); white-space: nowrap; }
.bp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 192, 192, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(192, 192, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 192, 192, 0); }
}
.blueprint svg { width: 100%; height: auto; }
.bp-frame { fill: none; stroke: var(--line); }
.bp-part { fill: rgba(192, 192, 192, 0.07); stroke: var(--accent); stroke-width: 1.6; }
.bp-hole { fill: var(--bg-alt); stroke: var(--accent); stroke-width: 1.4; }
.bp-center { fill: none; stroke: var(--text-dim); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; }
.bp-dim { fill: none; stroke: var(--text-dim); stroke-width: 0.8; }
.bp-ext { fill: none; stroke: var(--line-strong); stroke-width: 0.8; }
.bp-arrow { fill: var(--text-dim); }
.bp-block { fill: none; stroke: var(--line-strong); }
.bp-t { font-family: var(--font-mono); font-size: 12px; fill: var(--text-muted); letter-spacing: 0.04em; }
.bp-t--s { font-size: 9px; fill: var(--text-dim); letter-spacing: 0.14em; }
.bp-t--b { font-family: var(--font-brand); font-size: 15px; font-weight: 800; fill: var(--text); letter-spacing: 0.05em; }
.bp-t--a { fill: var(--accent-text); }
.js .bp-draw {
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: bp-draw 1.8s var(--ease) forwards, bp-fill 0.8s ease forwards;
  animation-delay: var(--bp-d, 0.2s), calc(var(--bp-d, 0.2s) + 1.1s);
  animation-play-state: paused;
}
.js .bp-fade { opacity: 0; animation: bp-fade 0.8s ease forwards; animation-delay: var(--bp-fd, 1.3s); animation-play-state: paused; }
.js .is-in .bp-draw, .js .is-in .bp-fade { animation-play-state: running; }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fill { to { fill-opacity: 1; } }
@keyframes bp-fade { to { opacity: 1; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.g-item { display: block; margin: 0; }
.g-open { display: block; width: 100%; text-align: left; }
.g-item .media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(7, 26, 53, 0.25);
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .media::before { opacity: 1; }
.g-item:hover .media > img, .g-item:hover .ph { transform: scale(1.04); }
.g-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; }
.g-cap strong {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15;
}
.g-cap span {
  flex: none; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 11px 16px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--text-dim); }
.filter[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line-strong);
  background: var(--navy-950); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 12, 26, 0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb-stage { position: relative; }
.lb-stage .media { aspect-ratio: auto; height: min(74dvh, 700px); background: #040c1a; }
.lb-stage .media > img { object-fit: contain; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(10, 37, 80, 0.9); color: #fff; transition: background 0.2s, color 0.2s;
}
.lb-btn:hover { background: var(--silver); color: var(--navy-950); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-caption { padding: 16px 20px; border-top: 1px solid rgba(169, 196, 228, 0.16); }
.lb-caption span { color: var(--silver); }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px); background: var(--blue-600); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 64px); }
.cta-band p { margin: 0; max-width: 52ch; font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }

/* ---------- Contacto y formularios ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-grid--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }

.info-list { margin-top: 32px; }
.info-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { border-top: 1px solid var(--line); }
.info-label {
  display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
}
.info-value { display: block; font-size: 17px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
a.info-value { transition: color 0.2s; }
a.info-value:hover { color: var(--accent-text); }

.form-card { position: relative; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 96px; height: 3px; background: var(--accent); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { margin-bottom: 28px; color: var(--text-muted); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.req { color: var(--blue-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: inherit; font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a99ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(6, 81, 153, 0.14); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15px; color: #128c4b; }
.form-status:empty { display: none; }

.contact-card { display: flex; flex-direction: column; gap: 4px; padding: clamp(24px, 3vw, 36px); }
.contact-card .icon-box { margin-bottom: 18px; }
.contact-card a.info-value { font-size: 19px; font-weight: 600; }
.contact-card .muted-line { font-size: 15px; color: var(--text-muted); }

.aside-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 22px; margin-bottom: 18px; }
.aside-card .info-list { margin-top: 0; }
.aside-note { margin: 20px 0 0; font-size: 15px; color: var(--text-dim); }

.plant-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.plant-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; }
.plant-head h3 { font-size: 26px; margin-bottom: 4px; }
.plant-head p { margin: 0; color: var(--text-muted); }
.map { position: relative; min-height: 280px; flex: 1; overflow: hidden; background: var(--surface-2); border-top: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background-image:
    linear-gradient(rgba(6, 81, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 81, 153, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin { width: 44px; height: 44px; color: var(--blue-600); stroke-width: 1.4; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 22px; font-weight: 400; line-height: 1; color: var(--accent-text);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 72ch; margin: 0; padding-bottom: 26px; color: var(--text-muted); }

/* ---------- Páginas interiores ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 88px);
  background: var(--bg);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(48px, 8vw, 100px); margin-bottom: 22px; }
.page-hero .lead { margin: 0; }
.page-hero-mark {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: 50%; z-index: 0;
  width: clamp(220px, 34vw, 460px); transform: translateY(-50%);
  opacity: 0.12; pointer-events: none; user-select: none;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* Submenú de servicios */
.subnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 16px 16px 14px; border-bottom: 2px solid transparent;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.subnav a b { margin-right: 8px; font-weight: 500; color: var(--accent-text); }
.subnav a:hover, .subnav a.is-active { color: var(--text); border-bottom-color: var(--blue-600); }

/* Detalle de servicio */
.svc { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); scroll-margin-top: 52px; }
.svc--alt { background: var(--bg-alt); }
.svc-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.svc--rev .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 12px 18px;
  background: var(--brand); color: var(--navy-950);
  font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1;
}
.svc h2 { font-size: clamp(38px, 4.6vw, 58px); }
.svc-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  margin: 32px 0 28px; padding-block: 28px; border-block: 1px solid var(--line);
}
.svc-cols h4, .chips-label {
  margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--accent-text); text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips-label { width: 100%; margin-bottom: 4px; }
.chip {
  padding: 7px 12px; background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted);
}

/* Nosotros */
.about-media { position: relative; }
.about-badge {
  position: absolute; right: -16px; bottom: -24px; z-index: 2; padding: 20px 26px;
  background: var(--brand); color: var(--navy-950);
  font-family: var(--font-display); text-transform: uppercase; line-height: 1;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.about-badge strong { display: block; font-size: 40px; font-weight: 800; }
.about-seal {
  position: absolute; right: -24px; bottom: -28px; z-index: 2; width: clamp(120px, 14vw, 164px); height: auto;
  border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 24px 40px -18px rgba(7, 26, 53, 0.55);
}
@media (max-width: 600px) { .about-seal { right: -8px; bottom: -20px; } }
.about-badge span { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; }

.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.mv-card .icon-box { margin-bottom: 24px; }
.mv-card h3 { font-size: clamp(30px, 3vw, 38px); }
.mv-card p { position: relative; max-width: 42ch; margin: 0; font-size: 19px; color: var(--text-muted); }
.mv-card::after {
  content: attr(data-letter); position: absolute; right: -0.02em; bottom: -0.3em;
  font-family: var(--font-display); font-size: 200px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none;
}

.value { padding: clamp(24px, 2.6vw, 32px); }
.value .icon-box { margin-bottom: 20px; }
.value h3 { font-size: 22px; margin-bottom: 8px; }
.value p { margin: 0; font-size: 15.5px; color: var(--text-muted); }

.pillar { padding: clamp(24px, 3vw, 34px); }
.pillar .step-num { display: inline-block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.pillar h3 { font-size: 24px; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: 16px; color: var(--text-muted); }

.iso {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.iso-seal {
  display: block; width: clamp(160px, 19vw, 220px); height: auto; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(192, 192, 192, 0.12), 0 0 0 22px rgba(192, 192, 192, 0.06);
}

/* ---------- Pie de página ---------- */
.site-footer { position: relative; }
.brand-bar { height: 4px; background: var(--brand); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.6fr;
  gap: 48px 40px; padding-block: 72px 56px;
}
.footer-logo { width: 200px; height: auto; }
.footer-brand p { max-width: 34ch; margin: 22px 0 22px; font-size: 15.5px; color: var(--text-muted); }
.footer-iso {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--text);
}
.footer-iso .icon { width: 18px; height: 18px; color: var(--accent); }
.footer-iso { gap: 12px; padding: 8px 16px 8px 8px; line-height: 1.3; }
.footer-iso img { width: 52px; height: 52px; flex: none; }
.footer-iso small { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; }
.footer-title { margin-bottom: 20px; font-size: 16px; letter-spacing: 0.14em; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 15.5px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-text); }
.footer-contact li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-muted); }
.footer-contact li + li { margin-top: 14px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.footer-contact a { overflow-wrap: anywhere; transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent-text); }
.footer-contact b { color: var(--text); font-weight: 600; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim);
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: ring 2.6s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .cells--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge--iso { left: -12px; }
  .hero-badge--ton { right: -8px; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .split--even, .contact-grid, .contact-grid--form, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { margin: 8px auto 0; }
  .svc--rev .svc-media { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells--3 { grid-template-columns: minmax(0, 1fr); }
  .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { margin-right: 16px; }
  .clients-list { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .brand-mark { width: 52px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.55em; }
  .cells--5, .cells--4, .features, .steps, .svc-cols, .form { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .btn-row .btn, .form-actions .btn { flex: 1 1 100%; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge strong { font-size: 21px; }
  .hero-badge--iso { top: 16px; left: -8px; }
  .hero-badge--ton { bottom: 20px; right: -8px; }
  .about-badge { right: -12px; bottom: -18px; padding: 16px 20px; }
  .about-badge strong { font-size: 32px; }
  .iso { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .plant-head { flex-direction: column; }
}

@media (max-width: 420px) {
  .cells--2.industries { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   COMPONENTES DEL PORTAFOLIO
   ===================================================================== */

/* ---------- Barra de avance de lectura ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor (solo con mouse) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor span {
  position: relative; display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(138, 138, 138, 0.85);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.cursor span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--silver-dark); }
.cursor.is-on { opacity: 1; }
.cursor.is-link span { transform: scale(1.5); background: rgba(192, 192, 192, 0.12); border-color: var(--silver); }
.cursor.is-down span { transform: scale(0.55); background: rgba(192, 192, 192, 0.35); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---------- Portada: título, fotos y reloj ---------- */
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .w { display: inline-block; }
.js .hero-title .w { transform: translateY(105%); animation: word-up 0.9s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 0.09s); }
@keyframes word-up { to { transform: none; } }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-muted); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa8bb; }
.status-dot.is-open::before { background: #2bd47d; animation: pulse-g 2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(43, 212, 125, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(43, 212, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 125, 0); } }

.hero-photos img { opacity: 0; transform: scale(1.05); transition: opacity 0.6s ease, transform 3.2s linear; }
.hero-photos img.on { opacity: 1; transform: scale(1); }
.photo-cap {
  position: absolute; left: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(7, 26, 53, 0.82); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.photo-bars { display: flex; gap: 4px; }
.photo-bars i { display: block; width: 14px; height: 2px; background: rgba(255, 255, 255, 0.3); transition: background 0.3s; }
.photo-bars i.on { background: var(--silver); }

/* Monito que se asoma del botón principal */
.peek { position: absolute; right: 22px; bottom: calc(100% - 30px); width: 26px; height: 40px; z-index: -2; transition: transform 0.35s var(--ease); }
.peek-say {
  position: absolute; right: -10px; bottom: calc(100% + 18px); padding: 5px 9px; white-space: nowrap;
  background: #fff; color: var(--navy-900); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none; opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.btn-peek:hover .peek, .btn-peek:focus-visible .peek { transform: translateY(-30px); }
.btn-peek:hover .peek-say, .btn-peek:focus-visible .peek-say { opacity: 1; transform: none; transition-delay: 0.15s; }

/* Monitos de línea */
.mw { fill: none; stroke: #dbe8f7; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mw .hat { fill: var(--silver); stroke: var(--silver); }
.mw .vest { stroke: var(--silver-dark); stroke-width: 2.6; }
.mw .head { fill: var(--navy-900); }

/* ---------- Escena: línea de estampado ---------- */
.line-scene-wrap { position: relative; z-index: 2; margin-top: clamp(36px, 5vw, 64px); }
.line-scene { display: block; width: 100%; height: auto; overflow: visible; }
.ls-line { fill: none; stroke: #a9c4e4; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ls-thin { stroke-width: 1; opacity: 0.7; }
.ls-fill { fill: #0d3166; stroke: #a9c4e4; stroke-width: 1.6; stroke-linejoin: round; }
.ls-ram { fill: #123f7f; stroke: var(--silver); stroke-width: 1.6; }
.ls-die { fill: var(--silver); opacity: 0.9; }
.ls-ground { stroke: #a9c4e4; stroke-width: 1.4; opacity: 0.6; }
.ls-hatch { stroke: rgba(169, 196, 228, 0.25); stroke-width: 1; }
.ls-strip { fill: none; stroke: #c9d8ea; stroke-width: 5; }
.ls-marks { fill: none; stroke: #8ea6c4; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0 24; }
.ls-coil { fill: #b4c6dc; stroke: #dbe8f7; stroke-width: 1.6; }
.ls-wrap { fill: none; stroke: #7f9cc4; stroke-width: 0.8; }
.ls-eye { fill: #0a2550; stroke: #dbe8f7; stroke-width: 1.4; }
.ls-seam { stroke: #0a2550; stroke-width: 2; }
/* Robot FANUC */
.rb-base { fill: #1b2a40; stroke: #a9c4e4; stroke-width: 1.4; }
.rb-y { fill: #f4c20d; stroke: #b88f00; stroke-width: 1.2; stroke-linejoin: round; }
.rb-motor { fill: #1b2a40; stroke: #f4c20d; stroke-width: 1.4; }
.rb-l1 { stroke: #f4c20d; stroke-width: 15; stroke-linecap: round; }
.rb-l1in { stroke: #c99a00; stroke-width: 3; stroke-linecap: round; }
.rb-l2 { stroke: #f4c20d; stroke-width: 10; stroke-linecap: round; }
.rb-cw { stroke: #d9a800; stroke-width: 13; stroke-linecap: round; }
.rb-joint { fill: #1b2a40; stroke: #f4c20d; stroke-width: 2.5; }
.rb-joint--s { stroke-width: 2; }
.rb-led { fill: var(--silver); }
.rb-cable { fill: none; stroke: #33415c; stroke-width: 2.6; stroke-linecap: round; }
.rb-tool { fill: none; stroke: #dbe8f7; stroke-width: 2; stroke-linecap: round; }
.rb-cup { fill: #1b2a40; stroke: #dbe8f7; stroke-width: 1; }
.ls-belt { fill: #0d3166; stroke: #a9c4e4; stroke-width: 1.4; }
.ls-beltmarks { stroke: var(--silver-dark); stroke-width: 1.4; stroke-dasharray: 5 9; }
.ls-part { fill: var(--silver); stroke: #0a2550; stroke-width: 0.8; }
.ls-robot1 { stroke: #5886e8; stroke-width: 13; stroke-linecap: round; }
.ls-robot2 { stroke: var(--silver-dark); stroke-width: 9; stroke-linecap: round; }
.ls-joint { fill: #0a2550; stroke: var(--silver); stroke-width: 2; }
.ls-bin { fill: rgba(13, 49, 102, 0.7); stroke: #a9c4e4; stroke-width: 1.6; }
.ls-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; fill: #7f9cc4; }
.ls-plate { font-family: var(--font-brand); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; fill: #ffffff; }
.ls-count { font-family: var(--font-mono); font-size: 15px; font-weight: 500; fill: var(--silver); letter-spacing: 0.08em; }
.ls-flash { fill: #ffffff; }
.ls-spark { stroke: var(--silver); stroke-width: 1.6; stroke-linecap: round; }
.ls-panel { fill: #0d3166; stroke: #a9c4e4; stroke-width: 1.4; }
.ls-btn { fill: #2bd47d; }
.ls-bub rect, .ls-bub path { fill: #ffffff; }
.ls-bub text { font-family: var(--font-mono); font-size: 10.5px; fill: #0a2550; letter-spacing: 0.02em; }
.ls-bub { transition: opacity 0.25s; }

/* ---------- Cotización rápida ---------- */
.qq { padding-block: 32px; background: var(--navy-950); border-top: 1px solid rgba(169, 196, 228, 0.14); }
.qq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 24px 40px; align-items: center; }
.qq h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 4px; }
.qq p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.qq .eyebrow { margin-bottom: 10px; }
.qq-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qq-opt {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(169, 196, 228, 0.2);
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.qq-opt .icon { width: 26px; height: 26px; color: var(--silver); stroke-width: 1.4; }
.qq-opt .arr { margin-left: auto; width: 16px; height: 16px; color: var(--text-muted); stroke-width: 1.8; transition: transform 0.2s; }
.qq-opt:hover { background: rgba(192, 192, 192, 0.1); border-color: var(--silver); transform: translateY(-2px); }
.qq-opt:hover .arr { transform: translateX(3px); color: var(--silver); }

/* ---------- Ilustraciones de servicios ---------- */
.illus { display: block; width: 100%; max-width: 190px; height: auto; margin-bottom: 26px; overflow: visible; }
.il { fill: none; stroke: var(--navy-900); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.il-ground { stroke: #9fb6d3; stroke-width: 1.4; }
.il-acc { fill: none; stroke: var(--blue-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-fill { fill: rgba(6, 81, 153, 0.08); stroke: var(--navy-900); stroke-width: 1.6; stroke-linejoin: round; }
.il-cyan { fill: var(--silver); stroke: var(--navy-900); stroke-width: 1; }
.il .hat { fill: var(--silver); stroke: var(--navy-900); stroke-width: 1.2; }
.il .vest { stroke: var(--blue-600); stroke-width: 2.6; }
.il .head { fill: #fff; }
.il-ram { animation: il-ram 2.2s var(--ease) infinite; }
@keyframes il-ram { 0%, 30%, 100% { transform: none; } 45%, 52% { transform: translateY(20px); } }
.il-hitpart { animation: il-pop 2.2s var(--ease) infinite; }
@keyframes il-pop { 0%, 50% { opacity: 0; transform: translateX(-10px); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateX(10px); } }
.il-spark { stroke: var(--silver-dark); stroke-width: 1.6; stroke-linecap: round; animation: il-blink 0.5s steps(2, jump-none) infinite; }
.il-spark.b { animation-delay: 0.25s; }
@keyframes il-blink { 0% { opacity: 1; } 100% { opacity: 0.1; } }
.il-flow { fill: none; stroke: var(--silver-dark); stroke-width: 2.2; stroke-dasharray: 4 7; animation: il-flow 1s linear infinite; }
@keyframes il-flow { to { stroke-dashoffset: -22; } }
.il-spin { transform-box: fill-box; transform-origin: center; animation: il-spin 0.8s linear infinite; }
@keyframes il-spin { to { transform: rotate(360deg); } }
.il-draw { stroke-dasharray: 180; stroke-dashoffset: 180; animation: il-draw 3.4s var(--ease) infinite; }
@keyframes il-draw { 0% { stroke-dashoffset: 180; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -180; } }
.il-swing { transform-origin: 104px 16px; animation: il-swing 3s ease-in-out infinite; }
@keyframes il-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.il-chip { stroke: var(--blue-600); stroke-width: 1.4; stroke-linecap: round; animation: il-chip 0.9s ease-out infinite; }
.il-chip.b { animation-delay: 0.45s; }
@keyframes il-chip { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(10px, -8px); } }

/* ---------- Del rollo a la pieza ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-sticky {
  position: sticky; top: calc(var(--header-h) + 32px); grid-column: 2; grid-row: 1;
  padding: 18px; background: var(--navy-900); border: 1px solid var(--navy-800); box-shadow: var(--shadow);
}
.story-steps { grid-column: 1; grid-row: 1; }
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding-block: 24px; opacity: 0.3; transition: opacity 0.4s; }
.story-step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 40px; }
.story-step:last-child { min-height: 56vh; }
.story-step.is-active { opacity: 1; }
.story-num { margin-bottom: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent-text); }
.story-step h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 12px; }
.story-step p { margin: 0; max-width: 44ch; font-size: 17.5px; color: var(--text-muted); }
.story-svg { display: block; width: 100%; height: auto; }
.story-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #7f9cc4; }
.story-bar b { color: var(--silver); font-weight: 500; }
.story-dots { display: flex; gap: 5px; }
.story-dots i { width: 18px; height: 3px; background: rgba(169, 196, 228, 0.25); transition: background 0.3s; }
.story-dots i.on { background: var(--silver); }
.st { transition: opacity 0.5s; }
.st.is-ghost { opacity: 0.16; }
.st-hl { fill: rgba(192, 192, 192, 0.08); stroke: var(--silver); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 0; transition: opacity 0.4s; }
.st.is-active .st-hl { opacity: 1; }
.st-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.03em; fill: #7f9cc4; transition: fill 0.3s; }
.st.is-active .st-label { fill: var(--silver); }
.st.is-active .st-punch { animation: st-hit 1.6s var(--ease) infinite; }
@keyframes st-hit { 0%, 35%, 100% { transform: none; } 48%, 56% { transform: translateY(22px); } }
.st-hole { fill: #0a2550; stroke: #7f9cc4; stroke-width: 1; }
.st-flash { fill: #fff; opacity: 0; }
.st.is-active .st-flash { animation: st-flash 1.6s ease infinite; }
@keyframes st-flash { 0%, 46%, 100% { opacity: 0; } 50% { opacity: 0.85; } 60% { opacity: 0; } }
.st-check { fill: #2bd47d; }
.st.is-active .st-spin { transform-box: fill-box; transform-origin: center; animation: il-spin 4s linear infinite; }

/* ---------- Simulador de prensa ---------- */
.sim-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.sim-panel { padding: clamp(22px, 3vw, 34px); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.sim-field + .sim-field { margin-top: 26px; }
.sim-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.sim-label output { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; color: #fff; text-transform: none; }
.sim-hint { margin: 8px 0 0; font-size: 13.5px; color: var(--text-dim); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; padding: 9px 12px; border: 1px solid var(--line-strong); cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.seg span:hover { color: #fff; border-color: #7f9cc4; }
.seg input:checked + span { background: var(--silver); border-color: var(--silver); color: var(--navy-950); }
.seg input:focus-visible + span { outline: 2px solid var(--silver); outline-offset: 2px; }

.range { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--silver) var(--fill, 50%), rgba(169, 196, 228, 0.25) var(--fill, 50%)); }
.range::-moz-range-track { height: 4px; background: rgba(169, 196, 228, 0.25); }
.range::-moz-range-progress { height: 4px; background: var(--silver); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: #fff; border: 4px solid var(--silver); border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.range::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 4px solid var(--silver); border-radius: 50%; }
.range:focus-visible { outline: 2px solid var(--silver); outline-offset: 4px; }

/* Datos que escribe el cliente */
.sim-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 24px; font-size: 14.5px; color: var(--text-muted); }
.sim-tag { padding: 4px 9px; background: var(--silver); color: var(--navy-950); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.sim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.sim-fields .sim-field + .sim-field { margin-top: 0; }
.sim-field--full { grid-column: 1 / -1; }
.sim-label b {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px;
  background: rgba(192, 192, 192, 0.14); color: var(--silver); font-weight: 500; font-size: 11px; letter-spacing: 0;
}
.sim-label em { font-style: normal; font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.1em; }
.seg--sm span { padding: 8px 11px; }
.sim-inputs { display: flex; align-items: stretch; gap: 10px; }
.seg + .sim-inputs { margin-top: 12px; }
.sim-x { align-self: center; flex: none; font-family: var(--font-mono); font-size: 18px; color: var(--text-dim); }
.num {
  position: relative; display: flex; align-items: flex-end; gap: 8px; flex: 1 1 0; min-width: 0;
  padding: 22px 12px 8px; background: var(--navy-950); border: 1px solid var(--line-strong); cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.num small {
  position: absolute; top: 7px; left: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.num input {
  width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; color: #fff;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: 0.01em;
  -moz-appearance: textfield; appearance: textfield;
}
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num input:focus { outline: none; }
.num > span { flex: none; padding-bottom: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.num:hover { border-color: #7f9cc4; }
.num:focus-within { border-color: var(--silver); box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.16); }
.num.is-bad { border-color: #ff8a80; }
.sim-calc { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); }
.sim-calc b { font-weight: 500; color: #fff; }
.sim-checks { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sim-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }
.sim-checks li b { font-weight: 600; color: #fff; }
.sim-checks i {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px;
  font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.sim-checks .ok i { background: rgba(43, 212, 125, 0.16); color: #2bd47d; }
.sim-checks .warn i { background: rgba(255, 196, 0, 0.16); color: #ffc400; }
.sim-checks .bad i { background: rgba(255, 138, 128, 0.16); color: #ff8a80; }
.sim-checks .info i { background: rgba(192, 192, 192, 0.14); color: var(--silver); }
.press-chip.is-out { opacity: 0.45; }
.press-chip .out-tag {
  position: absolute; top: -9px; right: 10px; padding: 2px 7px; background: #33415c; color: #cfd9e8;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 600px) {
  .sim-fields { grid-template-columns: minmax(0, 1fr); }
  .num input { font-size: 24px; }
}

.sim-result { margin-top: 28px; padding: 22px; background: var(--navy-950); border: 1px solid var(--line); }
.sim-result-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sim-result-row > div > span, .sim-rec span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.sim-big { font-family: var(--font-display); font-size: clamp(54px, 6vw, 76px); font-weight: 800; line-height: 0.9; }
.sim-big small { margin-left: 4px; font-size: 0.42em; color: var(--silver); }
.sim-rec { text-align: right; }
.sim-rec strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.sim-meter { position: relative; height: 8px; margin-top: 18px; background: rgba(169, 196, 228, 0.18); overflow: hidden; }
.sim-meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand); transition: width 0.5s var(--ease); }
.sim-meter-label { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.sim-note { margin: 16px 0 0; font-size: 13.5px; color: var(--text-dim); }
.sim-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.sim-stage {
  position: relative; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 26px);
  background: #0d3166; border: 1px solid var(--line); overflow: hidden;
}
.sim-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(169, 196, 228, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 196, 228, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sim-svg { position: relative; display: block; width: 100%; max-height: 430px; height: auto; margin-inline: auto; }
.sim-frame { transform-box: view-box; transform-origin: 200px 340px; transition: transform 0.5s var(--ease); }
.sim-stage.is-hitting .sim-ram { animation: sim-ram var(--hit, 0.8s) cubic-bezier(0.5, 0, 0.3, 1) 1; }
@keyframes sim-ram { 0% { transform: none; } 42%, 52% { transform: translateY(var(--travel, 62px)); } 100% { transform: none; } }
.sim-stage.is-hitting .sim-shake { animation: sim-shake calc(var(--hit, 0.8s) * 0.5) ease-out 1; animation-delay: calc(var(--hit, 0.8s) * 0.42); }
@keyframes sim-shake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(calc(var(--amp, 2px) * -1), var(--amp, 2px)); }
  30% { transform: translate(var(--amp, 2px), calc(var(--amp, 2px) * -0.5)); }
  50% { transform: translate(calc(var(--amp, 2px) * -0.5), 0); }
  100% { transform: none; }
}
.sim-flash { opacity: 0; }
.sim-stage.is-hitting .sim-flash { animation: sim-flash calc(var(--hit, 0.8s) * 0.6) ease-out 1; animation-delay: calc(var(--hit, 0.8s) * 0.42); }
@keyframes sim-flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.sim-sheet-part { opacity: 0; }
.sim-stage.is-stamped .sim-sheet-flat { opacity: 0; }
.sim-stage.is-stamped .sim-sheet-part { opacity: 1; }
.sim-gauge-arc { fill: none; stroke: rgba(169, 196, 228, 0.22); stroke-width: 8; stroke-linecap: round; }
.sim-gauge-val { fill: none; stroke: var(--silver); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.sim-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: #a9c4e4; }
.sim-plate { font-family: var(--font-brand); font-size: 15px; font-weight: 800; letter-spacing: 0.1em; fill: #fff; }
.sim-plate-t { font-family: var(--font-display); font-size: 22px; font-weight: 800; fill: var(--silver); }
.sim-specs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); }
.sim-specs div { padding: 12px 14px; background: var(--navy-950); }
.sim-specs span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.sim-specs strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; }
.sim-hitrow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sim-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); }
.sim-count b { font-size: 15px; font-weight: 500; color: var(--silver); }
.btn-hit { --btn-bg: #e5372c; --btn-bg-hover: #f2493e; --btn-fg: #fff; min-height: 58px; padding: 0 30px; font-size: 19px; }
.btn-hit:active { transform: translateY(2px); }

.press-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.press-chip {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.press-chip:hover { border-color: #7f9cc4; transform: translateY(-2px); }
.press-chip b { font-family: var(--font-brand); font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; }
.press-chip strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; color: #fff; }
.press-chip strong small { margin-left: 2px; font-size: 0.5em; color: var(--text-muted); }
.press-chip span { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.4; color: var(--text-dim); }
.press-chip i { display: block; height: 3px; margin-top: 8px; background: rgba(169, 196, 228, 0.18); }
.press-chip i::after { content: ""; display: block; height: 100%; width: var(--w, 10%); background: var(--brand); }
.press-chip[aria-pressed="true"] { background: rgba(192, 192, 192, 0.1); border-color: var(--silver); }
.press-chip .rec-tag {
  position: absolute; top: -9px; right: 10px; padding: 2px 7px; background: var(--silver); color: var(--navy-950);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Portafolio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pf-card { margin: 0; background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pf-card .g-open { display: flex; flex-direction: column; height: 100%; text-align: left; }
.pf-card .media { aspect-ratio: 4 / 3.2; }
.pf-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 10px;
  background: rgba(7, 26, 53, 0.85); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.pf-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--silver); }
.pf-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.pf-body .g-title { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; color: var(--text); }
.pf-body .g-desc { font-size: 15.5px; color: var(--text-muted); }
.pf-more { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.filter .n { margin-left: 6px; font-size: 10px; vertical-align: super; opacity: 0.75; }

/* ---------- Clientes en movimiento ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; align-items: center; }
.marquee-list li {
  display: flex; align-items: center; gap: 48px; padding: 6px 0 6px 48px;
  font-family: var(--font-brand); font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; transition: color 0.2s;
}
.marquee-list li:hover { color: var(--text); }
.marquee-list li::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Proceso con avance ---------- */
.flow { position: relative; }
.flow-line { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line); }
.flow-line i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.flow-man { position: absolute; top: -27px; left: calc(var(--p, 0) * 100%); width: 26px; height: 42px; margin-left: -13px; }
.flow-man .mw { stroke: var(--navy-900); }
.flow-man .mw .head { fill: #fff; }
.flow .step::after { display: none; }

/* ---------- Cotizador (ventana de 4 pasos) ---------- */
.wiz {
  width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; background: #fff; color: var(--text); overflow: auto;
  box-shadow: 0 40px 100px -30px rgba(7, 26, 53, 0.6);
}
.wiz::backdrop { background: rgba(7, 26, 53, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px clamp(20px, 4vw, 36px) 0; }
.wiz-head .eyebrow { margin-bottom: 8px; }
.wiz-head h3 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); }
.wiz-close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--surface-2); color: var(--text); transition: background 0.2s; }
.wiz-close:hover { background: var(--surface-3); }
.wiz-close .icon { width: 20px; height: 20px; }
.wiz-progress { position: relative; margin: 50px clamp(20px, 4vw, 36px) 0; }
.wiz-track { position: relative; height: 4px; background: var(--surface-3); }
.wiz-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue-600); transition: width 0.6s var(--ease); }
.wiz-man { position: absolute; top: -42px; left: 0; width: 28px; height: 44px; margin-left: -14px; transition: left 0.6s var(--ease); }
.wiz-man .mw { stroke: var(--navy-900); }
.wiz-man .mw .head { fill: #fff; }
.wiz-man .leg-a, .wiz-man .leg-b { transform-box: view-box; transform-origin: 14px 30px; }
.wiz-man.is-walking .leg-a { animation: walk-a 0.3s ease-in-out infinite alternate; }
.wiz-man.is-walking .leg-b { animation: walk-a 0.3s ease-in-out infinite alternate-reverse; }
@keyframes walk-a { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.wiz-man .arms-up { display: none; }
.wiz-man.is-cheer { animation: cheer 0.5s ease-in-out 4; }
.wiz-man.is-cheer .arms-down { display: none; }
.wiz-man.is-cheer .arms-up { display: inline; }
@keyframes cheer { 50% { transform: translateY(-8px); } }
.wiz-steps { display: grid; grid-template-columns: 1fr 2fr 2fr 1fr; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.wiz-steps li:nth-child(2), .wiz-steps li:nth-child(3) { text-align: center; }
.wiz-steps li:last-child { text-align: right; }
.wiz-steps li.on { color: var(--blue-600); }
.wiz-body { padding: 26px clamp(20px, 4vw, 36px) 8px; }
.wiz-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.wiz-step.is-on { display: block; animation: wiz-in 0.4s var(--ease); }
@keyframes wiz-in { from { opacity: 0; transform: translateX(16px); } }
.wiz-step legend { margin-bottom: 18px; padding: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.wiz-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wiz-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wiz-opt { position: relative; }
.wiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-opt span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; cursor: pointer;
  background: var(--bg-alt); border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.wiz-opt span .icon { width: 28px; height: 28px; margin-bottom: 6px; color: var(--blue-600); stroke-width: 1.4; }
.wiz-opt b { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; }
.wiz-opt small { font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }
.wiz-opt span:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.wiz-opt input:checked + span { border-color: var(--blue-600); background: rgba(6, 81, 153, 0.06); box-shadow: inset 0 0 0 1px var(--blue-600); }
.wiz-opt input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.wiz-summary { grid-column: 1 / -1; padding: 16px 18px; background: var(--bg-alt); border-left: 3px solid var(--blue-600); font-size: 15px; color: var(--text-muted); }
.wiz-summary b { font-weight: 600; color: var(--text); }
.wiz-error { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: #c0362c; }
.wiz-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px clamp(20px, 4vw, 36px) 22px; background: #fff; border-top: 1px solid var(--line);
}
.wiz-foot .right { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.wiz-mail { font-size: 14px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .press-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qq-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-sticky { grid-column: 1; grid-row: 1; top: var(--header-h); z-index: 5; padding: 10px; margin-inline: calc(var(--gutter) * -1); }
  .story-steps { grid-column: 1; grid-row: 2; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 48vh; padding-top: 32px; justify-content: flex-start; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qq-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .press-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .qq-opt { padding: 14px; font-size: 16px; }
  .wiz-opts, .wiz-opts--2 { grid-template-columns: minmax(0, 1fr); }
  .wiz-opt span { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .wiz-opt span .icon { margin: 0; }
  .wiz-opt small { display: none; }
  .wiz-steps { font-size: 9.5px; letter-spacing: 0.04em; }
  .sim-rec { text-align: left; }
  .sim-specs strong { font-size: 18px; }
  .btn-hit { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; }
  .il-ram, .il-hitpart, .il-spark, .il-flow, .il-spin, .il-draw, .il-swing, .il-chip { animation: none !important; }
  .js .hero-title .w { transform: none; animation: none; }
}

/* Ajustes */
.hero--scene { padding-bottom: 0; }
.mw .arms-up { display: none; }
.peek .arms-down { display: none; }
.peek .arms-up { display: inline; }
.info-item .info-value + .info-value { margin-top: 2px; }
.pf-grid { grid-auto-flow: dense; }
.pf-card--feature { grid-row: span 2; }
.pf-card--feature .media { flex: 1; aspect-ratio: auto; min-height: 380px; }
.pf-card--feature .g-title { font-size: 28px; }
@media (max-width: 900px) { .pf-card--feature { grid-row: auto; grid-column: 1 / -1; } .pf-card--feature .media { min-height: 0; aspect-ratio: 16 / 11; } }
@media (max-width: 600px) { .flow-line, .flow-man { display: none; } }
.plant-head .link-arrow { white-space: nowrap; flex: none; }

/* ---------- Celda robótica interactiva (sección 04, js/robot.js) ---------- */
.robot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 20px; align-items: stretch; }
.robot-stage { position: relative; display: flex; flex-direction: column; padding: clamp(14px, 2vw, 22px); background: #0d3166; border: 1px solid var(--line); overflow: hidden; }
.robot-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(169, 196, 228, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 196, 228, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.robot-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #7f9cc4; }
.robot-live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.robot-live i { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; animation: pulse-g 2s infinite; }
.is-manual .robot-live i { background: #f4c20d; animation: none; }
.robot-svg { position: relative; display: block; width: 100%; height: auto; margin-block: auto; overflow: visible; outline: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.is-manual .robot-svg { cursor: crosshair; }
.robot-svg:focus-visible { outline: 2px solid var(--silver); outline-offset: 4px; }
.robot-tip { position: relative; margin: 10px 0 0; font-size: 14px; color: var(--text-muted); }
.robot-tip b { color: #fff; font-weight: 600; }

.rc-post { fill: #1b2a40; stroke: #a9c4e4; stroke-width: 1.2; }
.rc-beam { stroke: var(--silver); stroke-width: 2; stroke-dasharray: 2 6; opacity: 0.85; animation: rc-beam 0.8s linear infinite; transition: stroke 0.2s; }
@keyframes rc-beam { to { stroke-dashoffset: -8; } }
.rc-lamp { fill: #2bd47d; transition: fill 0.2s; }
.is-zone .rc-beam { stroke: #ffb020; }
.is-zone .rc-lamp { fill: #ffb020; }
.rc-trail { fill: none; stroke: var(--silver); stroke-width: 1.4; stroke-dasharray: 1 5; stroke-linecap: round; opacity: 0.55; }
.rc-target { fill: none; stroke: #f4c20d; stroke-width: 1.4; transition: opacity 0.2s; }
.rc-part { fill: var(--silver); stroke: #0a2550; stroke-width: 0.8; }
.rc-blank { fill: #dbe8f7; stroke: #0a2550; stroke-width: 0.6; }
.rc-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; fill: #7f9cc4; }

/* Panel tipo teach pendant */
.pendant { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #0b1730; border: 1px solid var(--line); border-top: 5px solid #f4c20d; }
.pd-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.pd-brand { color: #f4c20d; font-weight: 500; }
.pd-prog b { font-weight: 500; color: #fff; }
.pd-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd-mode {
  padding: 10px 8px; border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pd-mode:hover { color: #fff; border-color: #7f9cc4; }
.pd-mode[aria-pressed="true"] { background: #f4c20d; border-color: #f4c20d; color: #0a1528; }
.pd-state { min-height: 42px; margin: 0; padding: 10px 12px; background: #06101f; border-left: 3px solid var(--silver); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: #dbe8f7; }
.pd-joints { display: grid; gap: 7px; }
.pd-joints li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.pd-joints i { position: relative; height: 6px; background: rgba(169, 196, 228, 0.14); }
.pd-joints i::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(169, 196, 228, 0.45); }
.pd-joints b { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--silver); }
.pd-joints output { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pd-grid div { min-width: 0; padding: 8px 10px; background: #06101f; }
.pd-grid span { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.pd-grid strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-speed { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.pd-speed .range { flex: 1; min-width: 0; }
.pd-grip { --btn-bg: #f4c20d; --btn-bg-hover: #ffd23f; --btn-fg: #0a1528; }
.pd-safe { display: flex; align-items: center; gap: 10px; margin: auto 0 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.pd-safe i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2bd47d; transition: background 0.2s; }
.is-zone .pd-safe { color: #ffd27a; }
.is-zone .pd-safe i { background: #ffb020; }

.robot-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.robot-feats li { display: flex; align-items: flex-start; gap: 14px; padding: 22px; background: var(--bg); }
.robot-feats h3 { margin-bottom: 6px; font-size: 20px; }
.robot-feats p { margin: 0; font-size: 15px; color: var(--text-muted); }

@media (max-width: 1080px) {
  .robot-grid { grid-template-columns: minmax(0, 1fr); }
  .robot-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .robot-feats { grid-template-columns: minmax(0, 1fr); }
  .robot-bar { font-size: 10px; letter-spacing: 0.08em; }
  .pendant { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rc-beam, .robot-live i { animation: none; } }
