/* =========================================================
   ZR Automation S.A.C. — hoja de estilos compartida del sitio
   Sistema: tinta azul industrial, naranja de señal y acero.
   Tipografía: IBM Plex Sans. Rejilla de 12 columnas, máx. 1264 px.
   ========================================================= */

:root {
  --ink: #0B1F33;
  --accent: #F26B1D;
  --accent-hover: #FF7A2E;
  --steel: #1F5F8B;
  --white: #FFFFFF;
  --surface: #F5F7FA;
  --tint: #EAF2F8;
  --line: #D5DCE4;
  --line-dark: #24394F;
  --muted: #4A5A6B;
  --on-dark-muted: #B9C6D3;
  --error: #B3261E;
  --success: #1E7A4F;
  --wa: #25D366;
  --wa-hover: #20BD5A;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-padding-top: 88px; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--white);
}
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--steel); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Títulos de sección ---------- */
h2 {
  margin: 0 0 40px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .svc-btn, .copy, .m-close, .wa, .social, .mq-toggle { transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, transform .1s ease-out; }
  .btn:active, .svc-btn:active, .wa:active, .mq-toggle:active { transform: translateY(1px); }
}

.text-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--error); vertical-align: 1px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  min-height: 64px;
  padding-top: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { display: block; width: auto; height: 56px; border-radius: 4px; }
@media (max-width: 400px) { .brand img { height: 48px; } }
.f-logo { display: block; width: auto; height: 104px; border-radius: 8px; }
.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--muted);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav { order: 3; width: 100%; overflow-x: auto; }
.nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--steel); text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { color: var(--steel); text-decoration: underline; text-underline-offset: 6px; }
.actions { display: flex; align-items: center; gap: 20px; }
@media (min-width: 720px) {
  .text-btn { display: inline-flex; }
  .nav-support { display: none; }
}
@media (min-width: 860px) {
  .bar { flex-wrap: nowrap; height: 72px; padding-top: 0; }
  .nav { order: 0; width: auto; overflow: visible; }
  .nav ul { gap: 32px; }
}

/* ---------- Hero (inicio) ---------- */
.hero { display: flex; align-items: center; padding-block: clamp(32px, 5vh, 64px); }
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; min-width: 0; }
.hero-art { grid-column: 8 / span 5; min-width: 0; margin: 0; }
@media (max-width: 860px) { .hero-copy, .hero-art { grid-column: 1 / -1; } }
@media (max-width: 720px) { .hero .btn-lg { width: 100%; } }

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  max-width: 54ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Puntos de confianza bajo los botones del hero */
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; }
.hero-proof svg { flex: none; width: 22px; height: 22px; padding: 4px; background: var(--tint); border-radius: 50%; color: var(--steel); }
@media (max-width: 560px) { .hero-proof { flex-direction: column; } }

.schematic {
  padding: 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.schematic svg { display: block; width: 100%; height: auto; }

/* Esquema (trazos) */
.s-ln { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.s-m  { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.s-pn { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.s-th { fill: none; stroke: var(--line); stroke-width: 1; }
.s-pw { fill: none; stroke: var(--steel); stroke-width: 1.6; }
.s-ct { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.s-ci { fill: none; stroke: var(--ink); stroke-width: 1; }
.s-fin { fill: none; stroke: var(--muted); stroke-width: 1; }
.s-led { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.s-on { fill: var(--accent); stroke: var(--ink); stroke-width: 1; }
.s-fill { fill: var(--ink); stroke: var(--ink); stroke-width: 1; }
.s-wave { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.s-trend { fill: none; stroke: var(--steel); stroke-width: 1.6; }
.s-tx { font-family: var(--font); font-size: 11px; fill: var(--ink); }
.s-mt { fill: var(--muted); }
.s-tg { font-weight: 600; letter-spacing: .04em; }
.s-big { font-size: 26px; font-weight: 500; }

/* ---------- Franja de marcas ---------- */
.brands { background: var(--surface); border-block: 1px solid var(--line); }
.brands .wrap { padding-block: 24px 28px; }
.brands h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }

/* Carrusel continuo de marcas */
.brands { padding-block: 28px 32px; }
.brands .wrap.brands-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-block: 0; margin-bottom: 18px; }
.brands .brands-head h2 { margin: 0; }
.brands-all { color: var(--steel); font-size: 14px; font-weight: 600; text-decoration: none; }
.brands-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.brands-tools { display: flex; align-items: center; gap: 20px; }

/* Pausar / reanudar el carrusel (solo aparece si hay animación) */
.mq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mq-toggle:hover { border-color: var(--steel); color: var(--steel); }
/* Ícono: dos barras (pausar) o triángulo (reanudar) */
.mq-ico { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.marquee-paused .mq-ico { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.marquee-paused .mq-track { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .mq-toggle { display: none; } }

.marquee {
  --mq-gap: 16px;
  position: relative;
  overflow: hidden;
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.mq-track { display: flex; width: max-content; }
.mq-group { display: flex; flex: none; gap: var(--mq-gap); margin: 0; padding: 0 var(--mq-gap) 0 0; list-style: none; }
.mq-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 68px;
  padding: 0 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.mq-logo { display: flex; align-items: center; justify-content: center; height: 100%; }
/* Altura fija: los SVG que solo traen viewBox (sin width/height) necesitan una
   medida para calcular su ancho; sin ella el navegador los dibuja con ancho 0 */
.mq-logo .marca-img { width: auto; height: 34px; max-width: 132px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.logo-slot .marca-img { width: auto; height: 30px; max-width: 80%; max-height: none; object-fit: contain; }
.brand-logo .marca-img { width: auto; height: 48px; max-width: 80%; max-height: none; object-fit: contain; }
.mq-logo .marca-txt { padding: 0; color: var(--muted); font-size: 19px; font-weight: 600; white-space: nowrap; }
.mq-item:hover { border-color: var(--steel); }
.mq-item:hover .marca-txt { color: var(--ink); }
.mq-item:hover .marca-img { filter: none; opacity: 1; }
.mq-item:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: no-preference) {
  .mq-track { animation: mq-scroll var(--mq-dur, 40s) linear infinite; }
  .marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
  .mq-item, .mq-logo .marca-img { transition: border-color .2s, filter .2s, opacity .2s; }
}
@keyframes mq-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* Sin animación: una sola fila que se envuelve, sin copia */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: 100%; }
  .mq-group { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .mq-group[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
  .mq-item { min-width: 136px; height: 56px; padding: 0 20px; }
  .mq-logo .marca-txt { font-size: 17px; }
}

/* ---------- Encabezado de sección ---------- */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 12px;
  align-items: end;
  margin-bottom: 40px;
}
.sec-head h2 { grid-column: 1 / -1; margin: 0; }
.sec-head p {
  grid-column: 1 / -1;
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
@media (min-width: 900px) {
  .sec-head h2 { grid-column: 1 / span 7; }
  .sec-head p { grid-column: 9 / span 4; }
}

/* ---------- Servicios (tarjetas) ---------- */
.services { padding-block: 48px 56px; }
@media (min-width: 900px) { .services { padding-block: 72px 80px; } }

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards > li { grid-column: 1 / -1; display: flex; min-width: 0; }
@media (min-width: 640px) { .cards > li { grid-column: span 6; } }
@media (min-width: 1000px) { .cards > li { grid-column: span 4; } }

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-height: 272px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  box-shadow: 0 14px 24px -14px rgba(11, 31, 51, 0.35);
  opacity: 0;
  pointer-events: none;
}
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--tint);
  border-radius: 8px;
  color: var(--steel);
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.link {
  margin-top: auto;
  padding-top: 4px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.link:focus-visible { outline: none; }
.link:focus-visible::after { outline: 2px solid var(--steel); outline-offset: 3px; }
.arrow { display: inline-block; margin-left: 6px; opacity: 0; transform: translateX(-4px); }

.card:hover { border-color: var(--steel); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card:hover .arrow { opacity: 1; transform: none; }
.card:hover .link { text-decoration: underline; text-underline-offset: 4px; }
.card:has(.link:focus-visible) { border-color: var(--steel); }
.card:has(.link:focus-visible) .arrow { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .2s ease-out; }
  .card::before { transition: opacity .2s ease-out; }
  .arrow { transition: opacity .2s ease-out, transform .2s ease-out; }
}

/* Tarjeta CTA */
.card-cta {
  justify-content: space-between;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.card-cta:hover { transform: none; border-color: var(--ink); }
.card-cta h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.card-cta p { color: var(--on-dark-muted); }
.card-cta .btn { align-self: flex-start; }
.card-cta :focus-visible, .card-cta .btn-primary:focus-visible { outline-color: var(--white); }

/* ---------- Nuestros Servicios (tarjetas con foto) ---------- */
.svc { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 56px 64px; }
@media (min-width: 900px) { .svc { padding-block: 80px 88px; } }
.svc-head { margin: 0 auto 40px; max-width: 60ch; text-align: center; }
.svc-head h2 { margin: 0 0 12px; }
.svc-head p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-grid > li { display: flex; min-width: 0; }

.svc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 12px 20px;
  background: var(--white);
  border: 1px solid rgba(11, 31, 51, 0.06);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.05), 0 10px 28px -14px rgba(11, 31, 51, 0.22);
}
.svc-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--tint);
  border-radius: 8px;
}
/* La foto se oculta con opacidad (no display:none) para que la carga diferida funcione */
.svc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.svc-ph svg { width: 64px; height: 64px; fill: none; stroke: var(--steel); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-img.con-foto img { opacity: 1; }
.svc-img.con-foto .svc-ph { display: none; }

.svc-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 8px 0; }
.svc-title { display: flex; align-items: flex-start; gap: 12px; }
.svc-title svg { flex: none; width: 28px; height: 28px; margin-top: 1px; fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.svc-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.svc-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.svc-btn:hover { border-color: var(--steel); color: var(--steel); }
.svc-card:hover { box-shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 18px 36px -16px rgba(11, 31, 51, 0.32); transform: translateY(-4px); }
@media (prefers-reduced-motion: no-preference) { .svc-card { transition: transform .2s ease-out, box-shadow .2s ease-out; } }

.svc-cta { justify-content: center; background: var(--ink); border-color: var(--ink); color: var(--white); }
.svc-cta:hover { transform: none; }
.svc-cta .svc-body { justify-content: center; padding: 28px; }
.svc-cta h3 { font-size: 26px; line-height: 1.15; }
.svc-cta p { color: var(--on-dark-muted); }
.svc-cta .btn { align-self: flex-start; }
.svc-cta :focus-visible { outline-color: var(--white); }
.svc-more { display: flex; justify-content: center; margin-top: 40px; }
img[src*="mantenimiento-industrial"] { object-position: center 30%; }

/* Encabezado de página con foto (Servicios y cada servicio) */
.head-img { padding-bottom: 48px; }
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.head-copy { min-width: 0; }
.head-cta { margin-top: 28px; }
.head-fig { margin: 0; min-width: 0; }
.head-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 18px 40px -20px rgba(11, 31, 51, 0.4);
}
@media (min-width: 960px) {
  .head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .head-img .crumbs ol { margin-bottom: 28px; }
}
@media (max-width: 720px) { .head-cta .btn { width: 100%; } }
.related .svc-grid { margin-top: 4px; }

/* ---------- Por qué elegirnos (patrón "Grid Feature Cards" de 21st.dev) ---------- */
.why { background: var(--white); padding-block: 56px 64px; }
@media (min-width: 900px) { .why { padding-block: 80px 88px; } }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
}
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-cell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 28px 28px 32px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
/* Cuadrícula técnica tenue en la parte alta de cada celda, como papel de ingeniería */
.why-cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 112px;
  background-image:
    linear-gradient(to right, var(--tint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tint) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
          mask-image: linear-gradient(to bottom, #000, transparent);
}
.why-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
}
.why-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-cell h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 599px) { .why-cell { padding: 24px 20px 28px; } .why-ico { margin-bottom: 20px; } }
.why-cell p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Equipos y marcas ---------- */
.equipos { background: var(--white); border-block: 1px solid var(--line); padding-block: 48px 56px; }
@media (min-width: 900px) { .equipos { padding-block: 72px 72px; } }
.equipos .sec-head { margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--tint);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 480px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brand-grid > li { display: flex; min-width: 0; }

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 220px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  box-shadow: 0 14px 24px -14px rgba(11, 31, 51, 0.35);
  opacity: 0;
  pointer-events: none;
}
.logo-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
/* Logos de marcas: se muestra la imagen si existe; si no, el nombre */
.marca-img { display: none; max-width: 78%; max-height: 70%; width: auto; height: auto; object-fit: contain; }
.marca-txt { padding-inline: 8px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-align: center; line-height: 1.2; }
.brand-logo .marca-txt { font-size: 20px; }
.con-logo { background: var(--white); }
.con-logo .marca-img { display: block; }
.con-logo .marca-txt { display: none; }
.tile h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.t-link {
  margin-top: auto;
  padding-top: 4px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.t-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.t-link:focus-visible { outline: none; }
.t-link:focus-visible::after { outline: 2px solid var(--steel); outline-offset: 3px; }

/* "Ver modelos" se revela con hover o foco; en pantallas táctiles queda visible */
@media (hover: hover) {
  .t-link { opacity: 0; transform: translateX(-4px); }
}
.t-link:focus-visible { opacity: 1; transform: none; }

.tile:hover { border-color: var(--steel); transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile:hover .t-link { opacity: 1; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.tile:has(.t-link:focus-visible) { border-color: var(--steel); }

@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .2s ease-out; }
  .tile::before { transition: opacity .2s ease-out; }
  .t-link { transition: opacity .2s ease-out, transform .2s ease-out; }
}

.grp-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.brand-grid + .grp-title { margin-top: 40px; }
.lines h2.grp-title { margin: 0 0 16px; font-size: 22px; }
.lines .brand-grid + h2.grp-title { margin-top: 48px; }
.lines h2.sec-gap { margin-top: 64px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 40px; text-align: center; }
.legal { max-width: 80ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Cómo trabajamos ---------- */
.proceso { background: var(--surface); border-block: 1px solid var(--line); padding-block: 48px 56px; }
@media (min-width: 900px) { .proceso { padding-block: 72px 80px; } }

.steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  counter-increment: step;
}
.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.num::before { content: counter(step); }
.step h3 { margin: 0; padding-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.step p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -20px;
  width: 1px;
  background: var(--steel);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { display: block; }
  .step h3 { padding-top: 20px; max-width: 22ch; }
  .step p { max-width: 28ch; }
  .step:not(:last-child)::before {
    left: 56px;
    right: -12px;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* ---------- Sectores ---------- */
.sectores { background: var(--white); padding-block: 48px 56px; }
@media (min-width: 900px) { .sectores { padding-block: 64px 72px; } }
.sectores h2 { margin-bottom: 32px; }

.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 600px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.strip li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 20px 20px;
  background: var(--white);
}
.strip svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strip span { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Sectores con foto */
.sectores .sec-head-c h2 { margin-bottom: 12px; }
.sec-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.sec-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sec-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sec-card.con-foto { border-color: transparent; box-shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 12px 28px -16px rgba(11, 31, 51, 0.4); }
.sec-card.con-foto img { opacity: 1; }
.sec-card.con-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.88) 0%, rgba(11, 31, 51, 0.45) 38%, rgba(11, 31, 51, 0) 65%);
}
.sec-label { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; }
.sec-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--white); border-radius: 8px; }
.sec-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--steel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sec-name { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.sec-card.con-foto .sec-name { color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .svc-img img { transition: opacity .3s ease-out; }
  .sec-card img { transition: opacity .3s ease-out, transform .4s ease-out; }
  .sec-card:hover img { transform: scale(1.04); }
}

/* Aparición suave al hacer scroll. Solo se activa con JS (clase .js-reveal en <html>)
   y si el usuario no pidió reducir el movimiento; sin JS todo se ve normal */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Banda de cierre ---------- */
.cta { background: var(--ink); color: var(--white); padding-block: 56px 64px; }
@media (min-width: 900px) { .cta { padding-block: 72px 80px; } }
.cta :focus-visible { outline-color: var(--white); }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: center;
}
.cta-copy { grid-column: 1 / -1; }
.cta-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) {
  .cta-copy { grid-column: 1 / span 6; }
  .cta-actions { grid-column: 7 / span 6; justify-content: flex-end; }
}
@media (max-width: 560px) { .cta-actions .btn { width: 100%; } }
.cta h2 { margin: 0 0 12px; }
.cta p { max-width: 44ch; margin: 0; font-size: 18px; line-height: 1.55; color: var(--on-dark-muted); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); padding-top: 56px; }
.footer :focus-visible { outline-color: var(--white); }
.f-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .f-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .f-brand { grid-column: span 4; }
  .f-contact { grid-column: span 3; }
  .f-company { grid-column: span 2; }
  .f-legal { grid-column: span 3; }
}
.f-brand-row { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.f-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  color: var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}
.f-desc { max-width: 36ch; margin: 16px 0 0; color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; }
.f-title { margin: 0 0 16px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.f-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.f-list a { display: inline-block; padding-block: 4px; color: var(--white); text-decoration: none; }
.f-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 16px;
  border: 1px solid var(--white);
  border-radius: 6px;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.social:hover { background: rgba(255, 255, 255, 0.12); }
.f-bottom {
  margin-top: 48px;
  padding-block: 20px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: 14px;
}
.f-bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--wa);
  border: 1px solid var(--wa);
  border-radius: 8px;
  color: var(--ink);
}
.wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); }
.wa:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
.wa svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .wa { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Modal de soporte urgente ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(11, 31, 51, 0.6);
}
.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.m-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}
.m-close:hover { border-color: var(--ink); }
.m-close svg { width: 16px; height: 16px; }
.m-title {
  margin: 0 48px 8px 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.m-title .dot { width: 10px; height: 10px; margin-right: 10px; vertical-align: 3px; }
.m-text { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.contacts { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.c-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--tint);
  border-radius: 8px;
  color: var(--steel);
}
.c-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-body { display: grid; min-width: 0; }
.c-label { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.3; }
.c-value { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; user-select: all; }
a.c-value { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
a.c-value:hover { color: var(--steel); text-decoration-color: currentColor; }
.copy {
  min-width: 84px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.copy:hover { background: var(--surface); }
.copy[data-state="ok"] { border-color: var(--success); color: var(--success); }
.msg { margin: 12px 0 0; font-size: 14px; }
.msg.is-error { color: var(--error); }
.hours { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 400px) {
  .contact { grid-template-columns: 40px minmax(0, 1fr); row-gap: 12px; }
  .contact .copy { grid-column: 1 / -1; }
}

/* ---------- Páginas interiores ---------- */
.page-head { padding-block: 28px 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--muted); }
.crumbs a { color: var(--steel); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: 19px; line-height: 1.55; }

.detail { padding-block: 48px 64px; }
.detail-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.detail-main { grid-column: 1 / -1; min-width: 0; }
.detail-side { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 960px) {
  .detail-main { grid-column: span 8; }
  .detail-side { grid-column: span 4; position: sticky; top: 96px; }
}
.blk + .blk { margin-top: 48px; }
.blk h2, .related h2, .lines h2, .blk-title { margin: 0 0 20px; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.blk > p { max-width: 65ch; margin: 0 0 16px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 4px; margin-top: -1px; background: var(--tint); border-radius: 50%; color: var(--steel); }

.brand-text { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 18px; font-weight: 500; }
.brand-text a { display: inline-block; padding-block: 6px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.brand-text a:hover { color: var(--steel); text-decoration-color: currentColor; }

.placeholder { display: grid; place-items: center; min-height: 160px; padding: 24px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 16px; text-align: center; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; }
.faq-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; }
.faq-btn:hover { color: var(--steel); }
.faq-btn .chev { width: 16px; height: 16px; flex: none; }
.faq-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) { .faq-btn .chev { transition: transform .15s ease-out; } }
.faq-a { padding: 0 32px 20px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-a p { margin: 0; max-width: 65ch; }

.side-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.side-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.side-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.side-actions { display: grid; gap: 12px; margin: 24px 0 20px; }
.side-actions .btn { width: 100%; white-space: normal; text-align: center; }
.side-card .side-urgent { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.side-card .contacts { margin-top: 20px; }
.side-card .contact { padding: 12px; column-gap: 12px; }
/* Columna angosta: el botón Copiar baja para que el dato no se corte a la mitad */
.side-card .contact { grid-template-columns: 40px minmax(0, 1fr); row-gap: 10px; }
.side-card .contact .copy { grid-column: 2; justify-self: start; min-height: 40px; }
.side-card .c-value { white-space: nowrap; }

.related { padding-block: 48px 72px; background: var(--surface); border-top: 1px solid var(--line); }
.rel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.rel-grid > li { grid-column: 1 / -1; display: flex; min-width: 0; }
@media (min-width: 720px) { .rel-grid > li { grid-column: span 6; } }
.rel-card, .line-card { min-height: 0; }

/* ---------- Página de marca ---------- */
.brand-head { padding-bottom: 48px; }
.brand-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 32px; }
.brand-logo { display: grid; place-items: center; width: 200px; height: 112px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.brand-copy { min-width: 0; }
.brand-copy h1 { margin: 0 0 12px; }
.brand-row .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 960px) {
  .brand-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand-row .btn { grid-column: auto; justify-self: end; }
}
@media (max-width: 560px) {
  .brand-row { grid-template-columns: 1fr; }
  .brand-logo { width: 160px; height: 90px; }
  .brand-row .btn { width: 100%; white-space: normal; text-align: center; }
}

.lines { padding-block: 56px 56px; }
/* Foto opcional de cada línea de producto (solo aparece si existe el archivo) */
.line-img { display: none; }
.line-img.con-foto {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin: 0 0 4px;
  padding: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.models { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 16px; line-height: 1.55; }
.models li { padding-block: 6px; border-bottom: 1px solid var(--line); }
.models li:last-child { border-bottom: 0; }
.pend { margin: 0; color: var(--muted); font-size: 16px; }
.rel3 { margin-bottom: 32px; }
.rel3 .rel-card { min-height: 0; }
.pend-block { min-height: 96px; margin-bottom: 32px; background: var(--white); }

/* ---------- Equipos por categoría ---------- */
.cat-card { min-height: 0; }
.cat-card:hover { transform: none; border-color: var(--line); }
.cat-card:hover::before { opacity: 0; }
.cat-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.cat-links a { display: inline-block; padding-block: 6px; color: var(--steel); font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.cat-card .btn { align-self: flex-start; margin-top: auto; }
.sec-gap { margin-top: 56px; }

/* ---------- Formulario de cotización ---------- */
.form { display: grid; gap: 20px; }
.form-note { margin: 0; color: var(--muted); font-size: 15px; }
.f-row2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .f-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; } /* sin estirar la caja si el vecino es más alto */
.field label { font-size: 15px; font-weight: 600; line-height: 1.4; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B1F33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--steel); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.err { margin: 0; color: var(--error); font-size: 14px; font-weight: 500; }
.check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; column-gap: 12px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--steel); }
.check label { font-weight: 400; }
.check .err { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Teléfono: código de país + número */
.tel-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.tel-group legend { padding: 0; margin-bottom: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tel-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
.tel-group .sub { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
/* Sugerencia de corrección del correo */
.sug-btn { min-height: 24px; padding: 0; background: none; border: 0; color: var(--steel); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.sug-btn:hover { color: var(--ink); }

/* Verificación de seguridad */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.captcha-field input { max-width: 120px; }
#captcha-q { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .form-actions .btn { width: 100%; } }

.sent { margin-top: 28px; padding: 24px; background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: 8px; }
.sent:focus { outline: none; }
.sent h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.sent > p { margin: 0; color: var(--muted); font-size: 16px; }
.sent > p + p { margin-top: 8px; }
.sent strong { color: var(--ink); overflow-wrap: anywhere; }
.form[aria-busy="true"] .btn-primary { opacity: .7; cursor: progress; }
.sent .form-actions { margin-top: 20px; }
.sent details { margin-top: 20px; }
.sent summary { min-height: 44px; display: flex; align-items: center; color: var(--steel); font-weight: 600; cursor: pointer; }
.msg-preview { margin: 8px 0 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-family: var(--font); font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Textos legales ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.notice { margin: 0 0 32px; padding: 16px 18px; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.5; }

/* Logos cuadrados o compactos (ifm, Metal Work): más altura para que se lean igual que los alargados */
.mq-logo .marca-img[src*="/ifm."], .mq-logo .marca-img[src*="/metal-work."] { height: 52px; }
.logo-slot .marca-img[src*="/ifm."], .logo-slot .marca-img[src*="/metal-work."] { height: 46px; }
.brand-logo .marca-img[src*="/ifm."], .brand-logo .marca-img[src*="/metal-work."] { height: 80px; }
