/* ==========================================================================
   ORIGEN Structuring Group — estilos del sitio
   Paleta oficial: azul #0E2841 · acento #00B0F0 · blanco · gris claro #E8EEF3
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0E2841;
  --navy-2: #143352;
  --navy-deep: #0A1F33;
  --cyan: #00B0F0;
  --white: #FFFFFF;
  --mist: #E8EEF3;
  --sky: #F6F6F6;          /* mismo tono del cielo en la foto principal */
  --ink-2: #4A5D72;        /* texto secundario sobre claro */
  --on-navy: #C3D0DD;      /* texto secundario sobre azul */
  --line: #D2DCE5;
  --line-navy: rgba(255, 255, 255, .16);
  --danger: #B42318;

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section-y: clamp(80px, 10vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1179px) { :root { --header-h: 66px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 500; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; font-stretch: 100%; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .8rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary:hover { --btn-bg: var(--navy-2); --btn-bd: var(--navy-2); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--cyan { --btn-bg: var(--cyan); --btn-fg: var(--navy); --btn-bd: var(--cyan); }
.btn--cyan:hover { --btn-bg: var(--white); --btn-bd: var(--white); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-quiet { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1.5px; text-decoration-color: var(--cyan); }
.link-quiet:hover { text-decoration-color: currentColor; }
.inline-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ==========================================================================
   Encabezado y menú
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246, 246, 246, 0);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 54px; width: auto; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-row { display: flex; align-items: center; }
.has-sub .nav-link { padding-right: 4px; }
.has-sub .nav-link::after { right: 4px; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.sub-toggle svg { transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.nav-only-mobile, .nav-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  min-width: 40px; height: 36px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-bars { position: relative; display: block; width: 24px; height: 16px; margin: auto; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 7px; }
.menu-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Submenú de servicios (escritorio) */
@media (min-width: 1180px) {
  .has-sub { position: relative; }
  .subnav {
    position: absolute; top: 100%; left: -16px; z-index: 5;
    width: 600px; padding-top: 14px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .has-sub:hover .subnav, .has-sub.is-open .subnav, .has-sub:focus-within .subnav {
    opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease);
  }
  .subnav ul {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    padding: 12px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy);
    box-shadow: 0 24px 48px -24px rgba(14, 40, 65, .35);
  }
  .subnav a { display: block; padding: 12px 14px; text-decoration: none; border-radius: var(--radius); }
  .subnav a:hover, .subnav a:focus-visible { background: var(--mist); }
  .subnav-title { display: block; font-weight: 600; font-size: .9375rem; }
  .subnav-desc { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
}

/* Menú móvil y tablet */
@media (max-width: 1179px) {
  .header-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; margin-right: -8px; }
  .brand img { height: 42px; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .lang-switch button { min-width: 38px; height: 34px; }

  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 99;
    display: flex; flex-direction: column; margin: 0;
    padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--white); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-only-mobile { display: block; }
  .nav-link { height: auto; width: 100%; padding: 18px 0; font-size: 1.375rem; font-weight: 500; font-stretch: 92%; }
  .nav-link::after { display: none; }
  .nav-link.is-active::before { content: ""; width: 10px; height: 10px; margin-right: 12px; background: var(--cyan); flex: none; }
  .nav-row { justify-content: space-between; }
  .has-sub .nav-link { width: auto; flex: 1; }
  .sub-toggle { width: 52px; height: 52px; margin-right: -12px; }
  .sub-toggle svg { width: 16px; height: 11px; }
  .subnav { display: none; padding: 0 0 14px; }
  .has-sub.is-open .subnav { display: block; }
  .subnav a { display: block; padding: 10px 0 10px 16px; border-left: 2px solid var(--mist); text-decoration: none; }
  .subnav-title { display: block; font-weight: 600; font-size: 1rem; }
  .subnav-desc { display: block; font-size: .875rem; color: var(--ink-2); }
  .nav-foot { display: block; margin-top: auto; padding-top: 32px; }
  .nav-foot-note { margin-top: 12px; text-align: center; color: var(--ink-2); font-size: .9375rem; }
}
@media (max-width: 380px) {
  .brand img { height: 36px; }
  .lang-switch button { min-width: 34px; padding: 0 6px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  background: var(--sky);
  overflow: hidden;
}
.hero-copy {
  align-self: center;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(48px, 7vw, 88px);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-right: clamp(24px, 4vw, 56px);
}
.hero-frame {
  --bw: 5px;
  --sq: clamp(34px, 3.6vw, 54px);
  position: relative;
  padding: clamp(30px, 4vw, 56px) clamp(40px, 4.4vw, 64px) clamp(30px, 4vw, 52px) clamp(24px, 3.2vw, 48px);
  max-width: 860px;
}
.frame { position: absolute; background: var(--navy); }
.frame-top    { top: 0; left: 0; width: 100%; height: var(--bw); transform-origin: left; }
.frame-left   { top: 0; left: 0; width: var(--bw); height: 100%; transform-origin: top; }
.frame-bottom { bottom: 0; left: 0; width: 88%; height: var(--bw); transform-origin: left; }
.frame-right  { top: 0; right: 0; width: var(--bw); height: 46%; transform-origin: top; }
.frame-square {
  position: absolute; right: calc(var(--sq) / -2 + var(--bw) / 2); top: 58%;
  width: var(--sq); height: var(--sq); background: var(--cyan);
}
.hero-title { font-size: clamp(2.35rem, 4.2vw, 4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; font-stretch: 85%; }
.hero-title .line { display: block; }
.hero-lead { margin-top: clamp(22px, 2.6vw, 32px); max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(28px, 3.4vw, 44px); padding-left: clamp(24px, 3.2vw, 48px); }

.hero-media { position: relative; min-height: 100%; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 20%; }

/* Animación de entrada: la estructura del logo se dibuja una sola vez */
@media (prefers-reduced-motion: no-preference) {
  .frame-top    { animation: drawX .7s var(--ease) .15s both; }
  .frame-left   { animation: drawY .7s var(--ease) .15s both; }
  .frame-right  { animation: drawY .5s var(--ease) .75s both; }
  .frame-bottom { animation: drawX .7s var(--ease) .75s both; }
  .frame-square { animation: pop .45s var(--ease) 1.25s both; }
  .hero-title .line { animation: rise .8s var(--ease) both; }
  .hero-title .line:nth-child(1) { animation-delay: .3s; }
  .hero-title .line:nth-child(2) { animation-delay: .45s; }
  .hero-title .line:nth-child(3) { animation-delay: .6s; }
  .hero-lead, .hero-actions { animation: fade .8s ease .9s both; }
  .hero-media img { animation: fade 1.2s ease .1s both; }
}
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-right: var(--gutter); padding-bottom: 44px; }
  .hero-frame { --bw: 4px; max-width: none; }
  .hero-actions { padding-left: 0; }
  .hero-actions .btn { flex: 1 1 200px; }
  .hero-media { height: clamp(300px, 82vw, 560px); min-height: 0; }
  .hero-media img { object-position: 60% 22%; }
}

/* ==========================================================================
   Encabezados de sección
   ========================================================================== */
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--split { display: grid; grid-template-columns: 5fr 6fr; gap: 24px 64px; align-items: end; }
.section-head--split p { max-width: 36em; color: var(--ink-2); font-size: 1.125rem; }
@media (max-width: 899px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.about-intro { display: grid; grid-template-columns: 5fr 6fr; gap: 28px clamp(40px, 7vw, 104px); align-items: start; }
.about-copy { max-width: 38em; }
.about-copy .lead { margin-bottom: 18px; }
.about-copy p:not(.lead) { color: var(--ink-2); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(64px, 8vw, 104px); }
.principle { padding-top: 22px; border-top: 1px solid var(--line); }
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 1rem; }

@media (max-width: 1023px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .about-intro { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .principles { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pilares ---------- */
.pillars { background: var(--navy); color: var(--white); }
.pillars .section-head p { color: var(--on-navy); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 8px 32px 8px 28px; border-left: 1px solid var(--line-navy); }
.pillar h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; font-size: 1.3125rem; }
.pillar h3::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--cyan); transform: translateY(-1px); }
.pillar p { color: var(--on-navy); font-size: 1rem; }
@media (max-width: 1023px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 599px) {
  .pillar-grid { grid-template-columns: 1fr; row-gap: 0; }
  .pillar { border-left: 0; border-top: 1px solid var(--line-navy); padding: 24px 0; }
  .pillar:last-child { padding-bottom: 0; }
}

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.services-head { position: sticky; top: calc(var(--header-h) + 40px); }
.services-head h2 { margin-bottom: 22px; }
.services-head p { color: var(--ink-2); font-size: 1.125rem; margin-bottom: 32px; }
.service { display: grid; grid-template-columns: 15rem 1fr; gap: 12px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service p { color: var(--ink-2); }
.service:target h3 { color: var(--navy); box-shadow: inset 0 -3px 0 var(--cyan); display: inline; }
@media (max-width: 1023px) { .service { grid-template-columns: 1fr; } }
@media (max-width: 899px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
}

/* ---------- Metodología ---------- */
.method { background: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding-right: 22px; }
.step::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 2px; background: var(--navy); }
.step:last-child::before { right: auto; width: 44px; }
.step-num {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.step--final .step-num { background: var(--cyan); color: var(--navy); }
.step h3 { font-size: 1.125rem; margin-bottom: 4px; }
.step-sub { font-size: .9375rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.step p:not(.step-sub) { font-size: .9688rem; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .step:nth-child(3)::before { right: auto; width: 44px; }
}
@media (max-width: 699px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0 0 34px; }
  .step::before, .step:nth-child(3)::before { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .step:last-child::before { display: none; }
  .step-num { grid-row: 1 / span 3; margin: 0; }
  .step > *:not(.step-num) { grid-column: 2; }
  .step h3 { padding-top: 9px; }
}

/* ---------- Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector { padding: 32px 32px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector-icon { width: 40px; height: 40px; margin-bottom: 22px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sector h3 { margin-bottom: 8px; }
.sector p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 899px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) {
  .sector-grid { grid-template-columns: 1fr; border-left: 0; }
  .sector { border-right: 0; padding: 26px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
  .sector-icon { grid-row: 1 / span 2; margin: 0; }
}

/* ---------- Proyectos ---------- */
.projects { background: var(--navy); color: var(--white); }
.projects .section-head p { color: var(--on-navy); }
.project { position: relative; padding: clamp(26px, 3vw, 40px); background: var(--navy-2); border: 1px solid var(--line-navy); border-radius: var(--radius); }
.project-name { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); font-weight: 500; font-stretch: 92%; letter-spacing: -0.01em; margin-bottom: 12px; }
.project-desc { color: var(--on-navy); max-width: 34em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-navy); }
.project-meta dt { font-size: .8125rem; color: var(--on-navy); margin-bottom: 4px; }
.project-meta dd { font-weight: 600; font-size: .9688rem; }
.tag { display: inline-block; padding: 3px 10px; background: var(--cyan); color: var(--navy); font-size: .8125rem; font-weight: 600; border-radius: var(--radius); }
.tag--muted { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-navy); }

.project--featured {
  display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: end;
  margin-bottom: 20px; padding: clamp(30px, 4vw, 56px);
  background-color: var(--navy-2);
  background-image:
    linear-gradient(90deg, var(--navy-2) 35%, rgba(20, 51, 82, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M0 60h240M0 150h240M70 0v240M170 0v240M70 60l100 90M120 0v60M170 200h70M0 200h70'/%3E%3C/g%3E%3C/svg%3E");
}
.project--featured .project-name { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.project-figure { text-align: right; padding-left: 40px; border-left: 1px solid var(--line-navy); }
.figure-value { font-size: clamp(3.5rem, 2.4rem + 4vw, 6.5rem); font-weight: 500; font-stretch: 85%; line-height: .95; letter-spacing: -0.03em; }
.figure-value span { font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--cyan); }
.figure-label { margin-top: 10px; color: var(--on-navy); font-size: .9375rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 899px) {
  .project--featured { grid-template-columns: 1fr; }
  .project-figure { text-align: left; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line-navy); }
  .project-grid { grid-template-columns: 1fr; }
}

/* ---------- Capital Advisory ---------- */
.capital-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.capital-copy h2 { margin-bottom: 24px; }
.capital-copy .lead { margin-bottom: 36px; }
.capital-list > div { display: grid; grid-template-columns: 13rem 1fr; gap: 6px 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.capital-list > div:last-child { border-bottom: 1px solid var(--line); }
.capital-list dt { font-weight: 600; }
.capital-list dd { color: var(--ink-2); }
.disclaimer { margin-top: 28px; font-size: .875rem; color: var(--ink-2); max-width: 46em; }

.stack { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; }
.stack-axis { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 22px; }
.stack-axis::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; background: var(--navy); transform: translateX(-50%); }
.stack-axis::after { content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; border-left: 1.5px solid var(--navy); border-top: 1.5px solid var(--navy); transform: translateX(-50%) rotate(45deg); }
.stack-axis span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .8125rem; color: var(--ink-2); background: var(--white); padding: 8px 0; position: relative; z-index: 1;
}
.stack-bars { display: grid; gap: 4px; }
.bar { display: flex; align-items: flex-end; padding: 14px 18px; font-weight: 600; font-size: .9688rem; border-radius: var(--radius); color: var(--white); }
.bar--equity { height: 96px; background: var(--cyan); color: var(--navy); }
.bar--pref   { height: 76px; background: #5C7C9C; }
.bar--mezz   { height: 88px; background: #2E5076; }
.bar--senior { height: 168px; background: var(--navy); }
.stack figcaption { grid-column: 2; margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 899px) {
  .capital-grid { grid-template-columns: 1fr; }
  .stack { max-width: 520px; }
}
@media (max-width: 599px) {
  .capital-list > div { grid-template-columns: 1fr; }
  .bar--equity { height: 72px; } .bar--pref { height: 60px; } .bar--mezz { height: 68px; } .bar--senior { height: 124px; }
}

/* ---------- Alianzas ---------- */
.alliances { background: var(--mist); }
.alliances-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.alliances-copy h2 { margin-bottom: 24px; }
.alliances-copy .lead { margin-bottom: 34px; color: var(--navy); }
.partner-list li { display: grid; grid-template-columns: 16rem 1fr; gap: 6px 28px; padding: 22px 0; border-top: 1px solid #C9D5E0; }
.partner-list li:last-child { border-bottom: 1px solid #C9D5E0; }
.partner-list h3 { font-size: 1.0625rem; }
.partner-list p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 1023px) { .partner-list li { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .alliances-grid { grid-template-columns: 1fr; } }

/* ---------- Cierre (foto de la reunión + invitación) ---------- */
.closing { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-deep); color: var(--white); }
.closing-media { position: relative; min-height: clamp(360px, 38vw, 560px); }
.closing-media picture, .closing-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-media img { object-fit: cover; object-position: 50% 45%; }
.closing-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
  padding: clamp(56px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(56px, 7vw, 104px) clamp(40px, 6vw, 96px);
}
.closing-title { max-width: 14em; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 500; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.15; }
@media (max-width: 899px) {
  .closing { grid-template-columns: 1fr; }
  .closing-media { min-height: 0; aspect-ratio: 3 / 2; }
  .closing-body { padding: 48px var(--gutter) 56px; gap: 28px; }
  .closing-body .btn { width: 100%; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy .lead { color: var(--ink-2); margin-bottom: 30px; }
.contact-facts li { padding: 12px 0 12px 24px; border-top: 1px solid var(--line); position: relative; }
.contact-facts li:last-child { border-bottom: 1px solid var(--line); }
.contact-facts li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; background: var(--cyan); transform: translateY(-50%); }
.contact-direct { display: grid; gap: 10px; margin-top: 28px; }
.contact-direct a { font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.form { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-top: 5px solid var(--navy); background: var(--white); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9375rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 1.5px solid #B7C5D3; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 176, 240, .3); }
.field input::placeholder, .field textarea::placeholder { color: #7A8B9C; }
.field [aria-invalid="true"] { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid #B7C5D3; border-radius: var(--radius); font-size: .9375rem; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .9688rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.field-error { margin-top: 6px; color: var(--danger); font-size: .875rem; font-weight: 500; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-status { font-size: .9688rem; font-weight: 500; }
.form-status.is-ok { color: #136C3A; }
.form-status.is-error { color: var(--danger); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .form { padding: 22px 18px 26px; }
}

/* ---------- Pie de página ---------- */
.site-footer { background: var(--mist); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.5fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-2); font-size: .9688rem; max-width: 22em; }
.footer-h { font-size: .9375rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-bottom: 14px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: .9688rem; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; }
.footer-legal p { color: var(--ink-2); font-size: .875rem; margin-bottom: 12px; }
.footer-legal .inline-link { font-size: .9375rem; }
.footer-bar { background: var(--navy); color: var(--on-navy); font-size: .875rem; }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); }
.to-top { color: var(--white); text-decoration: none; font-weight: 600; }
.to-top:hover { text-decoration: underline; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Modal de privacidad ---------- */
.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-top: 5px solid var(--navy); border-radius: var(--radius); color: var(--navy); }
.modal::backdrop { background: rgba(10, 31, 51, .6); }
.modal-inner { padding: clamp(24px, 4vw, 40px); }
.modal h2 { font-size: 1.75rem; margin-bottom: 18px; }
.modal p { color: var(--ink-2); margin-bottom: 14px; }
.modal form { margin-top: 22px; }

/* ---------- Aviso de cookies y WhatsApp ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--navy);
  box-shadow: 0 18px 40px -20px rgba(14, 40, 65, .45); font-size: .9375rem;
}
.consent p { flex: 1 1 260px; }
.consent-actions { display: flex; gap: 10px; }
.consent[hidden], .whatsapp-float[hidden], .contact-direct[hidden] { display: none; }

.whatsapp-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
body.menu-open .whatsapp-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

@media print {
  .site-header, .whatsapp-float, .consent, .form, .hero-media { display: none !important; }
  .hero { min-height: 0; background: none; }
}
