/* ==========================================================================
   RUIZ MILÀ — Sistema de diseño
   Reutilizable en index.html, nosotros.html y contacto.html.

   Índice
   1. Tokens (variables)
   2. Base y tipografía
   3. Utilidades (container, visually-hidden, skip-link)
   4. Botones            .btn  .btn--primary  .btn--secondary  .btn--ghost  .btn--lg  .btn--block
   5. Header y navegación .site-header  .brand  .nav  .nav-toggle  .header-actions
   6. Secciones          .section  .section--alt  .section--dark  .section__head  .eyebrow
   7. Hero (home)        .hero  (admite foto con --hero-image)
   8. Cifras             .stats  .stat
   9. Tarjetas           .card-grid  .card
  10. Flota / listas     .split  .feature-list
  11. Clientes           .clients  .client
  12. Cita               .quote
  13. Formulario         .form  .field  .checkbox  .form-status
  14. Oficinas           .office-list  .office
  15. Footer            .site-footer
  16. Movimiento y reduced-motion
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  /* Color */
  --navy-950: #071226;
  --navy-900: #0B1B33;
  --navy-800: #13294B;
  --navy-700: #1F3A63;
  --blue-600: #2B4BE8;   /* azul de marca */
  --blue-700: #2139C2;   /* hover del azul */
  --blue-300: #8DA0FF;   /* acento azul sobre fondos oscuros (AA) */
  --blue-50:  #EEF1FE;
  --amber-500: #F5A524;  /* solo CTA principal y acentos mínimos */
  --amber-400: #FFB940;
  --gray-50:  #F4F6F9;
  --gray-100: #E9EDF3;
  --gray-200: #D8DEE8;
  --gray-500: #6B768A;
  --gray-600: #4F5A6E;
  --white: #FFFFFF;
  --danger: #B42318;
  --success: #0E7A4F;

  --text: var(--navy-900);
  --text-muted: var(--gray-600);
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B6C2D9;
  --border: var(--gray-200);
  --focus: var(--amber-500);

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.3rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Espaciado y forma */
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 68px;
  --shadow-sm: 0 1px 2px rgb(11 27 51 / 0.06);
  --shadow-md: 0 12px 32px -12px rgb(11 27 51 / 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. 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;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

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

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--navy-900); }

/* 4. Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }

/* CTA principal: ámbar, único uso del ámbar como fondo */
.btn--primary { background: var(--amber-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--amber-400); color: var(--navy-900); }

/* Secundario sobre fondo claro */
.btn--secondary { background: var(--blue-600); color: var(--white); }
.btn--secondary:hover { background: var(--blue-700); color: var(--white); }

/* Contorno: sobre fondo oscuro (por defecto) o claro (.btn--ghost-dark) */
.btn--ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.35); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgb(255 255 255 / 0.06); }
.btn--ghost-dark { background: transparent; color: var(--navy-900); border-color: var(--gray-200); }
.btn--ghost-dark:hover { border-color: var(--navy-900); color: var(--navy-900); }

.btn--lg { min-height: 56px; padding: 0.9rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* 5. Header y navegación ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.5); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--white); }
.brand__mark { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius);
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue-300); }
.header-phone svg { width: 18px; height: 18px; color: var(--blue-300); }
.header-actions .btn { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.9375rem; }

/* Navegación compacta (< 1100px): hamburguesa.
   Sin JS (.js ausente) la navegación se muestra abierta debajo del logo. */
@media (max-width: 1099px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: 0.9rem 0;
    font-size: 1.125rem;
    color: var(--white);
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0;
  }
  .header-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .header-phone { justify-content: center; min-height: 48px; font-size: 1.0625rem; }
  .header-actions .btn { min-height: 52px; font-size: 1rem; }

  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: flex;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  html:not(.js) .site-header { position: relative; }
}

/* 6. Secciones ----------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--navy-900); color: var(--text-on-dark); }
.section--dark .section__lead,
.section--dark p { color: var(--text-on-dark-muted); }

.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-bottom: 0.4em; }
.section__lead { font-size: var(--fs-lead); color: var(--text-muted); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 3px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow,
.hero .eyebrow { color: var(--blue-300); }

/* 7. Hero ---------------------------------------------------------------
   Para usar una foto real más adelante, defina la variable en el elemento:
     <section class="hero" style="--hero-image: url('assets/hero.jpg')">
   o en CSS:  .hero { --hero-image: url("../assets/hero.jpg"); }
   La capa degradada superior mantiene el contraste del texto sobre la foto.
   Sin foto, el valor por defecto es "none" y se ve el fondo marino con retícula. */
.hero {
  --hero-image: none;
  position: relative;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(100deg, rgb(11 27 51 / 0.97) 0%, rgb(11 27 51 / 0.9) 45%, rgb(11 27 51 / 0.55) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* Retícula técnica de fondo */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(141 160 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 160 255 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 2rem + 5vw, 7rem) clamp(3rem, 2rem + 5vw, 7rem);
}
.hero__title { margin-bottom: 0.35em; }
.hero__title em { font-style: normal; color: var(--blue-300); }
.hero__lead {
  max-width: 36rem;
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
}
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__note {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.hero__visual { position: relative; }
.route-map { width: 100%; height: auto; }
.route-map text { font-family: var(--font-body); }

.gps-badge {
  display: flex;
  width: fit-content;
  margin: 0.5rem 0 0 auto; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgb(19 41 75 / 0.92);
  border: 1px solid rgb(141 160 255 / 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-small);
  line-height: 1.35;
  max-width: 260px;
}
.gps-badge strong { display: block; color: var(--white); font-weight: 600; }
.gps-badge span { color: var(--text-on-dark-muted); }
.pulse {
  position: relative;
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
}
.pulse::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--amber-500);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 599px) {
  .hero__inner { padding-block: 2rem 3rem; gap: 2.5rem; }
  .hero__lead { margin-bottom: 1.5rem; }
  .hero__actions .btn { width: 100%; }
  .gps-badge { margin: 0.75rem 0 0; width: auto; max-width: none; }
}

/* 8. Cifras -------------------------------------------------------------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0;
  list-style: none;
}
.stat {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}
.stat__value--text { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; }
.stat__label { display: block; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.4; }

@media (max-width: 899px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-inline: 1rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* 9. Tarjetas ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-600);
}
.card__icon svg { width: 28px; height: 28px; }
.card__index {
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; color: var(--gray-500);
}
.card__title { margin-bottom: 0.6rem; }
.card__text { color: var(--text-muted); }
.card__list {
  margin: 0 0 1.5rem; padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.card__list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-top: 1px solid var(--gray-100);
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.95rem;
  width: 8px; height: 8px;
  background: var(--blue-600);
  border-radius: 1px;
}
.card__footer { margin-top: auto; }

@media (max-width: 899px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 10. Bloque a dos columnas y lista de características ------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.feature-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0; padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.feature__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgb(141 160 255 / 0.12);
  color: var(--blue-300);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-size: 1.0625rem; margin: 0.15rem 0 0.25rem; letter-spacing: -0.01em; }
.feature__text { margin: 0; font-size: 0.9375rem; }
.section:not(.section--dark) .feature__icon { background: var(--blue-50); color: var(--blue-600); }
.section:not(.section--dark) .feature__text { color: var(--text-muted); }

.fleet-visual {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgb(141 160 255 / 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, rgb(43 75 232 / 0.18), transparent 60%),
    var(--navy-800);
}
.fleet-visual figcaption {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}
.truck { width: 100%; height: auto; }

/* 11. Clientes ----------------------------------------------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.client {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  transition: color 0.2s var(--ease);
}
.client:hover { color: var(--navy-900); }
@media (max-width: 899px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 96px; }
  .client:last-child { grid-column: 1 / -1; }
}

/* 12. Cita --------------------------------------------------------------- */
.quote {
  background: var(--blue-600);
  color: var(--white);
  padding-block: var(--space-section);
}
.quote__inner { max-width: 960px; }
.quote__mark {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--amber-500);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding-left: 1rem;
  border-left: 3px solid var(--amber-500);
}
.quote figcaption strong { font-weight: 600; font-size: 1.0625rem; }
.quote figcaption span { color: rgb(255 255 255 / 0.85); font-size: 0.9375rem; }

/* 13. Formulario --------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 999px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

.form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form__title { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.form__intro { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.75rem; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.form__legend {
  grid-column: 1 / -1;
  margin: 0.5rem 0 -0.25rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
@media (max-width: 599px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 600; font-size: 0.9375rem; }
.field__label .req { color: var(--danger); margin-left: 0.15em; }
.field__label .opt { color: var(--gray-500); font-weight: 400; font-size: 0.875rem; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--text);
  background: var(--white);
  border: 1px solid #A9B3C4;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input::placeholder { color: #7A8497; }
.field__input:hover { border-color: var(--gray-600); }
.field__input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(43 75 232 / 0.25);
}
textarea.field__input { min-height: 120px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 500;
}
.field__error:empty { display: none; }

.checkbox {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.checkbox input {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue-600);
}
.checkbox .field__error { grid-column: 2; }

.form__actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 0.5rem;
}
.form__hint { margin: 0; font-size: var(--fs-small); color: var(--gray-500); }

.form-status {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid #A7D9C2;
  background: #EAF7F1;
  color: var(--navy-900);
}
.form-status[hidden] { display: none; }
.form-status h3 { color: var(--success); margin-bottom: 0.5rem; }
.form-status p { margin-bottom: 0.75rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status__note { font-size: var(--fs-small); color: var(--text-muted); }

/* 14. Oficinas ----------------------------------------------------------- */
.office-list { display: grid; gap: 1rem; }
.office {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-style: normal;
}
.office--main { border-top: 4px solid var(--blue-600); }
.office__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.office__name { font-size: 1.125rem; margin-bottom: 0.5rem; }
.office__text { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.office__contact { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.office__contact a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 32px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.office__contact svg { width: 18px; height: 18px; flex: none; }

/* 15. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue-300); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2.5rem;
}
.site-footer__brand p { max-width: 32ch; margin-top: 1rem; }
.site-footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer address { font-style: normal; }
.site-footer__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--fs-small);
}
@media (max-width: 999px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* 16. Movimiento --------------------------------------------------------- */
/* Todo el contenido es visible sin JS; las animaciones son decorativas. */
.route-flow {
  stroke-dasharray: 6 14;
  animation: route-flow 1.6s linear infinite;
}
.slat-arrow { animation: slat 2.4s var(--ease) infinite; }

@keyframes route-flow { to { stroke-dashoffset: -40; } }
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes slat {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .route-flow, .slat-arrow, .pulse::after { animation: none; }
}

/* 17. Páginas interiores ------------------------------------------------- */
/* Cabecera de página (nosotros.html, contacto.html): sección oscura con eyebrow + H1 */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(141 160 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 160 255 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.page-header__title { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); margin-bottom: 0.4em; }
.page-header__lead { max-width: 40rem; margin: 0; font-size: var(--fs-lead); }

.split--top { align-items: start; }
.split--top .feature-list { margin-top: 0; }
.split--top > div > .section__lead + p { margin-top: 1rem; }

/* Equipo: tarjetas con avatar de iniciales */
.team-group + .team-group { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.team-group__head { margin-bottom: 1.25rem; }
.team-group__title { margin: 0 0 0.15rem; }
.team-group__note { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.team-grid { margin: 0; padding: 0; list-style: none; }
.team-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); transform: none; }
.avatar {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--blue-300);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.team-card__role {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

/* CTA final */
.cta .section__head { margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 599px) {
  .cta-actions .btn { width: 100%; }
}
