/* Colores tomados del logo */
:root {
  --navy: #17243e;          /* azul exacto del logo */
  --navy-dark: #111a2e;
  --gold: #bf8e29;          /* dorado exacto del logo: fondos, líneas y detalles */
  --gold-light: #d9a845;    /* dorado para texto sobre fondos oscuros */
  --gold-text: #8a6418;     /* dorado para texto sobre fondos claros (contraste AA) */
  --white: #ffffff;
  --gray: #f4f5f7;
  --line: #e3e5ea;
  --text: #2b2f38;
  --text-muted: #555b68;
  --header-h: 84px;

  /* Curvas de animación (skill emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Márgenes laterales que respetan el notch en horizontal (skill mobile-native) */
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--navy) var(--gray);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  caret-color: var(--gold);
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Superficies del navegador con la paleta de la marca */
::selection { background: var(--gold); color: var(--navy-dark); }

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

a { text-underline-offset: 3px; }

.container {
  width: min(1200px, 100% - var(--gutter-l) - var(--gutter-r));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Controles: toque inmediato y sin selección de texto al mantener presionado */
a, button { touch-action: manipulation; }

.nav a, .nav__cta, .cta__button, .header__toggle {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ===== ENCABEZADO ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(17, 26, 46, .06);
  padding-top: env(safe-area-inset-top, 0px);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: relative;
  padding: 6px 0;
}

/* Subrayado: se anima con transform, no con width */
.nav a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
}

/* Botones: respuesta al presionar */
.nav__cta,
.cta__button {
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

.nav__cta:active,
.cta__button:active { transform: scale(0.97); }

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { background: var(--navy-dark); }
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  padding: 9px;
}

.header__toggle span {
  display: block;
  width: 26px; height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

/* Hamburguesa → X al abrir el menú */
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== TÍTULO DE SECCIÓN ===== */
.section-title {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  padding: 80px 0;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 3px solid var(--gold);
}

.section-title > .container { position: relative; z-index: 1; }

/* Fondo rotativo de la portada */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Degradado con el azul del logo encima de las fotos para que el texto se lea siempre */
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 36, 62, .94) 0%, rgba(23, 36, 62, .8) 45%, rgba(23, 36, 62, .3) 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

/* Acercamiento lento mientras la foto está visible */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide {
    transform: scale(1.06);
    transition: opacity 1200ms ease-in-out, transform 7500ms linear;
  }
  .hero-slide.is-active { transform: scale(1); }
}

.section-title h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-bottom: 28px;
}

/* Palabra destacada en el dorado del logo (versión clara, legible sobre la foto) */
/* Línea superior del título: palabras clave de búsqueda (SEO) */
.section-title__kicker {
  display: block;
  font-size: clamp(.8rem, 1.6vw, .95rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.section-title h1 em {
  font-style: normal;
  color: var(--gold-light);
}

/* Trazo dorado bajo el título, como los guiones dorados del logo */
.section-title h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 28px;
  background: var(--gold);
}

.section-title p {
  max-width: 56ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
}

/* Único momento animado de la página: la portada al cargar */
@media (prefers-reduced-motion: no-preference) {
  .section-title h1,
  .section-title p {
    animation: fade-up 700ms var(--ease-out) both;
  }
  .section-title p { animation-delay: 90ms; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ===== APARICIÓN AL HACER SCROLL ===== */
/* Por defecto todo es visible; solo se oculta cuando el JavaScript lo activa (.reveal-on) */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== ENCABEZADO DE SECCIÓN (reutilizable) ===== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2,
.about h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
}

/* ===== RESULTADOS ===== */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--gold-light);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .8);
}

/* ===== SERVICIOS ===== */
.services { padding: 100px 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(17, 26, 46, .08);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--gold);
  transition: transform 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover img { transform: scale(1.03); }
}

.service-card__body {
  position: relative;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.service-card p { font-size: .95rem; }

.service-card__tags {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--gold-text);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Botón "Consultar disponibilidad" */
.service-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--navy);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: color 200ms ease;
}

.service-card__cta [aria-hidden="true"] {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.service-card__cta:active [aria-hidden="true"] { transform: translateX(4px); }

@media (hover: hover) and (pointer: fine) {
  .service-card__cta:hover { color: var(--gold-text); }
  .service-card__cta:hover [aria-hidden="true"] { transform: translateX(4px); }
}

/* Texto solo para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PROCESO ===== */
.process { padding: 100px 0; }

.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process__steps li { position: relative; }

/* Línea que une cada paso con el siguiente */
.process__steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 72px;
  right: -32px;
  height: 2px;
  background: var(--line);
}

.process__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 8px var(--gray);
  color: var(--navy);
  font-weight: 800;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.process__steps li:first-child .process__num {
  border-color: var(--gold);
  color: var(--gold-text);
}

.process__steps h3 {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

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

.process__steps p a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  overflow-wrap: break-word; /* el correo solo se corta después de la @ (ver <wbr> en el HTML) */
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .process__steps p a:hover { color: var(--gold-text); }
}

/* ===== PROPUESTA DE VALOR ===== */
.quote-band {
  background:
    linear-gradient(rgba(17, 26, 46, .88), rgba(17, 26, 46, .88)),
    url('img/camion-pluma-22-tn.jpg') center / cover no-repeat;
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.quote-band blockquote { max-width: 860px; margin-inline: auto; }

.quote-band p {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  margin-bottom: 20px;
}

.quote-band strong { color: var(--gold-light); }

.quote-band cite {
  font-style: normal;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .75);
}

/* ===== NOSOTROS ===== */
.about {
  padding: 100px 0;
  background: var(--gray);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  column-gap: 64px;
  row-gap: 48px;
  align-items: start;
}

.about__text p {
  max-width: 68ch;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__values {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.about__values li {
  font-size: .95rem;
  color: var(--text-muted);
  padding-inline: 28px;
  border-left: 1px solid var(--line);
}

.about__values li:first-child { padding-left: 0; border-left: 0; }

.about__values strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* ===== POR QUÉ ELEGIRNOS ===== */
.why { padding: 100px 0; }

.why__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 40px;
}

.why__grid li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
}

/* Marca dorada corta sobre la línea, como en el logo */
.why__grid li::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 3px;
  background: var(--gold);
}

.why__grid h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* ===== CLIENTES ===== */
.clients {
  padding: 100px 0;
  background: var(--gray);
}

.clients__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.clients__grid li {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
}

/* Los logos tienen proporciones distintas: se limitan por alto y ancho para que pesen parecido */
.clients__grid img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.clients__grid img.is-tall { max-height: 64px; }

/* Carrusel: solo se activa con JavaScript y sin "reducir movimiento" */
.marquee.is-animated {
  display: flex;
  overflow: hidden;
  /* Los bordes se desvanecen para que los logos entren y salgan suavemente */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee.is-animated .marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  padding-right: 20px; /* igual al gap, para que el empalme no se note */
  animation: marquee var(--marquee-duration, 30s) linear infinite;
}

.marquee.is-animated .marquee__group li { flex: 0 0 200px; }

.marquee.is-paused .marquee__group { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .marquee.is-animated:hover .marquee__group { animation-play-state: paused; }
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.marquee__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto 0;
  min-height: 44px;
  padding: 0 16px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 200ms ease;
}

.marquee__toggle[hidden] { display: none; }

.marquee__toggle .icon-play,
.marquee__toggle[aria-pressed="true"] .icon-pause { display: none; }

.marquee__toggle[aria-pressed="true"] .icon-play { display: block; }

@media (hover: hover) and (pointer: fine) {
  .marquee__toggle:hover { color: var(--navy); }
}

/* Sectores: filas con título a la izquierda y descripción a la derecha */
.sectors {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.sectors > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.sectors dt {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
}

.sectors dd {
  max-width: 68ch;
  color: var(--text-muted);
}

/* ===== CONTACTO ===== */
.cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 64px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cta__button {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 16px 36px;
  border-radius: 4px;
}

.cta__button:focus-visible { outline-color: var(--navy-dark); }

@media (hover: hover) and (pointer: fine) {
  .cta__button:hover { background: var(--navy-dark); }
}

/* ===== PIE DE PÁGINA ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .75);
  border-top: 4px solid var(--gold);
  font-size: .92rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 72px 0 56px;
}

.footer__brand img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer__brand p { max-width: 32ch; }

/* Redes sociales */
.footer .footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer .footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.footer .footer__social a:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .footer .footer__social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    text-decoration: none;
  }
}

.footer__title {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--gold-light); text-decoration: underline; }
}

.footer__contact span {
  display: block;
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  font-size: .8rem;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px) + 12px);
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 90;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1da851; /* verde WhatsApp con contraste 3:1 para el ícono blanco */
  color: var(--white);
  box-shadow: 0 6px 18px rgba(17, 26, 46, .25), 0 2px 4px rgba(17, 26, 46, .15);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}

.whatsapp:active { transform: scale(0.94); }

.whatsapp:focus-visible { outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .whatsapp:hover {
    background: #189d4a;
    box-shadow: 0 10px 24px rgba(17, 26, 46, .3), 0 3px 6px rgba(17, 26, 46, .15);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  :root { --header-h: 70px; }

  .header__logo img { height: 40px; }

  .header__toggle { display: block; }

  /* Menú móvil: se revela con clip-path (no anima la altura) */
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 24px rgba(17, 26, 46, .12);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    transition:
      clip-path 150ms ease-out,
      opacity 150ms ease-out,
      visibility 0s linear 150ms;
  }

  .nav.is-open {
    clip-path: inset(0 0 -40px 0);
    opacity: 1;
    visibility: visible;
    transition:
      clip-path 250ms var(--ease-out),
      opacity 200ms var(--ease-out),
      visibility 0s;
  }

  .nav a { width: 100%; text-align: center; padding: 16px; }

  .nav a:not(.nav__cta):active { background: var(--gray); }

  .nav a:not(.nav__cta)::after { display: none; }

  .nav__cta { border-radius: 0; }

  .about, .services, .clients, .why { padding: 64px 0; }

  .section-head { margin-bottom: 36px; }

  .services__grid { grid-template-columns: 1fr; }

  .clients__grid { grid-template-columns: repeat(2, 1fr); }

  .marquee:not(.is-animated) .clients__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .marquee.is-animated .marquee__group { gap: 14px; padding-right: 14px; }

  .marquee.is-animated .marquee__group li { flex-basis: 150px; height: 90px; padding: 16px; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }

  .about__inner { grid-template-columns: 1fr; row-gap: 28px; }

  .about__values { grid-template-columns: 1fr; row-gap: 20px; padding-top: 24px; }

  .about__values li { padding-inline: 0; border-left: 0; }

  .why__grid { grid-template-columns: 1fr; row-gap: 28px; }

  .sectors > div { grid-template-columns: 1fr; gap: 6px; }

  .quote-band { padding: 64px 0; }

  .cta__inner { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr 1fr; padding: 56px 0 40px; }

  .footer__brand { grid-column: 1 / -1; }

  .footer__brand img { height: 44px; }

  .whatsapp { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right, 0px) + 8px); bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px); }

  /* Espacio para que el botón flotante no tape el copyright */
  .footer__bottom { padding-bottom: 88px; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) and (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Proceso en vertical: número a la izquierda, línea que baja hasta el siguiente paso */
@media (max-width: 860px) {
  .process { padding: 64px 0; }

  .process__steps { grid-template-columns: 1fr; gap: 32px; }

  .process__steps li { padding-left: 80px; min-height: 56px; }

  .process__num { position: absolute; left: 0; top: 0; margin: 0; }

  .process__steps li:not(:last-child)::before {
    top: 72px;
    bottom: -24px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

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