/* =========================================================
   Grúas Nogales — Estilos
   Mobile-first · Paleta: azul oscuro / blanco / gris
   ========================================================= */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-600: #1b4079;
  --blue-500: #1d4ed8;
  --blue-400: #2563eb;
  --blue-100: #dbeafe;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --green-600: #16a34a;
  --green-700: #15803d;
  --wa-green:  #25d366;
  --wa-dark:   #1ebe5d;
  --amber-400: #fbbf24;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, .06), 0 1px 3px rgba(7, 26, 51, .08);
  --shadow-md: 0 6px 20px rgba(7, 26, 51, .10);
  --shadow-lg: 0 18px 48px rgba(7, 26, 51, .16);

  --container: 1140px;
  --gutter: 20px;
  --header-h: 64px;
  --assist-bar-h: 180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--assist-bar-h) + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .75; cursor: progress; }

.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(29, 78, 216, .35);
}
.btn--primary:hover { background: var(--blue-400); }

.btn--outline-light {
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }

.btn--whatsapp {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 163, 74, .30);
}
.btn--whatsapp:hover { background: var(--green-700); }

.btn--call {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 37, 69, .30);
}
.btn--call:hover { background: var(--navy-700); }

.btn__emoji { font-size: 1.25rem; line-height: 1; }
.btn__label { text-transform: uppercase; letter-spacing: .03em; font-size: .88rem; white-space: nowrap; }

/* ---------- Indicador ---------- */
.pulse-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-800);
}
.brand__name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__name strong { font-weight: 800; }
.brand__name--light { color: var(--white); font-size: 1.3rem; }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
}
.header__call svg { width: 22px; height: 22px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav móvil: panel desplegable */
.nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 12px var(--gutter) 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.nav.is-open { display: flex; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue-500); }
.nav__cta { margin-top: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy-800);
  overflow: hidden;
  padding-block: 72px 36px;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Respaldo si la foto no carga */
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(37, 99, 235, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
/* Overlay: oscurece la foto y refuerza el lado izquierdo, donde va el texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .94) 0%, rgba(7, 26, 51, .82) 45%, rgba(7, 26, 51, .55) 100%),
    linear-gradient(180deg, rgba(7, 26, 51, .35) 0%, rgba(7, 26, 51, 0) 40%, rgba(7, 26, 51, .75) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 32px;
}
.hero__content { max-width: 36rem; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(1.15rem, 3.8vw, 1.6rem);
  font-weight: 600;
  color: #dbe7f7;
  line-height: 1.35;
}
.hero__highlight {
  margin-top: 18px;
  font-size: 1.05rem;
  color: #c3d3e8;
  max-width: 34rem;
}
.hero__highlight strong { color: var(--amber-400); font-weight: 800; }

.hero__badges {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.hero__badges li {
  background: rgba(7, 26, 51, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__badges strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.hero__badges span { font-size: .82rem; color: #b8c8de; }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section { padding-block: 64px; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.section__lead {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { background: var(--gray-50); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7d7f2; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-500);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.15rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.card__text { color: var(--gray-600); font-size: .98rem; }
.card--featured {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-color: var(--navy-700);
  color: var(--white);
}
.card--featured .card__icon { background: rgba(255,255,255,.12); color: var(--amber-400); }
.card--featured .card__title { color: var(--white); }
.card--featured .card__text { color: #c3d3e8; }
.card__badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber-400);
  color: var(--navy-900);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-500));
  color: var(--white);
  padding-block: 48px;
}
.cta-band__inner { display: grid; gap: 24px; }
.cta-band__title { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.cta-band__text { margin-top: 10px; color: #dbe7f7; max-width: 36rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about__inner { display: grid; gap: 40px; }
.about__content p + p { margin-top: 14px; }
.about__content > p { color: var(--gray-700); }
.about__content .section__title { margin-bottom: 18px; }
.about__list { margin-top: 28px; display: grid; gap: 16px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; }
.about__check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-500);
  font-weight: 800;
  font-size: .95rem;
}
.about__list h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-800); }
.about__list p { color: var(--gray-600); font-size: .95rem; margin-top: 2px; }

.coverage {
  margin-top: 40px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.coverage__groups { margin-top: 6px; }
.coverage__title { font-size: 1.25rem; font-weight: 800; }
.coverage__text { margin-top: 8px; color: #b8c8de; font-size: .95rem; }
.coverage__group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.coverage__region {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.coverage__group > .coverage__list:first-child { margin-top: 0; }
.coverage__list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.coverage__list li {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .84rem;
  font-weight: 600;
}
.coverage__group--base .coverage__list li {
  background: rgba(37, 99, 235, .28);
  border-color: rgba(147, 197, 253, .35);
}
.coverage__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: .9rem;
  color: #b8c8de;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--gray-50); }
.contact__grid { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy-800); }
.contact-card__value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--gray-900); }
.contact-card__hint { color: var(--gray-600); font-size: .93rem; }
.contact-card__link {
  color: var(--blue-500);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-card .btn { margin-top: 8px; }

.contact-card--call { transition: transform .2s ease, box-shadow .2s ease; }
.contact-card--call:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card--call .contact-card__icon { background: var(--blue-100); color: var(--blue-500); }
.contact-card--whatsapp .contact-card__icon { background: #dcfce7; color: var(--green-600); }
.contact-card--info .contact-card__icon { background: var(--gray-100); color: var(--navy-700); }

.contact__privacy {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--gray-600);
  max-width: 640px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-900);
  color: #b8c8de;
  font-size: .93rem;
}
.footer__inner { display: grid; gap: 28px; padding-block: 44px 28px; }
.footer__brand p { margin-top: 10px; max-width: 34rem; }
.footer__nav, .footer__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a, .footer__contact a { color: var(--white); font-weight: 600; }
.footer__nav a:hover, .footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 16px var(--gutter);
  text-align: center;
  font-size: .85rem;
}

/* =========================================================
   FORMULARIO DE PRESUPUESTO
   ========================================================= */
.contact-card--quote .contact-card__icon { background: #fef3c7; color: #b45309; }
.contact-card--quote .btn { margin-top: auto; }

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn--ghost:hover { background: var(--gray-100); }

.quote {
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote::backdrop { background: rgba(7, 26, 51, .6); }
/* Respaldo para navegadores sin soporte de <dialog> */
.quote.is-fallback {
  display: none;
  position: fixed;
  z-index: 400;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.quote.is-fallback[open] { display: block; }

.quote__panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.quote__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  background: var(--navy-800);
  color: var(--white);
}
.quote__kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b8c8de;
}
.quote__title { margin-top: 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.quote__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.quote__close:hover { background: rgba(255,255,255,.22); }
.quote__close svg { width: 18px; height: 18px; }

.quote__form {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.quote__intro { font-size: .92rem; color: var(--gray-600); margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.field label span { font-weight: 500; color: var(--gray-400); }
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px; /* evita el zoom automático en iOS */
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234b5563' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px;
  padding-right: 38px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #dc2626; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; gap: 14px; }

.field__hint { font-size: .78rem; color: var(--gray-400); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: #b91c1c;
}
.field__error::before {
  content: "!";
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}
.field--ok input,
.field--ok select { border-color: #86efac; }

/* Autocompletado de lugares */
.field--place { position: relative; }
.places {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 5;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.places li {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
}
.places li:last-child { border-bottom: 0; }
.places li:hover,
.places li[aria-selected="true"] { background: var(--blue-100); }
.places strong { display: block; font-size: .92rem; font-weight: 600; color: var(--gray-900); }
.places span { display: block; font-size: .8rem; color: var(--gray-600); }
.places .places__estado { color: var(--gray-400); font-size: .85rem; cursor: default; }

.quote__feedback {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
}
.quote__feedback--error { background: #fee2e2; color: #991b1b; }
.quote__feedback--success { background: #dcfce7; color: #166534; }

.quote__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.quote__legal { margin-top: 14px; font-size: .8rem; color: var(--gray-400); text-align: center; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote__head { padding: 24px 24px 20px; }
  .quote__form { padding: 24px; }
  .quote__actions { flex-direction: row-reverse; }
  .quote__actions .btn { width: auto; flex: 1; }
}

/* =========================================================
   BARRA DE ASISTENCIA MÓVIL
   ========================================================= */
.assist-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(7, 26, 51, .22), 0 -2px 8px rgba(7, 26, 51, .10);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(0);
  transition: transform .3s ease;
}
.assist-bar__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.assist-bar .btn--block { min-height: 52px; padding-inline: 12px; gap: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--assist-bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--white);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.toast--error { background: #b91c1c; }
.toast--success { background: var(--green-700); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 480px) {
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__badges { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; }

  /* La barra de asistencia solo existe en móvil */
  .assist-bar { display: none; }
  body { padding-bottom: 0; }
  .toast { bottom: 24px; }

  .nav-toggle, .header__call { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav__list { flex-direction: row; gap: 26px; }
  .nav__link { padding: 6px 0; border: 0; font-size: .95rem; position: relative; }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--blue-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta { margin: 0; min-height: 44px; padding: 10px 20px; }

  .section { padding-block: 88px; }
  .hero { padding-block: 120px 56px; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(7, 26, 51, .95) 0%, rgba(7, 26, 51, .88) 38%, rgba(7, 26, 51, .58) 60%, rgba(7, 26, 51, .22) 100%),
      linear-gradient(180deg, rgba(7, 26, 51, .25) 0%, rgba(7, 26, 51, 0) 40%, rgba(7, 26, 51, .70) 100%);
  }

  .cta-band__inner { grid-template-columns: 1.2fr auto; align-items: center; }
  .cta-band__actions { justify-content: flex-end; }

  .about__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .about__list { margin-top: 8px; }
  .coverage { margin-top: 56px; padding: 32px; }
  .coverage__text { max-width: 46rem; }
  .coverage__groups { margin-top: 10px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__nav, .footer__contact { flex-direction: column; gap: 10px; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .contact__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .hero__title { font-size: 4.75rem; }
}
