/* Garzón Capital — estilos base. Mobile-first. */

/* Tipografías alojadas en el sitio (fuentes variables, subset latino de Google Fonts, licencia OFL). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #18293B;
  --blue: #1C4883;
  --steel: #8099B8;
  --graphite: #6D6E72;
  --gray: #949599;
  --mist: #C9D3E0;
  --line: #E3E8EF;
  --line-dark: #2C3F55;
  --paper: #F4F6F9;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
em { font-style: italic; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--tight { padding-top: 0; }
.section.section--snug { padding-bottom: 40px; }
@media (min-width: 900px) { .section.section--snug { padding-bottom: 56px; } }
.label { font-family: var(--sans); font-size: .8125rem; line-height: 1.5; color: var(--graphite); margin: 0 0 1.25rem; letter-spacing: .01em; }
[id] { scroll-margin-top: 104px; }
.section--navy .label { color: var(--steel); }
.lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.35; }
.muted { color: var(--graphite); }
.small { font-size: .8125rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Links con subrayado que crece al hover */
.link {
  display: inline-block;
  color: var(--blue);
  font-size: .875rem;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  border-bottom: 1px solid rgba(128, 153, 184, .55);
  transition: background-size .45s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.section--navy .link, .hero .link, .page-hero .link { color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.hd { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 124px; height: auto; }
@media (min-width: 900px) { .hd { height: 84px; } .brand img { width: 150px; } }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
}
.nav-link { font-size: .875rem; color: var(--mist); padding: 8px 0; transition: color .3s; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--white); }
.lang { font-size: .8125rem; color: var(--steel); }
.lang a { color: var(--steel); }
.lang a:hover { color: var(--white); }
.lang [aria-current="true"] { color: var(--white); }
.nav-bar { height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.site-header.is-open .nav-bar { transform: scaleX(1); }
/* Cerrado, el panel queda oculto (visibility) para que sus links no reciban foco. */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s .5s; }
@media (max-width: 899px) { .mega { display: none; } }
.site-header.is-open .mega { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.mega > div { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
/* Velo sobre el contenido mientras el mega-menú está abierto. */
body::after { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(12, 21, 31, .45); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
body.mega-open::after { opacity: 1; }
.mega-panel { display: none; padding: 36px 0 44px; grid-template-columns: 1fr 2fr; gap: 48px; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.mega-panel.is-active { display: grid; }
.site-header.is-open .mega-panel.is-active.is-shown { opacity: 1; transform: none; }
.mega-panel .mega-title { font-family: var(--serif); font-size: 2rem; margin: 0 0 8px; color: var(--white); }
.mega-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.mega-title a:hover, .mega-title a:focus-visible { background-size: 100% 1px; }
.mega-panel p { color: var(--mist); font-size: .875rem; max-width: 30ch; }
.mega-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; align-content: start; }
.mega-panel li a { font-family: var(--serif); font-size: 1.35rem; color: var(--mist); transition: color .3s; }
.mega-panel li a:hover { color: var(--white); }

.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; min-width: 44px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
.burger span { display: block; height: 1px; background: var(--white); transition: transform .4s var(--ease), opacity .3s; }
.burger span:first-child { width: 24px; }
.burger span:last-child { width: 16px; }
@media (min-width: 900px) { .burger { display: none; } }

/* Menú mobile a pantalla completa */
.mobile-menu { position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--navy); color: var(--white); padding: 32px var(--gutter) 28px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul { flex: 1; }
.mobile-menu > ul > li { opacity: 0; transform: translateY(12px); animation: up .7s var(--ease) forwards; }
.mobile-menu > ul > li:nth-child(1) { animation-delay: .05s; }
.mobile-menu > ul > li:nth-child(2) { animation-delay: .12s; }
.mobile-menu > ul > li:nth-child(3) { animation-delay: .19s; }
.mobile-menu > ul > li:nth-child(4) { animation-delay: .26s; }
.mobile-menu > ul > li:nth-child(5) { animation-delay: .33s; }
.mobile-menu > ul > li > a { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.5; }
.mm-sub { padding: 0 0 8px 2px; }
.mm-sub a { display: block; padding: 12px 0; font-size: .9375rem; line-height: 1.3; color: var(--mist); }
.mobile-foot { border-top: 1px solid var(--line-dark); padding-top: 16px; display: flex; justify-content: space-between; font-size: .8125rem; color: var(--steel); }
body.menu-open { overflow: hidden; }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { width: 24px; margin-left: 0; transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 120px; padding-bottom: 140px; } }
.hero h1 { margin-bottom: 28px; }
.hero h1 .l2 { display: block; padding-left: 1.2em; font-style: italic; color: var(--mist); }
.hero .sub { color: var(--mist); font-size: 1rem; margin-bottom: 32px; }
/* Globo de puntos conectados: vive dentro de .wrap para alinearse con el contenido en pantallas anchas. */
.globe { position: absolute; top: 0; bottom: 0; right: 0; width: 52%; height: 100%; pointer-events: none; }
.hero .wrap > :not(.globe) { position: relative; z-index: 1; }
@media (max-width: 899px) { .globe { width: 70%; right: -14%; opacity: .55; } }
@media (max-width: 599px) { .globe { width: 100%; right: -30%; opacity: .45; } }

.page-hero { background: var(--navy); color: var(--white); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 900px) { .page-hero .wrap { padding-top: 88px; padding-bottom: 96px; } }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); max-width: 18ch; }
.page-hero p { color: var(--mist); max-width: 52ch; margin: 0; }
.crumbs { font-size: .8125rem; color: var(--steel); margin-bottom: 28px; }
.crumbs a:hover { color: var(--white); }

/* Grillas */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; } }
/* Regla de jerarquía: el h2 de la columna izquierda de un split es un título lateral, siempre del mismo tamaño. */
.split > h2, .split > div > h2:first-child { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Qué hacemos: columnas con filas compartidas para alinear */
.areas { display: grid; border-top: 1px solid var(--navy); }
.area { padding: 24px 0 28px; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; }
.area h3, .area .area-title { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.area p { color: var(--graphite); font-size: .9375rem; }
.area .link { justify-self: start; }
@media (min-width: 900px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .area { grid-row: span 3; grid-template-rows: subgrid; padding: 28px 32px 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .area:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .area:nth-child(n+4) { margin-top: 36px; }
}

/* Valores / posicionamiento */
.list-cols { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--navy); }
.list-cols li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; }
@media (min-width: 600px) { .list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 900px) { .list-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section--navy .list-cols { border-top-color: var(--white); }
.section--navy .list-cols li { border-bottom-color: var(--line-dark); }

/* Equipo: solo tipografía, nombre grande y cargo, separados por líneas de 1px. */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 56px 0 32px; }
.section-head h2 { margin: 0; }
.leader { display: grid; gap: 20px; padding: 28px 0 40px; border-top: 1px solid var(--navy); }
@media (min-width: 900px) { .leader { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 56px; } }
.leader h3 { font-size: clamp(2.1rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 14px; }
.role { font-size: .8125rem; color: var(--graphite); margin: 0; }
.leader .quote, .leader .bio { margin: 0; max-width: 46ch; }
@media (min-width: 900px) { .leader .quote, .leader .bio { padding-top: .6em; } }
.quote { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.3rem; line-height: 1.45; }
.bio { color: var(--graphite); }
.partners { display: grid; column-gap: 48px; }
@media (min-width: 600px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.person h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 8px; }

.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); display: grid; }
.directory li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.directory li span:last-child { color: var(--graphite); text-align: right; font-size: .875rem; }
@media (min-width: 900px) { .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* Empresas */
.companies { display: grid; border-top: 1px solid var(--navy); }
.company { padding: 24px 0 28px; border-bottom: 1px solid #D5DCE6; font-size: .875rem; color: var(--graphite); display: grid; grid-template-rows: auto auto 1fr auto; }
.company .country { font-size: .8125rem; color: var(--graphite); margin: 0 0 8px; }
.company h2, .company h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 12px; }
.company .link { justify-self: start; margin-top: 8px; }
@media (min-width: 900px) {
  .companies { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; }
  .company { grid-row: span 4; grid-template-rows: subgrid; padding: 28px 28px 0; border-bottom: 0; border-left: 1px solid #D5DCE6; }
  .company:first-child { padding-left: 0; border-left: 0; }
}
.holding { font-size: .8125rem; color: var(--graphite); margin: 28px 0 0; }

.reg-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.reg-table th, .reg-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table th { font-weight: 500; font-size: .8125rem; color: var(--graphite); border-bottom-color: var(--navy); }
@media (max-width: 699px) {
  .reg-table thead { display: none; }
  .reg-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .reg-table td { display: block; border: 0; padding: 2px 0; }
  .reg-table td::before { content: attr(data-th) ': '; color: var(--graphite); }
  .reg-table td:first-child::before { content: none; }
  .reg-table td:first-child { font-family: var(--serif); font-size: 1.2rem; }
}

/* Procesos y FAQ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--navy); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 1.5rem; color: var(--steel); line-height: 1.2; }
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--steel), var(--steel)) center / 12px 1px no-repeat, linear-gradient(var(--steel), var(--steel)) center / 1px 12px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--graphite); padding: 0 40px 20px 0; margin: 0; }

/* Contacto */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: .8125rem; color: var(--graphite); }
/* Borde de campos en graphite (≥3:1 sobre blanco); el foco suma una segunda línea navy. */
.form input, .form textarea { font: inherit; color: var(--navy); border: 0; border-bottom: 1px solid var(--graphite); padding: 10px 0; background: transparent; border-radius: 0; transition: box-shadow .25s, border-color .25s; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.form textarea { min-height: 120px; resize: vertical; }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.form .check input:focus { box-shadow: none; }
.form .check input:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.form .hp { position: absolute; left: -9999px; }
.btn { justify-self: start; font: inherit; font-size: .875rem; color: var(--white); background: var(--navy); border: 1px solid var(--navy); padding: 12px 26px; min-height: 44px; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--white); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn[disabled]:hover { background: var(--navy); color: var(--white); }
.form-msg { font-size: .875rem; color: var(--blue); min-height: 1.4em; margin: 0; }
.form-msg[data-state="error"] { color: var(--navy); }
.form-msg[data-state="busy"] { color: var(--graphite); }
.offices { display: grid; gap: 28px; }
@media (min-width: 600px) { .offices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offices h3 { font-size: 1.25rem; margin-bottom: 6px; }
.offices address { font-size: .875rem; color: var(--graphite); }

/* Prosa legal */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose p, .prose li { color: #3A4654; font-size: .9375rem; }
.updated { font-size: .8125rem; color: var(--graphite); }

/* Footer */
.site-footer { background: var(--navy); color: var(--mist); font-size: .8125rem; line-height: 1.7; border-top: 1px solid var(--line-dark); }
.cta-text { color: var(--mist); max-width: 46ch; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.ft-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .ft-top { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); } }
.ft-top img { width: 110px; }
.ft-col h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--white); margin: 0 0 10px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col a:hover { color: var(--white); }
.ft-legal { padding-top: 22px; color: var(--gray); font-size: .75rem; }
.ft-legal p { margin: 0 0 6px; }
.ft-warning { color: var(--mist); }

/* Fundadora destacada: foto + bio */
.founder { display: grid; gap: 28px; padding: 28px 0 48px; border-top: 1px solid var(--navy); }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; padding-bottom: 64px; } }
/* Foto contenida, con un marco de línea fina desplazado detrás (mismo lenguaje de líneas de la marca). */
.founder-photo { margin: 0 14px 14px 0; max-width: 280px; aspect-ratio: 4 / 5; position: relative; }
.founder-photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(128, 153, 184, .55); pointer-events: none; }
@media (max-width: 899px) { .founder-photo { max-width: 220px; } }
.founder-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02) brightness(1.03); }
.founder h3 { font-size: clamp(2.1rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 10px; }
.founder .lead { margin: 22px 0 18px; max-width: 38ch; }
.founder .bio { max-width: 58ch; }
.founder .link { margin-top: 6px; }

/* Valores: índice tipográfico con hilo vertical (motivo de puntos y líneas) */
.values { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; counter-reset: v; }
.values::before { content: ''; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: rgba(128, 153, 184, .6); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.values.in::before, .no-js .values::before { transform: none; }
.values li { position: relative; display: grid; gap: 6px 32px; padding: 26px 0 28px; border-bottom: 1px solid var(--line-dark); }
.values li::before { content: ''; position: absolute; left: -28px; top: 38px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--steel); background: var(--navy); transition: background .6s ease .3s; }
.values li.in::before { background: var(--steel); }
.values .v-num { font-family: var(--serif); font-style: italic; color: var(--steel); font-size: 1.15rem; }
.values h3 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 300; line-height: 1.05; margin: 0; color: var(--white); }
.values p { color: var(--mist); margin: 0; max-width: 40ch; font-size: .9375rem; }
@media (min-width: 900px) {
  .values li { grid-template-columns: 64px minmax(0, 5fr) minmax(0, 4fr); align-items: baseline; }
}

/* Cómo trabajamos: el cliente en el centro, seis principios alrededor */
.approach { position: relative; display: grid; gap: 0; margin-top: 40px; }
.approach-lines { display: none; }
.approach-center { display: none; }
.principle { position: relative; padding: 18px 0 20px 28px; border-left: 1px solid var(--line); }
.principle::before { content: ''; position: absolute; left: -4px; top: 27px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.principle h3 { font-size: 1.4rem; margin: 0 0 6px; }
.principle p { color: var(--graphite); font-size: .9375rem; margin: 0; max-width: 38ch; }
@media (min-width: 900px) {
  .approach { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 200px auto; column-gap: 48px; }
  .approach-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .approach-lines line { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
  .approach.in .approach-lines line { stroke-dashoffset: 0; }
  .approach.in .approach-lines line:nth-child(2) { transition-delay: .1s; }
  .approach.in .approach-lines line:nth-child(3) { transition-delay: .2s; }
  .approach.in .approach-lines line:nth-child(4) { transition-delay: .3s; }
  .approach.in .approach-lines line:nth-child(5) { transition-delay: .4s; }
  .approach.in .approach-lines line:nth-child(6) { transition-delay: .5s; }
  .approach-center { display: flex; grid-column: 2; grid-row: 2; align-self: center; justify-self: center; width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--navy); background: var(--white); align-items: center; justify-content: center; position: relative; z-index: 1; }
  .approach-center span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; text-align: center; line-height: 1.15; }
  .principle { border-left: 0; padding: 0; text-align: center; background: var(--white); position: relative; z-index: 1; }
  .principle::before { position: static; display: block; margin: 0 auto 14px; }
  .principle p { margin: 0 auto; }
  .principle { display: flex; flex-direction: column; align-items: center; }
  .principle:nth-of-type(-n+3) { justify-content: flex-end; }
  .principle:nth-of-type(-n+3)::before { order: 2; margin: 14px auto 0; }
  .principle:nth-of-type(n+4) { grid-row: 3; }
}

/* Home: las tres sociedades unidas por una línea con un punto por ciudad */
.group-map { list-style: none; margin: 8px 0 0; padding: 0; display: grid; position: relative; }
.group-map::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 40px; width: 1px; background: var(--steel); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .2s; }
.group-map.in::before { transform: none; }
.group-map li { position: relative; padding: 0 0 36px 36px; }
.group-map li::before { content: ''; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--navy); background: var(--paper); transition: background .5s ease; }
.group-map.in li::before { background: var(--navy); }
.group-map.in li:nth-child(2)::before { transition-delay: .5s; }
.group-map.in li:nth-child(3)::before { transition-delay: 1s; }
.gm-city { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--navy); }
.gm-country { display: block; font-size: .75rem; color: var(--graphite); margin: 8px 0 18px; }
.group-map h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.group-map p { color: var(--graphite); font-size: .9375rem; margin: 0 0 12px; max-width: 30ch; }
@media (min-width: 900px) {
  .group-map { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .group-map::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; transform: scaleX(0); transform-origin: left; }
  .group-map.in::before { transform: none; }
  .group-map li { padding: 40px 0 0; }
}

/* Sociedades y regulación: una fila por sociedad */
.entity-table { width: 100%; border-collapse: collapse; font-size: .875rem; color: var(--graphite); }
.entity-table thead th { text-align: left; font-weight: 500; font-size: .8125rem; color: var(--graphite); padding: 0 24px 14px 0; border-bottom: 1px solid var(--navy); }
.entity-table tbody th, .entity-table td { text-align: left; vertical-align: top; padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); font-weight: 400; line-height: 1.6; }
.entity-table { table-layout: fixed; }
.entity-table thead th:nth-child(1) { width: 25%; }
.entity-table thead th:nth-child(2) { width: 25%; }
.entity-table thead th:nth-child(3) { width: 20%; }
.entity-table thead th:nth-child(4) { width: 30%; }
.entity-table td { overflow-wrap: break-word; }
.entity-table .country { display: block; font-size: .75rem; color: var(--steel); margin-bottom: 6px; }
.entity-table .entity-name { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--navy); margin-bottom: 10px; }
.entity-table td .link { font-size: .875rem; }
.entity-table address + address { margin-top: 14px; }
.addr-label { display: block; font-size: .75rem; color: var(--steel); margin-bottom: 2px; }
@media (max-width: 899px) {
  .entity-table thead { display: none; }
  .entity-table tr { display: block; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
  .entity-table tbody th, .entity-table td { display: block; width: auto; border: 0; padding: 4px 0; }
  .entity-table tbody th { padding-bottom: 10px; }
  .entity-table td::before { content: attr(data-th); display: block; font-size: .75rem; color: var(--steel); margin-top: 8px; }
}

/* Nombre con link a LinkedIn: solo el nombre, con subrayado al pasar */
.person-link { color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.person-link:hover, .person-link:focus-visible { background-size: 100% 1px; }

/* Directorio del equipo agrupado por país */
.team-groups { display: grid; gap: 48px; margin-top: 8px; }
@media (min-width: 900px) { .team-groups { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.team-group h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 2px; }
.team-place { font-family: var(--serif); font-style: italic; color: var(--steel); font-size: 1.15rem; margin: 0 0 18px; }
.team-group .directory { grid-template-columns: 1fr; }

/* Careers en contacto */
.careers { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 40ch; }
.careers h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 10px; }
.careers p { color: var(--graphite); font-size: .9375rem; }
.careers .small { font-size: .8125rem; margin-top: 14px; }

/* Pilares (MFO): cuatro principios sobre navy, en 2 columnas */
.pillars { display: grid; border-top: 1px solid var(--white); }
.pillar { padding: 26px 0 30px; border-bottom: 1px solid var(--line-dark); }
.pillar h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.pillar p { color: var(--mist); margin: 0; max-width: 44ch; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; } }

/* Qué ofrecemos (MFO): filas con línea que se dibuja al aparecer y un barrido suave al pasar el cursor */
.provide { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.provide li { position: relative; padding: 24px 20px 26px 44px; border-top: 1px solid var(--line);
  background: linear-gradient(var(--paper), var(--paper)) 0 0 / 0 100% no-repeat; transition: background-size .7s var(--ease); }
.provide li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.provide li.in::before { transform: scaleX(1); }
.provide li::after { content: ''; position: absolute; left: 14px; top: 35px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--steel); background: var(--white); transition: background .4s ease, transform .4s var(--ease); }
.provide h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 6px; transition: transform .5s var(--ease); }
.provide p { color: var(--graphite); font-size: .9375rem; margin: 0; max-width: 56ch; transition: transform .5s var(--ease); }
.js .provide li.rv { transition: opacity 1s var(--ease), transform 1s var(--ease), background-size .7s var(--ease); transition-delay: var(--d, 0s), var(--d, 0s), 0s; }
@media (hover: hover) {
  .provide li:hover { background-size: 100% 100%; }
  .provide li:hover::after { background: var(--navy); border-color: var(--navy); transform: scale(1.3); }
  .provide li:hover h3, .provide li:hover p { transform: translateX(6px); }
}

/* Lista de servicios con guion fino */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.services li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; }
.services li::before { content: ''; position: absolute; left: 0; top: 1.35em; width: 16px; height: 1px; background: var(--steel); }

/* Trayectoria: línea que se dibuja con el scroll; tenue antes de Garzón, firme desde la fundación */
.timeline { list-style: none; margin: 40px 0 0; padding: 0 0 0 36px; position: relative; --p: 0; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--navy); transform: scaleY(var(--p)); transform-origin: top; }
.timeline li { position: relative; display: grid; gap: 4px 40px; padding: 0 0 44px; }
.timeline li::before { content: ''; position: absolute; left: -36px; top: 12px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--steel); background: var(--paper); transition: background .5s ease, border-color .5s ease; }
.timeline li.passed::before { background: var(--navy); border-color: var(--navy); }
.timeline li.origin::before { width: 15px; height: 15px; left: -39px; top: 9px; }
.timeline .year { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--steel); transition: color .5s ease; }
.timeline li.passed .year { color: var(--navy); }
.timeline h3 { font-size: 1.4rem; margin: 0 0 6px; }
.timeline p { color: var(--graphite); font-size: .9375rem; margin: 0; max-width: 52ch; }
.timeline .era { font-size: .8125rem; color: var(--graphite); margin: 0 0 24px -36px; padding-left: 36px; font-style: italic; font-family: var(--serif); font-size: 1.1rem; }
@media (min-width: 900px) { .timeline li { grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; } }
/* Nueva etapa (Garzón Capital, 2024 en adelante): banda apenas más clara detrás de la línea y una etiqueta */
.timeline::before, .timeline::after { z-index: 1; }
.timeline li::before { z-index: 2; }
.timeline .era-group { display: block; margin: 0 0 0 -36px; padding: 28px 0 0 36px; border-top: 1px solid rgba(128, 153, 184, .35);
  background: linear-gradient(to right, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 80%); }
.timeline .era-group::before { display: none; }
.era-label { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--navy); margin: 0 0 28px; }
.era-list { list-style: none; margin: 0; padding: 0; }

/* Animaciones de entrada (solo con JS activo) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.hero .hv { opacity: 0; transform: translateY(14px); animation: up .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .hero .hv, .mobile-menu li { opacity: 1; transform: none; }
}
