/* =========================================================
   Mudanzas Avalos — One-page
   Brand: navy #122756 · red #d12d2b · cream #ece6d5
   ========================================================= */

:root {
  --navy: #122756;
  --navy-2: #0d1c40;
  --navy-ink: #0a1530;
  --red: #d12d2b;
  --red-2: #b3201e;
  --cream: #efeada;
  --cream-2: #f7f3e8;
  --ink: #111827;
  --muted: #5b6477;
  --line: #e5e7eb;
  --wa: #25d366;
  --wa-2: #128c7e;
  --bg: #ffffff;
  --shadow: 0 10px 40px -15px rgba(10, 21, 48, .25);
  --shadow-lg: 0 30px 80px -25px rgba(10, 21, 48, .35);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --serif: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

.container { width: min(100%, var(--maxw)); margin: 0 auto; padding: 0 20px; }

.visually-hidden,
.skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 9999; }

.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow.light { color: rgba(255,255,255,.78); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.1vw, 3.2rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink); }

.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); }

.accent { color: var(--red); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  border: 0;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #ffcf6a; outline-offset: 3px; }

.btn-lg { padding: 16px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .55);
}
.btn-wa:hover { background: var(--wa-2); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(17,24,39,.06);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 30px -20px rgba(10,21,48,.25); }

.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 10px 20px; min-height: 68px;
}
.brand img { height: 48px; width: auto; }

.nav {
  display: flex; gap: 26px;
  font-weight: 500; font-size: .95rem;
}
.nav a { color: #27314a; position: relative; }
.nav a:hover { color: var(--red); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.phone-link {
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 700; color: var(--navy);
  font-size: .92rem;
}
.phone-link:hover { color: var(--red); }

.burger {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: 8px;
}
.burger span {
  display: block; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  padding: 10px 20px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
  flex-direction: column; gap: 6px;
}
.mobile-nav a { padding: 12px 8px; border-radius: 8px; font-weight: 600; }
.mobile-nav a:hover { background: var(--cream-2); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }
.mobile-nav[data-open="true"] { display: flex; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0b173a 0%, #142757 55%, #182f66 100%);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 85% 20%, rgba(209,45,43,.22), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(255,255,255,.06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='.06'/></svg>");
  background-size: auto, auto, 6px 6px;
}

.hero-grid {
  display: grid; gap: 24px; align-items: end;
  grid-template-columns: 0.9fr 1.1fr;
}
.hero-copy { align-self: center; padding: 24px 0; }

.hero-copy .eyebrow { color: rgba(255,255,255,.78); letter-spacing: .18em; font-size: .78rem; }
.hero-copy h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-copy h1 .accent {
  background: linear-gradient(100deg, #ff4d4a 0%, #d12d2b 60%, #b3201e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(209,45,43,.35));
}
.hero-copy .lead {
  color: rgba(255,255,255,.92);
  font-size: 1.14rem; max-width: 58ch;
  font-weight: 500;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }

.hero-trust {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.hero-trust li {
  position: relative; padding-left: 24px;
  color: rgba(255,255,255,.82); font-size: .95rem;
}
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(209,45,43,.2);
}
.hero-trust strong { color: #fff; }

.hero-art {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -1px; /* avoid 1px gap at bottom */
}
.hero-art img {
  width: 115%; max-width: 960px; display: block;
  margin-right: -6%; /* slight bleed to the right so image feels bigger */
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
.hero-badge {
  position: absolute; bottom: 24px; left: 0;
  background: #fff; color: var(--navy-ink);
  padding: 10px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600;
  z-index: 2;
}
.hero-badge .rating { color: #f6b619; letter-spacing: 2px; }

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  background: var(--cream-2);
  border-bottom: 1px solid rgba(17,24,39,.05);
  padding: 22px 0;
}
.trust-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; gap: 12px; align-items: center;
}
.trust-item svg { width: 32px; height: 32px; color: var(--red); flex-shrink: 0; }
.trust-item strong { display: block; font-family: var(--serif); color: var(--navy-ink); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .87rem; }

/* =========================================================
   Servicios
   ========================================================= */
.servicios { padding: 80px 0; }

.service-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.service-card.featured {
  border: 2px solid var(--red);
  box-shadow: 0 20px 60px -30px rgba(209,45,43,.45);
}

.service-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f3eddc 0%, #ece6d5 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.service-img img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 18px rgba(10,21,48,.18));
}
.service-card:not(.featured) .service-img img[src*="fleet-"],
.service-card .service-img img[src*="fleet-"] {
  object-fit: cover; object-position: center; filter: none;
  /* bleed past the 10px padding so the photo fills the rounded card edge-to-edge */
  width: calc(100% + 20px); height: calc(100% + 20px);
  margin: -10px;
  transform: scale(1.12);
  transform-origin: center;
}

/* per-image alignment overrides */
.service-img img[src*="cutout-mudanzas-avalos-976"] {
  object-position: center bottom;
  /* extend past bottom padding so subject feet touch the card edge */
  height: calc(100% + 10px);
  margin-bottom: -10px;
  transform: scale(1.22);
  transform-origin: center bottom;
}
.service-img img[src*="cutout-unnamed-1"] {
  object-position: left bottom;
  height: calc(100% + 10px);
  margin-bottom: -10px;
  transform: translateX(-6%) scale(1.15);
  transform-origin: left bottom;
}

.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { color: var(--navy-ink); }
.service-body p  { color: var(--muted); }
.service-body ul {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.service-body li {
  position: relative; padding-left: 24px;
  font-size: .93rem; color: #1f2937;
}
.service-body li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 900;
}
.service-body .btn { align-self: flex-start; margin-top: auto; }

.chip {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 10px;
}

/* =========================================================
   Proceso
   ========================================================= */
.proceso {
  padding: 80px 0;
  background: var(--cream-2);
  position: relative;
}

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  background: #fff;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--line);
}
.step-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2.4rem; font-weight: 900;
  color: var(--red); line-height: 1;
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* =========================================================
   Flota
   ========================================================= */
.flota { padding: 80px 0; }

.flota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.flota-main { grid-column: span 2; grid-row: span 2; }
.flota figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}
.flota figure img {
  width: 100%; height: 100%; min-height: 180px;
  object-fit: cover;
  transition: transform .5s ease;
}
.flota figure:hover img { transform: scale(1.03); }
.flota-main figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  font-weight: 600;
}

/* =========================================================
   Zona
   ========================================================= */
.zona {
  padding: 80px 0;
  color: #fff;
  background:
    linear-gradient(180deg, #0f2150 0%, #1a3478 100%);
  position: relative;
  overflow: hidden;
}
.zona::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(209,45,43,.28), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(255,207,106,.12), transparent 60%);
  pointer-events: none;
}
.zona-grid {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.zona h2 { color: #fff; }
.zona p  { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.zona .btn-outline { color: #fff; border-color: #fff; }
.zona .btn-outline:hover { background: #fff; color: var(--navy); }
.zona-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* =========================================================
   Cotizar / form
   ========================================================= */
.cotizar { padding: 80px 0; background: var(--cream-2); }

.cotizar-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.cotizar-intro p { color: var(--muted); }

.direct-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.direct-contact a {
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line);
  color: var(--ink); transition: border-color .2s, transform .12s;
}
.direct-contact a:hover { border-color: var(--red); transform: translateX(4px); color: var(--ink); }
.direct-contact svg { color: var(--red); flex-shrink: 0; }
.direct-contact strong { display: block; font-family: var(--serif); color: var(--navy-ink); }
.direct-contact span   { color: var(--muted); font-size: .92rem; }

.lead-form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-ink); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18,39,86,.14);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-note a { color: var(--navy); text-decoration: underline; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 80px 0; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.faq details summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  font-family: var(--serif); font-weight: 700; color: var(--navy-ink);
  font-size: 1.05rem;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: "+";
  font-family: var(--serif);
  color: var(--red); font-size: 1.6rem; font-weight: 700;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,.8);
  padding: 56px 0 20px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-brand img { height: auto; width: 180px; background: #fff; padding: 8px 14px; border-radius: 12px; }
.footer-brand p { color: rgba(255,255,255,.72); max-width: 42ch; margin-top: 14px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 30px -12px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.4);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { background: var(--wa-2); color: #fff; transform: scale(1.06); }

@keyframes pulse {
  0%   { box-shadow: 0 16px 30px -12px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 16px 30px -12px rgba(37,211,102,.6), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 16px 30px -12px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   Reveal on scroll (progressive enhancement — visible by default)
   Only apply hidden state when JS has flagged html.js-enhanced
   ========================================================= */
html.js-enhanced .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js-enhanced .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-enhanced .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flota-main { grid-column: span 3; grid-row: span 1; }
  .flota-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav, .header-cta .phone-link { display: none; }
  .burger { display: inline-flex; }
  .header-cta .btn-wa span { display: none; }
  .header-cta .btn-wa { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .hero { padding: 48px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; min-height: unset; align-items: stretch; }
  .hero-copy { align-self: stretch; padding-bottom: 24px; order: 2; }
  .hero-art { order: 1; max-width: 560px; margin: 0 auto; align-self: end; margin-bottom: -1px; }
  .hero-art img { max-width: 100%; }
  .hero-badge { bottom: 14px; left: 50%; transform: translateX(-50%); }
  .hero-trust { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .flota-grid { grid-template-columns: repeat(2, 1fr); }
  .zona-grid { grid-template-columns: 1fr; }
  .cotizar-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .flota-grid { grid-template-columns: 1fr; }
  .flota-main { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { justify-content: center; text-align: center; }
  .btn-lg { padding: 14px 20px; font-size: .98rem; }
}
/* =========================================================
   MUDANZAS AVALOS — PATCH MOBILE QA (2026-04-21)
   Este bloque se AÑADE al final de styles.css.
   NO modifica ninguna regla existente. Solo aplica en mobile.
   ========================================================= */

/* --------- 1. Hover states solo para dispositivos con puntero real
              Evita que las tarjetas se queden "elevadas" en touch. --------- */
@media (hover: none) {
  .service-card:hover,
  .direct-contact a:hover,
  .flota figure:hover img {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--line);
  }
  .btn:hover { transform: none; }
  .wa-float:hover { transform: none; }
}

/* --------- 2. Mobile ≤ 880px ajustes tap target + layout --------- */
@media (max-width: 880px) {
  /* scroll anchor al header real de mobile (~58px) */
  html { scroll-padding-top: 64px; }
  section[id] { scroll-margin-top: 64px; }

  /* botón WhatsApp del header: subir a 44×44 */
  .header-cta .btn-wa { width: 44px; height: 44px; }

  /* botones de las tarjetas de servicio: asegurar 44px alto */
  .service-body .btn { padding: 14px 20px; }

  /* chip "Más solicitado" legible */
  .service-card .chip { font-size: .78rem; padding: 6px 11px; }

  /* imagen del camión fleet-* sin overscale agresivo en mobile */
  .service-card .service-img img[src*="fleet-"] {
    transform: scale(1.02);
  }

  /* FAQ summary con más aire vertical + tap target */
  .faq details summary {
    padding: 6px 0;
    min-height: 44px;
  }

  /* Footer contact links con mayor área de toque */
  .footer-col a {
    display: inline-block;
    padding: 8px 0;
    min-height: 44px;
    line-height: 28px;
  }

  /* Form note link "correo" con área tap mayor */
  .form-note a {
    display: inline-block;
    padding: 4px 6px;
    margin: -4px -6px;
  }

  /* Floating WhatsApp: más chico + un poco más alto para no tapar inputs */
  .wa-float {
    width: 52px; height: 52px;
    right: 14px; bottom: 14px;
  }
  .wa-float svg { width: 28px; height: 28px; }
}

/* --------- 3. Teléfono pequeño ≤ 560px ajustes finos --------- */
@media (max-width: 560px) {
  /* Botones CTA grandes del hero y zona: full width para mejor tap */
  .hero .cta-row .btn,
  .zona .cta-row .btn { width: 100%; justify-content: center; }

  /* Contact cards del formulario: padding y mínimo 44px */
  .direct-contact a { padding: 16px 18px; min-height: 64px; }

  /* WA float aún más discreto en pantallas chicas + alejado del bottom
     para no tapar el CTA principal del form */
  .wa-float {
    width: 48px; height: 48px;
    right: 12px; bottom: 84px;
  }
  .wa-float svg { width: 26px; height: 26px; }

  /* Reducir intensidad del pulse: de infinite a pausa natural */
  @media (prefers-reduced-motion: no-preference) {
    .wa-float { animation: pulse 2.4s ease-out 3; }
  }

  /* Hero badge: que no se pegue al borde izquierdo del cutout */
  .hero-badge { font-size: .82rem; padding: 8px 12px; }

  /* Header logo: evitar que se coma todo el ancho vs burger+WA */
  .brand img { height: 42px; }
}

/* --------- 4. Horizontal overflow safety net ---------
   Evita el micro-scroll de 2px reportado por Lighthouse.
   Solo afecta mobile. --------- */
@media (max-width: 880px) {
  html, body { overflow-x: hidden; }
}

/* =========================================================
   PATCH v2 (2026-04-21) — hero badge + flota compactos en mobile.
   Solo toca @media mobile. Desktop no cambia.
   ========================================================= */

/* --------- Hero badge: estrellas en una línea --------- */
@media (max-width: 880px) {
  .hero-badge .rating { white-space: nowrap; }
}

/* --------- Small phones ≤560px: badge fuera de la imagen, más discreto --------- */
@media (max-width: 560px) {
  .hero-badge {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 10px auto 0;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    font-size: .82rem;
    box-shadow: var(--shadow);
  }
  .hero-badge .rating {
    letter-spacing: 1px;
    font-size: .9rem;
  }

  /* Hero un poco más compacto arriba */
  .hero { padding-top: 28px; }

  /* Eyebrow con line-height más apretado para que no wrappee feo */
  .hero-copy .eyebrow { letter-spacing: .14em; line-height: 1.3; }
}

/* --------- Phones muy pequeños ≤420px: h1 y lead más humanos --------- */
@media (max-width: 420px) {
  .hero-copy h1 { font-size: 1.72rem; line-height: 1.08; }
  .hero-copy .lead { font-size: 1rem; }
}

/* --------- Flota: mostrar solo 3 imágenes en celular --------- */
@media (max-width: 560px) {
  .flota-grid > figure:nth-child(n+4) { display: none; }
}

/* =========================================================
   PATCH v3 (2026-04-21) — fix hero-art layout en mobile ≤560.
   Solo toca @media (max-width: 560px). Desktop no cambia.
   ========================================================= */

@media (max-width: 560px) {
  /* hero-art: column stack para que imagen y badge no compitan por ancho */
  .hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-art img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;   /* anula el margin-right:-6% de base */
  }
  .hero-badge {
    margin-top: -14px;   /* pequeño solape visual con la foto */
    align-self: center;
  }
}

/* =========================================================
   PATCH v4 (2026-04-21) — mobile navbar minimal + logo centrado.
   Solo @media (max-width: 880px). Desktop intacto.
   (El botón de WhatsApp sigue disponible como .wa-float flotante
    y dentro del menú burger — no se pierde el CTA.)
   ========================================================= */

@media (max-width: 880px) {
  /* Fuera el CTA del header en mobile: WhatsApp queda en el float + menú */
  .header-cta { display: none; }

  /* Grid de 3 columnas: spacer-izq | logo centrado | burger derecha */
  .header-wrap {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
  }
  .brand    { grid-column: 2; justify-self: center; }
  .burger   { grid-column: 3; justify-self: end; }
}
