/* GAFASO — Sistema de diseño */
:root {
  /* Paleta basada en el logo */
  --blue-50:  #eef4fc;
  --blue-100: #dbe7f7;
  --blue-200: #b6cdee;
  --blue-300: #87a9df;
  --blue-500: #2e6bc7;
  --blue-600: #1f5dbe;
  --blue-700: #194c9c;
  --blue-800: #143b78;
  --blue-900: #0f2c5b;

  --green-50:  #ecf7f1;
  --green-100: #d6efe1;
  --green-500: #3aac6c;
  --green-600: #2e9e5c;
  --green-700: #25804a;

  /* Neutros cálidos */
  --ink-900: #0d1320;
  --ink-800: #1a2335;
  --ink-700: #303a4f;
  --ink-600: #4a5468;
  --ink-500: #6b7588;
  --ink-400: #9099aa;
  --ink-300: #c2c8d3;
  --ink-200: #e2e5ec;
  --ink-100: #eef0f5;
  --ink-50:  #f6f7fa;
  --bg:      #fbfbfd;
  --white:   #ffffff;

  /* Semánticos */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --accent: var(--green-600);
  --accent-hover: var(--green-700);

  /* Type */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 44, 91, 0.06), 0 1px 1px rgba(15, 44, 91, 0.04);
  --shadow:    0 4px 12px rgba(15, 44, 91, 0.06), 0 2px 4px rgba(15, 44, 91, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 44, 91, 0.18), 0 8px 16px rgba(15, 44, 91, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#blazor-error-ui {
  display: none;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
h4 { font-size: 1rem; }

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.brand-sub {
  font-size: 10px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-link:hover { color: var(--primary); background: var(--blue-50); }
.nav-link.active { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-burger svg { width: 20px; height: 20px; stroke: var(--ink-700); }

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--white);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-top: 1px solid var(--ink-200);
  padding: 24px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer li {
  padding: 16px 12px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-800);
  cursor: pointer;
}
.mobile-drawer li.active { color: var(--primary); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink-300); background: var(--white); }
.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 8px 0;
}
.btn-link:hover { color: var(--primary-hover); gap: 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--green-600); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 158, 92, 0.18);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); }
.hero h1 .accent-2 { color: var(--accent); }
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-600);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-200);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 600px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--green-50) 100%);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}
.hero-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 22px,
    rgba(31, 93, 190, 0.04) 22px,
    rgba(31, 93, 190, 0.04) 23px
  );
}
.hero-visual-placeholder .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Floating cards on hero */
.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink-100);
}
.hero-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.hero-card-icon.green { background: var(--green-50); color: var(--accent); }
.hero-card-title { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.hero-card-meta { font-size: 11px; color: var(--ink-500); margin-top: 2px; font-family: var(--font-mono); }

.hero-card-1 { top: 32px; left: -24px; }
.hero-card-2 { bottom: 80px; right: -16px; }
.hero-card-3 { bottom: 24px; left: 24px; }

/* Arrows decoration */
.arrows-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0.55;
}
.arrows-deco svg { width: 220px; height: auto; }

/* ========== SECTIONS ========== */
section {
  padding: 96px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-600);
  margin-top: 16px;
}

/* Logos clientes */
.clients {
  padding: 56px 0 0;
}
.clients-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 28px;
}
.clients-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.7;
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-500);
  letter-spacing: -0.01em;
}

/* ========== GLASS EFFECT ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(8px) saturate(145%);
  -webkit-backdrop-filter: blur(8px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 32px 0 rgba(15, 44, 91, 0.1) !important;
}

.hero-glass {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--blue-50), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.service-card.alt .service-icon { background: var(--green-50); color: var(--accent); }
.service-title { font-size: 1.15rem; font-weight: 600; }
.service-desc { color: var(--ink-600); font-size: 0.95rem; }
.service-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--ink-100);
  padding-top: 14px;
  margin-top: auto;
}
.service-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-700);
}
.service-features svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ========== COVERAGE ========== */
.coverage {
  background: var(--ink-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.coverage h2 { color: var(--white); }
.coverage .section-eyebrow { color: var(--green-500); }
.coverage .section-eyebrow::before { background: var(--green-500); }
.coverage .section-lede { color: var(--ink-300); }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.coverage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.coverage-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.coverage-stat-num .unit { font-size: 1rem; color: var(--green-500); }
.coverage-stat-label {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 6px;
}
.map-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; }

.route-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.route-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-300);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.route-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== FLEET ========== */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fleet-card {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}
.fleet-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue-200); }
.fleet-img {
  aspect-ratio: 4/3;
  background: var(--ink-50);
  position: relative;
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
}
.fleet-img-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(15, 44, 91, 0.55);
}
.fleet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 19, 32, 0.05) 0%,
    rgba(13, 19, 32, 0.26) 100%
  );
}
.fleet-body { padding: 18px; }
.fleet-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.fleet-spec {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ========== WHY ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.why-card:hover { border-left-color: var(--accent); }
.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.08em;
}
.why-title { font-weight: 600; font-size: 1.1rem; color: var(--ink-900); }
.why-desc { color: var(--ink-600); font-size: 0.92rem; }

/* ========== PROCESS ========== */
.process-section { background: var(--ink-50); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  position: relative;
}
.process-step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px; height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
}
.process-step:nth-child(2) .process-step-num { background: var(--blue-700); }
.process-step:nth-child(3) .process-step-num { background: var(--accent); }
.process-step:nth-child(4) .process-step-num { background: var(--green-700); }
.process-step h3 { font-size: 1.05rem; margin-top: 8px; margin-bottom: 6px; }
.process-step p { color: var(--ink-600); font-size: 0.92rem; }

/* ========== QUOTE FORM ========== */
.quote-section {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 158, 92, 0.18), transparent 70%);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.quote-section h2 { color: var(--white); }
.quote-section .section-eyebrow { color: var(--green-500); }
.quote-section .section-eyebrow::before { background: var(--green-500); }
.quote-features {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.quote-features li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink-200);
  font-size: 0.97rem;
}
.quote-features svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--green-500);
  margin-top: 2px;
}
.quote-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(9px) saturate(140%);
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.quote-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.quote-card .helper { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 24px; }
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 13px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 93, 190, 0.12);
}
.field textarea { resize: vertical; min-height: 88px; }
.quote-success {
  padding: 24px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

/* ========== TESTIMONIAL ========== */
.testimonial {
  background: var(--white);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-quote {
  font-size: 1rem;
  color: var(--ink-800);
  line-height: 1.55;
}
.testi-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--blue-200);
  line-height: 0.5;
  display: block;
  margin-bottom: 12px;
}
.testi-meta {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--ink-100);
  padding-top: 16px;
  margin-top: auto;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--ink-500); }

/* ========== TRACKING ========== */
.tracking-section {
  padding: 64px 0;
  background: var(--ink-50);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.tracking-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.tracking-bar .tracking-icon {
  color: var(--primary);
  flex-shrink: 0;
}
.tracking-bar input {
  flex: 1;
  border: none;
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  background: transparent;
  letter-spacing: 0.05em;
}
.tracking-result {
  max-width: 720px;
  margin: 24px auto 0;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tracking-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.tracking-id { font-family: var(--font-mono); font-weight: 600; color: var(--ink-700); }
.status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.status-pill .ping {
  width: 6px; height: 6px;
  background: var(--green-600);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 158, 92, 0.25);
  animation: ping 1.4s infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.tracking-timeline {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tracking-step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.tracking-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 32px;
  bottom: -12px;
  width: 2px;
  background: var(--ink-200);
}
.tracking-step:last-child::before { display: none; }
.tracking-step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink-200);
  position: relative;
  z-index: 1;
}
.tracking-step.done .tracking-step-dot {
  background: var(--green-600);
  border-color: var(--green-600);
}
.tracking-step.current .tracking-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 93, 190, 0.18);
}
.tracking-step-title { font-weight: 600; font-size: 14px; }
.tracking-step-loc { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.tracking-step-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }

@keyframes footerBlobDriftA {
  0%   { transform: translate3d(-10%, -8%, 0) scale(1.03); }
  100% { transform: translate3d(12%, 10%, 0) scale(1.08); }
}
@keyframes footerBlobDriftB {
  0%   { transform: translate3d(8%, 6%, 0) scale(1.05); }
  100% { transform: translate3d(-11%, -9%, 0) scale(1.02); }
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 64px 0 24px;
}

.footer-bg-motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: var(--ink-900);
  overflow: hidden;
}

.footer-bg-blob {
  position: absolute;
  z-index: 0;
  width: 150%;
  height: 140%;
  left: -25%;
  top: -20%;
  will-change: transform;
  backface-visibility: hidden;
}

/* rgba derivados de --blue-600 #1f5dbe, --blue-700 #194c9c, --green-600 #2e9e5c (sin color-mix: mejor soporte y contraste perceptible) */
.footer-bg-blob--a {
  background:
    radial-gradient(ellipse 58% 50% at 22% 38%, rgba(31, 93, 190, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 72% 22%, rgba(25, 76, 156, 0.32) 0%, transparent 52%);
  animation: footerBlobDriftA 22s ease-in-out infinite alternate;
}

.footer-bg-blob--b {
  left: -28%;
  top: -22%;
  background:
    radial-gradient(ellipse 52% 45% at 78% 72%, rgba(31, 93, 190, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 44% 40% at 35% 88%, rgba(46, 158, 92, 0.22) 0%, transparent 50%);
  animation: footerBlobDriftB 28s ease-in-out infinite alternate;
}

.footer-bg-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(13, 19, 32, 0.14) 0%,
    rgba(13, 19, 32, 0.28) 50%,
    rgba(13, 19, 32, 0.36) 100%
  );
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img { width: 38px; height: 38px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}
.footer-brand-sub { font-size: 11px; color: var(--ink-400); letter-spacing: 0.06em; text-transform: uppercase; }
.footer p { color: var(--ink-400); font-size: 14px; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; color: var(--ink-400); cursor: pointer; transition: color 0.15s; }
.footer-col li:hover { color: var(--white); }
.footer-col li svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 6px; color: var(--green-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--ink-500); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-300);
  transition: all 0.15s;
}
.footer-social a:hover { border-color: var(--green-500); color: var(--green-500); }

@media (prefers-reduced-motion: reduce) {
  .footer-bg-blob {
    animation: none;
  }
  .footer-bg-blob--a {
    transform: translate3d(2%, 1%, 0) scale(1.03);
  }
  .footer-bg-blob--b {
    transform: translate3d(-2%, -1%, 0) scale(1.03);
  }
}

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ========== PAGE: about ========== */
.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--ink-200);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}
.page-hero p { font-size: 1.1rem; color: var(--ink-600); max-width: 640px; }

/* ========== PAGE BACKGROUNDS ========== */
.page-bg {
  position: relative;
  isolation: isolate;
}
.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(13, 19, 32, 0.1) 0%,
    rgba(13, 19, 32, 0.05) 50%,
    rgba(13, 19, 32, 0.1) 100%
  );
}
.page-bg--dashboard::before { background-image: url('/assets/backgrounds/bg-dashboard.png'); }
.page-bg--solicitudes::before { background-image: url('/assets/backgrounds/bg-solicitudes.png'); }
.page-bg--servicios::before { background-image: url('/assets/backgrounds/bg-servicios.png'); }
.page-bg--flota::before { background-image: url('/assets/backgrounds/bg-flota.png'); }
.page-bg--contacto::before { background-image: url('/assets/backgrounds/bg-contacto.png'); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
}
.value-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.value h3 { font-size: 1.1rem; }
.value p { color: var(--ink-600); font-size: 0.95rem; }

/* ========== PAGE: contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 48px;
  row-gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.contact-heading {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 1.25rem;
}
.contact-info {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form-card {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding: 32px !important;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}
.contact-item-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--blue-50);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-item-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.contact-item-text { font-size: 13px; color: var(--ink-600); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-height: 480px; aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-heading,
  .contact-info,
  .contact-form-card {
    grid-column: 1;
    grid-row: auto;
  }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .nav-cta .btn:not(.nav-burger-btn) { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .route-list { grid-template-columns: 1fr; }
  .coverage-stats { grid-template-columns: 1fr 1fr; }
  .hero-card-1 { left: 8px; }
  .hero-card-2 { right: 8px; }
  .contact-form-card { padding: 20px !important; }
}

/* Theme tweaks */
body.theme-green-primary {
  --primary: var(--green-600);
  --primary-hover: var(--green-700);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
}
body.theme-green-primary .eyebrow { background: var(--green-50); color: var(--green-700); }

/* ========== PÁGINAS LEGALES ========== */
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
}
.legal-updated {
  font-size: 13px;
  color: var(--ink-400);
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-200);
}
.legal-section {
  margin-bottom: 36px;
}
.legal-section h3 {
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-100);
}
.legal-section p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.7;
}
.legal-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-list li {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.65;
}
.legal-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.legal-table thead {
  background: var(--ink-50);
}
.legal-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-200);
}
.legal-table td {
  padding: 12px 14px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}
.legal-browsers {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-browser-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink-50);
  border-radius: var(--radius-sm);
  font-size: 13px;
  align-items: baseline;
  flex-wrap: wrap;
}
.legal-browser-item strong {
  color: var(--ink-900);
  min-width: 140px;
  flex-shrink: 0;
}
.legal-browser-item span {
  color: var(--ink-600);
}
@media (max-width: 720px) {
  .legal-card { padding: 24px 18px; }
  .legal-browser-item { flex-direction: column; gap: 4px; }
  .legal-browser-item strong { min-width: unset; }
}
body.theme-green-primary .quote-section { background: linear-gradient(135deg, var(--green-700) 0%, #1a5d3a 100%); }
