/* ═══════════════════════════════════════════════
   SITIO — hoja de estilos única de jorgegrajales.co
   Une, en este orden: tokens, base, layout, sections y responsive.
   Un solo archivo = una sola descarga antes de mostrar la página.
   Al cambiarla, suba su versión (?v=…) en todas las páginas.
═══════════════════════════════════════════════ */


/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ fuentes (servidas desde el sitio, sin Google Fonts) ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
   Inter (variable, 300–800) y DM Serif Display, licencia libre SIL OFL 1.1.
   Solo el juego latino: incluye tildes, ñ, ¿ y ¡. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-serif-display-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-serif-display-italic-latin.woff2) format('woff2');
}

/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ tokens ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ═══════════════════════════════════════════════
   DESIGN TOKENS — jorge grajales .co
   Paleta: "Confianza Robusta e Innovación Vanguardista"
   (ver design.md en la raíz del sitio).
   Editar aquí para cambiar paleta, tipografía o
   radios en todo el sitio de forma global.
═══════════════════════════════════════════════ */
:root {
  /* ── Paleta de marca (design.md) ── */
  --navy:   #0F2537;   /* Primario · Azul Ejecutivo Senior: estructura, títulos, fondos corporativos */
  --navy2:  #183A55;   /* Navy elevado: superficies sobre fondo navy                                 */
  --navy3:  #0A1A28;   /* Navy profundo: footer                                                       */
  --blue:   #1A66FF;   /* Secundario · Azul Tecnológico e IA: CTAs, enlaces, iconos                   */
  --blue2:  #0F52D9;   /* Hover de CTAs                                                               */
  --blue-lt:#7AA7FF;   /* Azul tecnológico sobre fondos navy (contraste AA)                           */
  --green:  #00B887;   /* Acento · Verde Eficiencia (ROI): KPIs, badges, decoración y texto sobre navy */
  --green-ink: #007A5A;/* Verde Eficiencia para texto/iconos sobre fondo claro (5.3:1, AA)            */
  --green-ink2:#00664B;/* Hover de botones verdes                                                     */

  /* Canales RGB para transparencias: rgb(var(--blue-rgb) / .1) */
  --navy-rgb:  15 37 55;
  --blue-rgb:  26 102 255;
  --green-rgb: 0 184 135;

  /* ── Fondos (claro) ── */
  --g0: #E9EFF5;   /* section-dark: hielo con matiz navy */
  --g1: #F4F7FA;   /* body: Fondo Claro Técnico         */
  --g2: #FFFFFF;   /* cards + section-alt               */
  --g3: #EEF3F8;   /* hover / estados activos           */
  --g4: #C8D3DE;   /* bordes, línea de trayectoria      */

  /* ── Texto ── */
  --text:  #212529;  /* Neutro oscuro · Gris Carbón: cuerpo de texto (14:1 sobre --g1) */
  --text2: #495057;  /* Texto secundario (7.6:1)                                       */
  --text3: #5C6670;  /* Texto terciario / labels (5.4:1)                               */
  --on-dark:  #FFFFFF;
  --on-dark2: rgba(255, 255, 255, .78);
  --on-dark3: rgba(255, 255, 255, .62);

  /* ── Bordes ── */
  --border:  rgb(var(--navy-rgb) / .09);
  --border2: rgb(var(--navy-rgb) / .16);

  /* ── Tipografía ── */
  --ffd: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ffb: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ffc: 'DM Serif Display', Georgia, 'Times New Roman', serif; /* títulos editoriales */
  --ffm: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* ── Radios ── */
  --r:  8px;
  --r2: 12px;
}


/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ base ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ═══════════════════════════════════════════════
   BASE — reset, utilidades, componentes globales
═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { background: var(--g1); color: var(--text); font-family: var(--ffb); line-height: 1.65; overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--ffb); }

/* ── Layout helpers ── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section     { padding: 6rem 0; }
.section--alt  { background: var(--g2); }


/* ── Eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ffm);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--blue);
}

/* ── Títulos de sección ── */
.section-title {
  font-family: var(--ffc);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 56ch;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.875rem;
  border-radius: var(--r);
  font-family: var(--ffd);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 24px rgb(var(--blue-rgb) / .35);
}
.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 8px 32px rgb(var(--blue-rgb) / .5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--text2); }


/* ── Badge ── */


/* ── Scroll reveal ── */
/* Solo se oculta si hay JS (clase .js en <html>): sin JS el contenido se ve siempre */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }


/* ── Animaciones ── */
@keyframes barIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1);   }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ── Accesibilidad: skip-link ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: fixed;
  top: .75rem; left: .75rem;
  width: auto; height: auto;
  padding: .5rem 1rem;
  clip: auto;
  white-space: normal;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-weight: 700;
  z-index: 9999;
}

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


/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ layout ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ═══════════════════════════════════════════════
   LAYOUT — nav, hero, hero-stats, footer
═══════════════════════════════════════════════ */

/* ── Navegación principal ── */
#nav {
  position: fixed;
  top: var(--ann-h, 0px);
  left: 0; right: 0;
  z-index: 200;
  transition: background .3s, box-shadow .3s, top .3s ease;
}
#nav.scrolled {
  background: rgb(var(--navy-rgb) / .96);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgb(var(--navy-rgb) / .25);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--ffd);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.nav-logo        { color: var(--on-dark); }
.nav-logo strong { color: var(--blue-lt); }
.nav-logo span   { color: var(--on-dark3); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .45rem .9rem;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--on-dark2);
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, .08);
}
.nav-links .nav-cta {
  padding: .5rem 1.25rem;
  margin-left: .5rem;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--r);
  font-weight: 700;
  transition: background .2s;
}
.nav-links .nav-cta:hover { background: var(--blue2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-dark);
  padding: .5rem;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; border-radius: 4px; }

/* Menú móvil (overlay) */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--ann-h, 0px);
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: rgb(var(--navy-rgb) / .985);
  backdrop-filter: blur(12px);
  padding: calc(68px + 1.25rem) 2rem 2rem;
  gap: .5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem;
  border-radius: var(--r);
  font-family: var(--ffd);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-dark2);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s, border-color .2s, background .2s;
}
.nav-mobile a:hover {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .25);
}
.nav-mobile .nav-cta-mob {
  color: #fff !important;
  background: var(--blue);
  border-color: var(--blue) !important;
}

/* ── Hero ── */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(68px + var(--ann-h, 0px));
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
}

/* Degradado sutil de Azul Ejecutivo (#0F2537) a Azul Tecnológico (#1A66FF) */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 100% 100%, rgb(var(--blue-rgb) / .38) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 10%,   rgb(var(--green-rgb) / .07) 0%, transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy) 45%, #12345A 100%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Ventana de editor que se escribe sola (decorativa, encima del panel de servicios) */
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.ht-window {
  background: rgb(10 26 40 / .82);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 18px 48px rgb(0 0 0 / .25);
}
.ht-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ht-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ht-bar em {
  margin-left: .6rem;
  font-family: var(--ffm);
  font-size: .7rem;
  font-style: normal;
  color: var(--on-dark3);
}
.ht-code {
  font-family: var(--ffm);
  font-size: .78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  white-space: pre;
  counter-reset: ln;
  height: calc(6 * 1.65em + 1.5rem);  /* 6 líneas visibles; hace scroll como un editor real */
  overflow: hidden;
  padding: .75rem 1rem .75rem 0;
  transition: opacity .6s ease;
}
.ht-code.is-fading { opacity: 0; }
.ht-code .ln { display: block; counter-increment: ln; }
.ht-code .ln::before {
  content: counter(ln);
  display: inline-block;
  width: 2.25rem;
  margin-right: 1rem;
  text-align: right;
  color: rgba(255, 255, 255, .22);
}
.ht-code .kw  { color: var(--blue-lt); }
.ht-code .str { color: var(--green); }
.ht-code .num { color: #fff; }
.ht-code .com { color: rgba(255, 255, 255, .4); font-style: italic; }
.ht-code .caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -.2em;
  background: var(--green);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }


.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 640px; }

.hero-h1 {
  font-family: var(--ffc);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--on-dark);
  margin-bottom: 1.5rem;
}
.hero-h1 em  { font-style: italic; color: var(--blue-lt); }

/* Presentación personal en la primera pantalla */
.hero-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy2);
  border: 2px solid rgb(var(--green-rgb) / .6);
}
.hero-intro p { font-size: 1rem; color: var(--on-dark2); line-height: 1.45; max-width: 36ch; }
.hero-intro strong { color: var(--on-dark); }

#inicio .eyebrow         { color: var(--green); }
#inicio .eyebrow::before { background: var(--green); }
#inicio .btn-ghost       { color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
#inicio .btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
#inicio .btn:focus-visible { outline-color: var(--blue-lt); }
#inicio .hero-trust-item     { color: var(--on-dark2); }
#inicio .hero-trust-item svg { color: var(--green); }

.hero-desc {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--on-dark2);
  max-width: 50ch;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* Panel de servicios del hero */
.hero-services {
  background: rgb(255 255 255 / .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r2);
  padding: 1.25rem 1.5rem;
}
.hsp-label {
  font-family: var(--ffm);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark3);
  margin-bottom: .75rem;
}
.hsp-list { display: flex; flex-direction: column; }
.hsp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .75rem;
  margin: 0 -.75rem;
  border-radius: var(--r);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s;
}
.hsp-row:last-child { border-bottom: none; }
.hsp-row:hover { background: rgba(255, 255, 255, .06); }
.hsp-row:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 2px; }


.hsp-row > span:nth-child(2) { flex: 1; min-width: 0; }
.hsp-name { display: block; font-weight: 700; font-size: .95rem; color: var(--on-dark); line-height: 1.3; }

.hsp-arrow { color: var(--on-dark3); transition: transform .2s, color .2s; }
.hsp-row:hover .hsp-arrow { transform: translateX(3px); color: var(--green); }
.hsp-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: var(--on-dark2);
}
.hsp-foot strong { color: var(--green); font-weight: 800; }

/* ── Footer ── */
footer {
  background: var(--navy3);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.foot-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-logo {
  font-family: var(--ffd);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: var(--on-dark);
}
.foot-logo strong { color: var(--blue-lt); }
.foot-logo span   { color: var(--on-dark3); }

.foot-links { display: flex; gap: 1.5rem; }
.foot-links a {
  font-size: .82rem;
  color: var(--on-dark2);
  transition: color .2s;
}
.foot-links a:hover { color: var(--on-dark); }

.foot-copy { font-size: .8rem; color: var(--on-dark3); }


/* ── Submenús del menú principal (casos y servicios) ──
   Se abren con el ratón (:hover) y con el teclado (:focus-within) */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: .45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: .7;
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: -.5rem;
  min-width: 290px;
  list-style: none;
  padding: .5rem;
  margin-top: .4rem;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r2);
  box-shadow: 0 18px 40px rgb(0 0 0 / .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* puente invisible para que el ratón no pierda el submenú al bajar */
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-links .nav-sub a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 6px;
  font-size: .86rem;
  line-height: 1.35;
  white-space: normal;
}
.nav-links .nav-sub .nav-sub-all { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.nav-links .nav-sub .nav-sub-all a { color: var(--green); font-size: .8rem; }

/* Menú móvil: subpáginas sangradas bajo su sección */
.nav-mobile { overflow-y: auto; }
.nav-mobile a.nav-mob-sub {
  margin-left: 1.25rem;
  padding: .6rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  border-color: transparent;
  border-left: 2px solid rgba(255, 255, 255, .15);
  border-radius: 0;
}

/* ── Mapa de páginas en el pie ── */
.foot-map {
  max-width: 1140px;
  margin: 0 auto 2rem;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.foot-map nav { display: flex; flex-direction: column; gap: .5rem; }
.foot-map h2 {
  font-family: var(--ffm);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark3);
  margin-bottom: .35rem;
}
.foot-map a { font-size: .86rem; color: var(--on-dark2); transition: color .2s; }
.foot-map a:hover { color: var(--on-dark); }
@media (max-width: 480px) {
  .foot-map { grid-template-columns: 1fr; padding: 0 1.25rem 1.5rem; }
}


/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ sections ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ═══════════════════════════════════════════════
   SECTIONS — estilos de cada sección del sitio
   Orden: componentes compartidos primero; al final,
          candidato, consultoría y páginas internas
═══════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   TRUSTED-BY BAR
──────────────────────────────────────────── */
.trusted-by {
  padding: 2rem 0;
  background: var(--g2);
  border-bottom: 1px solid var(--border);
}
.tb-label {
  text-align: center;
  font-family: var(--ffm);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1.25rem;
}


/* ────────────────────────────────────────────
   PRUEBA SOCIAL
──────────────────────────────────────────── */
#resultados { padding: 5.5rem 0; }


.ps-testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
}
.ps-testi {
  background: var(--g2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--r2);
  padding: 2rem 2rem 2rem calc(2rem - 2px);
  transition: border-color .2s, box-shadow .2s;
}
.ps-testi:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgb(var(--blue-rgb) / .08);
}


.ps-testi-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.ps-testi-author { display: flex; align-items: center; gap: .875rem; }
.ps-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(var(--blue-rgb) / .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ffd);
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.ps-author-name { font-size: .85rem; font-weight: 700; color: var(--navy); }
.ps-author-role { font-size: .76rem; color: var(--text3); margin-top: .1rem; }


/* ────────────────────────────────────────────
   CONTACTO
──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.c-info > p {
  font-size: .95rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.c-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.c-item { display: flex; align-items: flex-start; gap: 1rem; }
.c-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgb(var(--blue-rgb) / .08);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 1px;
}
.c-ico svg { width: 18px; height: 18px; }
.c-lbl {
  font-family: var(--ffm);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: .2rem;
}
.c-val { font-size: .95rem; color: var(--navy); }
.c-val a { transition: color .2s; }
.c-val a:hover { color: var(--blue); }

/* Botones de redes sociales */


/* Formulario */


/* ────────────────────────────────────────────
   SERVICIOS — icono y enlace (tarjetas de consultoría y casos)
──────────────────────────────────────────── */
.svc-ico {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: rgb(var(--blue-rgb) / .1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap .2s;
}
.svc-link:hover { gap: .8rem; }
.svc-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }


/* ────────────────────────────────────────────
   QUIÉN ESTÁ DETRÁS
──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r2);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgb(var(--navy-rgb) / .15);
}
.about-lead {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 62ch;
}
.about-lead strong { color: var(--navy); }


/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
#faq { padding: 5.5rem 0; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.faq-item {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.75rem;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover {
  border-color: rgb(var(--blue-rgb) / .2);
  box-shadow: 0 8px 24px rgb(var(--navy-rgb) / .06);
}
.faq-q {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  line-height: 1.45;
  margin-bottom: .75rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.faq-q::before {
  content: 'P';
  color: var(--blue);
  font-family: var(--ffm);
  font-size: .75rem;
  font-weight: 800;
  background: rgb(var(--blue-rgb) / .08);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .05em;
}
.faq-a { font-size: .875rem; color: var(--text2); line-height: 1.75; }


/* ────────────────────────────────────────────
   WHATSAPP FLOTANTE
──────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  z-index: 9990;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37,211,102,.65);
}
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--text);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .4rem .8rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  top: 50%;
  transform: translateY(-50%);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--text);
}
.wa-float:hover .wa-tooltip { opacity: 1; }


/* ────────────────────────────────────────────
   CONTACTO — mejoras de conversión
──────────────────────────────────────────── */
.c-cal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: var(--r);
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-bottom: .75rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgb(var(--blue-rgb) / .3);
}
.c-cal-cta:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgb(var(--blue-rgb) / .45);
  color: #fff;
}
.c-cal-cta svg { flex-shrink: 0; }
.c-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: var(--r);
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-bottom: 1.5rem;
  border: none;
  cursor: pointer;
}
.c-wa-cta:hover {
  background: #1fba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.4);
  color: #fff;
}
.c-wa-cta svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }


/* ────────────────────────────────────────────
   CONTACTO — tarjeta CTA sin formulario
──────────────────────────────────────────── */
.c-cta-card {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
}
.c-email-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--g1);
  border: 1px solid var(--border2);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  padding: .875rem 1.5rem;
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.c-email-cta svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.c-email-cta:hover { border-color: rgb(var(--blue-rgb) / .3); background: var(--g3); }
.c-cta-note {
  font-size: .82rem;
  color: var(--text3);
  text-align: center;
}


/* ────────────────────────────────────────────
   STICKY CTA (móvil)
──────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9970;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.visible { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: var(--ffd);
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 1.5rem;
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 0 4px 20px rgb(var(--blue-rgb) / .3);
}
.sticky-cta-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sticky-cta-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }


/* ────────────────────────────────────────────
   HERO — micro-copy de confianza
──────────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text3);
}
.hero-trust-item svg { width: 14px; height: 14px; color: var(--green-ink); flex-shrink: 0; }


/* ────────────────────────────────────────────
   MARCA — monograma JG (J blanca, G azul)
──────────────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--ffc);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -.04em;
  margin-right: .6rem;
}
.logo-mark .j { color: #fff; }
.logo-mark .g { color: var(--blue); }
.nav-logo, .foot-logo { display: inline-flex; align-items: center; }


/* ────────────────────────────────────────────
   HERO — candidato
──────────────────────────────────────────── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem;
  border-radius: 100px;
  background: rgb(var(--green-rgb) / .12);
  border: 1px solid rgb(var(--green-rgb) / .35);
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.open-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.kr-metric {
  width: 86px;
  flex-shrink: 0;
  font-family: var(--ffd);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--green);
}


/* ────────────────────────────────────────────
   CASOS DE ÉXITO
──────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--g2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--r2);
  padding: 1.75rem;
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgb(var(--navy-rgb) / .1); }
.case-org { font-family: var(--ffm); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.case-metric { font-family: var(--ffd); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--green-ink); }
.case-metric small { display: block; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--text2); margin-top: .35rem; }
.case-card h3 { font-family: var(--ffd); font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.case-card p { font-size: .9rem; color: var(--text2); line-height: 1.65; flex: 1; }


/* ────────────────────────────────────────────
   EXPERIENCIA
──────────────────────────────────────────── */
.xp-list { display: flex; flex-direction: column; gap: 1.25rem; }
.xp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.75rem 2rem;
}
.xp-when { font-family: var(--ffm); font-size: .75rem; color: var(--text3); line-height: 1.6; }
.xp-when strong { display: block; font-family: var(--ffb); font-size: .95rem; color: var(--navy); margin-bottom: .2rem; }
.xp-now { display: inline-block; margin-top: .5rem; padding: .15rem .6rem; border-radius: 100px; background: rgb(var(--green-rgb) / .12); color: var(--green-ink); font-family: var(--ffb); font-size: .7rem; font-weight: 700; }
.xp-role { font-family: var(--ffd); font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.xp-sum { font-size: .92rem; color: var(--text2); margin: .35rem 0 .9rem; line-height: 1.6; }
.xp-ach { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.xp-ach li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--text); line-height: 1.55; }
.xp-ach li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.xp-ach strong { color: var(--green-ink); }
.xp-proj { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.xp-proj span { padding: .2rem .7rem; border-radius: 100px; background: var(--g1); border: 1px solid var(--border); font-size: .75rem; color: var(--text2); }
.xp-prev { margin-top: 2rem; }
.xp-prev h3 { font-family: var(--ffm); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin-bottom: 1rem; }
.xp-prev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.xp-prev-row { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.xp-prev-row span:first-child { font-family: var(--ffm); font-size: .75rem; color: var(--text3); padding-top: .1rem; }
.xp-prev-row strong { color: var(--navy); font-weight: 600; }
.xp-prev-row em { font-style: normal; color: var(--text2); }


/* ────────────────────────────────────────────
   PERFIL — formación, competencias, certificaciones
──────────────────────────────────────────── */
.prof-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.prof-box { background: var(--g1); border: 1px solid var(--border); border-radius: var(--r2); padding: 1.5rem; }
.prof-box h3 { font-family: var(--ffm); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin-bottom: 1rem; }
.prof-box ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.prof-box li { font-size: .9rem; color: var(--text); line-height: 1.45; }
.prof-box li em { display: block; font-style: normal; font-size: .78rem; color: var(--text3); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips span { padding: .3rem .75rem; border-radius: 100px; background: var(--g2); border: 1px solid var(--border2); font-size: .8rem; color: var(--navy); }


/* ────────────────────────────────────────────
   CONSULTORÍA (secundaria) + PROMESA DE SERVICIO
──────────────────────────────────────────── */
.cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.cs-card:hover { transform: translateY(-3px); border-color: rgb(var(--blue-rgb) / .35); }
.cs-card .svc-ico { width: 44px; height: 44px; }
.cs-card .svc-ico svg { width: 22px; height: 22px; }
.cs-card h3 { font-family: var(--ffd); font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.cs-card p { font-size: .85rem; color: var(--text2); line-height: 1.55; flex: 1; }
.cs-card .svc-link { font-size: .85rem; }
.promise {
  margin-top: 2rem;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: var(--r2);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.promise h3 { font-family: var(--ffc); font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.promise h3 em { color: var(--green); font-style: italic; }
.promise ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; }
.promise li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--on-dark2); line-height: 1.5; }
.promise li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.promise li strong { color: var(--on-dark); display: block; }


/* ────────────────────────────────────────────
   PÁGINAS INTERNAS (servicios y casos)
──────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  padding: calc(68px + 3.5rem) 0 3.5rem;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: .8rem; color: var(--on-dark3); margin-bottom: 1.25rem; }
.crumbs a { color: var(--on-dark2); }
.crumbs a:hover { color: #fff; }
.page-hero .eyebrow { color: var(--green); }
.page-hero .eyebrow::before { background: var(--green); }
.page-hero h1 { font-family: var(--ffc); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; max-width: 22ch; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--blue-lt); }
.page-hero .lead { font-size: 1.08rem; color: var(--on-dark2); max-width: 62ch; line-height: 1.75; }
.page-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.page-facts div { font-size: .82rem; color: var(--on-dark2); max-width: 22ch; }
.page-facts strong { display: block; font-family: var(--ffd); font-size: 1.7rem; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.page-body { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; align-items: start; }
.prose h2 { font-family: var(--ffc); font-weight: 400; font-size: 1.7rem; color: var(--navy); margin: 2.5rem 0 .9rem; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1rem; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.prose li { position: relative; padding-left: 1.4rem; font-size: .98rem; color: var(--text); line-height: 1.6; }
.prose li::before { content: '✓'; position: absolute; left: 0; color: var(--green-ink); font-weight: 800; }
.prose strong { color: var(--navy); }
.aside-card { position: sticky; top: calc(68px + 1.5rem); background: var(--g2); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--r2); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.aside-card h3 { font-family: var(--ffd); font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.aside-card p { font-size: .88rem; color: var(--text2); line-height: 1.6; }
.aside-card .btn { justify-content: center; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--ffm); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin-bottom: 1rem; }
.related-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.related-links a { padding: .5rem 1rem; border: 1px solid var(--border2); border-radius: var(--r); font-size: .88rem; font-weight: 600; color: var(--navy); background: var(--g2); }
.related-links a:hover { border-color: var(--blue); color: var(--blue); }


/* ────────────────────────────────────────────
   OFERTA DE ENTRADA — diagnóstico a precio fijo
──────────────────────────────────────────── */
.offer-tag {
  display: inline-block;
  align-self: flex-start;
  padding: .2rem .7rem;
  border-radius: 100px;
  background: rgb(var(--green-rgb) / .14);
  color: var(--green-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.offer-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 2rem 2.25rem;
  background: var(--g2);
  border: 1px solid rgb(var(--blue-rgb) / .3);
  border-left: 4px solid var(--green);
  border-radius: var(--r2);
  box-shadow: 0 12px 36px rgb(var(--navy-rgb) / .08);
}
.offer-banner h3 { font-family: var(--ffc); font-weight: 400; font-size: 1.6rem; color: var(--navy); line-height: 1.2; margin: .6rem 0 .5rem; }
.offer-banner p { font-size: .95rem; color: var(--text2); line-height: 1.6; max-width: 60ch; }
.offer-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; text-align: right; }
.offer-price { font-family: var(--ffd); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.offer-price small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--text3); margin-top: .35rem; }

/* Página del diagnóstico */
.deliv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: .5rem 0 1rem; }
.deliv { background: var(--g2); border: 1px solid var(--border); border-radius: var(--r2); padding: 1.25rem 1.35rem; }
.deliv-n { font-family: var(--ffm); font-size: .72rem; color: var(--green-ink); }
.deliv h3 { font-family: var(--ffd); font-size: 1rem; font-weight: 800; color: var(--navy); margin: .35rem 0 .35rem; line-height: 1.3; }
.deliv p { font-size: .88rem; color: var(--text2); line-height: 1.55; margin: 0; }
.steps { list-style: none; counter-reset: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; border-left: 2px solid var(--g4); }
.steps li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.steps li::before { content: ''; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--g1); }
.step-when { display: block; font-family: var(--ffm); font-size: .72rem; color: var(--text3); }
.steps strong { display: block; color: var(--navy); font-size: 1rem; margin: .15rem 0 .2rem; }
.steps p { font-size: .92rem; margin: 0; }
.prose .ul-muted li { color: var(--text2); }
.prose .ul-muted li::before { content: '–'; color: var(--text3); }
.aside-price { font-family: var(--ffd); font-size: 2rem !important; font-weight: 800; letter-spacing: -.03em; color: var(--navy) !important; line-height: 1; }
.aside-note { font-size: .8rem !important; color: var(--text3) !important; }
.aside-offer {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  border-radius: var(--r);
  background: rgb(var(--green-rgb) / .07);
  border: 1px solid rgb(var(--green-rgb) / .3);
  font-size: .85rem;
  color: var(--text2);
}
.aside-offer strong { color: var(--navy); font-size: .95rem; }
.aside-offer:hover { border-color: var(--green-ink); }

@media (max-width: 768px) {
  .offer-banner { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.25rem; }
  .offer-cta { align-items: flex-start; text-align: left; }
  .deliv-grid { grid-template-columns: 1fr; }
}


/* ────────────────────────────────────────────
   AVISO DE COOKIES + PÁGINA DE PRIVACIDAD
──────────────────────────────────────────── */
.cookie-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9980;
  max-width: 560px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--navy);
  color: var(--on-dark2);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r2);
  box-shadow: 0 18px 40px rgb(0 0 0 / .3);
}
.cookie-note[hidden] { display: none; }
.cookie-note p { font-size: .84rem; line-height: 1.5; }
.cookie-note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-note .btn { flex-shrink: 0; padding: .6rem 1.1rem; font-size: .85rem; }
@media (max-width: 768px) {
  /* encima del botón fijo de móvil */
  .cookie-note { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; }
  .cookie-note .btn { justify-content: center; }
}
.prose-narrow { max-width: 760px; }
.prose code { font-family: var(--ffm); font-size: .88em; background: var(--g3); padding: .1em .35em; border-radius: 4px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }


/* ────────────────────────────────────────────
   AGENDA (Cal.com), OFERTA EN EL HERO Y EMPRESAS
──────────────────────────────────────────── */
/* Botón de agenda en el menú (es <button>, no <a>) */
button.nav-cta {
  border: 0;
  font-family: var(--ffb);
  font-size: .86rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}
button.nav-cta svg { width: 14px; height: 14px; }
.nav-links .nav-cta:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; }
.nav-mobile button.nav-cta-mob {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  border: 0;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
  font-family: var(--ffd);
  font-size: 1.15rem;
  font-weight: 700;
}
.nav-mobile button.nav-cta-mob svg { width: 18px; height: 18px; }

/* Peso del PDF junto al botón */
.btn-meta { font-size: .72rem; font-weight: 500; opacity: .75; margin-left: .15rem; }

/* Enlace a la oferta de consultoría en el hero */
.hero-offer {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1.5rem;
  padding: .65rem 1rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: var(--on-dark2);
  transition: border-color .2s, background .2s;
}
.hero-offer span:first-child { color: var(--green); font-weight: 700; }
.hero-offer:hover { border-color: rgb(var(--green-rgb) / .5); background: rgba(255, 255, 255, .08); color: var(--on-dark); }

/* Bloque de agenda en contacto */
.c-book {
  padding: 1.25rem;
  border-radius: var(--r2);
  background: rgb(var(--blue-rgb) / .06);
  border: 1px solid rgb(var(--blue-rgb) / .25);
}
.c-book-title { font-family: var(--ffd); font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.c-book-sub { font-size: .85rem; color: var(--text2); line-height: 1.55; margin: .3rem 0 1rem; }
.c-book .c-cal-cta { width: 100%; margin-bottom: 0; border: 0; font-family: var(--ffb); }

/* Empresas: tarjetas con cargo, sector y años */
.co-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.co-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.15rem;
  background: var(--g2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
}
.co-mark { display: flex; align-items: center; min-height: 44px; margin-bottom: .2rem; }
.co-name { font-family: var(--ffc); font-size: 1.1rem; color: var(--navy); line-height: 1.2; }

.co-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; }   /* se usa al agregar logos oficiales */
.co-role { font-size: .82rem; color: var(--text2); line-height: 1.4; }
.co-meta { display: flex; align-items: center; gap: .5rem; font-family: var(--ffm); font-size: .7rem; color: var(--text3); margin-top: .15rem; }
.co-sector { padding: .1rem .5rem; border-radius: 100px; background: var(--g2); border: 1px solid var(--border2); font-family: var(--ffb); color: var(--navy); }
@media (max-width: 1024px) { .co-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .co-grid { grid-template-columns: 1fr; } }

/* Precio «desde» y agenda en el bloque de la oferta */
.offer-price .offer-from { display: block; margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); }
button.offer-book {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ffb);
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}
button.offer-book svg { width: 14px; height: 14px; }
button.offer-book:hover { text-decoration: underline; text-underline-offset: 3px; }
button.offer-book:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.aside-price small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); margin-bottom: .3rem; }


/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ fechas visibles (frescura para buscadores e IA) ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
.page-date { font-size: .8rem; color: var(--on-dark3); margin: -.25rem 0 1rem; }
.page-date time { color: var(--on-dark2); }

/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ guías (/guias/): respuesta, listas numeradas y tablas ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
.guia-respuesta { background: var(--g2); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: var(--r2); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.guia-respuesta p { margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.guia-respuesta .guia-respuesta-tag { display: block; font-family: var(--ffm); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); margin-bottom: .4rem; }
.prose h3 { font-family: var(--ffd); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .6rem; }
.prose ol { counter-reset: paso; list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.25rem; }
.prose ol > li { counter-increment: paso; padding-left: 2.4rem; }
.prose ol > li::before { content: counter(paso); top: .05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgb(var(--blue-rgb) / .1); color: var(--blue); font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.prose .tabla { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: var(--r2); background: var(--g2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.prose th { text-align: left; font-weight: 700; color: var(--navy); background: var(--g3); padding: .75rem 1rem; border-bottom: 1px solid var(--border2); }
.prose td { color: var(--text2); padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.guia-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.guia-grid .cs-card h2 { font-family: var(--ffc); font-weight: 400; font-size: 1.35rem; color: var(--navy); line-height: 1.25; }
.guia-grid .cs-card p { font-size: .92rem; }
.guia-meta { font-family: var(--ffm); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
@media (max-width: 768px) { .guia-grid { grid-template-columns: 1fr; } }

/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ responsive ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ═══════════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   1024px: tablet landscape
    768px: tablet portrait / móvil grande
    480px: móvil pequeño
═══════════════════════════════════════════════ */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .ht-window    { display: none; }
  .about-grid   { grid-template-columns: 260px 1fr; gap: 2.5rem; }

  
  
  .faq-grid     { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── 1140px: el menú completo (con submenús y Guías) ya no cabe → menú hamburguesa ── */
@media (max-width: 1140px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
}

/* ── 768px ── */
@media (max-width: 768px) {

  /* Espaciado general */
  .section       { padding: 4rem 0; }
  #resultados { padding: 3.5rem 0; }

  /* Hero — padding recalculado vía --ann-h desde JS */
  #inicio    { padding-top: calc(68px + var(--ann-h, 0px)); }
  .hero-h1   { font-size: 2.3rem; }

  /* Grids */
  
  
  .about-grid        { grid-template-columns: 1fr; }
  .about-photo img   { height: 320px; max-width: 320px; }
  .faq-grid          { grid-template-columns: 1fr; }
  
  

  /* Hero acciones */
  .hero-actions      { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* WhatsApp flotante — más pequeño en móvil */
  .wa-float { width: 52px; height: 52px; bottom: 1.25rem; left: 1.25rem; }
  .wa-float svg { width: 27px; height: 27px; }
  .wa-tooltip { display: none; }

  /* Prueba social */
  
  .ps-testimonials   { grid-template-columns: 1fr; }
  .ps-testi          { padding: 1.5rem; }

  /* Formulario */
  
}

/* ── 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }

  .hero-h1   { font-size: 2rem; }
  .hero-services { padding: 1.25rem; }
  
  

  /* Tarjeta de contacto CTA — full-width en móvil */
  .c-cal-cta, .c-wa-cta, .c-email-cta { width: 100%; box-sizing: border-box; }

  .foot-inner  { flex-direction: column; text-align: center; }
  .foot-links  { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

/* ── Sticky CTA — solo en móvil ── */
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  /* Espacio para que el footer no quede detrás del sticky bar */
  footer { padding-bottom: calc(2.5rem + 5rem + env(safe-area-inset-bottom, 0px)); }
  /* Ocultar WA float cuando sticky CTA está activo (redundante en móvil) */
  .wa-float { display: none; }
}


/* ── Secciones de candidato y páginas internas ── */
@media (max-width: 1024px) {
  .case-grid  { grid-template-columns: 1fr; }
  .cs-grid    { grid-template-columns: 1fr 1fr; }
  .prof-cols  { grid-template-columns: 1fr 1fr; }
  .promise    { grid-template-columns: 1fr; }
  .page-body  { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 768px) {
  .xp-item      { grid-template-columns: 1fr; gap: .75rem; padding: 1.5rem; }
  .xp-prev-grid { grid-template-columns: 1fr; }
  .cs-grid      { grid-template-columns: 1fr; }
  .prof-cols    { grid-template-columns: 1fr; }
  .promise ul   { grid-template-columns: 1fr; }
  .promise      { padding: 1.75rem 1.5rem; }
}
