/* ══════════════════════════════════════════════════════════════
   NOSOTROS + CLIENTES — clases ab-*  ·  se carga en nosotros.html / en/nosotros.html
   Y en clientes.html / en/clientes.html (comparten hero, cabeceras, reveal
   y el carrusel de logos — ver sección 5).
   Lenguaje visual alineado con POLYKRAN (pk2-*) e Inicio (hm-*):
   títulos planos, filas editoriales en vez de tablas o grillas de tarjetas,
   ritmo de fondos navy / blanco / #F5F8FC.
   ══════════════════════════════════════════════════════════════ */

/* ── reveal genérico ── */
.ab-rise {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.ab-rise.in { opacity: 1; transform: none; }
.ab-rise.d1 { transition-delay: .08s; }
.ab-rise.d2 { transition-delay: .16s; }
.ab-rise.d3 { transition-delay: .24s; }

/* ── cabeceras de sección (mismo escalón que hm-head / pk2-head) ── */
.ab-head { max-width: 700px; margin-bottom: 40px; }
.ab-head .section-tag { display: block; font-size: 25px; letter-spacing: 2.5px; margin-bottom: 14px; }
.ab-head .section-title { font-size: 20px; line-height: 1.18; margin-bottom: 12px; }
.ab-head .section-subtitle { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 660px; }
.ab-head.on-dark .section-tag { color: rgba(255,255,255,.58); }
.ab-head.on-dark .section-title { color: #fff; }
.ab-head.on-dark .section-subtitle { color: rgba(255,255,255,.72); }

/* ── etiqueta editorial reutilizable (label de fila) ── */
.ab-k {
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-mid);
}

/* ════════ 1 · HERO ════════ */
.ab-hero {
  position: relative; overflow: hidden;
  padding: 148px 0 0; background: var(--blue-dark); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ab-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 58% at 84% 22%, rgba(70,140,235,.34), transparent 70%),
    radial-gradient(42% 46% at 4% 96%, rgba(20,70,150,.36), transparent 70%);
}
.ab-hero .container { position: relative; z-index: 1; }
.ab-hero-inner { max-width: 780px; padding-bottom: 58px; }
.ab-hero-tag {
  font-size: 25px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 16px;
}
.ab-hero h1 {
  font-size: clamp(28px, 3.6vw, 46px); font-weight: 800;
  line-height: 1.12; letter-spacing: -.4px; margin: 0 0 18px;
}
.ab-hero-sub {
  font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.78);
  margin: 0; max-width: 660px;
}

/* cifras al pie del hero — fila con filos, no tarjetas */
.ab-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.ab-fact { padding: 26px 30px 32px; border-left: 1px solid rgba(255,255,255,.15); }
.ab-fact:first-child { border-left: none; padding-left: 0; }
.ab-fact-n { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: #fff; }
.ab-fact-l { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.62); margin-top: 9px; }

/* ════════ 2 · NUESTRA EMPRESA ════════ */
.ab-intro { padding: 96px 0; background: #fff; }
.ab-intro-grid { display: grid; grid-template-columns: 1fr 350px; gap: 76px; align-items: start; }
.ab-intro-body p { font-size: 15.5px; line-height: 1.8; color: var(--text-body); margin: 0 0 18px; }
.ab-intro-body p:last-child { margin-bottom: 0; }
.ab-intro-body b { font-weight: 700; color: var(--blue-dark); }

/* ficha de la empresa — bloque tipo documento, sin caja */
.ab-file { position: sticky; top: 96px; border-top: 2px solid var(--blue-dark); }
.ab-file-t { padding: 16px 0 14px; }
.ab-file-row { padding: 13px 0; border-top: 1px solid var(--border); }
.ab-file-k {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 5px;
}
.ab-file-v { font-size: 14.5px; font-weight: 600; color: var(--blue-dark); line-height: 1.55; }
.ab-file-v span { display: block; font-weight: 500; font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }

/* ════════ 4 · CAPACIDADES (incluye contexto operativo) ════════ */
.ab-cap { padding: 96px 0; background: #fff; }
.ab-cap-list { border-top: 1px solid var(--blue-dark); }
.ab-cap-row {
  display: grid; grid-template-columns: 88px 288px 1fr; gap: 32px; align-items: start;
  padding: 26px 20px; margin: 0 -20px; border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.ab-cap-row:hover { background: #F7FAFE; }
.ab-cap-n {
  font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px;
  color: #C3DAF0; transition: color .3s ease;
}
.ab-cap-row:hover .ab-cap-n { color: var(--blue-mid); }
.ab-cap-t { font-size: 17px; font-weight: 700; color: var(--blue-dark); line-height: 1.35; margin: 0; padding-top: 3px; }
.ab-cap-row p { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); margin: 0; padding-top: 3px; }

/* materiales — cierre de la sección, no franja aparte */
.ab-mat {
  margin-top: 46px; border-top: 1px solid var(--border); padding-top: 28px;
  display: grid; grid-template-columns: 244px 1fr; gap: 40px; align-items: start;
}
.ab-mat-k { padding-top: 6px; color: var(--blue-dark); }
.ab-mat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-mat-pills span {
  font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--blue-mid);
  background: #F1F5FB; border: 1px solid var(--border); border-radius: 100px; padding: 6px 13px;
}
.ab-mat-pills span.pk { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }

/* ════════ 5 · PROCESO DE DESARROLLO ════════ */
.ab-proc {
  position: relative; overflow: hidden;
  padding: 96px 0 100px; background: var(--blue-dark); color: #fff;
}
.ab-proc::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 52% at 88% 12%, rgba(70,140,235,.26), transparent 70%),
    radial-gradient(40% 44% at 2% 88%, rgba(20,70,150,.32), transparent 70%);
}
.ab-proc .container { position: relative; z-index: 1; }

.ab-steps { position: relative; max-width: 940px; }
.ab-rail {
  position: absolute; left: 26px; top: 16px; bottom: 44px; width: 2px;
  background: rgba(255,255,255,.16);
}
.ab-rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, #8FBDF5 0%, #2163B1 100%);
  transition: height .18s linear;
}
.ab-step {
  position: relative; display: grid; grid-template-columns: 54px 292px 1fr; gap: 30px;
  padding-bottom: 34px; opacity: .4; transition: opacity .5s ease;
}
.ab-step:last-child { padding-bottom: 0; }
.ab-step.on { opacity: 1; }
.ab-step-n {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-dark); border: 2px solid rgba(255,255,255,.28);
  font-size: 16px; font-weight: 800; color: #fff;
  transition: border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.ab-step.on .ab-step-n {
  border-color: #8FBDF5; box-shadow: 0 0 0 5px rgba(143,189,245,.13); transform: scale(1.04);
}
.ab-step-t { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.32; margin: 0; padding-top: 13px; }
.ab-step p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.72); margin: 0; padding-top: 15px; }

/* ════════ 4b · INTRO DE CLIENTES (clientes.html, entre el hero y el carrusel) ════════ */
.ab-clients-intro { padding: 90px 0 0; background: #fff; }
.ab-clients-intro-body { max-width: 720px; }
.ab-clients-intro-body p { font-size: 15.5px; line-height: 1.8; color: var(--text-body); margin: 0 0 18px; }
.ab-clients-intro-body p:last-child { margin: 0; font-weight: 700; color: var(--blue-dark); }

/* ════════ 5 · CARRUSEL DE LOGOS (usado en clientes.html) ════════
   Tiles grandes a propósito, para que el carrusel pese visualmente.
   Genérico: cualquier número de filas .ab-mrow funciona (JS en about.js
   clona y hace loop solo, sin importar cuántas haya). */
.ab-clients { padding: 44px 0 110px; background: #fff; }
.ab-marquee { margin-top: 20px; }
/* decorativo: no se selecciona, no se arrastra, no recibe clics */
.ab-marquee, .ab-marquee * {
  pointer-events: none; user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; -khtml-user-drag: none;
}
.ab-mrow {
  overflow: hidden; margin-bottom: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ab-mrow:last-child { margin-bottom: 0; }
.ab-mtrack {
  display: flex; align-items: center; width: max-content; will-change: transform;
  animation: ab-slide 64s linear infinite;
}
.ab-mrow.rev .ab-mtrack { animation-direction: reverse; }
/* el margen va en el tile (no gap) para que el bucle a -50% caiga exacto */
@keyframes ab-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.ab-logo {
  flex: 0 0 auto; width: 248px; height: 160px; margin-right: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: grid; place-items: center; padding: 22px 28px;
  box-shadow: 0 18px 38px -24px rgba(3,48,109,.55);
  overflow: hidden; /* red de seguridad: ningún logo pinta fuera de su tarjeta */
}
/* max-width/max-height en px (no %): dentro de un grid con fila 'auto', el
   alto porcentual no se resuelve contra el tile (queda como "none"), así que
   los logos cuadrados/redondos (Vexah, Tools Universal Services…) se
   desbordaban del tile sin recortarse — con px fijos el navegador sí limita
   ambos lados y object-fit:contain hace el resto. Valores = tile menos
   padding en cada media query de abajo. */
.ab-logo img { max-width: 192px; max-height: 116px; width: auto; height: auto; object-fit: contain; display: block; }
.ab-clients-note { margin-top: 26px; font-size: 13px; color: var(--text-muted); }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1100px) {
  .ab-intro-grid { grid-template-columns: 1fr 310px; gap: 48px; }
  .ab-cap-row { grid-template-columns: 74px 250px 1fr; gap: 24px; }
  .ab-step { grid-template-columns: 54px 250px 1fr; gap: 24px; }
}
@media (max-width: 940px) {
  .ab-intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .ab-file { position: static; max-width: 520px; }
  .ab-cap-row { grid-template-columns: 62px 1fr; gap: 10px 22px; }
  .ab-cap-n { grid-row: span 2; font-size: 26px; }
  .ab-cap-row p { padding-top: 0; }
  .ab-step { grid-template-columns: 46px 1fr; gap: 8px 20px; }
  .ab-step-n { width: 46px; height: 46px; font-size: 15px; }
  .ab-step-t { padding-top: 11px; }
  .ab-step p { grid-column: 2; padding-top: 8px; }
  .ab-rail { left: 22px; }
}
@media (max-width: 860px) {
  .ab-hero { padding-top: 120px; }
  .ab-hero-inner { padding-bottom: 40px; }
  .ab-facts { grid-template-columns: 1fr 1fr; }
  .ab-fact { padding: 22px 0 24px 18px; }
  .ab-fact:nth-child(odd) { border-left: none; padding-left: 0; }
  .ab-fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .ab-fact-n { font-size: 28px; }
  .ab-intro, .ab-cap, .ab-proc { padding: 62px 0; }
  .ab-clients-intro { padding: 56px 0 0; }
  .ab-clients { padding: 32px 0 64px; }
  .ab-head { margin-bottom: 28px; }
  .ab-mat { grid-template-columns: 1fr; gap: 14px; }
  .ab-logo { width: 196px; height: 128px; padding: 18px 22px; }
  .ab-logo img { max-width: 152px; max-height: 92px; }
}
@media (max-width: 480px) {
  .ab-hero-sub { font-size: 15.5px; }
  .ab-cap-row { padding: 22px 14px; margin: 0 -14px; }
  .ab-step-t { font-size: 17px; }
  .ab-logo { width: 168px; height: 108px; margin-right: 14px; padding: 14px 18px; }
  .ab-logo img { max-width: 132px; max-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ab-step { opacity: 1 !important; }
  .ab-mtrack { animation: none; }
  .ab-mrow { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
