:root {
  --bg: #F3F5F2;        /* fondo general */
  --surface: #FFFFFF;   /* tarjetas */
  --ink: #1B2620;       /* texto principal */
  --muted: #5C6B62;     /* texto secundario */
  --line: #D9E0DA;      /* bordes */
  --accent: #2F6A4E;    /* verde Terramundo */
  --accent-hover: #245540;
  --accent-soft: #E2EEE7;
  --on-accent: #FFFFFF;
  --cargo: #C07A22;     /* ocre carga: solo acentos gráficos, no texto chico */
  --cargo-ink: #8A5413; /* ocre legible (AA) para texto */
  --cargo-soft: #F6EAD8;
  --dark: #16221C;      /* carbón: bandas oscuras y footer */
  --on-dark: #F3F5F2;
  --on-dark-muted: #B4C2B9;
  --wa: #1F8F4E;        /* botón WhatsApp (verde AA con texto blanco) */

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 96px);
  --shadow: 0 1px 2px rgb(22 34 28 / 0.06), 0 4px 16px rgb(22 34 28 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #19221D;
    --ink: #E6ECE7;
    --muted: #A3B2A9;
    --line: #2B3830;
    --accent: #6CB891;
    --accent-hover: #86C9A6;
    --accent-soft: #1E3328;
    --on-accent: #0D1812;
    --cargo: #D9953F;
    --cargo-ink: #E3A857;
    --cargo-soft: #33271A;
    --dark: #0B110E;
    --wa: #25A55B;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.875rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cargo-ink);
  margin: 0 0 10px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17753F; color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--ink); }
.btn--on-dark { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn--on-dark:hover { background: rgb(255 255 255 / 0.1); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* Grillas y tarjetas */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.icon-tile {
  width: 52px; height: 52px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.icon-tile--cargo { background: var(--cargo-soft); color: var(--cargo-ink); }
.icon-tile svg { width: 28px; height: 28px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }

/* Encabezado de página interior */
.page-hero { padding-block: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero p { font-size: 1.1875rem; color: var(--muted); max-width: 640px; }

/* Texto legible */
.prose { max-width: 680px; }
.prose p, .prose li { font-size: 1.125rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; font-size: 1.125rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 1.5rem/1 var(--font-head); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo svg { flex: none; }
.logo:hover { color: var(--ink); }
.logo--dark, .logo--dark:hover { color: var(--on-dark); }
.logo__text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.logo__name { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.1em; }
.logo__tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; color: var(--accent); margin-top: 4px; }
.logo--dark .logo__tag { color: var(--on-dark-muted); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header__nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.header__nav a:hover { background: var(--accent-soft); }
.header__nav a[aria-current='page'] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--cargo); border-radius: 0; }
.header__cta { min-height: 46px; padding: 10px 18px; }
.header__toggle {
  display: none; width: 48px; height: 48px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); cursor: pointer;
  place-items: center;
}
.header__toggle svg { width: 24px; height: 24px; }
.header__toggle .i-close { display: none; }
.header__toggle[aria-expanded='true'] .i-open { display: none; }
.header__toggle[aria-expanded='true'] .i-close { display: block; }

@media (max-width: 980px) {
  .header__inner { gap: 8px; }
  .header__cta { margin-left: auto; }
  .header__toggle { display: grid; }
  .header__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px var(--gutter) 16px;
  }
  .header__nav.is-open { display: block; }
  .header__nav ul { flex-direction: column; }
  .header__nav a { padding: 14px 8px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header__nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--cargo); padding-left: 14px; }
}
@media (max-width: 420px) {
  .header .logo__tag { display: none; }
  .header .logo { gap: 8px; }
  .header .logo__name { font-size: 1.3rem; letter-spacing: 0.05em; }
  .header .logo svg { width: 34px; height: 34px; }
  .header__cta { padding-inline: 12px; gap: 6px; }
  .header__cta svg { width: 20px; height: 20px; }
}

/* ---------- WhatsAppButton ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
  transition: transform .15s;
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 56px 28px; margin-top: 0; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 36px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.footer__h { font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9375rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- QuoteForm ---------- */
.quote { background: var(--accent-soft); }
.quote__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote__intro > p:not(.eyebrow) { font-size: 1.125rem; color: var(--muted); }
.quote__intro .check-list { margin-top: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.975rem; }
.field label span { color: var(--cargo-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.quote__req { font-size: 0.9rem; color: var(--muted); margin: 14px 0; }
.quote__submit { width: 100%; }
.quote__submit svg { width: 20px; height: 20px; }
.quote__submit:disabled { opacity: 0.6; cursor: wait; }
.quote__status { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); }
.quote__status.is-ok { background: var(--accent-soft); border-left: 4px solid var(--accent); margin-top: 0; font-size: 1.125rem; }
.quote__status.is-error { background: var(--cargo-soft); border-left: 4px solid var(--cargo); }
@media (max-width: 860px) { .quote__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- ServiceCard ---------- */
.service { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.service p { color: var(--muted); }
.service .check-list { padding-top: 4px; }

/* ---------- FleetCard ---------- */
.fleet { display: flex; flex-direction: column; }
.fleet__top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.fleet__top .icon-tile { margin: 0; flex: none; }
.fleet h3 { margin: 0; font-size: 1.75rem; }
.fleet__size { margin: 2px 0 0; color: var(--cargo-ink); font-weight: 600; }
.fleet__spec { margin: 0 0 18px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.fleet__spec dt { font-size: 0.9rem; color: var(--muted); }
.fleet__spec dd { margin: 2px 0 0; font-weight: 600; font-size: 1.125rem; overflow-wrap: anywhere; }
.fleet__label { font-weight: 600; margin-bottom: 8px; }
.fleet__bar { margin-top: 22px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fleet__bar span { display: block; height: 100%; background: var(--cargo); border-radius: 4px; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--muted); max-width: 36ch; margin-bottom: 28px; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 20px; height: 20px; color: var(--accent); }
.hero__panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--dark); box-shadow: var(--shadow); }
.hero__art { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.hero__routes { padding: 20px 24px 24px; color: var(--on-dark); }
.hero__routes-h { font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: #E3A857; margin: 0 0 10px; }
.hero__routes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hero__routes li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-weight: 600; }
.hero__routes li:last-child { border-bottom: 0; }
.hero__routes li span:last-child { text-align: right; }
.hero__routes svg { width: 20px; height: 20px; color: #E3A857; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- página: index ---------- */
.more { margin: 28px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.more svg { width: 18px; height: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; }
.step__n {
  position: absolute; top: 20px; right: 22px;
  font: 700 2.5rem/1 var(--font-head); color: var(--line);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.cover { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cover__lead { font-size: 1.125rem; color: var(--muted); }
.cover__note { font-size: 0.975rem; color: var(--muted); overflow-wrap: anywhere; }
.cover__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cover__list li {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.cover__list svg { width: 26px; height: 26px; color: var(--cargo-ink); flex: none; }
.cover__list div { display: flex; flex-direction: column; }
.cover__list span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .cover { grid-template-columns: 1fr; } }

/* ---------- página: contacto ---------- */
.channels { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.channel { display: flex; gap: 14px; align-items: center; padding: 18px 20px; text-decoration: none; color: var(--ink); }
a.channel:hover { border-color: var(--accent); color: var(--ink); }
.channel > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.channel > span:last-child span { color: var(--muted); }
.channel__icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.channel__icon--wa { background: var(--wa); color: #fff; }
.channel__icon svg { width: 26px; height: 26px; }

/* ---------- página: nosotros ---------- */
.values { margin-top: 40px; }
.muted { color: var(--muted); margin: 0; }
.cta { margin-top: 40px; }


/* Celulares muy angostos: el botón Cotizar del header queda solo con el ícono */
@media (max-width: 360px) {
  .header__cta { width: 46px; padding: 0; }
  .header__cta .btn__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Landing única: preguntas sobre fondo de superficie y canales dentro de Contacto */
.section--surface .faq details { background: var(--bg); }
.quote__intro .channels { grid-template-columns: 1fr; margin-top: 24px; gap: 10px; }
.quote__intro .channel { padding: 14px 16px; }
/* Servicios: grilla 2×2 en escritorio y tablet, 1 columna en celular */
.grid--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .grid--2x2 { grid-template-columns: 1fr; } }
