/* ════════════════════════════════════════════════════════════════════
   MayorKing Logistic — Sistema "Ops-tech"
   Tokens · Reset · Componentes · Utilidades JS · Responsive
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Color */
  --ink:        #0B1D38;   /* marino profundo: hero, cotizador, footer */
  --ink-2:      #102A50;   /* paneles sobre ink */
  --ink-3:      #0E2344;
  --navy:       #1B3A6B;   /* marca */
  --navy-soft:  #EAF0F9;
  --gold:       #C89A2E;
  --gold-bright:#E3B341;   /* dorado sobre oscuro */
  --gold-deep:  #A8821F;
  --paper:      #F6F7F9;
  --white:      #FFFFFF;
  --line:       #DDE3EC;
  --line-dark:  rgba(255,255,255,.14);
  --text:       #22314A;
  --muted:      #5B6B85;
  --muted-dark: #93A7C7;   /* texto secundario sobre ink */
  --live:       #2FBF71;
  --wa:         #1FAF54;
  --danger:     #E5484D;

  /* Tipo */
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Métrica */
  --container: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(11,29,56,.06), 0 8px 24px -12px rgba(11,29,56,.14);
  --shadow-pop:  0 24px 48px -16px rgba(4,12,26,.55);
}

/* ── Reset mínimo ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

/* Táctil: sin retardo de 300ms ni zoom accidental por doble toque */
a, button, input, select, label { touch-action: manipulation; }

::selection { background: var(--gold-bright); color: var(--ink); }

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

/* ── Primitivas ───────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.display {
  font-family: var(--font-body);
  font-stretch: 115%;
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; position: fixed; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn [data-lucide] { width: 17px; height: 17px; }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(200,154,46,.55);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); }

.btn-ghost-dark {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: transparent;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }

/* ── Utility bar ──────────────────────────────────────────────────── */
.utilbar {
  background: var(--ink);
  color: var(--muted-dark);
  border-bottom: 1px solid var(--line-dark);
}
.utilbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 34px;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utilbar .live-dot { margin-right: 7px; }
.utilbar a:hover { color: #fff; }
.utilbar-right { display: flex; gap: 20px; white-space: nowrap; }

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(47,191,113,.5);
  animation: live-pulse 2.2s infinite;
  vertical-align: 1px;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,191,113,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(47,191,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); }
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 42px;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
/* En el footer (fondo oscuro) el escudo navy necesita un chip claro detrás */
.site-footer .brand-mark {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}
.brand-name {
  font-stretch: 115%;
  font-weight: 750;
  font-size: 17px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav-tel:hover { color: var(--ink); }
.nav-tel [data-lucide] { width: 14px; height: 14px; color: var(--gold-deep); }
.nav-cta { padding: 10px 16px; font-size: 14px; }

#menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
#menu-toggle [data-lucide] { width: 19px; height: 19px; display: block; }

#mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px 16px;
}
#mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--paper);
}
#mobile-menu a:last-child { border-bottom: 0; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(27,58,107,.85), transparent 60%),
    radial-gradient(700px 420px at -8% 108%, rgba(200,154,46,.14), transparent 55%),
    var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before { /* retícula técnica sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 50% 30%, #000 45%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
  padding-block: 84px 96px;
}
.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 7px 14px;
  background: rgba(255,255,255,.04);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-lead {
  margin-top: 20px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-dark);
}
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta [data-lucide] { width: 14px; height: 14px; color: var(--gold-bright); }

/* Visual: foto + tarjeta de tracking */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
}
.hero-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-photo::after { /* velo para integrar la foto al fondo */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(200deg, rgba(11,29,56,0) 55%, rgba(11,29,56,.55));
  pointer-events: none;
}

.tracking-card {
  position: absolute;
  left: -34px;
  bottom: -30px;
  width: min(330px, 88%);
  background: rgba(14,32,62,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-pop);
  animation: card-in .7s cubic-bezier(.22,.9,.3,1) .25s backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.tc-order { color: var(--muted-dark); }
.tc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--live);
  background: rgba(47,191,113,.12);
  border: 1px solid rgba(47,191,113,.3);
  border-radius: 100px;
  padding: 4px 10px;
  text-transform: uppercase;
  font-weight: 500;
}
.tc-route {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-city { text-align: center; }
.tc-city b {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.tc-city span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.tc-line {
  flex: 1;
  position: relative;
  height: 2px;
  background: rgba(255,255,255,.14);
  border-radius: 2px;
  overflow: visible;
}
.tc-line::before { /* progreso */
  content: "";
  position: absolute;
  inset: 0 38% 0 0;
  background: var(--gold-bright);
  border-radius: 2px;
}
.tc-line [data-lucide] {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 17px; height: 17px;
  color: var(--gold-bright);
  background: var(--ink-3);
  border-radius: 50%;
  padding: 2px;
}
.tc-rows {
  margin-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top: 12px;
  display: grid;
  gap: 7px;
}
.tc-rows li {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}
.tc-rows li b { color: #fff; font-weight: 500; }

/* ── Ticker de cobertura ──────────────────────────────────────────── */
.ticker {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 13px;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-inline: 22px;
  position: relative;
}
.ticker-track span::after {
  content: "·";
  position: absolute;
  right: -4px;
  color: var(--gold);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Secciones (base) ─────────────────────────────────────────────── */
.section { padding-block: 88px; }
.section-paper { background: var(--paper); }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--ink);
}
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ── Servicios (catálogo) ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #C9D3E2;
}
.svc-media { position: relative; height: 185px; overflow: hidden; }
.svc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.svc-card:hover .svc-media img { transform: scale(1.045); }
.svc-code {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 5px 9px;
}
.svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 {
  font-size: 17.5px;
  font-weight: 650;
  font-stretch: 108%;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.svc-body p { margin-top: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.svc-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.svc-link [data-lucide] { width: 13px; height: 13px; transition: transform .15s; }
.svc-link:hover { color: var(--ink); }
.svc-link:hover [data-lucide] { transform: translateX(3px); }

/* ── Proceso como tracking ────────────────────────────────────────── */
.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  counter-reset: step;
}
.track::before { /* línea troncal */
  content: "";
  position: absolute;
  top: 14px;
  left: calc(12.5% );
  right: calc(12.5%);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.track-step { position: relative; text-align: center; padding-top: 44px; }
.track-step::before { /* nodo */
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--paper);
  z-index: 1;
}
.track-step.done::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--paper), inset 0 0 0 3px var(--paper);
}
.track-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.track-step h3 {
  margin-top: 8px;
  font-size: 16.5px;
  font-weight: 650;
  font-stretch: 108%;
  color: var(--ink);
}
.track-step p { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.track-cta { margin-top: 52px; text-align: center; }

/* ── Stats + Por qué elegirnos ────────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 56px;
}
.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat b em { font-style: normal; color: var(--gold); }
.stat span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.why-item:hover { border-color: #C9D3E2; box-shadow: var(--shadow-card); }
.why-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.why-icon [data-lucide] { width: 18px; height: 18px; color: var(--navy); }
.why-item h3 { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.why-item p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ── Testimonios ──────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--gold); font-size: 14px; letter-spacing: 3px; }
.review-text { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: var(--text); flex: 1; }
.review-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--paper);
  padding-top: 16px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-src {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-src [data-lucide] { width: 11px; height: 11px; color: var(--live); }

/* ── Cotizador (consola) ──────────────────────────────────────────── */
.quote {
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(27,58,107,.7), transparent 60%),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.quote-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.quote-info h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}
.quote-info > p { margin-top: 14px; color: var(--muted-dark); font-size: 15.5px; max-width: 400px; }
.quote .eyebrow { color: var(--gold-bright); }
.quote .eyebrow::before { background: var(--gold-bright); }

.quote-checklist { margin-top: 28px; display: grid; gap: 13px; }
.quote-checklist li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: #DCE5F2;
}
.quote-checklist [data-lucide] {
  width: 17px; height: 17px;
  color: var(--live);
  background: rgba(47,191,113,.12);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.quote-sla {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 8px 15px;
}

/* Formulario */
.quote-form {
  background: rgba(16,42,80,.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line-dark);
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.form-head b { color: var(--gold-bright); font-weight: 500; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 7px;
}
.field label .req { color: var(--gold-bright); }

.mk-input {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  color: #fff;
  background: rgba(11,29,56,.65);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.mk-input::placeholder { color: #6A7FA3; }
.mk-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,154,46,.18);
  background: rgba(11,29,56,.9);
}
select.mk-input option { background: var(--ink); color: #fff; }
.mk-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229,72,77,.18);
}
/* Fecha/hora: icono nativo claro sobre fondo oscuro */
.mk-input::-webkit-calendar-picker-indicator { filter: invert(.8); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grupo-servicio { display: grid; gap: 14px; }

#form-error {
  border-radius: var(--radius);
  background: rgba(229,72,77,.12);
  border: 1px solid rgba(229,72,77,.4);
  color: #FFC2C4;
  font-size: 13.5px;
  padding: 11px 14px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}
.form-note .req { color: var(--gold-bright); }

#btn-cotizar {
  width: 100%;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  box-shadow: 0 10px 24px -10px rgba(200,154,46,.5);
}
#btn-cotizar:hover { background: var(--gold-bright); transform: translateY(-1px); }
#btn-cotizar [data-lucide] { width: 16px; height: 16px; }
button:disabled {
  opacity: .72;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-block: 64px 48px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; font-size: 14px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col [data-lucide] { width: 14px; height: 14px; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── WhatsApp flotante ────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(31,175,84,.6);
  transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(31,175,84,.7); }
.wa-float [data-lucide] { width: 24px; height: 24px; }

/* ── Utilidades que usa el JS ─────────────────────────────────────── */
.hidden { display: none !important; }
.spinner {
  width: 16px; height: 16px;
  flex-shrink: 0;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Íconos Lucide: base ──────────────────────────────────────────── */
[data-lucide] { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .tracking-card { animation: none; }
  .live-dot { animation: none; box-shadow: none; }
  .btn:hover, .svc-card:hover, .wa-float:hover { transform: none; }
  .svc-card:hover .svc-media img { transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .tracking-card { left: -12px; }
}

@media (max-width: 900px) {
  /* iOS Safari hace zoom automático al enfocar inputs con fuente < 16px */
  .mk-input { font-size: 16px; }

  .nav-links { display: none; }
  .nav-tel { display: none; }
  #menu-toggle { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 60px 84px;
    gap: 48px;
  }
  .hero-photo img { height: 320px; }
  .tracking-card { left: 12px; bottom: -26px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }

  .track { grid-template-columns: 1fr; gap: 0; }
  .track::before {
    top: 24px;
    bottom: 24px;
    left: 10px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
  }
  .track-step {
    text-align: left;
    padding: 0 0 36px 42px;
  }
  .track-step:last-child { padding-bottom: 0; }
  .track-step::before {
    top: 2px;
    left: 0;
    transform: none;
    box-shadow: 0 0 0 5px var(--white);
  }
  .track-step.done::before { box-shadow: 0 0 0 5px var(--white), inset 0 0 0 3px var(--white); }

  .quote-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 64px; }
  .utilbar-right span:first-child { display: none; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.1em; padding: 6px 12px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 22px 18px; }
  .hero-ctas .btn { width: 100%; }

  /* Foto detrás de la card, card centrada encima (como en desktop) */
  .hero-photo img { height: 400px; }
  .tracking-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    margin-inline: auto;
    width: min(330px, calc(100% - 32px));
  }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
