/* ============================================================
   STYLES — ACEC Consulting · "El Expediente"
   Componentes globales. Los colores/medidas salen de tokens.css.
   Variantes por página van AL FINAL, comentadas y con clases nuevas.
   Nunca modifiques una clase compartida de forma global.
   ============================================================ */

/* ---------- 1. Reset y base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
em { font-style: italic; }  /* itálica editorial = énfasis, reemplaza al degradado */
strong { font-weight: 600; }

/* Foco de teclado siempre visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Salto de accesibilidad */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius); font-family: var(--mono); font-size: 0.8rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 2. Layout ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-y) 0; }
/* Header sticky: ocupa su alto en el flujo normal, así que el hero empieza justo debajo,
   sin necesidad de padding compensatorio. Solo evitamos que las anclas queden tapadas. */
section[id] { scroll-margin-top: 84px; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #cfe0e6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

/* Filete de transición: el SELLO como hairline. Un uso por punto de corte. */
.seal-rule { height: 2px; border: 0; background: var(--seal); opacity: 0.9; }
.seal-rule--soft { height: 1px; background: var(--line); }

/* Franja de respiro entre dos secciones con imagen a sangre: fondo papel
   sólido que corta las dos fotos, con el filete de marca centrado. */
.section-break { display: flex; align-items: center; height: clamp(48px, 8vw, 80px); background: var(--paper); }
.section-break .seal-rule { width: 100%; margin: 0; }
@media (max-width: 900px) { .section-break { height: 40px; } }

/* ---------- 3. Tipografía de sección ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.1rem;
}
.label::before {
  content: ""; width: 22px; height: 2px; background: var(--seal); flex: none;
}
.label--plain::before { display: none; }
.section--ink .label { color: #9fc0cd; }

.h2 { font-size: var(--fs-h2); max-width: 20ch; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.section--ink .lead { color: #b9d1da; }
.measure { max-width: 62ch; }
.mono { font-family: var(--mono); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.5rem; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid transparent; min-height: 44px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); padding-left: 0.2rem; padding-right: 0.2rem; }
.btn--ghost .arrow { transition: transform 0.18s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.section--ink .btn--outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--ink .btn--outline:hover { border-color: #fff; }
.section--ink .btn--ghost { color: #fff; }

/* ---------- 5. Header / navegación (CANÓNICO en todas las páginas) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(12, 59, 78, 0.05);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.header__logo { display: inline-flex; align-items: center; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--graphite);
  position: relative; padding: 0.4rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.22s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav.is-open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* El enlace adicional del Blog pasa al menú desplegable antes de que falte espacio. */
@media (min-width: 721px) and (max-width: 1000px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - 74px); overflow-y: auto;
    padding: .5rem 1.5rem max(2rem, env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
    transform: translateY(-130%); visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav__link { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; margin-top: .8rem; }
  .nav-toggle { display: block; }
}

/* ---------- 6. Hero de la HOME ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-hero); margin: 0.4rem 0 1.4rem; font-weight: 400; }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 48ch; margin-bottom: 2.2rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Sello del hero: el ÚNICO uso grande del degradado, contenido en un disco/óvalo pequeño */
.hero__seal {
  position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero__seal-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.hero__stamp { width: 54px; height: 54px; border-radius: 50%; background: var(--seal); position: relative; display: grid; place-items: center; color: #fff; font-family: var(--display); font-style: italic; font-size: 1.4rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35); }
.hero__facts { display: grid; gap: 1.1rem; }
.hero__fact { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.hero__fact b { font-family: var(--display); font-size: 2.2rem; color: var(--ink); display: block; line-height: 1; font-weight: 500; }
.hero__fact span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---------- 7. Hero de PÁGINA interior (sobrio) ---------- */
.page-hero { padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-hero__title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0.3rem 0 1rem; font-weight: 600; }
.page-hero__sub { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 58ch; line-height: 1.55; }
.page-hero__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
/* Variante compacta del lenguaje luminoso para los encabezados legales. */
.page-hero--luminous {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 44% 64% at 50% -15%, rgba(0, 192, 221, 0.24), transparent 75%),
    linear-gradient(125deg, #052E42 0%, #00344B 48%, #052638 100%);
}
.page-hero--luminous::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0% 100%, transparent 0 70px, rgba(0, 200, 229, 0.16) 71px 72px, transparent 73px 150px),
    repeating-radial-gradient(circle at 100% 0%, transparent 0 85px, rgba(0, 200, 229, 0.12) 86px 87px, transparent 88px 175px);
}
.page-hero--luminous::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background-image: radial-gradient(rgba(0, 199, 229, 0.65) 0.8px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 22% 78%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 22% 78%, #000 100%);
}
.page-hero--luminous .narrow { position: relative; z-index: 1; }
.page-hero--luminous .label { color: #9ADDEB; }
.page-hero--luminous .label::before { background: #04D4E9; }
.page-hero--luminous .page-hero__title { color: #fff; }
.page-hero--luminous .page-hero__title::after { content: ""; display: block; width: 90px; height: 2px; margin-top: 0.7rem; background: linear-gradient(90deg, #04D4E9, transparent); box-shadow: 0 0 10px rgba(0, 225, 238, 0.6); }
.page-hero--luminous .page-hero__sub { color: #E0EEF3; }
.page-hero--luminous .page-hero__meta { color: rgba(224, 238, 243, 0.78); }

/* Breadcrumb (SEO) — miga de pan discreta, estilo mono; no altera el layout de las secciones */
.breadcrumb { padding: 1rem 0 0; }
.breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.breadcrumb__list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb__list li + li::before { content: "/"; color: var(--muted); opacity: 0.55; }
.breadcrumb__list a { color: var(--muted); text-decoration: none; transition: color 0.18s var(--ease); }
.breadcrumb__list a:hover { color: var(--accent); }
.breadcrumb__list [aria-current="page"] { color: var(--ink); }

/* ---------- 8. Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding: 1.2rem 0; }
.trust__item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.trust__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- 9. Reto: lista editorial numerada ---------- */
.reto__list { list-style: none; display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.reto__item { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.reto__item .num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 0.35rem; }
.reto__item h3 { font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.35rem; font-weight: 500; }
.reto__item p { color: var(--muted); max-width: 60ch; }

/* ---------- 10. EL PROCESO (zigzag: imagen + texto por etapa, ver también §24 como-funciona.html) ---------- */
.proceso { display: grid; gap: 64px; margin-top: 2.5rem; }
.proceso__row { display: grid; grid-template-columns: 0.85fr 1fr; gap: 40px; align-items: center; }
.proceso__row--rev .proceso__media { order: 2; }
.proceso__row--rev .proceso__copy { text-align: right; align-items: flex-end; }

.proceso__media { height: 280px; border-radius: 8px; overflow: hidden; }
.proceso__img { width: 100%; height: 100%; object-fit: cover; }

.proceso__copy { display: flex; flex-direction: column; }
.proceso__heading { display: flex; align-items: baseline; gap: 0.7rem; }
.proceso__num { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; color: #A7C4D1; } /* gris azulado muy claro */
.proceso__name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.proceso__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--ink); margin: 0.6rem 0 0.7rem; }
.proceso__text { color: var(--muted); max-width: 52ch; }
.proceso__badge {
  align-self: flex-start; margin-top: 1.1rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--surface); border: 1px solid var(--exp-accent-30);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}

/* Una guía visual conecta los cuatro momentos sin ocultar contenido. */
.proceso--guided { position: relative; isolation: isolate; }
.proceso--guided::before, .proceso--guided::after {
  content: ""; position: absolute; z-index: 0;
  top: var(--process-line-start, 0px); bottom: var(--process-line-end, 0px);
  left: 46%; width: 2px; pointer-events: none;
}
.proceso--guided::before { background: #d6eaf0; }
.proceso--guided::after {
  background: linear-gradient(#04bfd9, #008eb5);
  transform: scaleY(var(--process-progress, 0)); transform-origin: top;
}
.proceso--guided .proceso__row { position: relative; z-index: 1; }
.proceso--guided .proceso__row::before {
  content: ""; position: absolute; z-index: 2; top: calc(50% - 6px);
  left: calc(46% - 5px); width: 12px; height: 12px;
  border: 2px solid #60bfd3; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px #fff;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.proceso--guided .proceso__row.is-current::before {
  border-color: #04bfd9; background: #04bfd9;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(4, 191, 217, .16);
}
.proceso--guided .proceso__num { transition: color .3s ease; }
.proceso--guided .proceso__row.is-current .proceso__num { color: #008eb5; }

@media (max-width: 900px) {
  .proceso { gap: 40px; }
  .proceso__row { grid-template-columns: 1fr; gap: 20px; }
  .proceso__row--rev .proceso__media { order: 0; }
  .proceso__row--rev .proceso__copy { text-align: left; align-items: flex-start; }
  .proceso__media { height: 200px; }
  .proceso--guided::before, .proceso--guided::after { left: 5px; }
  .proceso--guided .proceso__row { padding-left: 23px; }
  .proceso--guided .proceso__row::before { left: 0; }
}

/* ---------- 11. DOSSIER (panel-expediente) ---------- */
.dossier { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.dossier__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.dossier__radicado { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dossier__seal { width: 34px; height: 34px; border-radius: 50%; background: var(--seal); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); flex: none; }
.dossier__body { padding: 1.4rem; }
.dossier__facts { list-style: none; display: grid; gap: 0.9rem; }
.dossier__facts li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.dossier__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.dossier__facts .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dossier__facts .v { font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- 12. AUTHORITY (foto + credenciales + cita) ---------- */
.authority { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.authority__creds { list-style: none; display: grid; gap: 1rem; margin: 1.6rem 0; }
.authority__creds li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.8rem; }
.authority__creds li::before {
  content: ""; width: 18px; height: 18px; margin-top: 0.2rem;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.authority__quote { border-left: 2px solid transparent; border-image: var(--seal) 1; padding-left: 1.4rem; margin-top: 1.6rem; }
.authority__quote p { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--ink); line-height: 1.4; }
.authority__quote cite { display: block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- 12.1 WHY-ACEC: "Por qué ACEC" — imagen a sangre + tarjeta blanca flotante a la derecha ---------- */
.why-acec { position: relative; isolation: isolate; overflow: hidden; }
/* Imagen de fondo a sangre */
.why-acec__bg { position: absolute; inset: 0; z-index: 0; background: var(--gris-humo); }
.why-acec__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }
/* Velo sutil para contraste general */
.why-acec__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,59,78,0.3) 0%, rgba(12,59,78,0.08) 42%, rgba(12,59,78,0.18) 100%); }
/* Zona de contenido: alinea la tarjeta a la derecha, centrada verticalmente */
.why-acec__inner {
  position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center;
  min-height: clamp(420px, 56vh, 600px);
  padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem);
}
/* Tarjeta blanca flotante */
.why-acec__card {
  width: clamp(340px, 46%, 520px);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--sh-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.why-acec__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.why-acec__eyebrow-rule { width: 24px; height: 2px; background: var(--accent); flex: none; }
.why-acec__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 1rem; }
.why-acec__lead { font-family: var(--body); color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.4rem; }
.why-acec__divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.4rem; }
/* Tres diferenciales con íconos, divisores verticales */
.why-acec__diffs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; }
.why-acec__diff { display: grid; gap: 0.6rem; justify-items: start; padding: 0 clamp(0.7rem, 1.5vw, 1.1rem); }
.why-acec__diff + .why-acec__diff { border-left: 1px solid var(--line); }
.why-acec__diff:first-child { padding-left: 0; }
.why-acec__diff:last-child { padding-right: 0; }
.why-acec__diff-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,148,206,0.1); color: var(--accent); }
.why-acec__diff-ic svg { width: 21px; height: 21px; }
.why-acec__diff-text { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 0.9rem; line-height: 1.2; margin: 0; }

/* --- Responsive: imagen como franja superior + tarjeta a ancho completo debajo --- */
@media (max-width: 860px) {
  .why-acec { isolation: auto; overflow: visible; }
  .why-acec__bg { position: relative; inset: auto; height: clamp(220px, 42vw, 320px); }
  .why-acec__bg img { object-position: center; }
  .why-acec__veil { display: none; }
  .why-acec__inner { display: block; min-height: 0; padding: 0; }
  .why-acec__card { width: 100%; border-radius: 0; box-shadow: none; padding: clamp(1.5rem, 5vw, 2rem) 0; }
}
@media (max-width: 480px) {
  .why-acec__diffs { grid-template-columns: 1fr; }
  .why-acec__diff { grid-template-columns: 40px 1fr; align-items: center; gap: 0.5rem 0.85rem; padding: 0; }
  .why-acec__diff + .why-acec__diff { border-left: 0; border-top: 1px solid var(--line); padding-top: 0.9rem; margin-top: 0.1rem; }
}

/* ---------- 12.2 TRAYECTORIA: foto de fondo a sangre (mitad derecha) + texto sobre zona clara + cita flotante + franja de cifras ---------- */
.trayectoria {
  /* ----- AJUSTE FINO · foto de fondo (mitad derecha) ----- */
  --tray-photo-w: 50%;            /* ancho de la franja de foto (mitad derecha) */
  --tray-photo-pos: 58% 28%;      /* object-position: centrado en el rostro (x y) */
  --tray-fade-w: 34%;             /* ancho del degradado de fusión hacia la izquierda */
  --tray-min-h: clamp(24rem, 40vw, 33rem);  /* alto mínimo de la sección = presencia de la foto */
  /* ----- AJUSTE FINO · cita flotante ----- */
  --tray-quote-w: min(21rem, 36%);
  --tray-quote-right: clamp(1.5rem, 4vw, 3rem);
  --tray-quote-bottom: clamp(1.5rem, 4vw, 3rem);
  /* ----- AJUSTE FINO · foto en móvil ----- */
  --tray-photo-h-mobile: 300px;   /* alto de la franja de foto a sangre en móvil */

  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--tray-min-h);
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
  background: #EEF6FB;            /* azul muy pálido, como el mockup */
  overflow: clip;
}

/* CAPA 1 · Imagen de fondo a sangre en la mitad derecha */
.trayectoria__bg { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: var(--tray-photo-w); }
.trayectoria__bg-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--tray-photo-pos);
  /* Fusión hacia la izquierda: la foto se desvanece sobre el fondo claro (decorativo) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--tray-fade-w));
          mask-image: linear-gradient(to right, transparent 0, #000 var(--tray-fade-w));
}

/* CAPA 2 · Número fantasma grande sobre la parte superior de la zona de la foto */
.trayectoria__ghost { position: absolute; z-index: 1; top: clamp(0.5rem, 3vw, 2rem); right: clamp(1.5rem, 8vw, 6rem); font-family: var(--display); font-weight: 700; font-size: clamp(7rem, 16vw, 14rem); line-height: 0.74; letter-spacing: -0.04em; color: rgba(1, 148, 206, 0.22); pointer-events: none; user-select: none; }

/* CAPA 3 · Contenido de texto (izquierda, sobre la zona clara) */
.trayectoria__inner { position: relative; z-index: 2; max-width: clamp(26rem, 48%, 34rem); }
.trayectoria__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.trayectoria__eyebrow-dash { width: 24px; height: 2px; background: var(--accent); flex: none; }
.trayectoria__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin: 0 0 0.75rem; max-width: 18ch; }
.trayectoria__title em { font-style: italic; color: var(--accent); }
.trayectoria__sign { margin: 0 0 0.65rem; }
.trayectoria__sign-name { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.22rem; margin: 0; }
.trayectoria__sign-name span { color: var(--muted); font-weight: 500; font-style: italic; }
.trayectoria__sign-role { font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0.3rem 0 0; }
.trayectoria__lead { font-family: var(--body); color: var(--muted); font-size: 1.02rem; line-height: 1.5; max-width: 48ch; margin: 0 0 1.1rem; }

/* Franja de cifras (compacta, en la zona izquierda, fila de 4) */
.trayectoria__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin: 0; padding: clamp(1rem, 2vw, 1.4rem) 0 0; }
.trayectoria__stat { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 clamp(0.5rem, 1vw, 0.9rem); border-left: 1px solid var(--line); }
.trayectoria__stat:first-child { border-left: 0; padding-left: 0; }
.trayectoria__stat-num { display: flex; align-items: baseline; gap: 0.25em; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1; letter-spacing: -0.02em; color: var(--accent); margin: 0; }
.trayectoria__stat-unit { white-space: nowrap; font-size: 0.5em; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); }
.trayectoria__stat-label { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); line-height: 1.35; margin: 0; }
.trayectoria__stats-note { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); margin: 0.55rem 0 0; }

/* Acciones: botón primario + enlace LinkedIn en fila */
.trayectoria__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1rem; }
.trayectoria__linkedin { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--body); font-weight: 600; font-size: 0.9rem; color: var(--accent); transition: color 0.2s var(--ease); }
.trayectoria__linkedin:hover { color: var(--wa-ink); }
.trayectoria__linkedin .ln-arrow { transition: transform 0.18s var(--ease); }
.trayectoria__linkedin:hover .ln-arrow { transform: translateX(3px); }

/* CAPA 4 · Cita flotante sobre la esquina inferior derecha, encima de la foto */
.trayectoria__quote { position: absolute; z-index: 3; right: var(--tray-quote-right); bottom: var(--tray-quote-bottom); left: auto; width: var(--tray-quote-w); margin: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--sh-lg); padding: 1.2rem 1.4rem 1.15rem; }
.trayectoria__quote p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1rem; line-height: 1.42; color: var(--ink); margin: 0 0 0.65rem; }
.trayectoria__quote-by { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ----- Responsivo: foto como franja superior a sangre, texto debajo, cita estática ----- */
@media (max-width: 900px) {
  .trayectoria { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 clamp(2.2rem, 6vw, 3rem); }
  /* La foto pasa a franja superior a sangre de alto fijo */
  .trayectoria__bg { position: static; order: 0; width: 100%; height: var(--tray-photo-h-mobile); }
  .trayectoria__bg-img { object-position: 50% 25%; -webkit-mask-image: none; mask-image: none; }
  /* El número fantasma se oculta */
  .trayectoria__ghost { display: none; }
  /* La cita deja de flotar: estática debajo de la foto */
  .trayectoria__quote { position: static; order: 1; width: auto; margin: clamp(1rem, 4vw, 1.5rem) 1.5rem 0; box-shadow: var(--shadow); }
  .trayectoria > .container { order: 2; padding-top: clamp(1.6rem, 5vw, 2.2rem); }
  .trayectoria__inner { max-width: none; }
  /* Las 4 cifras pasan a 2 columnas; sin divisores verticales para no descolocar */
  .trayectoria__stats { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1.2rem; }
  .trayectoria__stat { border-left: 0; padding: 0; }
}

/* ---------- 12.3 QUIÉNES SOMOS (Sección 00 del home · puente corto entre el hero y el método) ---------- */
.quienes-somos { position: relative; }

.quienes-somos__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 64px);
}

/* Eyebrow: regla corta + etiqueta mono */
.quienes-somos__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.quienes-somos__rule { display: block; width: 44px; height: 2px; background: var(--magenta); flex: none; }
.quienes-somos__eyebrow-label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Título con acento en cursiva azul */
.quienes-somos__title em { font-style: italic; color: var(--accent); }

.quienes-somos__subtitle {
  font-family: var(--display); font-size: clamp(0.95rem, 1.86vw, 1.33rem); font-weight: 600;
  color: var(--ink-soft); line-height: 1.35; max-width: 52ch; margin: 12px 0 0;
}
.quienes-somos__subtitle em { color: var(--accent); }
.quienes-somos__lead { margin-top: 1.4rem; }

/* Tres características en fila */
.quienes-somos__features {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem); margin: 1.8rem 0 0; padding: 0;
}
.quienes-somos__feature { display: grid; align-content: start; gap: 0.5rem; }
.quienes-somos__feature-ic {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(1, 148, 206, 0.1); color: var(--accent);
}
.quienes-somos__feature-ic svg { width: 21px; height: 21px; }
.quienes-somos__feature-title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 0.98rem; line-height: 1.25; margin: 0; }
.quienes-somos__feature-desc { font-family: var(--body); color: var(--muted); font-size: 0.8rem; line-height: 1.45; margin: 0; }

/* Cita destacada: fondo azul claro, borde izquierdo azul, comilla decorativa, serif cursiva */
.quienes-somos__quote {
  position: relative; background: rgba(1, 148, 206, 0.06); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem 1.1rem 1.5rem; margin: 2rem 0 0;
}
.quienes-somos__quote::before {
  content: "\201C"; position: absolute; top: -0.2rem; left: 0.55rem;
  font-family: var(--display); font-size: 2.6rem; line-height: 1; color: rgba(1, 148, 206, 0.28);
}
.quienes-somos__quote p {
  font-family: var(--display); font-style: italic; font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--ink); line-height: 1.5; margin: 0;
}

/* --- Columna derecha: imagen base + marca de agua --- */
.quienes-somos__media { position: relative; z-index: 1; max-width: 460px; margin-left: auto; }

/* Marca de agua tipográfica "ACEC" detrás de la imagen (decorativa) */
.quienes-somos__watermark {
  position: absolute; top: -0.5em; right: -0.08em; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 600; font-size: clamp(5rem, 11vw, 9rem); line-height: 0.8;
  letter-spacing: -0.03em; color: rgba(1, 148, 206, 0.09);
}

/* Capa A — imagen base (recorta solo su propio contenido) */
.quienes-somos__photo {
  position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); background: var(--gris-humo);
}
/* Marco cuadrado (en vez de vertical) para que la foto apaisada muestre a las DOS personas sin cortarlas.
   object-position afina el encuadre horizontal/vertical. */
.quienes-somos__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 64% 42%; transition: transform 0.5s var(--ease); }
.quienes-somos__media:hover .quienes-somos__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .quienes-somos__media:hover .quienes-somos__img { transform: none; } }

/* Tarjeta flotante sobre la imagen */
.quienes-somos__card {
  position: absolute; left: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 0.7rem 0.95rem;
}
.quienes-somos__card-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(1, 148, 206, 0.12); color: var(--accent); }
.quienes-somos__card-ic svg { width: 18px; height: 18px; }
.quienes-somos__card-city { font-family: var(--body); font-weight: 600; color: var(--ink); font-size: 0.9rem; margin: 0; }
.quienes-somos__card-since { font-family: var(--body); color: var(--muted); font-size: 0.78rem; margin: 1px 0 0; }

@media (max-width: 900px) {
  .quienes-somos__grid { grid-template-columns: 1fr; gap: 28px; }
  .quienes-somos__media { max-width: 520px; margin: 0 auto; }
  .quienes-somos__atmosphere::before { width: 200px; height: 165px; top: -60px; right: -45px; }
}
@media (max-width: 600px) {
  .quienes-somos__features { grid-template-columns: 1fr; gap: 1rem; }
  .quienes-somos__img { aspect-ratio: 4 / 3; }
  .quienes-somos__card { left: 10px; bottom: 10px; }
  .quienes-somos__text .h2 { line-height: 1.2; }
  .quienes-somos__subtitle { line-height: 1.45; }
}

/* ---------- 13. STEPS (Sección 07 · Diagnóstico: 3 pasos expandibles + resultado) ---------- */
.steps { display: flex; gap: 14px; height: 340px; margin-top: 2.5rem; }
.step {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-lg); background: var(--wa-ink);
  transition: flex 0.55s cubic-bezier(.22, .61, .36, 1);
}
.step:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Activa ~50% · inactivas ~25% cada una */
.step.is-active { flex: 2; cursor: default; }

.step__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1); transition: transform 0.5s var(--ease);
}
.step.is-active .step__bg { transition: transform 9s linear; transform: scale(1.06); }

.step__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 49, 66, 0.35), rgba(11, 49, 66, 0.82));
  transition: background 0.4s var(--ease);
}
.step.is-active .step__overlay { background: linear-gradient(180deg, rgba(11, 49, 66, 0.25), rgba(11, 49, 66, 0.92)); }

.step__content {
  position: relative; z-index: 1; height: 100%; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 1.5rem 1.4rem;
}

.step__icon {
  flex: none; width: 44px; height: 44px; margin-bottom: 0.9rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.step__icon svg { width: 21px; height: 21px; }

/* Cuerpo (número + título + texto) anclado abajo; legible también cerrado */
.step__body { margin-top: auto; min-width: 0; }
.step__num { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; line-height: 1; color: #7DD3F0; margin: 0 0 0.45rem; }
.step__title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: #fff; line-height: 1.2; margin: 0; }
.step.is-active .step__title { font-size: 1.5rem; margin: 0 0 0.6rem; }
.step__text { display: none; color: rgba(255, 255, 255, 0.93); font-size: 0.98rem; line-height: 1.55; max-width: 44ch; margin: 0; }
.step.is-active .step__text { display: block; animation: stepFade 0.45s var(--ease) both; }
@keyframes stepFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.steps__cta { display: flex; justify-content: center; margin-top: 1.8rem; }

/* Tablet: reducir la diferencia de ancho para que las inactivas sigan legibles */
@media (min-width: 769px) and (max-width: 1023px) {
  .step.is-active { flex: 1.6; }
  .step__title { font-size: 1rem; }
  .step.is-active .step__title { font-size: 1.3rem; }
  .step__text { font-size: 0.92rem; }
}

/* Móvil: secuencia vertical, las tres etapas completas y legibles (sin texto vertical) */
@media (max-width: 768px) {
  .steps { flex-direction: column; height: auto; }
  .step { flex: none !important; width: 100%; height: auto; min-height: 172px; transition: none; }
  .step__bg { transition: none; transform: none !important; }
  .step__overlay { background: linear-gradient(180deg, rgba(11, 49, 66, 0.3), rgba(11, 49, 66, 0.88)) !important; }
  .step__content { padding: 1.4rem 1.3rem; }
  .step__body { margin-top: 1rem; }
  .step__title { font-size: 1.25rem !important; margin: 0 0 0.5rem !important; }
  .step__text { display: block !important; animation: none; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .steps { height: auto; flex-wrap: wrap; }
  .step { flex: 1 1 280px !important; height: 300px; transition: none; }
  .step__bg { transition: none; transform: none !important; }
  .step__overlay { background: linear-gradient(180deg, rgba(11, 49, 66, 0.3), rgba(11, 49, 66, 0.9)); transition: none; }
  .step__title { font-size: 1.3rem; }
  .step__text { display: block; animation: none; }
}

/* ---------- 14. FILE (ficha de expediente) ---------- */
.files-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.file { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.file:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.file__tab { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper-2); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.file__tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }
.file__body { padding: 1.2rem 1.1rem 1.4rem; }
.file__title { font-family: var(--display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.5rem; font-weight: 500; }
.file__text { color: var(--muted); font-size: 0.96rem; }
.file__meta { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ---------- 15. PENDING (dato no validado) + placeholders de imagen ---------- */
.pending {
  display: inline-flex; flex-direction: column; gap: 0.15rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 0.5rem 0.75rem; background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(12,59,78,0.02) 8px, rgba(12,59,78,0.02) 16px);
  color: var(--muted);
}
.pending .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pending .v { font-size: 0.9rem; color: var(--ink-soft); }
.ph-img {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--paper-2); display: grid; place-items: center; text-align: center;
  padding: 1.5rem; color: var(--muted);
}
.ph-img__note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.7; max-width: 34ch; }
.ph-img__note b { color: var(--accent); font-weight: 500; display: block; margin-bottom: 0.4rem; letter-spacing: 0.12em; }
.ph-img--43 { aspect-ratio: 4 / 3; }
.ph-img--34 { aspect-ratio: 3 / 4; }
/* Imagen (provisional o real) dentro de un .ph-img: llena el marco y lo vuelve sólido */
.ph-img { position: relative; overflow: hidden; }
.ph-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-img:has(> img) { border-style: solid; border-color: var(--linea); background: none; padding: 0; }
.ph-note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- 16. Acordeón FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.35rem 0; font-family: var(--display); font-weight: 500; font-size: 1.12rem;
  color: var(--ink); display: flex; justify-content: space-between; gap: 1.2rem; align-items: center;
  min-height: 44px;
}
.faq-item__q .sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq-item__q .sign::before, .faq-item__q .sign::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.faq-item__q .sign::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-item__q .sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.is-open .sign::after { transform: scaleY(0); opacity: 0; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.faq-item__a-inner { padding-bottom: 1.35rem; color: var(--muted); max-width: 66ch; }
.faq-item.is-open .faq-item__a { max-height: 600px; }

/* ---------- 17. Formulario de contacto ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  font: inherit; color: var(--graphite); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; width: 100%; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,148,206,0.12); }
.field:not(.field--check) label { transition: color .2s ease; }
.field:not(.field--check):focus-within label { color: #007da7; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4433a; }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__status { font-family: var(--mono); font-size: 0.8rem; padding: 0.6rem 0; }
.form__status.is-ok { color: var(--wa-ink); }
.form__status.is-err { color: #b4433a; }
.form__status:empty { display: none; }
.form__status:not(:empty) {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .75rem .9rem; border-left: 3px solid #04bfd9;
  border-radius: 0 7px 7px 0; background: #edf9fc;
}
.form__status.is-ok { border-color: #1aa675; background: #ebf9f3; }
.form__status.is-error { border-color: #c0392b; background: #fff1ef; }
.form__status.is-ok::before { content: "✓"; font-weight: 700; }
.form__status.is-error::before { content: "!"; font-weight: 700; }
.form.is-sending [type="submit"]::after {
  content: ""; width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%;
  animation: acec-submit-spin .75s linear infinite;
}
@keyframes acec-submit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .form__status:not(:empty) { animation: acec-status-in .28s ease-out both; }
  @keyframes acec-status-in {
    from { opacity: .45; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .form.is-sending [type="submit"]::after { display: none; }
  .proceso--guided::after { transform: none; }
}

/* ---------- 18. Footer (CANÓNICO: 4 columnas + social + disclaimer) ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #b9d1da; padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
/* Imagen institucional de fondo (Capitolio Nacional), a la derecha, fundida al navy por la izquierda.
   Mientras no haya foto real, queda un navy un poco más oscuro como base. */
.footer__bg { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 58%; background: #0A2E3C; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Velo: navy sólido a la izquierda (texto siempre sobre navy) → deja asomar la imagen a la derecha,
   y oscurece para mantener contraste AA donde la foto aparece. */
.footer__veil { position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--ink) 0%, var(--ink) 38%, rgba(12,59,78,0.82) 58%, rgba(12,59,78,0.58) 100%),
    linear-gradient(to bottom, rgba(12,59,78,0.22), rgba(12,59,78,0.5));
}
.footer__inner { position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__col--brand { max-width: 38ch; }
.footer__brand { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: #fff; }
.footer__title { margin-top: 0.9rem; font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.05rem; line-height: 1.3; }
.footer__title-accent { color: #39B2E8; }  /* "rigor" en azul brillante */
.footer__rule { display: block; width: 44px; height: 2px; background: var(--accent); margin: 0.9rem 0; }
.footer__tag { font-size: 0.92rem; opacity: 0.82; line-height: 1.6; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 500; }
.footer h4::before { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin-bottom: 0.7rem; }  /* regla corta azul sobre cada encabezado */
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer a { transition: color 0.18s var(--ease); }
.footer a:hover { color: #fff; }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer__contact svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid #0194CE; color: #0194CE; border-radius: 50%; display: grid; place-items: center; transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease); }
.footer__social a:hover { border-color: #0194CE; background: #0194CE; color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
/* Barra inferior: copyright (izq) · legales (centro) · guardrail (der) */
.footer__bottom { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem 1.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.footer__copy { opacity: 0.72; justify-self: start; }
.footer__guard { opacity: 0.72; justify-self: end; text-align: right; max-width: 42ch; }

/* ---------- 19. Reveal (aparición al hacer scroll) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. CTA final ---------- */
.cta { text-align: center; }
.cta__title { font-size: var(--fs-h2); margin: 0 auto 0.8rem; max-width: 20ch; }
.cta__sub { color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.section--ink .cta__sub { color: #b9d1da; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- 20b. CIERRE GLOBAL · CTA + footer en un bloque navy con curvas de luz ---------- */
/* Un solo bloque oscuro que envuelve el CTA final y el footer. Idéntico en todas las páginas. */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(125% 95% at 50% 0%, #114C66 0%, #0C3B4E 46%, #082834 100%);
  color: #b9d1da;
}
/* Curvas de luz finas desde las esquinas (azul + acento magenta), muy sutiles */
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0% 100%, rgba(96,176,224,0) 0 72px, rgba(96,176,224,0.11) 72px 74px, rgba(96,176,224,0) 74px 156px),
    repeating-radial-gradient(circle at 100% 100%, rgba(156,49,146,0) 0 66px, rgba(156,49,146,0.10) 66px 68px, rgba(156,49,146,0) 68px 148px),
    repeating-radial-gradient(circle at 100% 0%, rgba(96,176,224,0) 0 84px, rgba(96,176,224,0.07) 84px 86px, rgba(96,176,224,0) 86px 176px);
}
/* Patrón de puntos tenue en las esquinas superiores (como en los heros) */
.closing::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 190px; z-index: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(100deg, #000 0 20%, transparent 40% 60%, #000 80% 100%);
          mask: linear-gradient(100deg, #000 0 20%, transparent 40% 60%, #000 80% 100%);
}

/* --- PARTE 1 — CTA de cierre (centrado) --- */
.closing__cta {
  position: relative; z-index: 1; text-align: center;
  padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(0.9rem, 1.6vw, 1.3rem);
}
.closing__eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem; margin: 0 0 1.1rem;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: #6FC3E8;
}
.closing__eyebrow-rule { width: 28px; height: 1.5px; background: rgba(111,195,232,0.5); flex: none; }
.closing__title {
  font-family: var(--display); font-weight: 600; color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; max-width: 18ch; margin: 0 auto 1rem;
}
.closing__title em { font-style: italic; color: #39B2E8; }  /* palabra clave en cursiva azul brillante */
/* Home: forzar el título del CTA a dos renglones exactos (salto antes del <em>). */
.closing__title--home { max-width: 30ch; }
/* En pantallas angostas el primer renglón no cabe: quitamos el salto forzado y
   dejamos que fluya de forma natural (sin desbordes ni recortes). */
@media (max-width: 600px) {
  .closing__title--home br { display: none; }
  .closing__title--home { max-width: 22ch; }
}
.closing__sub { font-family: var(--body); font-size: var(--fs-lead); color: #AEC8D4; max-width: 52ch; margin: 0 auto clamp(1.75rem, 3vw, 2.25rem); line-height: 1.55; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.closing__actions .btn { gap: 0.5rem; }
.closing .btn--outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.closing .btn--outline:hover { border-color: #fff; }
.btn__arrow { transition: transform 0.18s var(--ease); }
.closing__actions .btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Conector curvo CTA → footer, con punto de luz al centro --- */
.closing__connector { position: relative; z-index: 1; display: flex; justify-content: center; padding: clamp(0.2rem, 0.8vw, 0.5rem) 0 clamp(0.35rem, 1vw, 0.7rem); }
.closing__connector svg { width: min(260px, 62%); height: auto; }

/* --- El footer va INDEPENDIENTE, fuera de .closing: conserva su propio fondo y padding.
       Un hairline sutil lo separa del bloque de CTA. --- */
.closing { padding-bottom: clamp(0.5rem, 1.2vw, 0.9rem); }
.closing + .footer { border-top: 1px solid rgba(255,255,255,0.1); }

/* --- Responsivo del cierre: botones apilados a ancho completo en móvil --- */
@media (max-width: 560px) {
  .closing__actions { flex-direction: column; align-items: stretch; }
  .closing__actions .btn { width: 100%; }
}

/* Cierre luminoso compartido por Home, Nosotros, Servicios, Cómo funciona y FAQ. */
.closing--luminous {
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 44% 44% at 50% -12%, rgba(0, 192, 221, 0.34), transparent 75%),
    radial-gradient(ellipse 38% 48% at 102% 82%, rgba(0, 140, 183, 0.25), transparent 76%),
    radial-gradient(ellipse 34% 55% at -8% 20%, rgba(0, 133, 172, 0.16), transparent 76%),
    linear-gradient(125deg, #052E42 0%, #00344B 48%, #052638 100%);
}
.closing--luminous::before {
  background:
    radial-gradient(ellipse 20% 18% at 50% 0%, rgba(0, 225, 238, 0.24), transparent 80%),
    radial-gradient(ellipse 30% 24% at 100% 78%, rgba(0, 183, 219, 0.17), transparent 80%);
}
.closing--luminous::after {
  height: 100%; opacity: 0.58;
  background-image: radial-gradient(rgba(0, 199, 229, 0.65) 0.8px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
}
.closing--luminous .closing__art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.closing--luminous .closing__art-glow { filter: drop-shadow(0 0 8px rgba(0, 219, 241, 0.75)); }
.closing--luminous .closing__cta {
  min-height: clamp(250px, 22vw, 290px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: clamp(1.15rem, 2vw, 1.6rem); padding-bottom: clamp(1.15rem, 2vw, 1.6rem);
}
.closing--luminous .closing__title {
  max-width: none; margin-bottom: 0.2rem;
  font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.07; letter-spacing: -0.025em;
}
.closing--luminous .closing__title em { color: #04D4E9; }
.closing--luminous .closing__flare {
  display: block; width: clamp(85px, 10vw, 120px); height: 2px;
  margin: 0.4rem auto 0.7rem;
  background: linear-gradient(90deg, transparent, #04D4E9 50%, transparent);
  box-shadow: 0 0 12px rgba(0, 225, 238, 0.72);
}
.closing--luminous .closing__sub {
  max-width: 72ch; margin-bottom: clamp(1rem, 1.6vw, 1.35rem);
  color: #E0EEF3; font-size: clamp(0.88rem, 1.1vw, 1rem);
}
.closing--luminous .closing__actions { gap: clamp(0.65rem, 1.5vw, 1rem); width: 100%; }
.closing--luminous .closing__actions .btn {
  min-height: 50px; border-radius: 9px; font-size: clamp(0.88rem, 1vw, 0.96rem);
  padding: 0.7rem 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 19, 33, 0.15);
}
.closing--luminous .closing__actions .btn--wa {
  width: min(100%, 270px); background: linear-gradient(125deg, #08CDE2, #0989C5);
  border-color: #14D8EC; box-shadow: 0 0 22px rgba(0, 210, 230, 0.26), 0 10px 26px rgba(0, 19, 33, 0.2);
}
.closing--luminous .closing__actions .btn--wa:hover { background: linear-gradient(125deg, #16DBEA, #0997CE); }
.closing--luminous .closing__actions .btn--outline {
  width: min(100%, 225px); color: #fff; border-color: #9BDCEB;
  background: rgba(0, 20, 34, 0.16);
}
.closing--luminous .closing__actions .btn--outline:hover { background: rgba(0, 173, 205, 0.15); border-color: #C0F0F6; }
@media (max-width: 600px) {
  .closing--luminous .closing__cta { min-height: 0; padding-top: 1.55rem; padding-bottom: 1.55rem; }
  .closing--luminous .closing__line-break { display: none; }
  .closing--luminous .closing__title { max-width: 14ch; font-size: clamp(1.75rem, 7vw, 2.15rem); }
  .closing--luminous .closing__sub { max-width: 30ch; }
  .closing--luminous .closing__actions { flex-direction: column; align-items: stretch; }
  .closing--luminous .closing__actions .btn--wa,
  .closing--luminous .closing__actions .btn--outline { width: 100%; min-height: 48px; }
}

/* ---------- 21. Helpers de espaciado ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.85rem; } .mt-2 { margin-top: 1.6rem; } .mt-3 { margin-top: 2.25rem; }
.stack > * + * { margin-top: 1rem; }

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__seal { order: -1; max-width: 380px; aspect-ratio: 16 / 10; }
  .hero__facts { grid-auto-flow: column; grid-template-columns: 1fr 1fr; }
  .authority { grid-template-columns: 1fr; }
  .files-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bg { width: 40%; opacity: 0.6; }                 /* tablet: la imagen reduce su presencia */
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
  .footer__copy { justify-self: center; }
  .footer__guard { justify-self: center; text-align: center; max-width: 60ch; }
}
@media (max-width: 720px) {
  /* Estas secciones ocupan varias pantallas; nunca ocultarlas a la espera
     de que entre en el viewport un porcentaje de toda su altura. */
  .grupo.reveal, .tray.reveal, .closing__cta.reveal { opacity: 1; transform: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.3s var(--ease); z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; margin-top: 0.8rem; }
  .nav-toggle { display: block; }
  .reto__item { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .files-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__bg { display: none; }                            /* móvil: se oculta para no robar legibilidad */
  .footer__col--brand { max-width: none; }
  .form__row { grid-template-columns: 1fr; }
  .hero__facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .container, .narrow { padding: 0 1.1rem; }
  .hero__facts { grid-template-columns: 1fr; }
}

/* ============================================================
   23. Accesibilidad: menos movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   24. ESTILOS POR PÁGINA (variantes con clases nuevas — no globales)
   ============================================================ */

/* --- servicios.html: índice lateral sticky + secciones de servicio --- */
.svc-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.svc-index { position: sticky; top: 100px; }
.svc-index__title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.svc-index ol { list-style: none; display: grid; gap: 0.2rem; counter-reset: svc; }
.svc-index a { display: flex; gap: 0.7rem; padding: 0.55rem 0; font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); transition: color 0.18s var(--ease); }
.svc-index a::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.svc-index a:hover, .svc-index a.is-current { color: var(--ink); }
.svc { scroll-margin-top: 100px; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.svc:first-child { padding-top: 0; }
.svc:last-child { border-bottom: 0; }
.svc__num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.svc__title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); margin: 0.3rem 0 1rem; font-weight: 500; }
.svc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.5rem; margin-top: 1.4rem; }
.svc__block h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; font-weight: 500; }
.svc__block p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-index { position: static; }
  .svc-index ol { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 1.2rem; }
  .svc-index a { border-bottom: 0; white-space: nowrap; }
  .svc__grid { grid-template-columns: 1fr; }
}

/* --- Bloque "Llave en Mano" (servicios) --- */
.llave { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 780px) { .llave { grid-template-columns: 1fr; } }

/* --- como-funciona.html: bloque de confidencialidad --- */
.confid { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--surface); }
.confid__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--seal); flex: none; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35); }
.confid h2 { max-width: 26ch; }
@media (max-width: 560px) { .confid { grid-template-columns: 1fr; } }

/* --- contacto.html: layout formulario + panel lateral --- */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.next-steps { list-style: none; display: grid; gap: 1.2rem; margin: 1.4rem 0; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; }
.next-steps li::before { counter-increment: ns; content: counter(ns); font-family: var(--mono); font-size: 0.8rem; color: #fff; background: var(--seal); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.contact-aside { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.contact-aside h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-aside .dl { list-style: none; display: grid; gap: 0.7rem; margin: 1.2rem 0; }
.contact-aside .dl li { font-size: 0.95rem; }
.contact-aside .dl .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; }
.privacy-note { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; }
.privacy-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* --- aviso-legal.html: documento legal editorial --- */
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.8rem; }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--ink-soft); }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 0.9rem; }
.legal ul { margin: 0 0 0.9rem 1.2rem; }
.legal__toc { border-left: 2px solid transparent; border-image: var(--seal) 1; padding-left: 1.2rem; margin-bottom: 2.5rem; }
.legal__toc ol { margin-left: 1.1rem; color: var(--ink-soft); }
/* Documentos legales (aviso, privacidad, cookies): índice, ficha del responsable y descarga PDF */
.legal h2[id], .legal h3[id] { scroll-margin-top: 96px; }
.legal ol { margin: 0 0 0.9rem 1.2rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 0.05em 0.35em; border-radius: 3px; }
.legal__toc-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.legal__toc li { margin-bottom: 0.35rem; }
.legal__toc a { display: inline-block; padding: 0.15rem 0; }
.legal__facts { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--line); }
.legal .legal__facts li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.3rem 1rem; padding: 0.65rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.legal__facts .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.legal__download { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.legal__download p { margin-bottom: 0.7rem; }
.legal__download .btn { white-space: normal; text-align: left; text-decoration: none; color: var(--ink); }
@media (max-width: 560px) { .legal .legal__facts li { grid-template-columns: 1fr; } }
.legal__tablewrap { overflow-x: auto; margin: 0 0 1.2rem; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 540px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.legal__table thead th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.legal .legal__table td, .legal .legal__table th { margin: 0; }
.legal__table tbody tr:last-child td { border-bottom: 0; }

/* --- faq.html: categorías (h2 reales, ver también §30) --- */
.faq-cat { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 2.5rem 0 0.4rem; }
.faq-cat:first-of-type { margin-top: 0; }

/* --- index.html: SECCIÓN "Mitos y realidades" (franja navy + 3 tarjetas a caballo) --- */
.myth { position: relative; background: var(--paper-2); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Franja superior navy: imagen de fondo (derecha) + velo + curvas de luz */
.myth__top {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 42% 62% at 14% -12%, rgba(0, 192, 221, 0.3), transparent 78%),
    linear-gradient(125deg, #052E42 0%, #00344B 48%, #052638 100%);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(4.25rem, 8vw, 6rem);  /* deja sitio para que las tarjetas monten sobre el borde */
}
/* Imagen de fondo (placeholder neutro) en la mitad derecha */
.myth__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 42%; z-index: 0; pointer-events: none; background: #0f4155; }
.myth__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
/* Velo: navy sólido a la izquierda (texto) → transparente a la derecha (imagen) */
.myth__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 70% at 12% 0%, rgba(0, 180, 216, 0.16), transparent 78%),
    linear-gradient(90deg, rgba(3, 37, 54, 0.98) 0%, rgba(3, 43, 61, 0.94) 34%, rgba(3, 47, 66, 0.62) 58%, rgba(3, 47, 66, 0.08) 88%);
}
/* Curvas y puntos de la identidad luminosa, sin interferir con el texto ni la foto. */
.myth__top::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0% 100%, transparent 0 70px, rgba(0, 200, 229, 0.19) 71px 72px, transparent 73px 150px),
    repeating-radial-gradient(circle at 100% 0%, transparent 0 85px, rgba(0, 200, 229, 0.13) 86px 87px, transparent 88px 175px);
}
.myth__top::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.48;
  background-image: radial-gradient(rgba(0, 199, 229, 0.65) 0.8px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 25% 76%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 25% 76%, #000 100%);
}

/* Encabezado sobre la franja navy */
.myth__head {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: clamp(1.5rem, 4vw, 3rem);
}
.myth__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: #6FC3E8; }
.myth__eyebrow-rule { width: 28px; height: 2px; background: #04D4E9; box-shadow: 0 0 10px rgba(0, 225, 238, 0.68); flex: none; }
.myth__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.12; margin: 0 0 0.7rem; max-width: 20ch; }
.myth__title em { font-style: italic; color: #04D4E9; }
.myth__title::after { content: ""; display: block; width: clamp(85px, 10vw, 120px); height: 2px; margin-top: 0.65rem; background: linear-gradient(90deg, #04D4E9, transparent); box-shadow: 0 0 12px rgba(0, 225, 238, 0.68); }
.myth__lead { font-family: var(--body); color: #E0EEF3; line-height: 1.5; font-size: 0.95rem; max-width: 56ch; margin: 0; }

/* Tarjeta pequeña (badge) a la derecha */
.myth__badge {
  display: grid; gap: 0.6rem; max-width: 220px; padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.myth__badge-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,148,206,0.18); color: #6FC3E8; }
.myth__badge-ic svg { width: 20px; height: 20px; }
.myth__badge-text { font-family: var(--display); font-style: italic; color: #eaf3f7; font-size: 0.95rem; line-height: 1.35; margin: 0; }

/* Tres tarjetas mito/realidad — montadas sobre el borde navy → claro */
.myth__cards {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-top: clamp(-3.75rem, -6.5vw, -4.75rem);
}
.myth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
.myth-card__media { position: relative; aspect-ratio: 2 / 1; background: var(--gris-humo); border-bottom: 1px solid var(--line); }
.myth-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.myth-card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--line-strong); }
.myth-card__body { padding: clamp(0.85rem, 1.6vw, 1.1rem); display: grid; gap: 0.7rem; }
.myth-card__block { display: grid; grid-template-columns: 34px 1fr; gap: 0.75rem; align-items: start; }
.myth-card__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.myth-card__ic svg { width: 18px; height: 18px; }
.myth-card__ic--myth { background: rgba(156,49,146,0.12); color: var(--magenta); }  /* magenta SOLO en MITO */
.myth-card__ic--real { background: rgba(1,148,206,0.12); color: var(--accent); }    /* azul en REALIDAD */
.myth-card__label { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.3rem; color: var(--accent); }
.myth-card__label--myth { color: var(--accent); }
.myth-card__label--real { color: var(--accent); }
.myth-card__myth { font-family: var(--display); color: var(--muted); font-weight: 500; font-size: 1.02rem; line-height: 1.3; margin: 0; }
.myth-card__real { font-family: var(--display); color: var(--ink); font-weight: 600; font-size: 1.02rem; line-height: 1.3; margin: 0; }
.myth-card__divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Cuatro atributos sobre fondo claro, con divisores verticales finos */
.myth__attrs {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0; padding-top: 0; padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.myth-attr { display: grid; gap: 0.4rem; justify-items: start; padding: 0 clamp(1rem, 2vw, 1.8rem); }
.myth-attr + .myth-attr { border-left: 1px solid var(--line); }
.myth-attr:first-child { padding-left: 0; }
.myth-attr:last-child { padding-right: 0; }
.myth-attr__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gris-humo); color: var(--ink); }
.myth-attr__ic svg { width: 22px; height: 22px; }
.myth-attr__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; margin: 0; }
.myth-attr__desc { font-family: var(--body); color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin: 0; }

/* Responsive "Mitos y realidades" */
@media (max-width: 900px) {
  .myth__head { grid-template-columns: 1fr; }
  .myth__badge { max-width: none; }
  .myth__cards { grid-template-columns: repeat(2, 1fr); margin-top: clamp(-3rem, -5.5vw, -4rem); }
  .myth-card:last-child { grid-column: 1 / -1; max-width: 520px; margin-inline: auto; }
  .myth__attrs { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; }
  .myth-attr:nth-child(odd) { border-left: 0; padding-left: 0; }
  .myth-attr:nth-child(even) { padding-right: 0; }
}
@media (max-width: 600px) {
  .myth__top { padding-bottom: clamp(4rem, 12vw, 6rem); }
  .myth__veil { background: linear-gradient(90deg, rgba(3, 37, 54, 0.98) 0%, rgba(3, 43, 61, 0.94) 64%, rgba(3, 47, 66, 0.54) 100%); }
  .myth__title br { display: none; }
  .myth__cards { grid-template-columns: 1fr; margin-top: clamp(-2.25rem, -8vw, -3rem); }
  .myth-card:last-child { grid-column: auto; max-width: none; }
  .myth__attrs { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: clamp(2rem, 6vw, 3rem); }
  .myth-attr, .myth-attr + .myth-attr { border-left: 0; padding: 0; }
}

/* --- index.html: SECCIÓN "El comprador más grande" (texto + collage con tarjetas de datos) --- */
.buyer { position: relative; background: var(--paper); overflow-x: clip; }
.buyer__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 4.5vw, 3.75rem); align-items: center; }

/* Columna izquierda */
.buyer__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.buyer__eyebrow-rule { width: 28px; height: 2px; background: var(--accent); flex: none; }
.buyer__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 1rem; max-width: 16ch; }
.buyer__title em { font-style: italic; color: var(--accent); }
.buyer__accent { color: var(--magenta); }
.buyer__lead { font-family: var(--body); color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 48ch; margin: 0 0 1.5rem; }
.buyer__cta { gap: 0.5rem; }
.buyer__cta .btn__arrow { transition: transform 0.18s var(--ease); }
.buyer__cta:hover .btn__arrow { transform: translateX(4px); }

.buyer__attrs { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; margin: 1.6rem 0 0; padding: 0; }
.buyer__attr { display: flex; align-items: center; gap: 0.65rem; }
.buyer__attr-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,148,206,0.1); color: var(--accent); }
.buyer__attr-ic svg { width: 20px; height: 20px; }
.buyer__attr-text { font-family: var(--body); font-weight: 600; color: var(--ink); font-size: 0.86rem; line-height: 1.2; margin: 0; }

/* Columna derecha: collage */
.buyer__media { position: relative; }
.buyer__stage { position: relative; }
.buyer__photo { position: relative; border-radius: var(--radius-lg); background: var(--gris-humo); overflow: hidden; }
.buyer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buyer__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--line-strong); }
.buyer__photo--main { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.buyer__photo--sub { aspect-ratio: 4 / 3; box-shadow: 0 10px 24px rgba(12,59,78,0.12), 0 0 0 4px var(--paper); }

/* Tarjetas de datos */
.buyer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.buyer-card__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,148,206,0.12); color: var(--accent); }
.buyer-card__ic svg { width: 19px; height: 19px; }
.buyer-card__label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.buyer-card__figure { font-family: var(--display); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.buyer-card__support { font-family: var(--body); font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin: 0; }

/* Tarjeta grande (cifra) flotante arriba-derecha */
.buyer-card--figure { position: absolute; top: 14px; right: -14px; z-index: 3; width: min(236px, 62%); display: grid; gap: 0.5rem; padding: 1rem 1.1rem; box-shadow: var(--sh-lg); }
.buyer-card--figure .buyer-card__figure { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0.1rem 0; }

/* Fila inferior: foto secundaria + columna de stats, montada sobre la foto principal */
.buyer__lower { position: relative; z-index: 2; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 14px; align-items: start; margin-top: clamp(-3.5rem, -6vw, -2.5rem); }
.buyer__stats { display: grid; gap: 12px; align-content: start; }
.buyer-card--row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; }
.buyer-card__figure--sm { font-size: 1.25rem; color: var(--ink); }
.buyer-card__rowlabel { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0.15rem 0 0; }
/* Tarjeta destacada: identidad luminosa a escala del collage. */
.buyer-card--intel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.05rem 1.15rem; display: grid; gap: 0.5rem;
  background:
    radial-gradient(ellipse 76% 65% at 100% 0%, rgba(0, 196, 223, 0.22), transparent 78%),
    linear-gradient(130deg, #052e42, #073c52 58%, #052638);
  border-color: rgba(4, 212, 233, 0.35);
  box-shadow: 0 12px 26px rgba(4, 45, 64, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
}
.buyer-card--intel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(4, 212, 233, 0.56) 0.7px, transparent 1.3px);
  background-size: 17px 17px; opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
}
.buyer-card__art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; fill: none; stroke: rgba(4, 212, 233, 0.23); stroke-width: 1; pointer-events: none; }
.buyer-card__art-glow { stroke: rgba(4, 212, 233, 0.68); filter: drop-shadow(0 0 5px rgba(0, 219, 241, 0.7)); }
.buyer-card--intel > p { position: relative; z-index: 1; }
.buyer-card--intel .buyer-card__label { color: #8CE9F3; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-shadow: 0 0 12px rgba(4, 212, 233, 0.38); }
.buyer-card--intel .buyer-card__label::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 0.55rem; background: linear-gradient(90deg, #04D4E9, transparent); box-shadow: 0 0 10px rgba(0, 225, 238, 0.6); }
.buyer-card--intel .buyer-card__support { color: rgba(255,255,255,0.9); font-size: 0.86rem; }

/* Responsive "El comprador más grande" */
@media (max-width: 900px) {
  .buyer__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .buyer__media { max-width: 560px; margin-inline: auto; }
  .buyer-card--figure { position: static; width: auto; margin-top: 14px; }  /* en flujo bajo la foto */
  .buyer__lower { grid-template-columns: 1fr; margin-top: 14px; }
}
@media (max-width: 600px) {
  .buyer__attrs { gap: 0.9rem 1.2rem; }
}

/* ============================================================
   25. REFINAMIENTO HOME · concepto "EXPEDIENTE"
   Folios, marcas de esquina, texturas, placeholders, franja
   de credibilidad, banner CTA, FAB de WhatsApp y stagger.
   ============================================================ */

/* --- 25.1 Folio de sección (mono, radicado): "SECCIÓN 01 / 06 · Nombre" --- */
.folio {
  font-family: var(--mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
}
.folio::before { content: ""; width: 22px; height: 2px; background: var(--seal); flex: none; }
.folio__n { color: var(--azul-profundo); }
.folio__t { color: var(--gris); }
.folio__t::before { content: "·"; margin-right: 0.5rem; color: var(--linea-strong); }

/* --- 25.2 Marcas de esquina de documento (4 ticks) en tarjetas --- */
.card-doc { position: relative; }
.card-doc::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 12px 1.5px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top left / 1.5px 12px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 12px 1.5px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 1.5px 12px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 12px 1.5px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 1.5px 12px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 12px 1.5px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1.5px 12px no-repeat;
}

/* --- 25.3 Hero: textura de puntos muy tenue + glow del degradado tras la tarjeta --- */
.hero__grid { position: relative; z-index: 1; }
.hero__texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--tick) 1px, transparent 1.4px);
  background-size: 24px 24px; opacity: 0.10;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 68%);
          mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 68%);
}
.hero__sealbox { position: relative; width: 100%; }
.hero__glow {
  position: absolute; inset: 4% 8%; z-index: 0;
  background: var(--seal); filter: blur(46px); opacity: 0.28; border-radius: 44%;
}
.hero__seal { position: relative; z-index: 1; box-shadow: var(--sh-lg); }
.hero__title { font-weight: 600; font-size: clamp(2.9rem, 6.2vw, 4.9rem); letter-spacing: -0.02em; line-height: 1.03; }

/* --- 25.4 Placeholders elegantes de imágenes y banners --- */
.slot {
  position: relative; display: grid; place-items: center; text-align: center;
  background: var(--gris-humo); border: 1px dashed var(--linea-strong);
  border-radius: var(--radius); color: var(--gris); overflow: hidden;
}
.slot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(12, 59, 78, 0.02) 10px 20px);
}
.slot__tag {
  position: relative; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); padding: 0.5rem 0.8rem;
}
.slot--1x1 { aspect-ratio: 1 / 1; }
.slot--21x9 { aspect-ratio: 21 / 9; }
.slot--4x5 { aspect-ratio: 4 / 5; }
.slot--16x9 { aspect-ratio: 16 / 9; }
.slot--logos { min-height: 96px; }
/* Imagen (provisional o real) que llena un slot; cuando existe, el marco pasa a hairline sólido */
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slot:has(.slot__img) { border-style: solid; border-color: var(--linea); background: none; }

/* Franja de logos de entidades/aliados (tenue, en escala de grises hasta hover) */
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 1.8rem; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 1.2rem 0; }
.logos-row__item { height: 40px; width: auto; filter: grayscale(1); opacity: 0.6; transition: opacity 0.2s var(--ease), filter 0.2s var(--ease); }
.logos-row__item:hover { filter: grayscale(0); opacity: 1; }

/* --- 25.5 Tarjetas de servicio (3 pilares) con mini-slot 1:1 --- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.svc-card {
  border: 1px solid var(--linea); background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--sh-md);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.svc-card__media { border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; }
.svc-card__body { padding: 1.2rem 1.2rem 1.4rem; }
.svc-card__num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.svc-card__title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0.25rem 0 0.5rem; }
.svc-card__text { color: var(--gris); font-size: 0.96rem; }

/* --- 25.6 Banner full-width (21:9) --- */
.banner-fw { margin: clamp(1.5rem, 4vw, 3rem) 0; }

/* --- 25.8 Banner CTA full-width con imagen de fondo + overlay oscuro --- */
.cta-banner { position: relative; overflow: hidden; min-height: clamp(260px, 34vw, 400px); display: grid; }
.cta-banner__media {
  position: absolute; inset: 0; z-index: 0; background: var(--gris-humo);
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(12, 59, 78, 0.03) 12px 24px);
}
.cta-banner__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-banner__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,59,78,0.55), rgba(12,59,78,0.80)); }
.cta-banner__tag {
  position: absolute; top: 14px; left: 16px; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); border: 1px dashed rgba(255,255,255,0.5); border-radius: 4px; padding: 0.3rem 0.55rem;
}
.cta-banner__inner { position: relative; z-index: 2; align-self: center; text-align: center; padding: clamp(2rem, 5vw, 3rem) 1.5rem; color: #fff; }
.cta-banner__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: var(--fs-h2); max-width: 22ch; margin: 0 auto 0.8rem; letter-spacing: -0.01em; }
.cta-banner__sub { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 1.6rem; }
.cta-banner__actions { display: flex; justify-content: center; }

/* --- 25.9 Botón flotante de WhatsApp (inyectado por main.js, en todo el sitio) --- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + var(--cookie-banner-h, 0px)); z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), bottom 0.3s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab__tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem; border-radius: 6px; box-shadow: var(--sh-md);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.wa-fab:hover .wa-fab__tip, .wa-fab:focus-visible .wa-fab__tip { opacity: 1; }

/* --- 25.10 Stagger de aparición (respeta reduce-motion más abajo) --- */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible .stagger > *, .stagger.is-visible > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 0.09s); }

/* --- 25.11 Responsive del refinamiento --- */
@media (max-width: 900px) {
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .hero__sealbox { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .cards3 { grid-template-columns: 1fr; }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: calc(16px + var(--cookie-banner-h, 0px)); }
  .wa-fab__tip { display: none; }
  .footer { padding-bottom: 92px; }  /* que el FAB no tape el footer en móvil */
}

/* --- 25.12 Accesibilidad: sin movimiento --- */
@media (prefers-reduced-motion: reduce) {
  .stagger > * { opacity: 1 !important; transform: none !important; }
  .wa-fab:hover { transform: none; }
  .svc-card:hover { transform: none; }
}

/* ============================================================
   26. HERO INMERSIVO compartido · imagen de fondo + doble overlay
   ============================================================ */
.hero-im { position: relative; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; }
/* El header es sticky y ocupa 74px reales en el flujo: se descuentan para que
   header + hero quepan exactos en una sola pantalla, sin scroll sobrante. */
@supports (height: 100svh) { .hero-im { min-height: calc(100svh - 74px); } }
.hero-im__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transform-origin: center center; will-change: transform;
}
/* Ken Burns: zoom MUY lento y sutil, ida y vuelta, en bucle infinito.
   Solo la imagen se anima; overlay/puntos/contenido (z-index mayor) quedan quietos. */
@media (prefers-reduced-motion: no-preference) {
  .hero-im__bg { animation: heroZoom 26s ease-in-out infinite alternate; }
}
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.045); } }
.hero-im__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 42% 58% at 18% 5%, rgba(0, 153, 191, 0.18), transparent 78%),
    linear-gradient(100deg, rgba(3, 37, 54, 0.97) 0%, rgba(3, 43, 61, 0.89) 34%, rgba(3, 47, 66, 0.44) 57%, rgba(3, 47, 66, 0.06) 82%);
}
.hero-im__dots {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(0, 199, 229, 0.55) 0.9px, transparent 1.5px); background-size: 24px 24px;
  /* Desvanece de izquierda (visible, acompaña el texto) a derecha (transparente, no choca con las personas) */
  -webkit-mask-image: linear-gradient(to right, black 0%, black 28%, transparent 62%);
          mask-image: linear-gradient(to right, black 0%, black 28%, transparent 62%);
}
.hero-im__art { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 8px rgba(0, 219, 241, 0.58)); }

.hero-im__body { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; padding-bottom: 40px; }
.hero-im__content { max-width: 660px; color: #fff; }
.hero-im__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.hero-im__title em { font-style: italic; color: #04D4E9; }
.hero-im__flare { display: block; width: clamp(90px, 10vw, 125px); height: 2px; margin: 0.65rem 0 1.1rem; background: linear-gradient(90deg, #04D4E9, transparent); box-shadow: 0 0 12px rgba(0, 225, 238, 0.65); }
.hero-im__lead { font-size: 1.06rem; line-height: 1.55; color: #dbe8ee; max-width: 52ch; margin-bottom: 1.8rem; }
.hero-im__content .page-hero__meta { color: rgba(255,255,255,0.72); }
.hero-im__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Botones del hero: primario en degradado + secundario glass */
.btn--grad { background: var(--seal); color: #fff; border: 0; }
.btn--grad:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); filter: brightness(1.06); }
.btn--glass { background: rgba(255,255,255,0.10); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: translateY(-2px); }
.btn--glass .arrow { transition: transform 0.18s var(--ease); }
.btn--glass:hover .arrow { transform: translateX(4px); }
.hero-im__actions .btn--grad { background: linear-gradient(125deg, #08CDE2, #0989C5); border: 1px solid #14D8EC; box-shadow: 0 0 22px rgba(0, 210, 230, 0.22), 0 10px 26px rgba(0, 19, 33, 0.18); }
.hero-im__actions .btn--grad:hover { background: linear-gradient(125deg, #16DBEA, #0997CE); }
.hero-im__actions .btn--glass { background: rgba(0, 20, 34, 0.22); border-color: #9BDCEB; }
.hero-im__actions .btn--glass:hover { background: rgba(0, 173, 205, 0.16); border-color: #C0F0F6; }

/* Tarjeta de datos flotante (glassmorphism) — cifras por confirmar (con *) */
.hero-im__card {
  position: absolute; right: 1.5rem; bottom: 22px; z-index: 4;
  display: flex; gap: 1.6rem; padding: 1.1rem 1.6rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--sh-lg);
}
.hero-im__stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-im__stat span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #dbe8ee; }
.hero-im__stat + .hero-im__stat { border-left: 1px solid rgba(255,255,255,0.28); padding-left: 1.6rem; }

/* Aparición al cargar el hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-im__content > *, .hero-im__card { animation: heroIn 0.75s var(--ease) both; }
  .hero-im__content > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-im__content > *:nth-child(2) { animation-delay: 0.13s; }
  .hero-im__content > *:nth-child(3) { animation-delay: 0.21s; }
  .hero-im__content > *:nth-child(4) { animation-delay: 0.29s; }
  .hero-im__card { animation-delay: 0.42s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --- Responsive del hero inmersivo --- */
@media (max-width: 900px) {
  .hero-im__card { display: none; }  /* ocultar tarjeta de datos en móvil/tablet */
}
@media (max-width: 720px) {
  .hero-im__body { padding-top: 24px; padding-bottom: 32px; }
  .hero-im__lead { font-size: 1.08rem; }
  .hero-im__art { opacity: 0.65; }
}

/* ============================================================
   27. "QUÉ HACEMOS" · filas alternas (zig-zag) + fondo 3D sutil
   ============================================================ */
.qh { position: relative; overflow: hidden; }
/* Escala compacta para que la sección entre en una sola vista */
.section.qh { padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.qh .folio { margin-bottom: 0.7rem; }
.qh .h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); max-width: 30ch; }
.qh .lead { font-size: 1rem; }
/* Fondo sutil (Opción C): halo de marca difuminado en las esquinas.
   Solo CSS, estático — glow tenue, NO bloque de color; blanco protagonista. */
.qh__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(1,148,206,0.12), rgba(112,89,175,0.08) 35%, transparent 65%),
    radial-gradient(circle at 0% 100%, rgba(1,148,206,0.06), transparent 55%);
}
.qh__inner { position: relative; z-index: 1; }

.qh__rows { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.qh-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.qh-row--rev .qh-row__media { order: 2; }               /* zig-zag: imagen a la derecha */
/* Altura fija relativa al viewport para que 3 filas + intro entren en una vista */
.qh-row__media .slot { box-shadow: var(--sh-md); aspect-ratio: auto; height: clamp(140px, 20vh, 210px); }
.slot--4x3 { aspect-ratio: 4 / 3; }

/* Panel de texto casi sólido: el 3D NUNCA estorba la lectura */
.qh-panel {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid var(--linea); border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.2vw, 1.5rem); box-shadow: var(--sh-md);
}
.qh-panel__num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.qh-panel__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink); margin: 0.2rem 0 0.35rem; }
.qh-panel__text { color: var(--gris); font-size: 0.95rem; line-height: 1.5; }

/* ============================================================
   28. LEGAL · Banner de cookies, panel de configuración y enlaces legales
   ============================================================ */
/* Banner inferior fijo (consentimiento) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: var(--surface, #fff);
  border-top: 1px solid rgba(12,59,78,0.14);
  box-shadow: 0 -8px 30px rgba(12,59,78,0.14);
  padding: 0.95rem clamp(1rem, 4vw, 2rem);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--max-w, 1200px); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
}
.cookie-banner__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink); max-width: 64ch; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Botones del consentimiento (compactos, identidad azul/navy) */
.cookie-btn {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1;
  padding: 0.62rem 1.05rem; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--primary { background: var(--accent); color: #fff; }
.cookie-btn--primary:hover { filter: brightness(1.06); }
.cookie-btn--ghost { background: transparent; color: var(--ink); border-color: rgba(12,59,78,0.28); }
.cookie-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.cookie-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Panel de configuración (modal accesible) */
.cookie-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cookie-modal[hidden] { display: none; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(11,49,66,0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cookie-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto;
  background: var(--surface, #fff); border-radius: var(--radius-lg); box-shadow: var(--sh-lg);
  padding: clamp(1.3rem, 3vw, 1.8rem);
}
.cookie-modal__title { font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin: 0 0 0.4rem; }
.cookie-modal__intro { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.6rem; }
.cookie-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid rgba(12,59,78,0.1); }
.cookie-opt__info strong { display: block; font-size: 0.95rem; color: var(--ink); }
.cookie-opt__info span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }

/* Interruptor (toggle) accesible */
.cookie-switch { position: relative; display: inline-block; flex-shrink: 0; width: 42px; height: 24px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 0; background: rgba(12,59,78,0.25); border-radius: 999px; transition: background 0.2s var(--ease); }
.cookie-switch span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease); }
.cookie-switch input:checked + span { background: var(--accent); }
.cookie-switch input:checked + span::before { transform: translateX(18px); }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + span { opacity: 0.55; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Enlaces legales del footer: centrados dentro de la barra inferior (footer oscuro → enlaces claros) */
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; justify-self: center; font-family: var(--mono); letter-spacing: 0.04em; }
.footer__legal a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* Estado de error del formulario (consentimiento faltante) */
.form__status.is-error { color: #c0392b; font-weight: 500; }

/* Checkbox de consentimiento del formulario */
.field--check { margin-top: 0.2rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.check input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--accent); text-decoration: underline; }

/* Móvil: banner apilado y botones a ancho completo */
@media (max-width: 620px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 auto; text-align: center; }
}

/* Accesibilidad: sin movimiento */
@media (prefers-reduced-motion: reduce) {
  .cookie-btn:hover { transform: none; }
  .cookie-switch span, .cookie-switch span::before { transition: none; }
}

@media (max-width: 760px) {
  .qh-row { grid-template-columns: 1fr; }
  .qh-row--rev .qh-row__media { order: 0; }             /* en móvil, imagen siempre arriba */
}

/* ============================================================
   29. NOSOTROS · "Grupo ACEC" — tarjetas + línea de tiempo (persona natural → S.A.S. → Grupo)
   ============================================================ */
.grupo { --grupo-gap: 1rem; position: relative; overflow: hidden; }
/* Sección compacta: entra en una sola vista. El padding superior lo asume la banda. */
.section.grupo { padding-top: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* --- BANDA SUPERIOR — contiene la imagen + velo; limita la foto al encabezado.
       Con alto propio para que la foto tenga presencia y no se recorte a una tira. --- */
.grupo__top {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(260px, 32vw, 380px);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.3rem, 0.9vw, 0.6rem);
}
.grupo__top > .container { position: relative; z-index: 2; width: 100%; }

/* --- CAPA 1 — imagen de fondo (anclada arriba-derecha), solo dentro de la banda --- */
.grupo__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--gris-humo);
}
.grupo__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right top;
}

/* --- CAPA 2 — velo degradado blanco: protege toda la columna de texto (izquierda) con blanco
       sólido y deja la imagen nítida solo en el tercio derecho; se funde a blanco abajo --- */
.grupo__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* borde inferior → blanco, para cerrar la banda justo en la línea de tiempo */
    linear-gradient(to bottom, rgba(251,251,249,0) 62%, var(--paper) 100%),
    /* casi horizontal: blanco sólido en la zona del texto → transparente a la derecha (imagen).
       Degradado corrido a la izquierda para revelar más el logo, sin perder legibilidad del texto. */
    linear-gradient(100deg, var(--paper) 0%, var(--paper) 36%, rgba(251,251,249,0.85) 50%, rgba(251,251,249,0.42) 67%, rgba(251,251,249,0.06) 88%);
}

/* --- Contenido sin imagen de fondo --- */
.grupo__content { position: relative; z-index: 2; padding-top: clamp(0.5rem, 1.5vw, 1rem); }

/* Eyebrow compartido (encabezado + tarjetas) */
.grupo__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.grupo__eyebrow-rule { width: 32px; height: 2px; background: var(--magenta); flex: none; }
.grupo__eyebrow-label {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.grupo__accent { color: var(--magenta); }  /* punto final como acento */

/* --- Encabezado: solo texto, a la izquierda sobre la zona blanca del velo --- */
.grupo__head { max-width: 520px; }
.grupo__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; max-width: 520px; margin: 0 0 0.9rem; }
.grupo__lead { font-family: var(--body); font-size: 1.12rem; color: var(--ink-soft); max-width: 500px; line-height: 1.55; margin: 0; }

/* --- Línea de tiempo horizontal (decorativa): azul → magenta, 1 punto por tarjeta --- */
.grupo__rail {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--grupo-gap); align-items: center; height: 12px; margin-bottom: 14px;
}
.grupo__rail-line {
  grid-column: 1 / -1; grid-row: 1; height: 1.5px; align-self: center; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, #5272C3 50%, var(--magenta) 100%);
}
.grupo__rail-dot {
  grid-row: 1; justify-self: center; align-self: center; z-index: 1;
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(12, 59, 78, 0.06);
}
.grupo__rail-dot--1 { grid-column: 1; background: #A7C4D1; }   /* gris azulado: inicio */
.grupo__rail-dot--2 { grid-column: 2; background: var(--accent); } /* azul de marca */
.grupo__rail-dot--3 { grid-column: 3; background: #5272C3; }   /* azul-violeta intermedio */
.grupo__rail-dot--4 { grid-column: 4; background: var(--magenta); } /* magenta: hoy */

/* --- Tres tarjetas: SOLO texto, sobre la zona sin foto --- */
.grupo__cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grupo-gap);
}
/* Tarjeta de hito VERTICAL: foto-banner arriba + texto con sustancia debajo */
.grupo__card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.grupo__card-body {
  display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}
/* Foto de la etapa: banner superior a proporción fija */
.grupo__card-media { position: relative; margin: 0; min-width: 0; aspect-ratio: 16 / 10; background: var(--gris-humo); }
.grupo__card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grupo__ghost {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  line-height: 0.9; color: rgba(12, 59, 78, 0.1); margin-bottom: 0.35rem;
}
.grupo__eyebrow--card { margin-bottom: 0.45rem; }
.grupo__eyebrow--card .grupo__eyebrow-rule { width: 22px; }
.grupo__eyebrow--card .grupo__eyebrow-label { font-size: 0.62rem; letter-spacing: 0.1em; }
.grupo__card-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 0.35rem; line-height: 1.25; }
.grupo__card-desc { font-family: var(--body); font-size: 0.84rem; color: var(--muted); line-height: 1.45; margin: 0; }

/* --- Franja inferior: mención a BIOACEC --- */
.grupo__bio {
  display: flex; align-items: center; gap: clamp(0.85rem, 2vw, 1.5rem);
  margin-top: clamp(1.1rem, 2vw, 1.6rem); padding: clamp(0.7rem, 1.4vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  background: rgba(1, 148, 206, 0.055); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.grupo__bio-ic {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent); background: var(--surface);
}
.grupo__bio-ic svg { width: 22px; height: 22px; }
.grupo__bio-text { font-family: var(--body); font-size: 0.92rem; color: var(--muted); margin: 0; flex: 1 1 auto; }
.grupo__bio-brand { font-family: var(--display); font-weight: 600; color: var(--ink); }
.grupo__bio-deco { flex: none; pointer-events: none; }

/* --- Las dos líneas complementarias (tesis: proveedor del Estado + asesor de privados) --- */
.grupo__lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem); }
.grupo__line { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 2.4vw, 1.85rem); }
.grupo__line--consult { border-top-color: var(--magenta); }
.grupo__line-eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; color: var(--accent); margin: 0 0 0.5rem; }
.grupo__line--consult .grupo__line-eyebrow { color: var(--magenta); }
.grupo__line-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ink); line-height: 1.1; margin: 0 0 0.5rem; }
/* Placa de marca dentro de cada línea: misma medida y fondo en ambas tarjetas (simetría):
   blanco con filete, para que ambos logos se lean sobre fondo claro. */
.grupo__line-logo-tile { display: flex; align-items: center; justify-content: flex-start; height: 80px; margin: 0 0 1rem; }
.grupo__line-logo { height: 48px; width: auto; display: block; }
/* BIOACEC trae sombra/margen propios: se amplía para igualar el peso visual del de Consulting. */
.grupo__line--bio .grupo__line-logo { height: 64px; }
.grupo__line-desc { font-family: var(--body); color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* --- Frase puente: cierra la sección y lleva a #trayectoria --- */
.grupo__bridge { margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0; max-width: 56rem; text-align: center; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.4; color: var(--ink); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.grupo__bridge strong { font-weight: 600; font-style: normal; color: var(--accent); }

/* --- Responsive: tablet → 2 columnas; la línea horizontal se oculta (quedan los números) --- */
@media (max-width: 900px) {
  .grupo__rail { display: none; }
  .grupo__cards { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsive: móvil → 1 columna; la imagen cede presencia y el velo casi blanco --- */
@media (max-width: 600px) {
  /* El velo se vuelve casi blanco; la imagen solo insinúa en la esquina superior derecha */
  .grupo__veil {
    background:
      linear-gradient(to bottom, rgba(251,251,249,0.15) 0%, var(--paper) 72%),
      linear-gradient(125deg, var(--paper) 0%, var(--paper) 60%, rgba(251,251,249,0.55) 85%, rgba(251,251,249,0.3) 100%);
  }
  .grupo__cards { grid-template-columns: 1fr; }
  .grupo__bio { flex-direction: column; text-align: center; }
  .grupo__lines { grid-template-columns: 1fr; }
}

/* ============================================================
   30. FAQ · explorador de dos paneles (≥900px) + acordeón clásico (<900px)
   ============================================================ */

/* --- Explorador (índice + panel de respuesta) --- */
.faq-explorer {
  display: grid; grid-template-columns: 45% 55%;
  min-height: 420px;
  border: 0.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
}

.faq-explorer__index {
  background: var(--ink); padding: 20px 0; max-height: 420px; overflow-y: auto;
  list-style: none;
}
.faq-explorer__cat {
  font-family: var(--mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #9fc0cd; padding: 18px 20px 8px; margin: 0;
}
.faq-explorer__cat:first-child { padding-top: 4px; }

.faq-explorer__tab {
  display: block; width: 100%; text-align: left; background: none; cursor: pointer;
  border: 0; border-left: 2px solid transparent;
  padding: 11px 20px 11px 18px;
  font-family: var(--body); font-size: 0.86rem; line-height: 1.4; color: #b9d1da;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.faq-explorer__tab:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.faq-explorer__tab.is-active { border-left-color: var(--magenta); background: rgba(255, 255, 255, 0.08); color: #fff; }
.faq-explorer__tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.faq-explorer__panel { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }

.faq-explorer__media { position: relative; height: 150px; flex: none; overflow: visible; }
.faq-explorer__img { position: relative; z-index: 0; width: 100%; height: 150px; object-fit: cover; display: block; }
.faq-explorer__num {
  position: absolute; z-index: 1; right: 24px; bottom: -22px;
  background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 600;
  font-size: 1.25rem; line-height: 1; padding: 10px 16px; border-radius: var(--radius-lg); box-shadow: var(--sh-md);
}

.faq-explorer__content { flex: 1; overflow-y: auto; padding: 30px 24px 24px; }
.faq-explorer__cat-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.faq-explorer__question { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); max-width: 330px; line-height: 1.3; margin: 0 0 0.7rem; }
.faq-explorer__text { font-family: var(--body); font-size: 0.9rem; color: var(--muted); line-height: 1.65; max-width: 46ch; }
.faq-explorer__text a { color: var(--accent); text-decoration: underline; }

/* Entrada del contenido al cambiar de pregunta (prefers-reduced-motion ya cubierto en §23) */
@keyframes faqAnswerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.faq-explorer__answer:not([hidden]) { animation: faqAnswerIn 0.35s var(--ease); }

/* --- Acordeón clásico (degradación <900px) --- */
.faq-acc { display: none; }

@media (max-width: 899px) {
  .faq-explorer { display: none; }
  .faq-acc { display: block; }
}

/* ============================================================
   §27  NOSOTROS — Bloque "Dirección" (#autoridad), rediseño 2026-09-27
   PARTE A: bloque blanco 50/50 (foto full-bleed izq. con nombre
   sobrepuesto + contenido der. con cita y 3 pilares).
   PARTE B: franja navy full-width (intro izq. + timeline 01–04 der.).
   Clases nuevas .dir2* (no toca .authority/.dossier ni el antiguo .dir).
   ============================================================ */

/* Eyebrow compartido (rayita + label mono) */
.dir2__eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.13em; font-size: 0.66rem;
  color: var(--accent); margin: 0 0 0.6rem;
}
.dir2__eyebrow-rule { width: 26px; height: 2px; background: var(--seal); flex: none; border-radius: 2px; }
.dir2__eyebrow--light { color: #7FC5E4; }
.dir2__eyebrow--light .dir2__eyebrow-rule { background: var(--accent); }

/* ===== PARTE A ===== */
.dir2a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  /* Cap de ancho: sin esto, en monitores ultrawide/4K la columna de foto
     crece pero el alto (definido por el contenido) casi no cambia, y el
     object-fit:cover termina recortando la cara. */
  max-width: 2200px;
  margin-right: auto;
}

/* Columna izquierda: foto full-bleed con nombre sobrepuesto */
.dir2a__portrait { position: relative; margin: 0; min-height: 100%; overflow: hidden; background: var(--paper-2); }
.dir2a__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.dir2a__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(12,59,78,0.92) 0%, rgba(12,59,78,0.55) 45%, rgba(12,59,78,0) 100%);
}
.dir2a__name { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; color: #fff; }
.dir2a__rule { display: block; width: 34px; height: 3px; background: var(--accent); border-radius: 2px; margin: 9px 0 8px; }
.dir2a__role { font-family: var(--body); font-size: 13px; color: #fff; }
.dir2a__spec { font-family: var(--body); font-weight: 600; font-size: 13px; color: #fff; margin-top: 1px; }

/* Columna derecha: contenido */
.dir2a__content { padding: clamp(1.75rem, 3vw, 3.25rem); align-self: center; }
.dir2a__title {
  font-family: var(--display); font-weight: 600; color: #0B4E68;
  font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.15; margin: 0 0 1rem;
}
.dir2a__p { font-family: var(--body); color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 0.9rem; max-width: 62ch; }
.dir2a__p a { color: var(--accent); text-decoration: underline; }

/* 3 pilares · separados del texto con un filete fino */
.dir2a__pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.2rem; margin: 1.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.dir2a__pillar { display: grid; gap: 0.45rem; align-content: start; }
.dir2a__pillar-ic {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #EAF2FB; color: var(--accent);
}
.dir2a__pillar-ic svg { width: 18px; height: 18px; }
.dir2a__pillar-title { font-family: var(--body); font-weight: 600; color: var(--ink); font-size: 0.9rem; line-height: 1.25; margin: 0.15rem 0 0; }
.dir2a__pillar-text { font-family: var(--body); color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

/* ===== PARTE B — método con el lenguaje luminoso del cierre ===== */
.dir2b {
  background:
    radial-gradient(ellipse 44% 44% at 50% -12%, rgba(0, 192, 221, 0.3), transparent 75%),
    radial-gradient(ellipse 38% 48% at 102% 82%, rgba(0, 140, 183, 0.22), transparent 76%),
    radial-gradient(ellipse 34% 55% at -8% 20%, rgba(0, 133, 172, 0.14), transparent 76%),
    linear-gradient(125deg, #052E42 0%, #00344B 48%, #052638 100%);
  position: relative; overflow: hidden;
}
.dir2b::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 20% 18% at 50% 0%, rgba(0, 225, 238, 0.22), transparent 80%),
    radial-gradient(ellipse 30% 24% at 100% 78%, rgba(0, 183, 219, 0.14), transparent 80%);
}
.dir2b::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(0, 199, 229, 0.65) 0.8px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
}
.dir2b__art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.dir2b__art-glow { filter: drop-shadow(0 0 8px rgba(0, 219, 241, 0.6)); }
.dir2b__inner {
  position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto;
  padding: clamp(1.1rem, 2vw, 1.6rem) 1.5rem;
  display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem); align-items: center;
}
.dir2b__intro { min-width: 0; text-align: left; }
.dir2b__intro .dir2__eyebrow { color: #9ADDEB; }
.dir2b__intro .dir2__eyebrow-rule { background: #04D4E9; }
.dir2b__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.2; margin: 0.35rem 0 0.4rem; }
.dir2b__title em { font-style: italic; color: #04D4E9; }
.dir2b__lead { font-family: var(--body); color: #E0EEF3; line-height: 1.45; font-size: 0.78rem; max-width: 46ch; margin: 0; }

/* Timeline horizontal 01–04 */
.dir2b__timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; margin: 0; padding: 0; }
.dir2b__timeline::before { content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(89, 197, 222, 0.38); }
.dir2b__step { display: grid; justify-items: center; text-align: center; gap: 0.35rem; position: relative; }
.dir2b__node {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #47BCD8; background: #073B50; color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 0.85rem; position: relative; z-index: 1;
}
.dir2b__node--fill { background: #04ACD0; border-color: #04D4E9; box-shadow: 0 0 0 4px rgba(4, 212, 233, 0.16), 0 0 14px rgba(4, 212, 233, 0.38); }
.dir2b__step-title { font-family: var(--body); font-weight: 600; color: #fff; font-size: 0.86rem; margin: 0; }
.dir2b__step-text { font-family: var(--body); color: rgba(255,255,255,0.76); font-size: 0.73rem; line-height: 1.35; max-width: 22ch; margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .dir2a { grid-template-columns: 1fr; }
  .dir2a__portrait { height: 300px; min-height: 0; }
  .dir2a__pillars { grid-template-columns: 1fr; }

  .dir2b__inner { grid-template-columns: 1fr; }
  .dir2b__art { opacity: 0.7; }
  /* Timeline vertical: línea a la izquierda, hitos apilados */
  .dir2b__timeline { grid-template-columns: 1fr; gap: 0; }
  .dir2b__timeline::before { top: 19px; bottom: 19px; left: 19px; right: auto; width: 1px; height: auto; }
  .dir2b__step { grid-template-columns: 38px 1fr; align-items: start; justify-items: start; text-align: left; column-gap: 0.85rem; row-gap: 0.1rem; padding-bottom: 1.2rem; }
  .dir2b__step:last-child { padding-bottom: 0; }
  .dir2b__node { grid-column: 1; grid-row: 1 / span 2; }
  .dir2b__step-title { grid-column: 2; }
  .dir2b__step-text { grid-column: 2; max-width: none; }
}

/* ============================================================
   §28  NOSOTROS — Trayectoria (#trayectoria), rediseño 2026
   Trayectoria real de dos patas, sistema "El Expediente":
   Encabezado · Bloque A (le hemos vendido al Estado · cifras mono)
   Bloque B (empresas acompañadas) · Bloque C (caso destacado)
   Bloque D (carrusel de entidades — reutiliza entities.css + main.js).
   ============================================================ */
.tray { position: relative; }
.tray__a { padding-top: clamp(1.25rem, 2.4vw, 2.25rem); padding-bottom: clamp(1.4rem, 2.8vw, 2.4rem); }

/* Encabezado */
.tray__head { max-width: 48rem; margin: 0 0 clamp(1.25rem, 2.6vw, 2rem); }
.tray__title { font-family: var(--display); font-weight: 600; color: #0B4E68; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.12; margin: 0 0 0.6rem; }
.tray__intro { font-family: var(--body); color: var(--muted); line-height: 1.6; font-size: 0.95rem; margin: 0; max-width: 62ch; }
/* El primer bloque que queda dentro de .tray__a (Acuerdos Marco) ya no necesita margen superior:
   el bloque de apertura rediseñado vive arriba, a lo ancho completo. */
.tray__a > .tray-am:first-child { margin-top: 0; }

/* ============================================================
   BLOQUE DE APERTURA REDISEÑADO (#trayectoria): franja a dos
   columnas + panel fotográfico diagonal + tira de entidades.
   Full-bleed (fuera de .container). Mantiene "El Expediente".
   ============================================================ */
.tray-open { --tray-open-py: clamp(2rem, 4.5vw, 3.75rem); position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
/* Forma diagonal sutil a la izquierda (tinte de marca, muy discreta) */
.tray-open::before { content: ""; position: absolute; inset: 0 auto 0 0; width: clamp(120px, 22vw, 340px); background: linear-gradient(135deg, var(--exp-accent-08), transparent 70%); clip-path: polygon(0 0, 68% 0, 0 100%); pointer-events: none; z-index: 0; }

.tray-open__inner { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: var(--tray-open-py) 1.5rem; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); grid-template-areas: "intro ." "stats stats"; align-content: space-between; gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.75rem); min-height: clamp(440px, 44vw, 580px); }

/* Columna izquierda */
.tray-open__intro { grid-area: intro; }
.tray-open__eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--accent); margin: 0 0 0.7rem; }
.tray-open__title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0 0 0.85rem; }
.tray-open__lead { font-family: var(--body); color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; max-width: 46ch; }

/* Titular editorial — mismo diseño que .tray-open__title; se aplica a labels de sección puntuales (Acuerdos Marco de Precios, Consultoría) */
.tray-headline { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0 0 0.85rem; }

/* Callout destacado (caja con tinte azul claro + ícono de documento) */
.tray-open__callout { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.35rem 0 0; padding: 0.9rem 1.1rem; background: var(--exp-accent-08); border: 1px solid var(--exp-accent-30); border-left: 3px solid var(--accent); border-radius: var(--radius); max-width: 48ch; }
.tray-open__callout-ic { flex: none; color: var(--accent); line-height: 0; margin-top: 2px; }
.tray-open__callout-ic svg { width: 22px; height: 22px; }
.tray-open__callout-text { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; color: var(--ink); font-size: 1rem; line-height: 1.4; }

/* Columna derecha — tres tarjetas de cifra */
.tray-open__stats { grid-area: stats; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.1rem); }
.tray-stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-md); padding: 1rem 1.15rem 1.05rem; }
.tray-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--seal); }
.tray-stat__ic { display: inline-flex; color: var(--accent); margin: 0 0 0.5rem; }
.tray-stat__ic svg { width: 24px; height: 24px; }
.tray-stat__num { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.05; margin: 0 0 0.35rem; }
.tray-stat__label { font-family: var(--body); color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin: 0; }

/* Panel fotográfico diagonal (derecha), fundido al navy; bleed al borde del viewport */
.tray-open__photo { position: absolute; top: 0; right: 0; width: clamp(360px, 48%, 760px); height: 62%; background: var(--gris-humo); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; display: grid; place-items: center; z-index: 1; }
.tray-open__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tray-open__veil { position: absolute; inset: 0; background: linear-gradient(225deg, transparent 35%, rgba(12, 59, 78, 0.55) 72%, var(--ink) 100%); }
.tray-open__photo-ph { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; line-height: 1.5; padding: 1rem; }

/* Tira de entidades (ancho completo) */
.tray-open__entities { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tray-open__entities-inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(1rem, 2.4vw, 1.5rem) 1.5rem; }
.tray-open__entities-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--accent); margin: 0 0 0.85rem; }
.tray-open__entities-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.tray-ent { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--body); font-size: 0.9rem; color: var(--ink); }
.tray-ent__ic { display: inline-flex; color: var(--accent); flex: none; }
.tray-ent__ic svg { width: 18px; height: 18px; }

/* Responsive del bloque de apertura */
@media (max-width: 1023px) {
  .tray-open__inner { grid-template-columns: 1fr; grid-template-areas: "intro" "stats"; align-content: start; min-height: 0; gap: clamp(1.5rem, 4vw, 2rem); }
  .tray-open__photo { position: relative; width: auto; height: clamp(160px, 28vw, 240px); margin: 0 0 1.25rem; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .tray-open__veil { background: linear-gradient(180deg, transparent 45%, rgba(12, 59, 78, 0.55) 100%); }
}
@media (max-width: 767px) {
  .tray-open__photo { display: none; }
  .tray-open__stats { grid-template-columns: 1fr; }
  .tray-open__entities-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1rem; }
}
@media (max-width: 560px) {
  .tray-open__entities-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Eyebrow + títulos de bloque reutilizables */
.tray-sec__eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--accent); margin: 0 0 0.5rem; }
.tray-sec__title { font-family: var(--display); font-weight: 600; color: #0B4E68; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.15; margin: 0 0 0.4rem; }
.tray-sec__sub { font-family: var(--body); color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 56ch; }

/* ----- Bloque A — Le hemos vendido al Estado (cifras tipo expediente) ----- */
.tray-exp { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--sh-md); padding: clamp(1.15rem, 2.2vw, 1.65rem); }
.tray-exp__eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.64rem; color: var(--accent); margin: 0 0 0.35rem; }
.tray-exp__title { font-family: var(--display); font-weight: 600; color: #0B4E68; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.1; margin: 0 0 1.15rem; }
.tray-exp__stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tray-exp__stat { padding: 1.1rem clamp(0.6rem, 1.4vw, 1.2rem) 0.2rem; border-left: 1px solid var(--line); }
.tray-exp__stat:first-child { border-left: 0; padding-left: 0; }
.tray-exp__num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.5rem; }
.tray-exp__label { font-family: var(--body); color: var(--muted); font-size: 0.78rem; line-height: 1.45; margin: 0; }
.tray-exp__connect { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); font-family: var(--body); font-size: 0.9rem; color: var(--ink); line-height: 1.55; }
.tray-exp__connect a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tray-exp__connect a:hover { text-decoration: underline; }
/* Amplitud de entidades + frase bisagra, dentro del Bloque A */
.tray-exp__breadth { margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-family: var(--body); font-size: 0.9rem; color: var(--ink); line-height: 1.55; }
.tray-exp__breadth strong { font-weight: 600; }
.tray-exp__bridge { margin: 1rem 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.02rem; line-height: 1.4; color: #0B4E68; }

/* ----- Bloque Acuerdos Marco (restaurado): lead + bento de 3 casos ----- */
.tray-am { margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: clamp(1.5rem, 3.5vw, 3rem); padding-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.tray-am__lead { font-family: var(--body); color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 60ch; }
.tray-am__lead a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tray-am__lead a:hover { text-decoration: underline; }

/* Bento de casos */
.casos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.5vw, 1rem); align-items: stretch; }
.casos__col { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(0.75rem, 1.5vw, 1rem); min-width: 0; }
/* Elementos comunes de caso */
.caso__tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.64rem; margin: 0; }
.caso__num { font-family: var(--display); font-weight: 600; line-height: 0.95; }
.caso__numrule { display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin: 0.35rem 0 0.6rem; }
.caso__title { font-family: var(--display); font-weight: 600; margin: 0 0 0.4rem; }
.caso__text { font-family: var(--body); line-height: 1.45; margin: 0 0 0.8rem; }
.caso__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0; }
.caso__meta-item { display: flex; align-items: center; gap: 0.5rem; }
.caso__meta-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.caso__meta-ic svg { width: 14px; height: 14px; }
.caso__meta dt { font-family: var(--mono); font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.08em; }
.caso__meta dd { font-family: var(--body); font-weight: 600; font-size: 0.8rem; margin: 0; }
/* Caso 01: hero card con imagen de fondo */
.caso--hero { position: relative; border-radius: 16px; overflow: hidden; min-height: 270px; isolation: isolate; background-color: #0B4E68; }
.caso__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%); }
.caso__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgba(11,59,78,0.94) 0%, rgba(11,59,78,0.72) 48%, rgba(11,59,78,0.32) 100%), linear-gradient(to top, rgba(11,59,78,0.85) 0%, rgba(11,59,78,0) 55%); }
.caso__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: clamp(1.15rem, 2vw, 1.75rem); color: #fff; }
.caso--hero .caso__tag { color: rgba(255,255,255,0.85); margin-bottom: 0.5rem; }
.caso--hero .caso__num { font-size: clamp(2rem, 3.5vw, 2.9rem); color: #fff; }
.caso--hero .caso__title { font-size: clamp(1.2rem, 1.9vw, 1.55rem); color: #fff; }
.caso--hero .caso__text { color: rgba(255,255,255,0.86); font-size: 0.85rem; max-width: 46ch; }
.caso--hero .caso__meta { margin-bottom: 0.9rem; }
.caso--hero .caso__meta-ic { background: rgba(255,255,255,0.14); color: #fff; }
.caso--hero .caso__meta dt { color: rgba(255,255,255,0.7); }
.caso--hero .caso__meta dd { color: #fff; }
.caso__btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; background: #fff; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 999px; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.caso__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
/* Casos 02/03: tarjeta horizontal texto + imagen */
.caso--sm { position: relative; display: grid; grid-template-columns: 1fr 38%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.caso--sm .caso__body { padding: clamp(0.75rem, 1.2vw, 0.95rem); display: flex; flex-direction: column; min-width: 0; }
.caso--sm .caso__meta { gap: 0.4rem 0.9rem; }
.caso__tag--dark { color: var(--accent); margin-bottom: 0.25rem; }
.caso--sm .caso__num, .caso__num--dark { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: #0B4E68; }
.caso--sm .caso__numrule { margin: 0.15rem 0 0.35rem; }
.caso--sm .caso__title, .caso__title--dark { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink); margin-bottom: 0.25rem; }
.caso--sm .caso__text, .caso__text--dark { color: var(--muted); font-size: 0.78rem; line-height: 1.4; margin-bottom: 0.45rem; }
.caso__meta--dark .caso__meta-ic { background: #EAF2FB; color: var(--accent); }
.caso__meta--dark dt { color: var(--muted); }
.caso__meta--dark dd { color: var(--ink); }
.caso--sm .caso__media { position: relative; margin: 0; min-width: 0; }
.caso--sm .caso__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%); mask-image: linear-gradient(to right, transparent 0%, #000 30%); }

@media (prefers-reduced-motion: no-preference) {
  .proof-motion-ready .caso__bg,
  .proof-motion-ready .caso__media,
  .proof-motion-ready .featured-case__media {
    opacity: .78;
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform 1.15s cubic-bezier(.22, 1, .36, 1);
  }
  .proof-motion-ready .caso__meta,
  .proof-motion-ready .featured-case__details {
    opacity: .82; transform: translateY(7px);
    transition: opacity .55s ease .12s, transform .55s cubic-bezier(.22, 1, .36, 1) .12s;
  }
  .proof-motion-ready .caso__numrule { transform: scaleX(.45); transform-origin: left; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
  .proof-motion-ready.proof-in-view .caso__bg,
  .proof-motion-ready.proof-in-view .caso__media,
  .proof-motion-ready.proof-in-view .featured-case__media,
  .proof-motion-ready.proof-in-view .caso__meta,
  .proof-motion-ready.proof-in-view .featured-case__details { opacity: 1; transform: none; }
  .proof-motion-ready.proof-in-view .caso__numrule { transform: scaleX(1); }
}

/* Del resultado de los casos al recorrido del futuro cliente */
.tray-am__route { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(0.75rem, 1.5vw, 1rem); padding: clamp(1.1rem, 2vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); scroll-margin-top: 6rem; }
.tray-am__route-label { margin: 0 0 0.45rem; font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tray-am__route-intro h3 { margin: 0 0 0.55rem; font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; font-weight: 600; color: var(--ink); }
.tray-am__route-intro > p:not(.tray-am__route-label) { max-width: 46ch; margin: 0 0 0.85rem; font-family: var(--body); font-size: 0.83rem; line-height: 1.5; color: var(--muted); }
.tray-am__route-intro > a { display: inline-flex; gap: 0.45rem; align-items: center; font-family: var(--body); font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 0.2rem; }
.tray-am__route-intro > a:hover { color: var(--accent); }
.tray-am__route-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tray-am__route-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.55rem; align-items: start; padding: 0.55rem 0; border-top: 1px solid var(--line-strong); }
.tray-am__route-steps li:first-child { border-top: 0; padding-top: 0; }
.tray-am__route-steps li:last-child { padding-bottom: 0; }
.tray-am__route-steps li > span { padding-top: 0.1rem; font-family: var(--mono); font-size: 0.67rem; color: var(--accent); }
.tray-am__route-steps h4 { margin: 0 0 0.15rem; font-family: var(--body); font-size: 0.83rem; font-weight: 650; color: var(--ink); }
.tray-am__route-steps p { margin: 0; font-family: var(--body); font-size: 0.76rem; line-height: 1.42; color: var(--muted); }

/* ----- Bloque B — Empresas que hemos acompañado ----- */
.tray-clients { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.tray-clients__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1rem); margin: 0; padding: 0; }
.tray-client { display: grid; place-items: center; min-height: 92px; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--sh-md); text-align: center; }
.tray-client__name { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--ink); line-height: 1.2; }
.tray-client__logo { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }

/* ----- Bloque C — Caso destacado ----- */
.tray-case { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.tray-case__head { margin-bottom: clamp(1rem, 1.8vw, 1.4rem); }
.tray-case__title { font-family: var(--display); color: var(--ink); font-size: clamp(1.7rem, 2.5vw, 2.15rem); font-weight: 600; line-height: 1.12; margin: 0 0 0.4rem; }
.tray-case__head .tray-sec__sub { max-width: 76ch; margin-bottom: 0; }

.featured-case {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  box-shadow: var(--sh-md);
}
.featured-case + .featured-case { margin-top: clamp(1rem, 1.8vw, 1.4rem); }
.featured-case__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(1.2rem, 2vw, 1.75rem); }
.featured-case__label { align-self: flex-start; border: 1px solid currentColor; border-radius: var(--radius); padding: 0.25rem 0.5rem; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.65rem; }
.featured-case__title { font-family: var(--display); font-size: clamp(1.4rem, 1.9vw, 1.8rem); font-weight: 600; line-height: 1.14; margin: 0 0 0.6rem; }
.featured-case__description { font-family: var(--body); font-size: 0.82rem; line-height: 1.5; max-width: 60ch; margin: 0; }
.featured-case__details { display: grid; gap: 0.2rem; border-top: 1px solid rgba(255,255,255,0.25); margin-top: 0.7rem; padding-top: 0.55rem; font-family: var(--body); font-size: 0.72rem; line-height: 1.35; }
.featured-case__media { position: relative; z-index: 1; min-width: 0; min-height: 0; overflow: hidden; }
.featured-case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-case__stat { margin: 0; font-family: var(--body); font-weight: 600; }
.featured-case__stat strong { font-family: var(--display); font-weight: 600; }

.featured-case--cartagena { min-height: 300px; background: var(--ink); color: #fff; }
.featured-case--cartagena .featured-case__title { color: #fff; }
.featured-case--cartagena .featured-case__content { background: radial-gradient(circle at 0 50%, #145470, var(--ink) 75%); }
.featured-case--cartagena .featured-case__content::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; right: -48px; width: 56px; background: linear-gradient(90deg, var(--ink) 0 75%, var(--accent) 75%); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.featured-case--cartagena .featured-case__label { color: #B6E6F7; border-color: var(--magenta); }
.featured-case--cartagena .featured-case__description { color: rgba(255,255,255,0.88); }
.featured-case--cartagena .featured-case__details { color: rgba(255,255,255,0.8); }
.featured-case--cartagena .featured-case__media img { object-position: 58% center; }
.featured-case__stat--floating { position: absolute; right: clamp(0.7rem, 1.3vw, 1rem); bottom: clamp(0.7rem, 1.3vw, 1rem); display: flex; align-items: baseline; gap: 0.3rem; padding: 0.35rem 0.7rem; background: #fff; color: var(--ink); border-left: 4px solid var(--magenta); border-radius: var(--radius); box-shadow: var(--sh-md); }
.featured-case__stat--floating strong { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.featured-case__stat--floating span { font-size: clamp(0.85rem, 1.2vw, 1.05rem); }

.featured-case--funza { min-height: 255px; grid-template-columns: minmax(0, 48%) minmax(0, 52%); background: #E9F5FA; color: var(--ink); border: 1px solid #D4E7EF; }
.featured-case--funza .featured-case__content::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -48px; width: 56px; background: #E9F5FA; clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.featured-case--funza .featured-case__label { color: #087DAF; border-color: var(--accent); }
.featured-case--funza .featured-case__media img { object-position: 43% 10%; }
.featured-case__stat--inline { align-self: flex-start; max-width: 100%; background: #087FAB; color: #fff; border-radius: var(--radius); padding: 0.3rem 0.6rem; font-size: clamp(0.78rem, 1.1vw, 0.9rem); line-height: 1.3; margin: 0 0 0.7rem; }
.featured-case__stat--inline strong { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1; }
.featured-case--funza .featured-case__description { color: var(--ink-soft); }
.tray-case__image-note { font-family: var(--body); font-size: 0.72rem; color: var(--muted); margin: 0.8rem 0 0; }

/* ===== Carrusel de entidades con el lenguaje luminoso de marca ===== */
.entidades {
  background:
    radial-gradient(ellipse 44% 44% at 50% -12%, rgba(0, 192, 221, 0.3), transparent 75%),
    radial-gradient(ellipse 38% 48% at 102% 82%, rgba(0, 140, 183, 0.22), transparent 76%),
    radial-gradient(ellipse 34% 55% at -8% 20%, rgba(0, 133, 172, 0.14), transparent 76%),
    linear-gradient(125deg, #052E42 0%, #00344B 48%, #052638 100%);
  position: relative; overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.entidades::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 20% 18% at 50% 0%, rgba(0, 225, 238, 0.22), transparent 80%),
    radial-gradient(ellipse 30% 24% at 100% 78%, rgba(0, 183, 219, 0.14), transparent 80%);
}
.entidades::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(0, 199, 229, 0.65) 0.8px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 24% 76%, #000 100%);
}
.entidades__art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.entidades__art-glow { filter: drop-shadow(0 0 8px rgba(0, 219, 241, 0.6)); }
.entidades__inner {
  position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.5rem clamp(1rem, 2vw, 1.5rem);
}
.entidades__intro { text-align: center; max-width: 42rem; margin: 0 auto clamp(0.75rem, 1.5vw, 1.25rem); }
.entidades__title { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; margin: 0 0 0.5rem; }
.entidades__title em { font-style: italic; color: #04D4E9; }
.entidades__flare { display: block; width: clamp(85px, 10vw, 120px); height: 2px; margin: 0.5rem auto 0.75rem; background: linear-gradient(90deg, transparent, #04D4E9 50%, transparent); box-shadow: 0 0 12px rgba(0, 225, 238, 0.72); }
.entidades__lead { font-family: var(--body); color: rgba(255,255,255,0.78); line-height: 1.5; font-size: 0.9rem; margin: 0; }
/* Nombres de entidades en las tarjetas, sin uso de escudos oficiales. */
.entities__name { max-width: 100%; font-family: var(--body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); text-align: center; line-height: 1.2; text-wrap: balance; }

/* --- Responsive Trayectoria --- */
@media (max-width: 900px) {
  .tray-clients__grid { grid-template-columns: repeat(2, 1fr); }
  .casos { grid-template-columns: 1fr; }
  .casos__col { grid-template-rows: auto auto; }
  .caso--hero { min-height: 400px; }
  .tray-am__route { grid-template-columns: 1fr; }
  .entidades__art { opacity: 0.7; }
}
@media (max-width: 760px) {
  .featured-case { display: flex; flex-direction: column; min-height: 0; }
  .featured-case__media { width: 100%; aspect-ratio: 2.35 / 1; min-height: 0; }
  .featured-case--cartagena .featured-case__media { order: -1; }
  .featured-case--cartagena .featured-case__content::after,
  .featured-case--funza .featured-case__content::before { display: none; }
}
@media (max-width: 560px) {
  .tray-exp__stats { grid-template-columns: 1fr; border-top: 0; }
  .tray-exp__stat { border-left: 0; padding: 1rem 0 0.2rem; border-top: 1px solid var(--line); }
  .tray-exp__stat:first-child { border-top: 0; padding-top: 0; }
  .featured-case__content { padding: 1.15rem; }
  .featured-case__media { aspect-ratio: 16 / 10; }
  .featured-case__title { font-size: 1.45rem; }
  .featured-case__stat--floating strong { font-size: 1.9rem; }
  .caso--sm { grid-template-columns: 1fr; grid-template-rows: 170px auto; }
  .caso--sm .caso__media { order: -1; }
  .caso--sm .caso__media img { -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); }
}

/* Ajustes compartidos para teléfonos: navegación, encuadre y lectura. */
@media (max-width: 720px) {
  .nav {
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .nav.is-open { visibility: visible; pointer-events: auto; }

  /* La foto conserva su encuadre panorámico; el texto queda en un bloque
     propio para que nunca tape las caras ni dependa de un recorte vertical. */
  .hero-im { min-height: 0; background: #052e42; }
  .hero-im__bg {
    position: relative; inset: auto; display: block; flex: none;
    height: clamp(205px, 56vw, 285px);
    object-position: 65% 38%;
    animation: none !important; transform: none !important; will-change: auto;
  }
  .hero-im__overlay {
    background: linear-gradient(to bottom, transparent 0, transparent 150px, #052e42 285px);
  }
  .hero-im__dots, .hero-im__art { opacity: 0.2; }
  .hero-im__body { flex: none; display: block; padding-top: 0; padding-bottom: 2.4rem; }
  .hero-im__title { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.08; }
  .hero-im__lead { font-size: 1rem; line-height: 1.5; margin-bottom: 1.3rem; }
  .hero-im__actions { gap: 0.7rem; }
  .hero-im__actions .btn { justify-content: center; }
  .why-acec__bg img { object-position: 30% center; }
  .featured-case--cartagena .featured-case__media img { object-position: 58% 42%; }
  .featured-case--funza .featured-case__media img { object-position: 43% 32%; }
  .tray-open__photo {
    display: block; width: 100%; height: clamp(190px, 54vw, 250px);
    margin: 0; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  .tray-open__img { object-position: center 34%; }
  .wa-fab { bottom: calc(16px + env(safe-area-inset-bottom) + var(--cookie-banner-h, 0px)); }
  .cookie-banner {
    max-height: 55vh; max-height: 55dvh; overflow-y: auto;
    padding-bottom: max(.95rem, env(safe-area-inset-bottom));
  }
  .cookie-btn { min-height: 44px; }
  .cookie-modal__panel { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
  .field input, .field textarea { font-size: max(1rem, 16px); }
}
@media (max-width: 420px) {
  .hero-im__actions .btn { width: 100%; }
}

/* ============================================================
   32. MOTION DE MARCA · líneas luminosas, profundidad y orientación
   Solo transforma capas decorativas; la tipografía permanece estable.
   ============================================================ */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #04d4e9, #0194ce 65%, #9c3192);
  transform: scaleX(var(--page-progress, 0)); transform-origin: left center;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-im__art { animation: acec-light-drift 18s ease-in-out infinite alternate; }
  .hero-im__dots { animation: acec-dots-drift 28s linear infinite alternate; }
  .closing--luminous .closing__art,
  .entidades__art { transform-origin: center; animation: acec-light-drift 22s ease-in-out infinite alternate; }
  .hero-im__flare,
  .closing--luminous .closing__flare,
  .entidades__flare { animation: acec-flare 4.8s ease-in-out infinite; }
}
@keyframes acec-light-drift {
  from { transform: translate3d(-0.7%, 0.4%, 0) scale(1.015); opacity: 0.78; }
  to { transform: translate3d(0.7%, -0.4%, 0) scale(1.035); opacity: 1; }
}
@keyframes acec-dots-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-12px, 8px, 0); }
}
@keyframes acec-flare {
  0%, 100% { opacity: 0.72; box-shadow: 0 0 8px rgba(0, 225, 238, 0.38); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(0, 225, 238, 0.72); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .myth-card, .grupo__card, .featured-case {
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease;
  }
  .myth-card:hover, .grupo__card:hover, .featured-case:hover {
    transform: translateY(-2px); box-shadow: 0 18px 36px rgba(4, 45, 64, .13);
  }
  .myth-card__media, .grupo__card-media, .featured-case__media { overflow: hidden; }
  .myth-card__media img, .grupo__card-media img, .featured-case__media img,
  .quienes-somos__img {
    transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
  }
  .myth-card:hover .myth-card__media img,
  .grupo__card:hover .grupo__card-media img,
  .featured-case:hover .featured-case__media img,
  .quienes-somos__media:hover .quienes-somos__img { transform: scale(1.035); }
}

@media (max-width: 720px) {
  /* Las capas de luz quedan estáticas en móvil para priorizar lectura y batería. */
  .hero-im__art, .hero-im__dots,
  .closing--luminous .closing__art, .entidades__art { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .header::after { transition: none; }
  .hero-im__art, .hero-im__dots,
  .closing--luminous .closing__art, .entidades__art,
  .hero-im__flare, .closing--luminous .closing__flare, .entidades__flare {
    animation: none !important; transform: none !important;
  }
}

/* Zoom editorial de fotografías de contenido. El recorte queda dentro de cada marco. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .proceso__img,
  .buyer__photo img,
  .slot__img,
  .dir2a__img,
  .tray-open__img,
  .caso__bg,
  .caso--sm .caso__media img,
  .llavex__bg img,
  #metodo-cinematografico .cine-fb__frame img {
    transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
  }
  .proceso__media:hover .proceso__img,
  .buyer__photo:hover img,
  .slot:hover .slot__img,
  .dir2a__portrait:hover .dir2a__img,
  .tray-open__photo:hover .tray-open__img,
  .caso--hero:hover .caso__bg,
  .caso--sm:hover .caso__media img,
  .llavex__bg:hover img,
  #metodo-cinematografico .cine-fb__frame:hover img { transform: scale(1.035); }
  .proceso__media, .buyer__photo, .slot,
  .dir2a__portrait, .tray-open__photo,
  .caso--hero, .caso--sm .caso__media,
  .llavex__bg, #metodo-cinematografico .cine-fb__frame { overflow: hidden; }
}
