/* ==========================================================
   FLETES MTY — estilos
   Paleta: acero/grafito + ámbar señal de ruta sobre concreto claro
   Tipografía: Barlow Condensed (títulos) + Work Sans (cuerpo)
   ========================================================== */

:root {
  --graphite: #171b1f;
  --steel: #223448;
  --steel-light: #2f4863;
  --concrete: #e9e7e1;
  --concrete-2: #f4f3ef;
  --amber: #e2a33d;
  --amber-dark: #c78727;
  --ink: #1a1d21;
  --ink-soft: #4b5259;
  --white: #ffffff;
  --line: rgba(23, 27, 31, 0.12);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --radius-s: 3px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--concrete-2);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--graphite);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--graphite);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-whatsapp {
  background: var(--amber);
  color: var(--graphite);
}
.btn-whatsapp:hover { background: var(--amber-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--graphite);
  color: var(--graphite);
}
.btn-outline:hover { background: var(--graphite); color: var(--white); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--graphite);
  color: var(--concrete-2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
}
.brand-mark { display: flex; color: var(--amber); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--white);
}
.brand-text strong { color: var(--amber); }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--concrete);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--amber); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tel-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--concrete);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--amber);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--steel);
  padding: 10px 24px 18px;
}
.mobile-nav a {
  color: var(--concrete-2);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--concrete-2);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -60px 0;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(23,27,31,0.74) 0%, rgba(34,52,72,0.58) 55%, rgba(23,27,31,0.8) 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  padding: 96px 24px 76px;
}
.hero-copy { max-width: 62ch; }
.hero-eyebrow {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-lead {
  color: rgba(233,231,225,0.82);
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-actions .btn-outline {
  border-color: rgba(233,231,225,0.5);
  color: var(--concrete-2);
}
.hero-actions .btn-outline:hover { background: var(--concrete-2); color: var(--graphite); }

.mile-markers {
  background: var(--graphite);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mile-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 24px;
}
.mile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 1px dashed rgba(226,163,61,0.35);
  padding: 4px 12px;
}
.mile:first-child { border-left: none; }
.mile-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--amber);
  font-weight: 700;
  line-height: 1;
}
.mile-label {
  font-size: 0.82rem;
  color: rgba(233,231,225,0.72);
  margin-top: 4px;
}

/* ---------- Section shared ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Services / route line ---------- */
.services { background: var(--concrete-2); }
.route-line {
  position: relative;
  padding-left: 28px;
  border-left: 3px dashed var(--amber);
}
.route-stop { position: relative; padding-bottom: 44px; }
.route-stop:last-child { padding-bottom: 0; }
.route-dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--graphite);
  border: 3px solid var(--amber);
  border-radius: 50%;
}
.route-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  padding: 28px 30px;
}
.route-card-media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.route-card-media .route-card-body { padding: 28px 30px; }
.route-card-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.route-tag {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.route-checks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.route-checks li {
  padding-left: 20px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.route-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 2px;
  background: var(--amber-dark);
}

/* ---------- Fleet ---------- */
.fleet { background: var(--concrete); }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fleet-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fleet-img-wrap { height: 170px; overflow: hidden; background: var(--concrete); }
.fleet-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.fleet-card h3,
.fleet-card .fleet-cap,
.fleet-card > p { padding-left: 22px; padding-right: 22px; }
.fleet-card h3 { margin-top: 20px; }
.fleet-card > p:last-child { padding-bottom: 24px; }
.fleet-cap {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Coverage ---------- */
.coverage { background: var(--graphite); color: var(--concrete-2); }
.coverage h2 { color: var(--white); }
.coverage h3 {
  color: var(--amber);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
}
.coverage p { color: rgba(233,231,225,0.78); }
.coverage-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.coverage-tags { line-height: 1.9; }
.coverage-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(226,163,61,0.35);
  font-size: 0.95rem;
}
.coverage-panel {
  background: rgba(233,231,225,0.06);
  border: 1px solid rgba(233,231,225,0.14);
  padding: 20px;
}
.coverage-map { max-width: 360px; margin: 0 auto; border-radius: 2px; }

/* ---------- Why ---------- */
.why { background: var(--concrete-2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item { border-top: 3px solid var(--amber); padding-top: 16px; }
.why-item h3 { font-size: 1.15rem; }
.why-item p { font-size: 0.94rem; }

/* ---------- Quote ---------- */
.quote { background: var(--concrete); }
.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.quote-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.quote-points li {
  padding-left: 22px;
  position: relative;
  font-weight: 500;
  color: var(--ink);
}
.quote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 2px;
  background: var(--amber-dark);
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  background: var(--concrete-2);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: var(--radius-s);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber-dark);
  background: var(--white);
}
.form-row textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(233,231,225,0.78);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-brand .brand-text { display: inline-block; margin-bottom: 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer-list a:hover { color: var(--amber); }
.footer-note { font-size: 0.9rem; margin-bottom: 16px; }
.footer-bottom {
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(233,231,225,0.5);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); background: var(--amber-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { padding-top: 64px; }
  .mile-inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .mile:nth-child(3) { border-left: none; }
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-panel { order: -1; max-width: 280px; margin: 0 auto; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .route-card-media { grid-template-columns: 1fr; }
  .route-card-img { min-height: 180px; order: -1; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta .tel-link { display: none; }
  .nav-toggle { display: flex; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { max-width: none !important; }
}

@media (max-width: 520px) {
  .fleet-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
