/* ============================================================
   DPAT SpA — dpat.cl
   Dirección 8a "Circuito tonal" · ver DPAT Handoff.md
   Mobile-first · breakpoints 768 / 1024 / 1440
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* superficies */
  --paper: #FBFCFE;
  --ink: #101C26;
  --panel: #0D1D2E;
  --celeste-1: #E1F2FB;
  --celeste-2: #C8E4F5;
  --hairline: #E3E9EE;
  --hairline-dark: #23374A;

  /* rampa de marca (celeste→azul, uno por servicio) */
  --ramp-1: #36A9E1;
  --ramp-2: #2F9AD3;
  --ramp-3: #2A8CC6;
  --ramp-4: #257DB8;
  --ramp-5: #216FAA;
  --ramp-6: #1D609C;

  /* texto */
  --heading: #101C26;
  --heading-dark: #EAF3FA;
  --body: #55636E;
  --body-dark: #9DB2C4;
  --meta: #8A99A6;
  --meta-dark: #5E7A94;
  --accent-dark: #7FC6EC;
  --link-blue: #1D609C;

  /* degradados */
  --btn-primary-bg: #FBFCFE;
  --btn-primary-text: #1D609C;
  --grad-strip: linear-gradient(90deg, #36A9E1, #1D609C);
  --grad-track: linear-gradient(180deg, #36A9E1, #1D609C);
  --grad-track-dark: linear-gradient(180deg, #36A9E1, #7FC6EC);
  --grad-border: linear-gradient(135deg, #36A9E1, #1D609C);
  --grad-text: linear-gradient(120deg, #36A9E1, #8ED1F2);

  /* tipografía */
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;
  --font-lockup: 'Michroma', var(--font-sans);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-card: 0 18px 40px rgba(29, 96, 156, 0.10);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Fondo tinta en el canvas raíz: en mobile, la barra de estado y el overscroll
   (rebote iOS) toman este color; sin él se ven franjas blancas arriba y abajo
   pese a que header y footer son oscuros. El body sigue siendo paper. */
html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--heading);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 250; }

p { margin: 0; color: var(--body); }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--body);
}
.on-dark .sec-label { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--ramp-1);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--celeste-2); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--link-blue);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Secciones con pista de circuito ---------- */
/* La pista y los pads SOLO existen ≥1024px (handoff §4/§5). */

.sec {
  position: relative;
  padding: 40px 20px;
}
.sec--dark { background: var(--ink); color: var(--heading-dark); }
.sec--dark p { color: var(--body-dark); }

.rail, .pad { display: none; }

.grad-strip { height: 4px; background: var(--grad-strip); }

@media (min-width: 768px) {
  .sec { padding: 48px 56px; }
  .grad-strip { height: 5px; }
}

@media (min-width: 1024px) {
  .sec { padding: 56px 56px 60px 190px; }

  .rail {
    display: block;
    position: absolute;
    left: 108px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--grad-track);
    opacity: 0.45;
    pointer-events: none;
  }
  .sec--dark .rail, .rail--dark { background: var(--grad-track-dark); opacity: 0.6; }

  .pad {
    display: block;
    position: absolute;
    left: 100px;
    top: var(--pad-top, 66px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pad-color, var(--ramp-1));
    border: 4px solid var(--paper);
    box-shadow: 0 0 0 1.5px var(--pad-color, var(--ramp-1));
    z-index: 1;
  }
  .sec--dark .pad { border-color: var(--ink); }
}

.page { max-width: 1680px; margin: 0 auto; position: relative; }
.wide { background: var(--ink); }
.wide--light { background: var(--paper); }

/* ---------- 4. Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
  position: relative;
  z-index: 20;
}
.site-header__in {
  max-width: 1680px;
  margin: 0 auto;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand svg { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--font-lockup);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--heading-dark);
  transform: translateY(1px);
}

.nav-desktop { display: none; }

.header-mobile { display: flex; align-items: center; gap: 14px; }
.lang-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dark);
  padding: 8px 6px;
}
.nav-burger {
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -10px -10px 0;
  cursor: pointer;
  display: flex;
}
/* hamburguesa → X */
.nav-burger .b {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading-dark);
  transition: transform 300ms var(--ease), opacity 200ms ease, width 300ms var(--ease);
}
.nav-burger .b + .b { margin-top: 5px; }
.nav-burger .b3 { width: 13px; }
.nav-burger[aria-expanded="true"] .b1 { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .b2 { opacity: 0; transform: scaleX(0.4); }
.nav-burger[aria-expanded="true"] .b3 { width: 22px; transform: translateY(-7px) rotate(-45deg); }

/* menú mobile desplegable (colapso animado) */
.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  background: var(--ink);
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 360ms var(--ease),
    opacity 260ms ease,
    border-top-color 260ms ease,
    visibility 0s linear 360ms;
}
.nav-mobile.open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  border-top-color: var(--hairline-dark);
  transition:
    grid-template-rows 360ms var(--ease),
    opacity 260ms ease,
    border-top-color 260ms ease,
    visibility 0s linear 0s;
}
.nav-mobile__in {
  overflow: hidden;
  min-height: 0;
  /* El padding vertical vive solo en el estado abierto: cerrado, el track 0fr
     colapsa el contenido pero NO el padding, y esos 36px quedaban como franja
     oscura vacía bajo el header (header "demasiado alto" en mobile). */
  padding: 0 20px;
  transition: padding 360ms var(--ease);
}
.nav-mobile.open .nav-mobile__in { padding: 10px 20px 26px; }
.nav-mobile a {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 300ms var(--ease);
}
.nav-mobile.open a {
  opacity: 1;
  transform: none;
  transition-delay: calc(40ms + var(--i, 0) * 28ms);
}
.nav-mobile a {
  display: block;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--heading-dark);
  border-bottom: 1px solid var(--hairline-dark);
  min-height: 44px;
}
.nav-mobile a[aria-current="true"] { color: var(--accent-dark); }
.nav-mobile a.sub {
  font-size: 14.5px;
  color: var(--body-dark);
  padding-left: 20px;
}
.nav-mobile .nav-mobile__pay {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid #3B5165;
  border-radius: 999px;
  padding: 10px 18px;
  border-bottom: 1px solid #3B5165;
  min-height: 0;
}

@media (min-width: 1024px) {
  .site-header__in { height: 84px; padding: 0 56px; }
  .brand { gap: 11px; }
  .brand svg { width: 32px; height: 32px; }
  .brand__name { font-size: 13px; letter-spacing: 0.32em; }
  .header-mobile, .nav-mobile { display: none !important; }

  .nav-desktop { display: flex; align-items: center; gap: 34px; }
  .nav-desktop > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body-dark);
    transition: color .18s ease;
  }
  .nav-desktop > a:hover { color: var(--heading-dark); }
  .nav-desktop > a[aria-current="true"] { color: var(--accent-dark); }

  /* desplegable Servicios */
  .nav-svc { position: relative; }
  .nav-svc > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-dark);
    padding: 30px 0;
    transition: color .18s ease;
  }
  .nav-svc > a:hover { color: var(--accent-dark); }
  .nav-svc > a[aria-current="true"] { color: var(--accent-dark); }
  .nav-svc__menu {
    position: absolute;
    top: 100%;
    left: -22px;
    min-width: 250px;
    background: var(--panel);
    border: 1px solid var(--hairline-dark);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-svc:hover .nav-svc__menu,
  .nav-svc:focus-within .nav-svc__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-svc__menu a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--heading-dark);
  }
  .nav-svc__menu a:hover { background: rgba(54, 169, 225, 0.10); color: var(--accent-dark); }
  .nav-svc__menu .n {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ramp);
  }
}

/* selector de idioma */
.lang-pill {
  display: flex;
  align-items: center;
  border: 1px solid #2E4A63;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-pill a, .lang-pill span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--body-dark);
}
.lang-pill .active { background: var(--paper); color: var(--link-blue); }
.lang-pill a:hover { color: var(--heading-dark); }

.btn-pay {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid #3B5165;
  color: var(--heading-dark);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color .18s ease, color .18s ease;
}
.btn-pay:hover { border-color: var(--ramp-1); color: var(--accent-dark); }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  cursor: pointer;
  border: 0;
  min-height: 44px;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 700;
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost-dark {
  background: transparent;
  border: 1px solid #3B5165;
  color: var(--heading-dark);
  font-weight: 500;
}
.btn--ghost-dark:hover { border-color: var(--ramp-1); }
.btn--ghost-light {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.btn--ghost-light:hover { border-color: var(--ramp-1); color: var(--link-blue); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; }
/* El resplandor va en la banda full-width (no en la página) para que el degradado
   recorra todo el ancho y no deje una "línea" al cortarse en el borde de la página. */
.wide--hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 300px at 78% 0%, rgba(54, 169, 225, 0.16), transparent 72%);
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  right: -70px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.13;
  pointer-events: none;
}
.hero__in { position: relative; padding: 42px 20px 40px; }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--heading-dark);
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 em, .grad-text {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__row { margin-top: 20px; }
.hero__lede { font-size: 15px; max-width: 46ch; }
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.hero__scroll {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
  text-align: center;
  padding: 8px 4px;
  transition: color .18s ease;
}
.hero__scroll:hover { color: var(--ramp-1); }

/* hero interior (páginas 10a–10c) */
.hero--page h1 { max-width: 20ch; }
.hero--page .hero__lede { margin-top: 18px; }

@media (min-width: 768px) {
  .hero__in { padding: 64px 56px 56px; }
  .hero h1 { font-size: 54px; line-height: 1.04; }
  .hero--page h1 { font-size: 48px; }
  .hero__kicker { font-size: 12px; letter-spacing: 0.22em; margin-bottom: 24px; }
  .hero__lede { font-size: 16.5px; }
  .hero__cta { flex-direction: row; align-items: center; gap: 24px; }
  .hero__mark { width: 340px; height: 340px; right: 8px; top: 46%; bottom: auto; transform: translateY(-50%); opacity: 0.14; }
  .hero__glow { background: radial-gradient(880px 460px at 78% 0%, rgba(54, 169, 225, 0.16), transparent 72%); }
}

@media (min-width: 1024px) {
  .hero__in { padding: 92px 56px 80px 190px; }
  .hero--page .hero__in { padding: 72px 56px 60px 190px; }
  .hero h1 { font-size: 74px; line-height: 1.03; letter-spacing: -0.033em; }
  .hero--page h1 { font-size: 58px; line-height: 1.04; letter-spacing: -0.032em; }
  .hero__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-top: 40px;
  }
  .hero--page .hero__row { margin-top: 22px; }
  .hero__lede { font-size: 17.5px; }
  .hero__cta { margin-top: 0; flex-shrink: 0; }
  .hero__mark { width: 460px; height: 460px; right: 28px; top: 40%; }
}

/* ---------- 7. Franja logos ---------- */
.logos {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--meta);
  line-height: 1.9;
  position: relative;
}
.logos__label { letter-spacing: 0.18em; }
.logos__list { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.logos__dot { color: #C9D6E2; }
@media (min-width: 1024px) {
  .logos { padding: 22px 56px 22px 190px; font-size: 12px; display: flex; gap: 30px; align-items: center; }
  .logos__list { gap: 8px 14px; }
}

/* ---------- 8. Filas de servicio póster ---------- */
.svc-rows { position: relative; }
.svc-row {
  display: block;
  padding: 19px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .15s ease, color .15s ease;
}
.svc-rows .svc-row:last-child { border-bottom: 0; }

.svc-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ramp, var(--ramp-1));
  margin-bottom: 5px;
}
.svc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.svc-title {
  font-size: 27px;
  font-weight: 250;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.svc-arrow { font-size: 19px; color: var(--link-blue); font-weight: 300; flex-shrink: 0; }
.svc-num, .svc-meta { display: none; }
.svc-desc { margin-top: 8px; font-size: 14px; line-height: 1.65; max-width: 60ch; }

@media (min-width: 768px) {
  .svc-title { font-size: 34px; letter-spacing: -0.03em; }
}

@media (min-width: 1024px) {
  .svc-row {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 25px 0;
  }
  .svc-row:hover { padding-left: 16px; color: var(--link-blue); }
  .svc-kicker, .svc-arrow { display: none; }
  .svc-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--ramp, var(--ramp-1));
    width: 40px;
    flex-shrink: 0;
  }
  .svc-body { flex: 1; }
  .svc-title { font-size: 50px; }
  .svc-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--meta);
    margin-left: auto;
    flex-shrink: 0;
  }
  .svc-desc { font-size: 15px; }
}

/* ---------- 9. Tarjetas fase ---------- */
.phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
.phase { border-radius: 12px; padding: 20px; }
.phase__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-bottom: 8px;
}
.phase__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.phase p { font-size: 13.5px; line-height: 1.6; }

.phase--1 { background: var(--celeste-1); }
.phase--1 .phase__tag { color: #0E6CA6; }
.phase--1 .phase__title { color: #0B3A5C; }
.phase--1 p { color: #2E5975; }

.phase--2 { background: var(--celeste-2); }
.phase--2 .phase__tag { color: #0B5F95; }
.phase--2 .phase__title { color: #0B3A5C; }
.phase--2 p { color: #2E5975; }

.phase--3 { background: var(--ramp-6); }
.phase--3 .phase__tag { color: #A5D8F2; }
.phase--3 .phase__title { color: #FFFFFF; }
.phase--3 p { color: #CBE3F4; }

@media (min-width: 768px) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
  .phase { padding: 28px; }
  .phase__tag { font-size: 11.5px; margin-bottom: 12px; }
  .phase__title { font-size: 20px; margin-bottom: 6px; }
  .phase p { font-size: 14.5px; line-height: 1.7; }
}

/* ---------- 10. Qué incluye (checks) ---------- */
.includes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
  margin-top: 22px;
}
.include {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.include__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--celeste-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.include__title { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.include p { font-size: 14px; line-height: 1.65; }

@media (min-width: 768px) {
  .includes { grid-template-columns: 1fr 1fr; gap: 2px 48px; }
  .include__title { font-size: 16.5px; }
}

/* ---------- 11. FAQ ---------- */
.faq { max-width: 760px; margin-top: 20px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  min-height: 44px;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #F3F7FA; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--link-blue);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 4px 17px;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- 12. Tarjetas de caso ---------- */
.cases { display: flex; flex-direction: column; gap: 22px; }
.case {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
  background: #fff;
}
.case:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.case__strip { height: 5px; background: var(--grad-strip); }
.case__in { padding: 24px 20px; }
.case__head { margin-bottom: 18px; }
.case__title { font-size: 21px; font-weight: 550; display: block; }
.case__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
  margin-top: 6px;
}
.case__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
}
.case__col { border-left: 2px solid var(--col, var(--ramp-1)); padding-left: 16px; }
.case__col b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  color: var(--col, var(--ramp-1));
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.14em;
}
.case__more {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--link-blue);
  margin-top: 20px;
}
.case--placeholder {
  border-style: dashed;
  border-color: #C9D6E2;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--meta);
}
.case--placeholder .hint { color: var(--link-blue); }

@media (min-width: 768px) {
  .case__in { padding: 30px 34px; }
  .case__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
  .case__title { font-size: 24px; }
  .case__tag { margin-top: 0; }
  .case__cols { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .case--placeholder { flex-direction: row; justify-content: space-between; align-items: center; padding: 26px 34px; }
}

/* ---------- 13. CTA card ---------- */
.cta-card {
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad-border) border-box;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 280px at 50% -20%, rgba(54, 169, 225, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .sec-label { margin-bottom: 16px; }
.cta-card__title {
  font-size: 24px;
  font-weight: 250;
  letter-spacing: -0.02em;
  color: var(--heading-dark);
  line-height: 1.15;
}
.cta-card__title .arrow { color: var(--ramp-1); font-weight: 200; }
.cta-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.cta-card__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--meta-dark);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-card { border-radius: 18px; padding: 44px 52px; }
  .cta-card .sec-label { margin-bottom: 20px; }
  .cta-card__title { font-size: 40px; letter-spacing: -0.03em; }
  .cta-card__actions { flex-direction: row; align-items: center; gap: 20px; margin-top: 28px; }
  .cta-card__note { font-size: 12px; text-align: left; }
}
@media (min-width: 1024px) {
  .cta-card { padding: 52px 56px; }
  .cta-card__title { font-size: 56px; }
  .cta-card--compact .cta-card__title { font-size: 34px; letter-spacing: -0.025em; }
  .cta-card--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 52px;
  }
  .cta-card--compact .cta-card__actions { margin-top: 0; flex-shrink: 0; }
}

/* ---------- 14. Contacto ---------- */
.contact-split { display: grid; grid-template-columns: 1fr; }
.contact-form-wrap { padding: 40px 20px 48px; position: relative; }
.contact-form-wrap h1 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.contact-form-wrap h1 em { font-style: normal; color: var(--link-blue); }
.contact-form-wrap .lede { margin: 18px 0 30px; font-size: 15.5px; max-width: 44ch; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}
.field input, .field textarea {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--heading);
  background: #fff;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--meta); }
.field input:focus, .field textarea:focus {
  outline: none;
  border: 2px solid var(--ramp-1);
  padding: 13px 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--meta); }

.contact-panel {
  background: var(--ink);
  color: var(--heading-dark);
  position: relative;
  overflow: hidden;
  padding: 40px 20px 48px;
}
.contact-panel__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 320px at 80% 0%, rgba(54, 169, 225, 0.16), transparent 70%);
  pointer-events: none;
}
.contact-panel__mark {
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 340px;
  height: 340px;
  opacity: 0.13;
  pointer-events: none;
}
.contact-panel__in { position: relative; display: flex; flex-direction: column; gap: 26px; }
.contact-direct { display: flex; flex-direction: column; gap: 16px; }
.contact-direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color .18s ease;
}
.contact-direct a:hover { border-color: var(--ramp-1); }
.contact-direct .t { font-size: 16px; font-weight: 600; color: var(--heading-dark); }
.contact-direct .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta-dark);
  margin-top: 2px;
}
.contact-block { border-top: 1px solid var(--hairline-dark); padding-top: 22px; }
.contact-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--meta-dark);
  margin-bottom: 12px;
}
.social-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.social-pills a {
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--body-dark);
  transition: border-color .18s ease, color .18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.social-pills a:hover { border-color: var(--ramp-1); color: var(--heading-dark); }
.contact-hours {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--meta-dark);
}
.contact-hours a { color: var(--body-dark); }
.contact-hours a:hover { color: var(--accent-dark); }

@media (min-width: 1024px) {
  .contact-split { grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 61px); }
  .contact-form-wrap { padding: 64px 60px 70px 108px; }
  .contact-form-wrap h1 { font-size: 48px; }
  .contact-panel { padding: 64px 56px 70px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .contact-rail { left: 56px; top: 64px; bottom: 70px; }
  .contact-pad { left: 48px; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline-dark);
}
.site-footer__in {
  max-width: 1680px;
  margin: 0 auto;
  padding: 22px 20px 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--meta-dark);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer a { color: inherit; transition: color .18s ease; }
.site-footer a:hover { color: var(--body-dark); }
.site-footer .contact-line, .site-footer .contact-line a { color: var(--body-dark); }
.site-footer .contact-line a:hover { color: var(--heading-dark); }

@media (min-width: 1024px) {
  .site-footer__in {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 56px;
    font-size: 12px;
  }
}

/* ---------- 15b. Pago Clientes (11a/11b) ---------- */
.pay {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--heading-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pay__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(340px 300px at 82% -4%, rgba(54, 169, 225, 0.16), transparent 68%);
  pointer-events: none;
}
.pay__mark {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  opacity: 0.08;
  pointer-events: none;
}

.pay__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline-dark);
}
.pay__header .brand svg { width: 26px; height: 26px; }
.pay__header-right { display: flex; align-items: center; gap: 14px; }
.pay__back {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-dark);
  transition: color .18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pay__back:hover { color: var(--ramp-1); }
.pay__secure {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 7px 14px;
}

.pay__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
}
.pay__card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(6, 16, 26, 0.5);
  overflow: hidden;
  color: var(--ink);
}
.pay__card-strip { height: 4px; background: var(--grad-strip); }
.pay__card-in {
  padding: 32px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pay__card-mark svg { width: 56px; height: 56px; }
.pay__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--link-blue);
  margin: 18px 0 10px;
}
.pay__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}
.pay__field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 24px;
}
.pay__field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}
.pay__field input {
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  padding: 14.5px 15.5px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  width: 100%;
  letter-spacing: 0.01em;
}
.pay__field input::placeholder { color: var(--meta); }
.pay__field input:focus {
  outline: none;
  border: 2px solid var(--ramp-1);
  padding: 14px 15px;
}
.pay__field input[aria-invalid="true"] { border-color: #C0392B; }
.pay__error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #C0392B;
}
.pay__submit {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--link-blue);
  color: var(--link-blue);
  border-radius: 999px;
  padding: 15px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  margin-top: 20px;
  min-height: 48px;
  transition: background .18s ease, transform .18s ease;
}
.pay__submit:hover { background: var(--celeste-1); transform: translateY(-2px); }
.pay__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--meta);
  text-align: center;
  line-height: 1.55;
}
.pay__note svg { flex-shrink: 0; }

.pay__footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline-dark);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--meta-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay__footer a { color: inherit; transition: color .18s ease; }
.pay__footer a:hover { color: var(--body-dark); }
.pay__footer-contact, .pay__footer-contact a { color: var(--body-dark); }

@media (min-width: 1024px) {
  .pay__header { height: 84px; padding: 0 56px; }
  .pay__header .brand svg { width: 32px; height: 32px; }
  .pay__back { font-size: 12px; }
  .pay__secure { display: inline-flex; }
  .pay__main { padding: 60px 56px; }
  .pay__mark { right: -120px; width: 520px; height: 520px; }
  .pay__glow {
    background:
      radial-gradient(760px 480px at 78% -6%, rgba(54, 169, 225, 0.16), transparent 68%),
      radial-gradient(560px 420px at 6% 108%, rgba(29, 96, 156, 0.20), transparent 70%);
  }
  .pay__card { max-width: 460px; border-radius: 18px; box-shadow: 0 40px 90px rgba(6, 16, 26, 0.5); }
  .pay__card-strip { height: 5px; }
  .pay__card-in { padding: 44px 44px 40px; }
  .pay__card-mark svg { width: 66px; height: 66px; }
  .pay__label { font-size: 11px; letter-spacing: 0.22em; margin: 22px 0 12px; }
  .pay__title { font-size: 26px; line-height: 1.28; max-width: 24ch; }
  .pay__field { margin-top: 30px; }
  .pay__field input { font-size: 16px; padding: 15px 17px; }
  .pay__field input:focus { padding: 14.5px 16.5px; }
  .pay__submit { font-size: 15px; padding: 16px; margin-top: 22px; }
  .pay__note { font-size: 10.5px; margin-top: 20px; }
  .pay__footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 22px 56px;
    font-size: 12px;
  }
}

/* ---------- 15c. 404 ---------- */
.nf {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--heading-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nf__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 78% 0%, rgba(54, 169, 225, 0.16), transparent 70%);
  pointer-events: none;
}
.nf__mark {
  position: absolute;
  right: -90px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  opacity: 0.08;
  pointer-events: none;
}
.nf__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline-dark);
}
.nf__header .brand svg { width: 26px; height: 26px; }
.nf__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 20px;
}
.nf__in { max-width: 46ch; }
.nf__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.nf__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
  font-weight: 250;
  letter-spacing: -0.03em;
  color: var(--heading-dark);
  text-wrap: balance;
}
.nf__lede {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-dark);
}
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.nf__footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline-dark);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--meta-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nf__footer a { color: var(--body-dark); }
.nf__footer a:hover { color: var(--heading-dark); }

@media (min-width: 768px) {
  .nf__title { font-size: 54px; line-height: 1.04; }
  .nf__lede { font-size: 16.5px; }
}
@media (min-width: 1024px) {
  .nf__header { height: 84px; padding: 0 56px; }
  .nf__header .brand svg { width: 32px; height: 32px; }
  .nf__main { padding: 80px 56px; }
  .nf__label { font-size: 12px; letter-spacing: 0.22em; margin-bottom: 22px; }
  .nf__title { font-size: 64px; }
  .nf__mark { right: -110px; width: 460px; height: 460px; }
  .nf__footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 22px 56px;
    font-size: 12px;
  }
}

/* ---------- 16. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-reveal],
  html.anim .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 480ms var(--ease), transform 480ms var(--ease);
    transition-delay: var(--d, 0ms);
  }
  html.anim [data-reveal].in,
  html.anim .reveal.in { opacity: 1; transform: none; }

  @media (min-width: 1024px) {
    .pad {
      transform: scale(0);
      transition: transform 300ms var(--ease);
    }
    .pad.in { transform: scale(1); }

    .rail--draw {
      transform-origin: top;
      transform: scaleY(0);
      transition: transform 900ms var(--ease) 150ms;
    }
    .rail--draw.in { transform: scaleY(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.anim [data-reveal],
  html.anim .reveal {
    opacity: 0;
    transition: opacity 480ms ease;
  }
  html.anim [data-reveal].in,
  html.anim .reveal.in { opacity: 1; }
  .nav-mobile, .nav-mobile a, .nav-burger .b { transition-duration: 0.01ms; }
}

/* ---------- 17. Entrada al cargar (sin transición entre páginas) ----------
   Se quitó la View Transitions API cross-document: producía un "flash" al
   cambiar de página. La navegación vuelve a ser normal (el paint-holding del
   navegador evita el flash blanco entre páginas del mismo origen), y la entrada
   de cada página la dan los reveals de sección + el dibujo del rail + el pop de
   los pads, que corren en el primer load. Los reveals se ocultan desde el primer
   frame con `html.anim` (script inline en <head>) para que no haya parpadeo. */

/* ---------- 18. Prosa de ficha, señales, relacionados y legales ---------- */
/* Añadido al integrar el contenido definitivo del cliente (2026-07-16). */

.prose-p {
  margin-top: 16px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body);
}
.prose-p + .prose-p { margin-top: 13px; }
.prose-p strong { color: var(--heading); font-weight: 600; }

.prose-note {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--meta-dark);
}
.prose-p a, .prose-note a { color: var(--link-blue); font-weight: 600; }
.prose-p a:hover, .prose-note a:hover { text-decoration: underline; }

/* "Para quién es" — señales numeradas */
.signals {
  list-style: none;
  counter-reset: sig;
  margin-top: 20px;
  display: grid;
  gap: 12px;
  max-width: 72ch;
}
.signals li {
  counter-increment: sig;
  position: relative;
  padding-left: 46px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}
.signals li::before {
  content: counter(sig);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--celeste-1);
  color: var(--link-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.signals strong { color: var(--heading); font-weight: 600; }

/* Servicios relacionados */
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  max-width: 640px;
}
.related__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 250;
  letter-spacing: -0.02em;
  transition: border-color .15s ease, transform .15s ease;
}
.related__link:hover { border-color: var(--ramp, var(--ramp-1)); transform: translateX(3px); }
.related__num { font-family: var(--font-mono); font-size: 12px; color: var(--ramp, var(--ramp-1)); font-weight: 500; }
.related__arrow { margin-left: auto; color: var(--link-blue); }
@media (min-width: 768px) { .related { grid-template-columns: 1fr 1fr; } }

/* Subtítulo del CTA (sobre tinta) */
.cta-card__sub {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body-dark);
}

/* Páginas legales */
.legal { max-width: 760px; }
.legal > p { margin-top: 14px; font-size: 15.5px; line-height: 1.75; color: var(--body); }
.legal > p:first-child { margin-top: 0; }
.legal__h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 38px;
  color: var(--heading);
}
.legal__h2:first-child { margin-top: 0; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { font-size: 15.5px; line-height: 1.7; color: var(--body); margin-top: 8px; }
.legal strong { color: var(--heading); font-weight: 600; }
.legal a { color: var(--link-blue); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
@media (min-width: 768px) { .legal__h2 { font-size: 24px; } }

/* Proceso de 4 fases (ficha software a medida): rampa tonal 1→4 */
.phases--4 { grid-template-columns: 1fr; }
.phases--4 .phase--3 { background: #A9D4EE; }
.phases--4 .phase--3 .phase__tag { color: #0B5F95; }
.phases--4 .phase--3 .phase__title { color: #0B3A5C; }
.phases--4 .phase--3 p { color: #274F6B; }
.phases--4 .phase--4 { background: var(--ramp-6); }
.phases--4 .phase--4 .phase__tag { color: #A5D8F2; }
.phases--4 .phase--4 .phase__title { color: #FFFFFF; }
.phases--4 .phase--4 p { color: #CBE3F4; }
@media (min-width: 768px) { .phases--4 { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1024px) { .phases--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- 19. Muro de clientes (Home) + footer pegajoso ---------- */
/* Muro "Confían en nosotros": logo duotono azul por defecto → color al hover
   (handoff §8b/§14). background-size:auto <--logo-h>px normaliza por altura. */
.client-wall__title {
  font-size: 26px;
  font-weight: 250;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 6px 0 24px;
  max-width: 22ch;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.client-logo {
  display: block;
  height: 88px;
  border: 1px solid #EDF1F5;
  border-radius: 12px;
  background-color: #fff;
  background-image: var(--logo);
  background-size: auto var(--logo-h);
  background-position: center;
  background-repeat: no-repeat;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.client-logo:hover {
  border-color: var(--ramp-1);
  box-shadow: 0 10px 26px rgba(29, 96, 156, 0.10);
  background-image: var(--logo-hover);
}
.client-preload { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }

@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .client-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .client-logo { height: 96px; }
  .client-wall__title { font-size: 34px; }
}

/* Footer pegajoso: en pantallas altas el footer va al fondo, sin dejar vacío. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .nf { flex: 1 0 auto; }

/* ---------- 20. Motion añadido (2026-07-16): ripple de pad, cascada de logos, destello ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Cascada de logos del muro: la grilla no se desvanece como bloque; entran sus celdas. */
  .client-grid.reveal { opacity: 1; transform: none; transition: none; }
  .client-grid .client-logo { opacity: 0; transform: translateY(10px); }
  .client-grid.in .client-logo {
    animation: logoIn 520ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 50ms);
  }
  @keyframes logoIn { to { opacity: 1; transform: none; } }

  /* Destello que recorre la franja degradada bajo el hero (señal por el circuito). */
  .grad-strip { position: relative; overflow: hidden; }
  .grad-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-140%);
    animation: stripShimmer 3.4s var(--ease) 700ms 2 both;
    pointer-events: none;
  }
  @keyframes stripShimmer { to { transform: translateX(420%); } }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* Cada pad (nodo del circuito) emite un anillo al aparecer su sección. */
  .pad::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--pad-color, var(--ramp-1));
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
  }
  .pad.in::after { animation: padRipple 1000ms var(--ease) 140ms both; }
  @keyframes padRipple {
    0% { opacity: 0.5; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(2.2); }
  }
}

/* ---------- 21. Página 404 (diseño Design 13a) ---------- */
.nf404__label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.nf404__label > span:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--accent-dark); }
.nf404__pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--meta-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 3px 9px;
}
.nf404__big {
  font-size: 88px;
  line-height: 0.92;
  font-weight: 250;
  letter-spacing: -0.05em;
  background: linear-gradient(118deg, #36A9E1, #8ED1F2 52%, #1D609C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 4px;
}
.nf404 h1 { margin-top: 16px; }
.nf404__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nf404__mark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  opacity: 0.16;
  pointer-events: none;
}

.nf-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.nf-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nf-card:hover { border-color: var(--ramp-1); box-shadow: 0 14px 34px rgba(29, 96, 156, 0.10); transform: translateY(-2px); }
.nf-card__top { display: flex; justify-content: space-between; align-items: center; }
.nf-card__num { font-family: var(--font-mono); font-size: 12px; color: var(--ramp, var(--ramp-1)); font-weight: 500; }
.nf-card__arrow { font-size: 18px; color: var(--link-blue); font-weight: 300; }
.nf-card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nf-card p { font-size: 13.5px; line-height: 1.6; color: var(--body); }

@media (min-width: 768px) {
  .nf404__big { font-size: 140px; }
  .nf-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1024px) {
  .nf404__big { font-size: 172px; }
  .nf404__mark { width: 420px; height: 420px; right: 28px; }
  .nf-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ---------- 22. Recursos: índice + artículo ---------- */
/* Gráfica placeholder (isotipo + glow + etiqueta) — se reemplaza por imagen real luego */
.fig { display: block; position: relative; overflow: hidden; background: #0F1C28; }
.fig__glow { position: absolute; inset: 0; background: radial-gradient(62% 72% at 62% 28%, var(--fig, #36A9E1), transparent 68%); opacity: 0.24; }
.fig__iso { position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%); width: 140px; height: 140px; opacity: 0.9; }
.fig__label { position: absolute; bottom: 11px; right: 15px; font-family: var(--font-mono); font-size: 9.5px; color: var(--meta-dark); }
.fig--card { height: 146px; flex-shrink: 0; }
.fig--featured { min-height: 220px; }
.fig--featured .fig__iso { width: 200px; height: 200px; }
.fig--cover { height: 260px; border-radius: 16px; margin-top: 26px; }
.fig--cover .fig__iso { width: 240px; height: 240px; }

.rec-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; padding: 5px 10px; border-radius: 999px; width: fit-content; }
.rec-badge--guia { background: var(--celeste-1); color: #0B5F95; }
.rec-badge--analisis { background: transparent; border: 1.5px solid var(--link-blue); color: var(--link-blue); padding: 4px 9px; }

.rec-filters { display: flex; flex-direction: column; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); margin-bottom: 34px; }
.rec-filters__row { display: flex; align-items: flex-start; gap: 14px; }
.rec-filters__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--meta); width: 66px; flex-shrink: 0; padding-top: 8px; }
.rec-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.rec-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; background: #F3F7FA; border: 1px solid var(--hairline); color: #3E4C59; border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.rec-pill:hover { border-color: var(--ramp-1); }
.rec-pill.is-on { background: var(--ink); color: var(--heading-dark); border-color: var(--ink); font-weight: 600; }

.rec-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--meta); display: block; margin-bottom: 16px; }
.rec-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--meta); margin-top: auto; padding-top: 8px; }
.rec-meta__svc { color: var(--link-blue); }
.rec-meta__dot { color: #C9D6E2; }

.rec-featured { display: grid; grid-template-columns: 1fr; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; margin-bottom: 34px; color: inherit; transition: box-shadow .18s ease, transform .18s ease; }
.rec-featured:hover { box-shadow: 0 18px 44px rgba(29, 96, 156, 0.11); transform: translateY(-2px); }
.rec-featured__body { padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.rec-featured__title { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.rec-featured__sum { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 48ch; }
@media (min-width: 860px) {
  .rec-featured { grid-template-columns: 1.15fr 1fr; }
  .rec-featured__body { padding: 38px 40px; }
  .rec-featured__title { font-size: 32px; }
}

.rec-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rec-grid-head .rec-kicker { margin-bottom: 0; }
.rec-grid-head__sort { font-family: var(--font-mono); font-size: 11px; color: var(--meta); }
.rec-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .rec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
.rec-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.rec-card:hover { border-color: var(--ramp-1); box-shadow: 0 14px 34px rgba(29, 96, 156, 0.10); transform: translateY(-2px); }
.rec-card[data-servicio="hubspot"]:hover { border-color: #FF7A59; box-shadow: 0 14px 34px rgba(232, 85, 45, 0.12); }
.rec-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rec-card__title { font-size: 18.5px; line-height: 1.32; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.rec-card__sum { font-size: 13.5px; line-height: 1.6; color: var(--body); }
.rec-card[hidden] { display: none; }

/* Artículo */
.art__head { max-width: 1120px; margin: 0 auto; padding: 40px 20px 0; }
@media (min-width: 768px) { .art__head { padding: 44px 40px 0; } }
.art__crumb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--meta); margin-bottom: 20px; }
.art__crumb a { color: var(--link-blue); }
.art__crumb a:hover { text-decoration: underline; }
.art__title { font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 20ch; margin: 14px 0 0; text-wrap: balance; }
@media (min-width: 768px) { .art__title { font-size: 46px; } }
.art__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.art__author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.art__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #36A9E1, #1D609C); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.art__sep { width: 1px; height: 18px; background: var(--hairline); }
.art__date { font-family: var(--font-mono); font-size: 12px; color: var(--meta); }
.art__date b { color: #3E4C59; font-weight: 400; }
.art__answer { margin-top: 26px; background: #F0F8FC; border: 1px solid #CDE7F5; border-left: 4px solid var(--ramp-1); border-radius: 12px; padding: 22px 26px; }
.art__answer-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: #0E6CA6; margin-bottom: 10px; }
.art__answer p { font-size: 17.5px; line-height: 1.6; color: #16303F; font-weight: 500; max-width: 70ch; }

.art__body { max-width: 1120px; margin: 0 auto; padding: 36px 20px 24px; }
@media (min-width: 1000px) { .art__body { display: grid; grid-template-columns: 236px 1fr; gap: 56px; align-items: start; padding: 40px 40px 30px; } }
.art-toc-wrap { display: none; }
@media (min-width: 1000px) {
  .art-toc-wrap { display: block; }
  .art-toc { position: sticky; top: 24px; }
}
.art-toc__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--meta); margin-bottom: 14px; }
.art-toc__list { display: flex; flex-direction: column; border-left: 2px solid var(--hairline); }
.art-toc__link { font-size: 13.5px; font-weight: 500; color: var(--body); padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; transition: color .12s ease; }
.art-toc__link:hover { color: var(--heading); }
.art-toc__link.is-on { color: var(--link-blue); font-weight: 600; border-left-color: var(--link-blue); }

.art-text { max-width: 70ch; color: #33414C; font-size: 16.5px; line-height: 1.72; }
@media (min-width: 768px) { .art-text { font-size: 17.5px; line-height: 1.75; } }
.art-p { margin: 0 0 18px; }
.art-h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--heading); margin: 36px 0 14px; scroll-margin-top: 20px; }
@media (min-width: 768px) { .art-h2 { font-size: 26px; } }
.art-ul { margin: 0 0 20px; padding-left: 22px; }
.art-ul li { margin-bottom: 8px; }
.art-text a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 2px; }
.art-text strong { color: var(--heading); font-weight: 600; }
.art-code { font-family: var(--font-mono); font-size: 0.9em; color: var(--link-blue); background: var(--celeste-1); padding: 1px 5px; border-radius: 5px; }

.art-steps { list-style: none; counter-reset: step; margin: 0 0 20px; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.art-steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.art-steps__n { width: 30px; height: 30px; border-radius: 50%; background: var(--celeste-1); color: #0B5F95; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.art-steps__n::before { content: counter(step); }
.art-steps li > div { padding-top: 3px; }

.art-table-wrap { border: 1px solid var(--hairline); border-radius: 12px; overflow-x: auto; margin: 0 0 22px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.art-table th { text-align: left; padding: 13px 18px; font-weight: 600; font-size: 12.5px; background: var(--ink); color: var(--heading-dark); white-space: nowrap; }
.art-table td { padding: 13px 18px; border-top: 1px solid var(--hairline); color: #33414C; }
.art-table tbody tr:nth-child(even) { background: #F8FBFD; }
.art-table td:first-child { font-weight: 600; }

.art-codeblock { border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline-dark); margin: 0 0 22px; }
.art-codeblock__bar { background: #0A1622; display: flex; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--hairline-dark); }
.art-codeblock__name { font-family: var(--font-mono); font-size: 11px; color: var(--accent-dark); }
.art-codeblock pre { background: var(--panel); padding: 16px 18px; overflow-x: auto; margin: 0; }
.art-codeblock code { font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: #C6D6E4; white-space: pre; }

.art-callout { margin: 24px 0; background: #F0F8FC; border: 1px solid #CDE7F5; border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; }
.art-callout svg { flex-shrink: 0; margin-top: 2px; }
.art-callout > div { font-size: 15px; line-height: 1.6; color: #2E5975; }
.art-callout strong { color: #0B3A5C; }

.art-faq { margin-top: 20px; max-width: none; }
.art-cta { margin: 40px 0 0; padding: 26px 28px; background: var(--celeste-1); border-radius: 16px; }
.art-cta h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); margin-bottom: 10px; }
.art-cta p { font-size: 15.5px; line-height: 1.6; color: var(--body); margin-bottom: 18px; max-width: 60ch; }
.art-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.art-related__list { display: grid; gap: 10px; margin-top: 16px; }
.art-related__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--heading); transition: border-color .15s ease, transform .15s ease; }
.art-related__list a:hover { border-color: var(--ramp-1); transform: translateX(3px); }
.art-related__list a > span { color: var(--link-blue); }

/* ---------- 23. Tema HubSpot (naranja de marca) — /servicios/hubspot/ (diseño 14a) ---------- */
.theme-hubspot {
  --ramp-1: #FF7A59;
  --ramp-2: #FF8A6B;
  --ramp-3: #F5734F;
  --ramp-4: #E8552D;
  --ramp-5: #D6491F;
  --ramp-6: #B23D18;
  --accent-dark: #FFB59F;
  --link-blue: #C2410C;
  --celeste-1: #FFEDE6;
  --celeste-2: #FFC9B4;
  --grad-strip: linear-gradient(90deg, #FF7A59, #E8552D);
  --grad-track: linear-gradient(180deg, #FF7A59, #E8552D);
  --grad-track-dark: linear-gradient(180deg, #FF7A59, #FFB59F);
  --grad-text: linear-gradient(120deg, #FF7A59, #FFB59F);
}
.theme-hubspot .hero__glow { background: radial-gradient(880px 460px at 78% 0%, rgba(255, 122, 89, 0.18), transparent 72%); }
.theme-hubspot .pad { background: var(--ramp-1) !important; box-shadow: 0 0 0 1.5px var(--ramp-1) !important; }
.theme-hubspot .btn--primary { background: #FF7A59; color: #FFFFFF; }
.theme-hubspot .btn--primary:hover { background: #FF5C35; }
.theme-hubspot .include__check svg path { stroke: #E8552D; }
.theme-hubspot .signals li::before { background: var(--celeste-1); color: #C2410C; }
/* logo HubSpot en el hero: texto blanco + engranaje naranja (sobre tinta) */
.svc-brand-logo { height: 30px; width: auto; margin-bottom: 18px; }
@media (min-width: 768px) { .svc-brand-logo { height: 34px; margin-bottom: 22px; } }
