/* ==========================================================================
   Mile Cargo — sistema de diseño
   Mobile-first. Base 18px, objetivos táctiles ≥ 48px, contraste ≥ AA.
   Mundo: portal de transporte pesado — negro azulado y blanco, foto de
   carretera a pantalla completa, rotulación condensada, un solo botón amarillo.
   ========================================================================== */

:root {
  /* Color */
  --ink: #07101f;
  --ink-2: #0f1d36;
  --text: #14213a;
  --muted: #44546b;
  --paper: #ffffff;
  --paper-2: #eef2f7;
  --white: #ffffff;
  --line: #d5dce6;
  --yellow: #ffc300;
  --yellow-strong: #e6ae00;
  --accent: #1558d6;
  --wa: #25d366; /* verde oficial de whatsapp.com */
  --wa-strong: #1ebe5a;
  --danger: #b42318;
  --focus: #1558d6;
  --on-ink-soft: #c3cedd;

  /* Tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Forma: esquinas rectas */
  --radius: 0;
  --radius-sm: 0;
  --tap: 52px;

  --header-h: 64px;

  /* Movimiento: una sola curva de salida para todo el sitio */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 11.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 7.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.alert :focus-visible { outline-color: var(--yellow); }

.container { width: min(100% - 40px, 1120px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.icon-wa { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 1.1875rem/1.1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-strong); }
.btn--wa { background: var(--wa); color: var(--ink); }
.btn--wa:hover { background: var(--wa-strong); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.on-dark .btn--ghost,
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}
.text-link .icon { width: 1.125rem; height: 1.125rem; transition: transform 0.15s; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: #fff;
}
/* El logo lleva azul marino: sobre fondo oscuro viaja en su placa blanca */
.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  padding: 3px 6px;
  background: #fff;
}
.brand-name {
  display: none;
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font: 600 1.0625rem/1 var(--font-body);
  text-decoration: none;
}
.header-call-text { display: none; }
.header-quote { min-height: 48px; padding: 0 16px; font-size: 1.125rem; white-space: nowrap; }

/* Selector de idioma (ES · EN): texto sin caja para no competir con "Cotizar" */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 4px;
  color: #fff;
  font: 700 1.0625rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-switch .icon { display: none; width: 1.25rem; height: 1.25rem; }
/* Teléfonos pequeños (≤ 419 px): cabe logo + llamar + Cotizar + idioma + menú */
@media (max-width: 419px) {
  .header-inner { gap: 4px; }
  .brand-logo { height: 48px; }
  .header-quote { padding: 0 12px; }
}
/* Pantallas de 320 px: el icono de llamar sale de la barra (sigue en el menú y en WhatsApp) */
@media (max-width: 339px) {
  .header-call { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  overflow-y: auto;
  padding: 8px 20px 32px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav li a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 700 1.625rem/1.1 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.site-nav li a[aria-current="page"] { color: var(--yellow); }
.site-nav .nav-cta { margin-top: 24px; }
.nav-contact { display: grid; gap: 12px; margin-top: 12px; }
.site-nav .btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(7, 16, 31, 0.4);
  transition: background-color 0.15s, transform 0.15s;
}
.wa-float .icon { width: 34px; height: 34px; }
.wa-float span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wa-float:active { transform: scale(0.96); }
.wa-float:focus-visible { outline-color: var(--yellow); outline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 52px;
  background: var(--ink);
  color: #fff;
}
.hero-img {
  position: absolute;
  top: 0; left: 0;
  z-index: -2;
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: 50% 45%;
}
/* En teléfono la foto ocupa la parte alta y se funde con el negro: el camión se ve */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 700px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.5) 0%, rgba(7, 16, 31, 0.66) 45%, var(--ink) 100%);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero-grid { display: grid; gap: 32px; }
.hero-lead {
  max-width: 34rem;
  margin-bottom: 28px;
  font-size: 1.25rem;
  color: #fff;
}
.hero-ctas { display: grid; gap: 12px; margin-bottom: 28px; }

.trust-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.trust-list li { display: flex; align-items: center; gap: 12px; }
.trust-list .icon { color: var(--yellow); }

/* Respaldo de origen: credenciales confirmadas por el cliente */
.hero-creds {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
}
.hero-creds li { display: flex; align-items: flex-start; gap: 12px; }
.hero-creds .icon { margin-top: 0.15em; color: var(--yellow); }

.quick-label {
  margin-bottom: 10px;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(7, 16, 31, 0.35);
  color: #fff;
  font: 700 1.125rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chips--light .chip { border-color: var(--ink); background: transparent; color: var(--ink); }

.hero-card { display: none; }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.marker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 3px;
  background: currentColor;
}
.section--ink .marker, .hero .marker { color: var(--yellow); }
/* `.section-head p` (más específico) pisaba el tamaño y el color del marcador */
.section-head .marker { font-size: 1rem; color: var(--accent); }
.section--ink .section-head .marker { color: var(--yellow); }
@media (max-width: 400px) {
  .marker,
  .section-head .marker { gap: 8px; font-size: 0.9375rem; letter-spacing: 0.08em; }
  .marker::before { width: 18px; }
}

/* Foto de fondo en una sección oscura */
.section--photo { position: relative; isolation: isolate; overflow: hidden; }
.section-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.82), rgba(7, 16, 31, 0.9));
}

/* Página interior */
.page-hero { padding: 40px 0 40px; background: var(--ink); color: #fff; border-bottom: 4px solid var(--yellow); }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { max-width: 40rem; margin: 0; color: var(--on-ink-soft); font-size: 1.1875rem; }

.breadcrumbs { margin-bottom: 18px; font-size: 0.9375rem; color: var(--on-ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
}
.breadcrumbs li { display: inline-flex; align-items: center; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
/* Servicios en Inicio: índice de filas, sin tarjetas ni iconos */
.service-list, .fact-list { border-bottom: 1px solid var(--line); }
.service-row,
.fact-row {
  display: grid;
  grid-template-columns: 1fr 28px;
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
}
.service-row h3,
.fact-row h3 { grid-column: 1; margin: 0; font-size: 1.75rem; }
.service-row p,
.fact-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.service-row .icon {
  grid-column: 2;
  grid-row: 1;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  transition: transform 0.15s;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 0;
  background: var(--ink);
  color: var(--yellow);
}
.icon-tile .icon { width: 1.625rem; height: 1.625rem; }

.section-cta { margin-top: 28px; }

/* Alerta MOTUS: bloque oscuro de ancho completo */
.alert {
  display: grid;
  gap: 18px;
  padding: 28px 24px;
  background: var(--ink);
  color: #fff;
}
.alert h2 { color: #fff; font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 0.35em; }
.alert p { margin: 0; color: var(--on-ink-soft); }
.alert-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.alert-tag .icon { width: 1.125rem; height: 1.125rem; }
.alert p + p { margin-top: 0.75em; }
.alert-more { margin-top: 20px; }
.alert-more summary { min-height: 56px; }
.alert-more .answer { padding-bottom: 8px; }
.alert .faq details { border-color: rgba(255, 255, 255, 0.2); }
.alert .faq summary { color: #fff; }
.alert .faq summary::after { color: var(--yellow); }
.alert .faq .answer { color: #fff; }
.motus-steps {
  list-style: none;
  counter-reset: ms;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.motus-steps li {
  counter-increment: ms;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  color: #fff;
}
.motus-steps li::before {
  content: counter(ms);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 1.125rem/1 var(--font-display);
}
.alert-note { margin-top: 18px; color: #fff; }
.alert-side { display: grid; gap: 14px; }
.motus-mark { display: grid; gap: 4px; margin: 0; padding: 12px 18px; border: 2px solid var(--yellow); }
.motus-mark span { font: 700 2.25rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.motus-mark small { font-size: 0.9375rem; color: var(--on-ink-soft); }

/* Reseñas */
.reviews-slot {
  display: grid;
  gap: 14px;
  padding: 28px 16px;
  border: 2px dashed var(--line);
  background: var(--white);
  text-align: center;
  justify-items: center;
}
.reviews-slot p { margin: 0; max-width: 34rem; color: var(--muted); }
.reviews-slot .btn { padding-inline: 14px; }

/* Diferenciadores */
.why { display: grid; gap: 32px; }
.why-item { padding-top: 18px; border-top: 3px solid var(--yellow); }
.why-item h3 { margin-bottom: 0.3em; font-size: 1.75rem; }
.why-item p { margin: 0; color: var(--on-ink-soft); }

/* Pasos con "marcadores de milla" */
.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 32px 72px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--yellow);
  font: 700 1.625rem/1 var(--font-display);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 25px; top: 62px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 0.25em; }
.steps p { margin: 0; color: var(--muted); }

/* Servicios — permisos */
.permit-group + .permit-group { margin-top: 44px; }
.permit-group > header { max-width: 40rem; margin-bottom: 20px; }
.permit-group > header p { color: var(--muted); margin: 0; }
.faq.permit-list summary { min-height: 56px; padding-block: 8px; }
.permit-list .answer { padding-bottom: 12px; }
.permit-list .answer p { margin: 0 0 4px; }
.permit-list, .permit-cta { max-width: 46rem; }
.permit-cta { margin-top: 20px; }

.anchor-nav { margin-top: 24px; }

/* FAQ */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.875rem; margin-bottom: 0.2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  min-height: 64px;
  padding: 16px 52px 16px 0;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 46rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* FAQ de lectura rápida: respuesta corta arriba, detalle en filas cortas */
.faq .answer-lead { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.facts { list-style: none; display: grid; margin: 0 0 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts strong { color: var(--ink); }
.facts--check .icon { margin-top: 0.15em; color: var(--accent); }
.faq .answer > :last-child { margin-bottom: 0; }

/* Importes y plazos: la cifra primero */
.figures { list-style: none; display: grid; margin: 0 0 14px; }
.figures li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.figures li:first-child { border-top: 0; }
.figures strong { font: 700 2rem/1 var(--font-display); letter-spacing: 0.01em; color: var(--ink); }

/* Pasos compactos (misma regla de "marcadores de milla", más pequeños) */
.steps--compact li { padding: 0 0 16px 54px; }
.steps--compact li::before { width: 38px; height: 38px; font-size: 1.25rem; }
.steps--compact li::after { left: 18px; top: 46px; bottom: 6px; }
.steps--compact strong { color: var(--ink); }

/* Matriz de permisos: qué aplica dentro del estado y qué entre estados */
.matrix-title { margin: 8px 0 12px; font-size: 1.375rem; }
.permit-matrix { width: 100%; border-collapse: collapse; }
.permit-matrix th,
.permit-matrix td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.permit-matrix thead th {
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  font: 700 1rem/1.15 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.permit-matrix tbody th[scope="row"] { text-align: left; font-weight: 600; line-height: 1.25; color: var(--ink); }
.permit-matrix th small { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.permit-matrix td { width: 24%; text-align: center; font-size: 0.9375rem; line-height: 1.2; }
.permit-matrix td .icon { margin-inline: auto; color: var(--ink); }
.permit-matrix td.no { color: var(--muted); }
.permit-matrix td.dep { color: var(--muted); font-weight: 600; }
.permit-matrix .matrix-sub th {
  padding: 8px 10px;
  border-top: 0;
  background: var(--ink);
  color: #fff;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.permit-matrix tbody + tbody .matrix-sub th { border-top: 0; }
.matrix-note { margin: 12px 0 28px; font-size: 0.9375rem; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; gap: 24px; }
.contact-list { display: grid; gap: 4px; list-style: none; margin: 0 0 24px; }
.contact-list a, .contact-list .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.contact-list .icon { margin-top: 2px; color: var(--accent); }
.contact-list small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.section--ink .contact-list a, .section--ink .contact-list .row { color: #fff; }
.section--ink .contact-list .icon { color: var(--yellow); }
.section--ink .contact-list small { color: var(--on-ink-soft); }
.map-frame {
  width: 100%;
  min-height: 300px;
  border: 0;
  background: var(--paper-2);
}

/* ---------- Formulario ---------- */
.form-shell { display: grid; gap: 28px; }
.form-aside .card { display: grid; gap: 12px; }
.form-aside h2 { font-size: 1.75rem; margin: 0; }
.form-aside p { margin: 0; color: var(--muted); }

.quote-form { display: grid; gap: 22px; }
.fieldset-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font: 700 1.375rem/1.2 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.field { display: grid; gap: 8px; }
.field > label,
.field > .label,
.field > legend {
  padding: 0;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { margin: 0; font-size: 0.9375rem; color: var(--muted); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1.5px solid #6b7787;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.125rem/1.3 var(--font-body);
}
.field textarea { padding: 14px 16px; min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 48px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2307101f' stroke-width='2.5' 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 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .choice span { border-color: var(--danger); }
.field-error {
  display: none;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field-error { display: block; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; flex: 1 1 120px; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1.5px solid #6b7787;
  background: var(--white);
  font-weight: 500;
  text-align: center;
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.more-details {
  border: 1px solid var(--line);
  background: var(--white);
}
.more-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary::after { content: "+"; font-size: 1.75rem; font-weight: 400; color: var(--accent); }
.more-details[open] summary::after { content: "–"; }
.more-details .inner { display: grid; gap: 22px; padding: 4px 20px 24px; }

.consent { display: flex; gap: 14px; align-items: flex-start; }
.consent input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.consent label { font-weight: 400; }
.consent-wrap.has-error .consent label { color: var(--danger); }

.form-note { margin: 0; font-size: 0.9375rem; color: var(--muted); text-align: center; }

.thanks { text-align: center; padding: 72px 0; }
.thanks .icon-tile { margin: 0 auto 24px; width: 72px; height: 72px; }
.thanks .icon-tile .icon { width: 2.25rem; height: 2.25rem; }
.thanks p { color: var(--muted); max-width: 32rem; margin-inline: auto; }
.thanks .btns { display: grid; gap: 12px; max-width: 340px; margin: 28px auto 0; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.875rem; }
.prose h2:first-child { margin-top: 0; }

/* Páginas legales (privacidad y términos): lectura larga */
.prose h3 { margin-top: 1.4em; font-size: 1.375rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.legal-summary { margin: 0 0 24px; padding: 22px 20px 10px; background: var(--paper-2); border-left: 4px solid var(--yellow); }
.legal-summary .legal-title { margin-top: 0; font-size: 1.5rem; }
.legal-toc { margin: 0 0 8px; }
.legal-toc .inner { display: block; padding: 0 20px 12px; }
.legal-toc ol { margin: 0; padding-left: 1.5em; }
.legal-toc li { margin: 0; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-contact { margin: 0 0 1.5em; padding: 18px 20px; font-style: normal; border: 1px solid var(--line); border-left: 4px solid var(--yellow); }
.section--flush-end { padding-bottom: 0; }

/* Misión, visión y valores (Nosotros) */
.principles h3 { margin: 0 0 0.35em; }
.principles p { margin: 0; color: var(--muted); }
.principles ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.principles strong { color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer {
  padding: 48px 0 96px;
  background: var(--ink);
  color: var(--on-ink-soft);
  font-size: 1rem;
  border-top: 4px solid var(--yellow);
}
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { height: 104px; padding: 6px 10px; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h3 {
  margin: 0 0 12px;
  font: 700 1.125rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer-grid ul { list-style: none; }
.footer-grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-grid li a:hover { text-decoration: underline; }
/* Redes: iconos como en la web original (blancos, 40 px, área táctil de 48 px) */
.social-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -4px; }
.footer-grid .social-links a { justify-content: center; width: 48px; height: 48px; padding: 0; }
.icon.icon-social { width: 2.5rem; height: 2.5rem; fill: currentColor; stroke: none; }
.footer-grid address { font-style: normal; }
.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
}
.footer-legal p { margin: 0 0 6px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .container { width: min(100% - 64px, 1120px); }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-ctas { grid-template-columns: repeat(2, max-content); }
  .hero-creds { grid-auto-flow: column; justify-content: start; gap: 12px 32px; }
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .alert { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .why { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .thanks .btns { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .page-hero { padding: 56px 0 56px; }
}

/* ---------- Tablet: servicios en columnas ---------- */
@media (min-width: 720px) {
  .service-row,
  .fact-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 40px;
    column-gap: 40px;
    padding: 32px 0;
  }
  .service-row h3,
  .fact-row h3 { grid-column: 1; font-size: 2.25rem; }
  .service-row p,
  .fact-row p { grid-column: 2; font-size: 1.125rem; }
  .service-row .icon { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  .wa-float { right: 28px; bottom: 28px; }
  .site-footer { padding-bottom: 28px; }

  .header-quote { display: none; }
  .header-call { order: 3; border: 0; padding: 0 4px; white-space: nowrap; }
  .brand { margin-right: 0; }
  .site-nav { order: 2; margin-left: auto; }

  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    inset: auto;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav li a:not(.btn) {
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    font-size: 1.1875rem;
    white-space: nowrap;
  }
  .site-nav li a:not(.btn):hover { color: var(--yellow); }
  .site-nav li a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
  .site-nav .nav-cta { margin: 0 0 0 12px; }
  .site-nav .nav-cta .btn { min-height: 48px; padding: 0 20px; white-space: nowrap; }
  .nav-contact { display: none; }

  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: clamp(2.75rem, 4.6vw, 4.25rem); max-width: 17ch; }
  .hero-img { height: 100%; }
  .hero::before {
    height: auto;
    bottom: 0;
    background: linear-gradient(90deg, rgba(7, 16, 31, 0.9) 0%, rgba(7, 16, 31, 0.68) 55%, rgba(7, 16, 31, 0.3) 100%);
  }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
  .hero-card {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-top: 6px solid var(--yellow);
    background: var(--white);
    color: var(--text);
  }
  .hero .hero-card .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .hero .hero-card .btn--ghost:hover { background: var(--ink); color: #fff; }
  .hero-card h2 { font-size: 1.875rem; margin: 0; }
  .hero-card p { margin: 0; color: var(--muted); }
  .hero-card .phone {
    font: 700 2.25rem/1.05 var(--font-display);
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
  }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .form-shell { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
  .form-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; }
}

/* El nombre y el número en texto solo caben cuando hay ancho de sobra */
@media (min-width: 1200px) {
  .header-call-text { display: inline; }
}

/* ---------- Movimiento (solo lo imprescindible) ----------
   Se usa para: confirmar un toque, orientar al abrir el menú y señalar
   que algo es pulsable con puntero. Nada decorativo ligado al scroll;
   única excepción: la cabecera móvil se oculta al bajar y vuelve al subir. */
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 1023.98px) {
  .site-header { transition: transform 0.2s var(--ease-out); }
  .site-header.is-hidden { transform: translateY(-100%); }
  .site-nav.is-open { animation: nav-in 0.18s var(--ease-out); }
}

/* Acordeones (FAQ, servicios, MOTUS, "más detalles"): el contenido ya no salta.
   Mejora progresiva: donde no hay ::details-content / interpolate-size se abre al instante. */
@media (prefers-reduced-motion: no-preference) {
  details { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0;
    overflow: clip;
    overflow-clip-margin: 6px;
    opacity: 0;
    transition:
      block-size 0.22s var(--ease-out),
      opacity 0.16s var(--ease-out),
      content-visibility 0.22s allow-discrete;
  }
  details[open]::details-content { block-size: auto; opacity: 1; }
}

/* Respuesta inmediata al toque (en táctil no existe :hover) */
.chip:active,
.choice:active span { transform: scale(0.98); }
.service-row:active { background: var(--paper-2); }
.header-call:active,
.lang-switch:active,
.nav-toggle:active { background: rgba(255, 255, 255, 0.18); }
/* Envío en curso: el botón deja claro que ya no acepta otro toque */
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }

/* Hover solo donde hay puntero: en móvil se quedaba "pegado" tras tocar */
@media (hover: hover) {
  .btn--ghost:hover { background: var(--ink); color: #fff; }
  .on-dark .btn--ghost:hover,
  .hero .btn--ghost:hover { background: #fff; color: var(--ink); }
  .text-link:hover .icon { transform: translateX(3px); }
  .chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
  .chips--light .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
  .service-row:hover { background: var(--paper-2); }
  .service-row:hover .icon { transform: translateX(6px); }
  .header-call:hover { background: #fff; color: var(--ink); }
  .lang-switch:hover { color: var(--yellow); }
  .wa-float:hover { background: var(--wa-strong); }
  .social-links a:hover { color: var(--yellow); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:active, .chip:active, .choice:active span, .wa-float:active { transform: none; }
}

@media print {
  .wa-float, .nav-toggle { display: none; }
}

@media (min-width: 1024px) {
  .lang-switch { order: 4; margin-left: 4px; }
  .lang-switch .icon { display: block; }
}
