:root {
  --background: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #172033;
  --text-muted: #657086;
  --border: #d8e0ea;
  --primary: #1e3a5f;
  --primary-hover: #172e4b;
  --primary-soft: #e8eef6;
  --accent: #f59e0b;
  --accent-soft: #fff4db;
  --footer: #111827;
  --footer-text: #eaf0f7;
  --brand-teal: #0f4f4a;
  --hero-overlay: rgba(8, 16, 28, 0.68);

  --step--1: clamp(0.85rem, 0.81rem + 0.18vw, 0.95rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.03rem + 0.45vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.17rem + 0.9vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.6rem);
  --step-4: clamp(2.25rem, 1.65rem + 3vw, 3.75rem);

  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.65rem);
  --space-sm: clamp(0.75rem, 0.66rem + 0.45vw, 1rem);
  --space-md: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-block: 0;
}

h1,
h2,
h3,
strong,
b,
button,
.brand,
.button,
.eyebrow,
.stat-value {
  font-weight: 550;
}

h1 {
  max-width: 16ch;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  max-width: 24ch;
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: var(--step-1);
  line-height: 1.25;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 32%, transparent);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - clamp(2rem, 5vw, 5rem)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-teal);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--brand-teal);
  font-size: var(--step--1);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.site-nav a,
.footer-links a {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.7rem 1rem;
  font-size: var(--step-0);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button-whatsapp {
  background: var(--primary);
  color: #ffffff;
}

.button-whatsapp:hover {
  background: var(--primary-hover);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(520px, 72vh, 760px);
  align-items: center;
  padding-block: var(--space-xl);
  overflow: hidden;
  background: url("../img/logistics-hero.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  content: "";
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: flex;
  justify-content: center;
}

.hero-copy,
.section-heading,
.coverage-copy,
.contact-content {
  display: grid;
  gap: var(--space-md);
}

.hero-copy {
  justify-items: center;
  max-width: 820px;
  color: #ffffff;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: var(--step--1);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
}

.hero h1 {
  max-width: min(100%, 24ch);
  font-size: clamp(2.35rem, 1.58rem + 3.85vw, 4.4rem);
  line-height: 1.02;
}

.hero-text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.panel-heading p {
  font-weight: 550;
}

.route-row span,
.service-card p,
.process-step p,
.coverage-copy p,
.contact-text,
.site-footer p,
.stat-grid span {
  color: var(--text-muted);
}

.contact-section .eyebrow {
  color: var(--accent);
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  font-size: var(--step--1);
}

.route-row strong {
  color: var(--accent);
  white-space: nowrap;
}

.section,
.contact-section {
  padding-block: var(--space-xl);
}

.section-heading {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-md);
}

.service-card {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.service-icon,
.process-step span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--step--1);
  font-weight: 550;
}

.trust-band {
  padding-block: var(--space-lg);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-grid div {
  display: grid;
  gap: 0.15rem;
}

.stat-value {
  color: var(--text);
  font-size: var(--step-2);
  line-height: 1.1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  padding-block-start: var(--space-sm);
  border-top: 1px solid var(--border);
}

.coverage-section {
  background: var(--surface-muted);
}

.coverage-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-xl);
}

.contact-content {
  justify-items: center;
  max-width: 720px;
  text-align: center;
}

.check-list {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "+";
  font-weight: 550;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.site-footer {
  padding-block: var(--space-lg);
  background: var(--footer);
  color: var(--footer-text);
}

.footer-grid {
  grid-template-columns: 1.3fr 0.7fr 1fr;
  align-items: start;
}

.footer-brand {
  color: var(--footer-text);
}

.footer-links,
.footer-contact,
.site-footer div:first-child {
  display: grid;
  gap: var(--space-xs);
}

.footer-links {
  color: var(--footer-text);
}

.site-footer p {
  max-width: 44ch;
  color: color-mix(in srgb, var(--footer-text) 78%, transparent);
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-block-end: var(--space-sm);
  }

  .site-nav.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .header-cta {
    display: none;
  }

  .coverage-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: var(--step--1);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .stat-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .route-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }
}
