/* Mobile first: estilos base para celular, @media (min-width) para pantallas más grandes. */
:root {
  --ink: #16191d;
  --ink-2: #1f2428;
  --text: #24282c;
  --muted: #5b636a;
  --muted-dark: #b9bec3;
  --line: #e2e0da;
  --paper: #f5f4f0;
  --soft: #ecebe6;
  --orange: #fe6201;
  --orange-text: #b93d0b;
  --wa: #15803d;
  --wa-hover: #116a33;
  --call: #c2410c;
  --call-hover: #a8380a;
  --star: #f5a400;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 25, 29, .08);
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 9vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: var(--muted-dark);
  background: var(--ink);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  max-width: 680px;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--orange-text);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--orange);
}

.section-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-intro {
  color: var(--muted-dark);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* 19px en negrita cuenta como texto grande para contraste (WCAG) */
.btn-lg {
  min-height: 56px;
  font-size: 1.1875rem;
}

.btn-whatsapp {
  color: #fff;
  background: var(--wa);
}

.btn-whatsapp:hover {
  background: var(--wa-hover);
}

.btn-call {
  color: #fff;
  background: var(--call);
}

.btn-call:hover {
  background: var(--call-hover);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: #c9c6be;
}

.cta-stack,
.cta-row {
  display: grid;
  gap: 12px;
}

.stars {
  display: inline-flex;
  color: var(--star);
}

.stars svg {
  width: 16px;
  height: 16px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand img {
  width: auto;
  height: 32px;
}

.header-nav,
.header-wa {
  display: none;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn.header-call {
  min-height: 40px;
  padding: 6px 4px;
  color: var(--ink);
  background: transparent;
  font-size: .95rem;
}

.btn.header-call svg {
  width: 18px;
  height: 18px;
  color: var(--orange-text);
}

/* Hero */
.hero {
  padding: 28px 0 44px;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero h1 {
  margin-top: 6px;
}

.hero-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
}

.hero-rating strong {
  color: var(--ink);
}

.lead {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero .cta-stack {
  margin-top: 22px;
}

.hint {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
  font-size: .95rem;
}

.proof-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.35;
}

.proof-list svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  color: var(--orange-text);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Flota */
.fleet-grid {
  display: grid;
  gap: 16px;
}

.truck-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: var(--ink-2);
}

.truck-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.truck-body {
  display: grid;
  gap: 4px;
  padding: 16px 18px 20px;
}

.truck-body h3 {
  font-size: 1.5rem;
}

/* Servicios */
.service-grid {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-content: start;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-card img {
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.service-card p {
  color: var(--muted);
  font-size: .93rem;
}

.callout {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  color: var(--muted-dark);
  background: var(--ink);
}

.callout h3 {
  margin-bottom: 4px;
  color: #fff;
}

/* Opiniones */
.rating-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.rating-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

a.rating-chip:hover {
  border-color: #c9c6be;
}

.rating-chip > svg {
  width: 22px;
  height: 22px;
}

.rating-value {
  font-size: 1.35rem;
  font-weight: 900;
}

.rating-meta {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .9rem;
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 12px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scroll-snap-align: start;
}

.review-card blockquote {
  font-size: .97rem;
}

.review-card figcaption {
  margin-top: auto;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
}

.review-cta {
  margin-top: 20px;
}

/* Empresas */
.benefit-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.benefit-grid li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.benefit-grid svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: none;
  color: var(--orange);
}

.benefit-grid h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.benefit-grid p {
  font-size: .93rem;
}

.audiences {
  margin-bottom: 22px;
}

.audiences strong {
  color: #fff;
}

.b2b-mail {
  margin-top: 16px;
  font-size: .95rem;
}

.b2b-mail a {
  color: #fff;
  font-weight: 700;
}

/* Cobertura */
.coverage-grid {
  display: grid;
  gap: 12px;
}

.coverage-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.coverage-group h3 {
  margin-bottom: 6px;
}

.coverage-group p {
  color: var(--muted);
  font-size: .95rem;
}

.base-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.base-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.base-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--orange-text);
}

.base-list strong {
  color: var(--ink);
}

.base-list span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.base-list a {
  margin-left: auto;
  color: var(--orange-text);
  font-size: .93rem;
  font-weight: 700;
}

/* Preguntas */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  color: var(--ink);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--orange-text);
  font-size: 1.4rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--muted);
}

/* Contacto */
.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-direct .section-header {
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--orange-text);
}

.quote-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quote-card h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.quote-card label {
  margin-top: 6px;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 700;
}

/* 16px evita el zoom automático de iOS al enfocar */
.quote-card select,
.quote-card input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #cfccc4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.quote-card select:focus,
.quote-card input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 98, 1, .2);
}

.quote-card .btn {
  width: 100%;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  color: var(--muted-dark);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer img {
  width: auto;
  height: 36px;
  margin-bottom: 14px;
}

.footer-info {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-info li,
.footer-info a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-info a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-info svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--orange);
}

.footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}

/* Barra fija en celular: aparece cuando los botones del hero salen de pantalla */
.sticky-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -6px 20px rgba(22, 25, 29, .08);
  transition: transform .2s ease;
}

.sticky-bar .btn {
  min-height: 52px;
  font-size: 1.05rem;
}

.js .sticky-bar:not(.is-visible) {
  transform: translateY(110%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticky-bar {
    transition: none;
  }
}

@media (min-width: 560px) {
  .cta-row {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .brand img {
    height: 36px;
  }

  .fleet-grid,
  .coverage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid,
  .benefit-grid,
  .base-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .callout {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 24px 28px;
  }

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

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .sticky-bar {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .brand img {
    height: 40px;
  }

  .header-wa {
    display: inline-flex;
  }

  .btn.header-wa,
  .btn.header-call {
    min-height: 44px;
    padding: 8px 14px;
  }

  .btn.header-call {
    color: #fff;
    background: var(--call);
  }

  .btn.header-call:hover {
    background: var(--call-hover);
  }

  .btn.header-call svg {
    color: currentColor;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
  }

  .hero .cta-stack {
    max-width: 460px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
  }

  .service-card img {
    width: 100%;
    border-radius: 0;
  }

  .service-card > div {
    padding: 4px 18px 20px;
  }

  .review-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }
}

@media (min-width: 1100px) {
  .header-nav {
    display: flex;
    gap: 22px;
  }

  .header-nav a {
    color: var(--text);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
  }

  .header-nav a:hover {
    color: var(--orange-text);
  }
}
