/* =========================================================
   CQM · Nosotros, contacto y pie
   Vocabulario: acero bajo carga (eje wdth),
   líneas de cota y marcas de medición.
   ========================================================= */

.cl-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------
   NOSOTROS · C Q M: carretes de palabras + puente + ISO
   --------------------------------------------------------- */
.ab {
  position: relative; color: var(--zinc-50);
  padding: calc(var(--header-h) + clamp(20px, 4vh, 48px)) 0 clamp(20px, 3.5vh, 40px);
  background: linear-gradient(180deg, var(--navy) 0%, var(--night) 100%);
}
.ab-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px clamp(40px, 5vw, 88px); align-items: end; }

/* Controles bajo el carrete: pausa (o siguiente, sin movimiento) y la frase completa */
.ab-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; min-height: 32px; margin-top: clamp(10px, 1.6vh, 16px); }
.ab-pause {
  display: none; height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 500 .875rem/1 var(--font-text); color: var(--zinc-400);
}
.ab-pause::before {
  content: ""; display: inline-block; width: 7px; height: 9px; margin-right: 8px; vertical-align: -1px; box-sizing: border-box;
  border-left: 2px solid currentColor; border-right: 2px solid currentColor;
}
.ab-pause.is-paused::before { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ab.is-live .ab-pause { display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .ab-pause:hover { color: var(--zinc-50); } }

/* C · Q · M: cada sufijo se despliega desde su inicial. Misma familia, mismo ancho
   en reposo y pesos cercanos; la inicial en hi-vis, el sufijo en papel. El eje wdth
   es la firma del movimiento (sin brillo desenfocado). */
.ab-reel { font-family: var(--font-display); font-size: var(--ab-fs, clamp(3rem, 1.2rem + 5.4vw, 6.2rem)); line-height: 1.02; letter-spacing: -.022em; }
.ab-row { display: flex; align-items: baseline; white-space: nowrap; }
.ab-ini { position: relative; z-index: 1; color: var(--hivis); font-variation-settings: "wdth" 100, "wght" 700; }
.ab-suf { display: inline-flex; color: var(--zinc-50); font-variation-settings: "wdth" 100, "wght" 560; clip-path: inset(-30% -60% -30% 0); }
.ab-l { display: inline-block; }
.ab.is-live .ab-reel { cursor: default; touch-action: manipulation; }
.ab-label { margin: 0; font-family: var(--font-display); font-stretch: 100%; font-weight: 560; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); color: var(--zinc-200); }
.ab-label span { position: relative; display: inline-block; padding-bottom: 5px; }
.ab-label span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hivis); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.ab.is-live .ab-label { opacity: 0; transition: opacity .2s ease; }
.ab.is-live .ab-label.is-on { opacity: 1; }
.ab.is-live .ab-label.is-on span::after { transform: scaleX(1); transition-delay: .06s; }
.ab-next {
  display: none; height: 30px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font: 500 .82rem/1 var(--font-text); color: var(--zinc-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241, 244, 246, .3);
}
.ab.is-manual .ab-next { display: inline-flex; align-items: center; }
.ab.is-manual .ab-label span::after { transform: scaleX(1); }
.ab-pause:focus-visible, .ab-next:focus-visible { outline: 2px solid var(--hivis); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ab-next:hover { color: var(--zinc-50); } }

/* Frases como texto: visibles en reduced motion / sin JS, ocultas a la vista en vivo */
.ab-phrases { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--zinc-400); }
.ab.is-live .ab-phrases, .ab.is-manual .ab-phrases {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.ab-title {
  margin: 0 0 .7em; max-width: 20ch;
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.05rem + 1.5vw, 2.6rem);
  font-weight: 620; font-stretch: 104%; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance;
}
.ab-copy p { max-width: 54ch; margin: 0 0 .9em; font-size: clamp(.98rem, .95rem + .12vw, 1.05rem); line-height: 1.62; color: var(--zinc-300); }
.ab-copy p:last-child { margin-bottom: 0; }

/* Base: puente binacional + sello ISO.
   El arco es el puente; las dos empresas son sus pilas. Un paquete lo cruza de ida y vuelta;
   al llegar, el nombre de destino corre una onda de ancho y su lugar gira país ⇄ ciudad. */
.ab-base {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px clamp(40px, 5vw, 88px); align-items: end;
  margin-top: clamp(28px, 5vh, 60px);
}
.ab-bridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "arc arc" "co us"; gap: 6px 24px; }
.ab-arc { grid-area: arc; display: block; width: 100%; height: clamp(64px, 8vh, 92px); }
.ab-ent { display: grid; gap: 1px; }
.ab-ent-co { grid-area: co; }
.ab-ent-us { grid-area: us; text-align: right; justify-items: end; }
.ab-ent b {
  font-family: var(--font-display); font-weight: normal; font-variation-settings: "wdth" 100, "wght" 620;
  font-size: clamp(1.05rem, .85rem + .5vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; color: #fff;
}
.ab-nw { display: inline-block; white-space: nowrap; }
.ab-nl { display: inline-block; }
.ab-place { display: block; height: 1.45em; overflow: hidden; font-size: .92rem; line-height: 1.45; color: var(--zinc-400); }
.ab-pl { display: grid; transition: transform .55s var(--ease-out); }
.ab-place.is-city .ab-pl { transform: translateY(-1.45em); }
.ab-iso { display: flex; align-items: center; gap: 18px; }
.ab-iso img { flex: none; width: 88px; height: auto; }
.ab-iso p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--zinc-300); max-width: 42ch; }
.ab-iso b { display: block; font-family: var(--font-display); font-weight: 640; font-stretch: 108%; font-size: 1.05rem; color: #fff; }

@media (max-width: 1100px) {
  .ab-base { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ab-top { grid-template-columns: 1fr; }
  .ab-title { max-width: 22ch; }
}
@media (max-width: 560px) {
  .ab { padding: calc(var(--header-h) + 24px) 0 56px; }
  .ab-bridge { gap: 4px 14px; }
  .ab-arc { height: 64px; }
  .ab-iso img { width: 72px; }
}

/* ---------------------------------------------------------
   PIE
   --------------------------------------------------------- */
.ft { background: var(--night); border-top: 1px solid var(--hair); padding: 26px 0 calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--zinc-300); }
.ft-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 48px; }
.ft-logo { display: block; line-height: 0; }
.ft-logo img { height: 52px; width: auto; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.ft-nav a { color: var(--zinc-300); text-decoration: none; font-size: .95rem; line-height: 2; transition: color .2s ease; }
.ft-legal { text-align: right; font-size: .875rem; line-height: 1.55; color: var(--zinc-400); }
.ft-legal p { margin: 0; }
.ft-slogan { color: var(--zinc-200); }
.ft-legal .ft-pol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; margin-top: 8px; }
.ft-pol a { color: var(--zinc-300); text-decoration: underline; text-decoration-color: rgba(241, 244, 246, .3); text-underline-offset: 3px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .ft-pol a:hover { color: #fff; text-decoration-color: var(--hivis); } }
@media (hover: hover) and (pointer: fine) { .ft-nav a:hover { color: #fff; } }
@media (pointer: coarse) { .ft-nav a, .ft-pol a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (max-width: 860px) {
  .ft-grid { grid-template-columns: auto 1fr; justify-items: start; gap: 18px 24px; }
  .ft-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 2px 22px; }
  .ft-legal { grid-column: 2; grid-row: 1; justify-self: end; }
  .ft-pol { justify-content: flex-end; }
  .ft-logo img { height: 46px; }
}

/* ---------------------------------------------------------
   Reduced motion: todo estático y presente
   --------------------------------------------------------- */

