/* ==========================================================================
   Altum Finance · Sitio web
   Basado en el Manual de marca v2.0 (octubre 2026)
   Colores: Azul Altum 60 % · Niebla 25 % · Cian máx. 5 %
   Tipografía: Sora (títulos, textos, interfaz) · Libre Caslon Text (citas e institucional)
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta oficial */
  --azul: #042F42;
  --niebla: #EDF2F3;
  --cian: #2CC1DF;
  --pizarra: #355157;
  --acero: #6B7B80;
  --bruma: #9FB4BA;
  --marfil: #F3EFE8;
  --cian-texto: #0F7C94;
  --tinta: #0B1C24;
  --blanco: #FFFFFF;
  /* Apoyos de interfaz (derivados de la paleta) */
  --acero-texto: #5A6B70;           /* Acero oscurecido para placeholders (≥ 5:1) */
  --linea: #D3DDE0;                 /* Líneas finas sobre blanco */
  --linea-oscura: rgba(159, 180, 186, .28); /* Líneas finas sobre Azul Altum */
  --error: #B42318;

  --font-sora: "Sora", "Aptos", Arial, sans-serif;
  --font-caslon: "Libre Caslon Text", Georgia, serif;

  /* Ángulo del símbolo: 61,6° → cot = 0,544 */
  --skew: -28.4deg;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--azul);
  font-family: var(--font-sora);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cian); color: var(--azul); }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cian); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--cian); color: var(--azul); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía (jerarquía del manual) ---------- */
.display {
  font-size: clamp(40px, 6.2vw, 64px); line-height: 1.08; font-weight: 300; letter-spacing: -.02em;
}
.title {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.14; font-weight: 600; letter-spacing: -.015em;
}
.subtitle {
  font-size: clamp(22px, 2.5vw, 30px); line-height: 1.3; font-weight: 400; letter-spacing: -.01em;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; max-width: 60ch; }
.text { max-width: 64ch; }
.text > * + * { margin-top: 1em; }
.muted { color: var(--pizarra); }
.on-dark .muted { color: var(--bruma); }
.small { font-size: 14px; line-height: 22px; }
.note { font-size: 13px; line-height: 20px; color: var(--pizarra); }
.on-dark .note { color: var(--bruma); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cian-texto);
  margin-bottom: 20px;
}
.band-niebla .eyebrow, .eyebrow--azul { color: var(--azul); }
.on-dark .eyebrow { color: var(--cian); }

/* Línea Altum: sale del símbolo, con los extremos cortados a 61,6° */
.line {
  display: inline-block; flex: none; width: 44px; height: 5px; background: var(--cian);
  transform: skewX(var(--skew));
}
.line--lg { width: 72px; height: 6px; }

.institutional {
  font-family: var(--font-caslon); font-size: 13px; line-height: 20px; letter-spacing: .28em; text-transform: uppercase;
}
.quote {
  font-family: var(--font-caslon); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.4; letter-spacing: -.005em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-sora); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--cian); color: var(--azul); }            /* Azul sobre cian: 6,6 : 1 */
.btn--primary:hover { background: #5AD3EA; }
.btn--dark { background: var(--azul); color: var(--blanco); }
.btn--dark:hover { background: var(--pizarra); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--blanco); }
.btn--ghost:hover { border-color: var(--blanco); background: rgba(255, 255, 255, .08); }
.btn--outline { border-color: var(--azul); color: var(--azul); }
.btn--outline:hover { background: var(--azul); color: var(--blanco); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--cian-texto);
  border-bottom: 2px solid currentColor; padding-bottom: 3px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.band-niebla .link-arrow { color: var(--azul); }
.on-dark .link-arrow { color: var(--cian); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--azul); color: var(--blanco);
  border-bottom: 1px solid var(--linea-oscura);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--niebla); padding: 8px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--cian);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blanco); }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 14px; color: var(--azul); }
.nav .btn[aria-current="page"] { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--blanco);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform .25s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--azul); border-bottom: 1px solid var(--linea-oscura);
    padding: 8px var(--gutter) 28px; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--linea-oscura); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--cian); }
  .nav .btn { margin-top: 20px; min-height: 52px; font-size: 15px; }
}

/* ---------- Bandas de sección ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.band-azul { background: var(--azul); color: var(--blanco); }
.band-niebla { background: var(--niebla); }
.band-azul h2, .band-azul h3 { color: var(--blanco); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead, .section-head .text { margin-top: 20px; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Portada (inicio) ---------- */
.hero { position: relative; overflow: hidden; background: var(--azul); color: var(--blanco); }
.hero__top { position: relative; overflow: hidden; }
.hero__art {
  position: absolute; right: -3%; top: 50%; height: 125%; width: auto; transform: translateY(-50%);
  pointer-events: none; opacity: .07;
}
.hero__in { position: relative; padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 13ch; }
.hero__copy { max-width: 780px; }
.hero .lead { margin-top: 28px; color: var(--niebla); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.stats { position: relative; border-top: 1px solid var(--linea-oscura); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px 36px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--linea-oscura); }
.stat__n { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 300; letter-spacing: -.02em; color: var(--blanco); }
.stat__l { margin-top: 10px; font-size: 14px; line-height: 21px; color: var(--bruma); max-width: 22ch; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px 24px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--linea-oscura); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--linea-oscura); }
}

/* ---------- Encabezado de páginas internas ---------- */
.page-head { position: relative; overflow: hidden; background: var(--azul); color: var(--blanco); }
.page-head__art { position: absolute; right: 2%; top: 50%; height: 150%; width: auto; transform: translateY(-50%); opacity: .07; pointer-events: none; }
.page-head__in { position: relative; padding-block: clamp(56px, 8vw, 96px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 24px; color: var(--niebla); }

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split > .col-5 { grid-column: span 5; }
.split > .col-6 { grid-column: span 6; }
.split > .col-7 { grid-column: span 7; }
.split > .col-4 { grid-column: span 4; }
.split > .col-8 { grid-column: span 8; }
@media (max-width: 900px) { .split > * { grid-column: 1 / -1 !important; } }

/* ---------- Íconos ---------- */
.icon { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: butt; stroke-linejoin: miter; overflow: visible; }
.icon--sm { width: 32px; height: 32px; }

/* ---------- Tarjetas de servicio ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--blanco); border: 1px solid var(--linea); padding: 28px 26px 30px;
  text-decoration: none; color: var(--azul);
  transition: background-color .25s, color .25s, border-color .25s;
}
.service-card__n { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card__num { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--pizarra); }
.service-card h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; min-height: 2.5em; }
.service-card p { font-size: 15px; line-height: 24px; color: var(--pizarra); }
.service-card:hover, .service-card:focus-visible { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.service-card:hover p, .service-card:focus-visible p, .service-card:hover .service-card__num { color: var(--bruma); }
.service-card:focus-visible { outline-offset: 2px; }

/* ---------- Servicios (página) ---------- */
.services-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-index { position: sticky; top: calc(var(--header-h) + 32px); }
.services-index p { margin-bottom: 14px; }
.services-index a {
  display: flex; gap: 12px; padding: 10px 0; text-decoration: none; font-size: 14px; line-height: 20px;
  color: var(--pizarra); border-bottom: 1px solid var(--linea);
}
.services-index a span { font-weight: 600; letter-spacing: .12em; font-size: 12px; padding-top: 1px; min-width: 22px; }
.services-index a:hover { color: var(--azul); }
.services-index a.is-active { color: var(--azul); font-weight: 600; }
@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-index { display: none; }
}
.service {
  display: grid; grid-template-columns: 84px 1fr; gap: 0 28px; padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--linea);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service__icon { color: var(--azul); }
.service__icon .icon { width: 64px; height: 64px; }
.service__label { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cian-texto); text-transform: uppercase; }
.service h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.service__lead { margin-top: 16px; font-size: 18px; line-height: 1.6; max-width: 56ch; }
.service__body { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.service h3 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pizarra); margin-bottom: 12px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; line-height: 24px; }
.ticks li + li { margin-top: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 3px; background: var(--cian); transform: skewX(var(--skew));
}
.tag {
  display: inline-block; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--azul);
  background: var(--niebla); padding: 4px 12px; margin: 0 8px 8px 0;
}
@media (max-width: 680px) {
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service__icon .icon { width: 48px; height: 48px; }
  .service__body { grid-template-columns: 1fr; }
}

/* ---------- Supervivencia empresarial (gráfico) ---------- */
.survival { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .survival { grid-template-columns: 1fr; } }
.bigfigure { font-size: clamp(72px, 11vw, 136px); line-height: .95; font-weight: 300; letter-spacing: -.04em; color: var(--cian); }
.bigfigure small { font-size: .45em; letter-spacing: 0; margin-left: .08em; }
.bars { display: grid; gap: 22px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.bar__top strong { font-size: 18px; font-weight: 600; }
.bar__track { height: 12px; background: rgba(159, 180, 186, .22); }
.bar__fill { height: 100%; width: var(--v); background: var(--bruma); transform-origin: left; }
.bar--hl .bar__fill { background: var(--cian); }
.js .bar__fill { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .bars.in .bar__fill { transform: scaleX(1); }
.js .bars.in .bar:nth-child(2) .bar__fill { transition-delay: .12s; }
.js .bars.in .bar:nth-child(3) .bar__fill { transition-delay: .24s; }
.js .bars.in .bar:nth-child(4) .bar__fill { transition-delay: .36s; }

.checks { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.checks .line { width: 24px; height: 4px; }

/* ---------- Cita ---------- */
.pullquote { max-width: 900px; }
.pullquote .line { margin-bottom: 32px; }
.pullquote .institutional { margin-top: 32px; color: var(--bruma); }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1020px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.member { display: block; text-decoration: none; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pizarra); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.portrait::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 6px; background: var(--cian); }
.portrait--mono { display: grid; place-items: center; }
.portrait--mono span { font-size: clamp(64px, 9vw, 112px); font-weight: 300; letter-spacing: -.03em; color: var(--niebla); opacity: .9; }
.member h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.member p { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--pizarra); }

.profile { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--linea); }
.profile:first-of-type { border-top: 0; padding-top: 0; }
.profile .portrait { max-width: 440px; }
.profile h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.profile__role { margin-top: 10px; }
.profile .ticks { margin-top: 28px; max-width: 62ch; }
.profile .ticks li + li { margin-top: 14px; }
.profile__edu { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linea); font-family: var(--font-caslon); font-style: italic; font-size: 16px; line-height: 26px; color: var(--pizarra); max-width: 62ch; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile .portrait { max-width: 360px; } }
.group-label { margin: 0 0 clamp(28px, 4vw, 44px); }

/* ---------- Logos: casos y aliados ---------- */
.logo-card {
  display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea);
}
.logo-card__logo { display: grid; place-items: center; height: 170px; padding: 28px; border-bottom: 1px solid var(--linea); background: var(--blanco); }
.logo-card { --lh: 104px; }
.logo-card__logo img { max-height: var(--lh); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-card__body { padding: 22px 24px 26px; }
.logo-card__kind { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cian-texto); }
.logo-card h3 { margin-top: 8px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.logo-card p { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--pizarra); }
.logo-card ul { margin-top: 14px; }
.logo-card li { font-size: 14px; line-height: 22px; color: var(--pizarra); padding-left: 18px; position: relative; }
.logo-card li + li { margin-top: 4px; }
.logo-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--azul); }
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-strip { --lh: 72px; }
.logo-strip .logo-card__logo { height: 120px; padding: 20px; border: 1px solid var(--linea); }
.logo-strip--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .logo-strip, .logo-strip--4 { grid-template-columns: repeat(2, 1fr); } }
.case-group + .case-group { margin-top: clamp(48px, 6vw, 80px); }
.case-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--azul); }
.case-group__head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.case-group__head p { font-size: 15px; color: var(--pizarra); max-width: 60ch; }

/* ---------- Datos y fichas ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--linea); }
.fact { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--linea); }
.fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--linea); }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pizarra); }
.fact dd { margin-top: 6px; font-size: 17px; line-height: 26px; font-weight: 500; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(even) { padding-left: 0; border-left: 0; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linea-oscura); }
.pillar { padding: 32px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--linea-oscura); }
.pillar h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--bruma); font-size: 15px; line-height: 24px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; } .pillar + .pillar { border-top: 1px solid var(--linea-oscura); } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
.mv__item { padding: 36px 32px 40px; background: var(--blanco); border-top: 5px solid var(--azul); }
.mv__item .eyebrow { margin-bottom: 16px; }
.mv__item p { font-size: 20px; line-height: 1.55; letter-spacing: -.005em; font-weight: 400; }
.mv__item p.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .2em; font-weight: 600; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--azul); }
.value { padding: 24px 22px 8px 0; }
.value + .value { padding-left: 22px; border-left: 1px solid var(--linea); }
.value__n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cian-texto); }
.value h3 { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.value p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--pizarra); }
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, 1fr); } .value, .value + .value { padding: 24px 20px 12px 0; border-left: 0; border-bottom: 1px solid var(--linea); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: ph; }
.philosophy article { padding-top: 24px; border-top: 2px solid var(--azul); }
.philosophy .n { font-size: 40px; font-weight: 300; line-height: 1; color: var(--cian-texto); letter-spacing: -.03em; }
.philosophy h3 { margin-top: 16px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.philosophy p { margin-top: 10px; font-size: 15px; line-height: 24px; color: var(--pizarra); }
.philosophy .src { display: block; margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--pizarra); }
@media (max-width: 900px) { .philosophy { grid-template-columns: 1fr; } }

.market { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.market article { padding-top: 24px; border-top: 1px solid var(--linea-oscura); }
.market .stat__n { font-size: clamp(44px, 5vw, 64px); color: var(--cian); }
.market p { margin-top: 12px; max-width: 30ch; }
.market .src { display: block; margin-top: 10px; font-size: 12px; line-height: 18px; color: var(--bruma); }
@media (max-width: 900px) { .market { grid-template-columns: 1fr; } }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.cols-3 article { padding: 28px 26px 30px; background: var(--blanco); border: 1px solid var(--linea); }
.cols-3 h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.cols-3 p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--pizarra); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 13px; line-height: 20px; padding: 5px 12px; border: 1px solid var(--linea); background: var(--blanco); }

/* ---------- Franja de llamado a la acción ---------- */
.cta { background: var(--azul); color: var(--blanco); position: relative; overflow: hidden; }
.cta__in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: end; padding-block: clamp(56px, 7vw, 88px); }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 16px; color: var(--niebla); max-width: 52ch; }
@media (max-width: 800px) { .cta__in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Formulario ---------- */
.form-card { background: var(--blanco); border: 1px solid var(--linea); padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label, .legend { font-size: 13px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--azul); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--blanco);
  border: 1px solid var(--acero); border-radius: 0; color: var(--azul);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 24px; }
.field select { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%23042F42' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--acero-texto); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--azul); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px var(--cian); }
.field .hint { margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--pizarra); }
.field .error { display: none; margin-top: 6px; font-size: 13px; line-height: 19px; font-weight: 500; color: var(--error); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.is-invalid .error { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.consent { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linea); display: grid; gap: 16px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; font-size: 14px; line-height: 22px; }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid var(--acero); background: var(--blanco); cursor: pointer; display: grid; place-content: center; }
.check input::before { content: ""; width: 12px; height: 12px; background: var(--azul); transform: scale(0); transition: transform .12s; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.check.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.check a { color: var(--cian-texto); font-weight: 500; }
.check .error { grid-column: 2; display: none; font-size: 13px; font-weight: 500; color: var(--error); }
.check.is-invalid .error { display: block; }
.privacy-note { margin-top: 24px; padding: 18px 20px; background: var(--niebla); font-size: 13px; line-height: 20px; color: var(--pizarra); }
.privacy-note strong { color: var(--azul); font-weight: 600; }
.privacy-note a { color: var(--azul); font-weight: 500; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 14px; font-weight: 500; }
.form-status.is-error { color: var(--error); }

.form-done { display: none; text-align: left; }
.form-done .line { margin-bottom: 28px; }
.form-done h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.form-done p { margin-top: 14px; max-width: 52ch; }
.form-done .demo { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--azul); background: var(--niebla); font-size: 13px; line-height: 20px; }
.form-done .btn { margin-top: 28px; }
.is-sent .form-body { display: none; }
.is-sent .form-done { display: block; }

.contact-card { background: var(--azul); color: var(--blanco); padding: clamp(28px, 3.4vw, 44px); position: relative; overflow: hidden; }
.contact-card h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin-bottom: 20px; }
.steps { counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; font-size: 15px; line-height: 24px; color: var(--niebla); }
.steps li::before { content: "0" counter(s); font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--cian); padding-top: 1px; }
.steps strong { display: block; color: var(--blanco); font-weight: 600; }
.contact-list { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--linea-oscura); display: grid; gap: 22px; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bruma); }
.contact-list dd { margin-top: 6px; font-size: 16px; line-height: 24px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact-list a:hover { border-color: var(--cian); color: var(--cian); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--azul); color: var(--niebla); border-top: 1px solid var(--linea-oscura); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.site-footer .brand img { width: 260px; }
.site-footer .institutional { margin-top: 24px; color: var(--bruma); font-size: 12px; }
.site-footer h2 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bruma); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--cian); }
.site-footer address { font-style: normal; font-size: 15px; line-height: 24px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-top: 1px solid var(--linea-oscura); font-size: 13px; line-height: 20px; color: var(--bruma); }
.site-footer__bottom a { font-size: 13px; color: var(--niebla); }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- Texto legal (política de datos) ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
.legal__toc p { margin-bottom: 12px; }
.legal__toc a { display: block; padding: 8px 0; font-size: 14px; line-height: 20px; text-decoration: none; color: var(--pizarra); border-bottom: 1px solid var(--linea); }
.legal__toc a:hover { color: var(--azul); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 56px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 0; }
.prose li { position: relative; padding-left: 24px; margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 3px; background: var(--cian); transform: skewX(var(--skew)); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n, lower-alpha) ")"; position: absolute; left: 0; font-weight: 600; color: var(--pizarra); }
.prose a { color: var(--cian-texto); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; line-height: 22px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--linea); }
.prose th { background: var(--niebla); font-weight: 600; }
.prose .callout { margin-top: 24px; padding: 18px 22px; border-left: 5px solid var(--azul); background: var(--niebla); font-size: 15px; }
.prose .meta { margin-top: 0; font-size: 14px; color: var(--pizarra); }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; } .legal__toc { display: none; } }
@media (max-width: 640px) { .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; } .prose thead { display: none; } .prose tr { margin-top: 14px; border: 1px solid var(--linea); } .prose td { border: 0; border-bottom: 1px solid var(--linea); } .prose td:last-child { border-bottom: 0; } }

/* ---------- Movimiento (solo con JS y sin preferencia de reducir movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal[data-d="1"] { transition-delay: .08s; }
  .js .reveal[data-d="2"] { transition-delay: .16s; }
  .js .reveal[data-d="3"] { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .bar__fill { transform: none; }
}

@media print {
  .site-header, .cta, .nav-toggle, .skip { display: none !important; }
  .band-azul, .page-head, .hero { background: #fff !important; color: #000 !important; }
}

/* ---------- Preguntas (inicio) ---------- */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.questions article { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; border-top: 2px solid var(--azul); }
.questions .n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cian-texto); }
.questions h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; font-weight: 300; letter-spacing: -.015em; flex: 1; }
.questions .link-arrow { align-self: flex-start; }
@media (max-width: 900px) { .questions { grid-template-columns: 1fr; } .questions article { gap: 18px; } }

.stat__n small { font-size: .38em; font-weight: 400; letter-spacing: 0; margin-left: .15em; }
.src { font-size: 12px; line-height: 18px; }
.team-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.team-head .section-head { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }

@media (max-width: 700px) { .service-card h3 { min-height: 0; } }

/* Inicio: frase principal */
.hero__statement { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.18; font-weight: 300; letter-spacing: -.015em; max-width: 24ch; color: var(--blanco); text-wrap: balance; }
@media (min-width: 900px) { .hero__statement { max-width: 28ch; } }
.stats--3 .stats__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .stats--3 .stats__grid { grid-template-columns: 1fr; }
  .stats--3 .stat, .stats--3 .stat:nth-child(even) { padding: 22px 0; border-left: 0; }
  .stats--3 .stat + .stat { border-top: 1px solid var(--linea-oscura); }
}
.hero__copy { max-width: 880px; }
.hero__statement { max-width: none; font-size: clamp(28px, 3.6vw, 50px); }
.hero__art { height: 105%; right: -2%; opacity: .05; }
.hero h1.hero__statement { max-width: 26ch; }

/* ---------- Por qué asesorarse ---------- */
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.statgrid--3 { grid-template-columns: repeat(3, 1fr); }
.statgrid > div { padding-top: 20px; border-top: 1px solid var(--linea); }
.statgrid .stat__n { color: var(--azul); font-size: clamp(30px, 3.4vw, 44px); }
.statgrid > div > p:not(.stat__n) { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--pizarra); max-width: 30ch; }
@media (max-width: 560px) { .statgrid, .statgrid--3 { grid-template-columns: 1fr; } }
.chart-title { font-size: 14px; line-height: 21px; font-weight: 600; margin-bottom: 22px; color: var(--pizarra); max-width: 46ch; }
.band-azul .chart-title { color: var(--bruma); }
.section:not(.band-azul) .bar__track { background: rgba(53, 81, 87, .14); }
.section:not(.band-azul) .bar__fill { background: var(--acero); }
.section:not(.band-azul) .bar--hl .bar__fill { background: var(--cian-texto); }
.callout { margin-top: 28px; padding: 22px 26px; background: var(--azul); color: var(--blanco); font-size: 15px; line-height: 24px; max-width: 62ch; }
.callout--dark { background: rgba(255, 255, 255, .08); }
.src-note { margin-top: 36px; max-width: 100ch; }
.band-azul .note { color: var(--bruma); }
.ticks--dark li { color: var(--blanco); }
.ticks strong { font-weight: 600; }
.changes { margin-top: 28px; padding: 24px 26px 26px; background: var(--azul); color: var(--blanco); }
.changes h3 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bruma); margin-bottom: 14px; }
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.evidence article { padding-top: 24px; border-top: 2px solid var(--azul); }
.evidence .stat__n { color: var(--azul); }
.evidence h3 { margin-top: 12px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.evidence p:not(.stat__n) { margin-top: 10px; font-size: 15px; line-height: 24px; color: var(--pizarra); }
.evidence .src { display: block; margin-top: 12px; color: var(--pizarra); }
@media (max-width: 900px) { .evidence { grid-template-columns: 1fr; } }
.philosophy--6 { row-gap: clamp(32px, 4vw, 52px); }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 1000; left: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px));
  background: var(--azul); color: var(--niebla);
  border: 1px solid var(--linea-oscura); border-top: 4px solid var(--cian);
  padding: 22px 24px 24px; box-shadow: 0 16px 48px rgba(4, 47, 66, .35);
}
.cookie-banner__title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bruma); margin-bottom: 10px; }
.cookie-banner__text { font-size: 14px; line-height: 22px; }
.cookie-banner__text a { color: var(--blanco); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__text a:hover { color: var(--cian); }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cookie-banner .btn { min-height: 44px; padding: 10px 24px; font-size: 14px; flex: 1 1 140px; }
.cookie-banner :focus-visible { outline-color: var(--cian); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: inherit; text-align: left; cursor: pointer; }
.site-footer .link-btn:hover { color: var(--cian); }
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
.cookie-banner .btn--ghost { background: transparent; color: var(--blanco); border-color: rgba(255, 255, 255, .55); }
.cookie-banner .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--blanco); }
.cookie-banner .btn--primary { border-color: var(--cian); }
