/* Fuentes alojadas en la web (Cormorant Garamond e Inter, SIL Open Font License). Solo alfabetos latinos. */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-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;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-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;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../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;
}

/* ==========================================================================
   Egaltia · web pública
   Azul marino de la marca, serif en titulares, mucho blanco.
   ========================================================================== */

:root {
  --navy: #2B347F;
  --navy-deep: #161B46;
  --navy-ink: #0F1336;
  --blue: #1F6FB5;
  --ink: #1C1F2E;
  --text: #3A3F52;
  --muted: #6B7086;
  --line: #E4E2DB;
  --line-soft: #EEECE6;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --gold: #A88A56;
  --gold-text: #806538;   /* dorado legible (contraste ≥ 4.5:1) */
  --ok: #1F6B4A;
  --err: #A33A2B;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.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(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Tipografía de apoyo ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.kicker::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.kicker--light { color: rgba(255,255,255,.78); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); }
.section-title { font-size: clamp(34px, 4.2vw, 52px); margin: 14px 0 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head .lead { margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 0;
  font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--paper); color: var(--navy-deep); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,19,54,.35); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 8px 0;
  font: 500 14px/1 var(--sans); letter-spacing: .02em; color: var(--ink);
}
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--navy); transition: right .3s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--navy); }
.lang { display: flex; align-items: center; gap: 2px; font: 600 12px/1 var(--sans); letter-spacing: .08em; }
.lang a, .lang span { padding: 6px 7px; color: var(--muted); }
.lang span[aria-current] { color: var(--navy); }
.lang a:hover { color: var(--navy); }
.lang i { width: 1px; height: 12px; background: var(--line); }
.nav .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle svg[hidden] { display: none; }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .brand img { width: 146px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding: 18px 0; font-family: var(--serif); font-size: 26px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .lang { margin: 24px 0; font-size: 14px; }
  .nav .btn { padding: 16px 24px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Portada: cabecera ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 85% 10%, rgba(31,111,181,.35), transparent 60%), linear-gradient(135deg, var(--navy-ink) 0%, var(--navy-deep) 45%, var(--navy) 100%);
}
.hero__mark { position: absolute; right: -4%; bottom: -12%; width: min(46vw, 620px); opacity: .05; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; font-size: clamp(40px, 4.4vw, 62px); font-weight: 500; line-height: 1.04; margin: 22px 0 26px; }
.hero h1 em { font-style: italic; color: #C9D2F2; }
.hero .lead { color: rgba(255,255,255,.76); max-width: 560px; margin-bottom: 36px; }
.hero__rotator { display: flex; align-items: center; gap: 14px; margin: -8px 0 36px; font: 500 14px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); min-height: 1.4em; }
.hero__rotator::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero__rotator strong { position: relative; color: #fff; font-weight: 600; }
.hero__rotator strong span { display: inline-block; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hero__rotator strong span.is-out { opacity: 0; transform: translateY(8px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: saturate(.85); }
.hero__media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(168,138,86,.55); z-index: 0; }
.hero__media img { position: relative; z-index: 1; }
.hero__media figcaption { position: absolute; left: -28px; bottom: 36px; z-index: 2; background: #fff; color: var(--navy); padding: 18px 22px; max-width: 250px; font: 500 13px/1.45 var(--sans); box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
.hero__media figcaption b { display: block; font: 600 30px/1 var(--serif); margin-bottom: 4px; }

.areas-band { background: var(--navy-ink); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.08); }
.areas-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
.areas-band li { flex: 1 1 auto; }
.areas-band a { display: block; padding: 20px 10px; text-align: center; color: rgba(255,255,255,.72); font: 500 13px/1.3 var(--sans); letter-spacing: .04em; border-left: 1px solid rgba(255,255,255,.08); }
.areas-band li:first-child a { border-left: 0; }
.areas-band a:hover { color: #fff; background: rgba(255,255,255,.04); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; margin-right: 22px; }
  .hero__media figcaption { left: 16px; bottom: -22px; }
  .areas-band ul { display: grid; grid-template-columns: 1fr 1fr; }
  .areas-band a { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); text-align: left; padding: 16px 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }

.intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); }
.intro__side .section-title { margin-bottom: 0; }
.intro__body { font-size: 17px; }
.intro__body p:first-child::first-letter { float: left; font: 600 76px/.8 var(--serif); color: var(--navy); margin: 8px 12px 0 0; }
.intro__body em { color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 24px; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.pillar { padding: 36px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar__num { font: 500 15px/1 var(--serif); font-style: italic; color: var(--gold-text); }
.pillar h3 { font-size: 26px; margin: 14px 0 12px; }
.pillar p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
}

/* ---------- Servicios (rejilla) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 34px 30px 30px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--text);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service-card__icon { width: 40px; height: 40px; color: var(--navy); margin-bottom: 30px; transition: color .35s; }
.service-card h3 { font-size: 27px; margin: 0 0 12px; transition: color .35s; }
.service-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; transition: color .35s; }
.service-card .link-arrow { margin-top: auto; transition: color .35s; }
.service-card:hover { background: var(--navy); color: #fff; }
.service-card:hover h3, .service-card:hover .service-card__icon, .service-card:hover .link-arrow { color: #fff; }
.service-card:hover p { color: rgba(255,255,255,.72); }
.service-card--cta { background: var(--paper); justify-content: center; }
.service-card--cta h3 { font-style: italic; font-weight: 500; }
.section--paper .service-card:not(:hover):not(.service-card--cta) { background: #fff; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .service-card { min-height: 0; } }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.member-card { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 28px 30px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.member-card:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.avatar { display: block; position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--paper); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s var(--ease); }
.avatar span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font: 600 28px/1 var(--serif); color: var(--navy); }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,52,127,.12); }
.member-card:hover .avatar img { filter: none; }
.member-card h3 { font-size: 23px; margin: 22px 0 6px; transition: color .25s; }
.member-card:hover h3 { color: var(--navy); }
.member-card__role { font: 600 11.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.member-card__spec { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.member-card .link-arrow { margin-top: auto; font-size: 12px; }
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-card:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .member-card:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .member-card:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- Llamada a la acción ---------- */
.cta { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(31,111,181,.45), transparent 60%); }
.cta .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(32px, 3.8vw, 48px); font-weight: 500; margin: 12px 0 10px; max-width: 680px; }
.cta p { color: rgba(255,255,255,.72); margin: 0; max-width: 600px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Blog (tarjetas) ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.post-card { display: flex; flex-direction: column; color: var(--text); }
.post-card__img { aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__img svg { width: 60px; color: var(--line); }
.post-card time, .meta { font: 600 11.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.post-card h3 { font-size: 25px; margin: 10px 0 12px; transition: color .25s; }
.post-card:hover h3 { color: var(--navy); }
.post-card p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(22,27,70,.86) 45%, rgba(22,27,70,.55) 100%); }
.page-hero .wrap { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; margin: 18px 0 18px; max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 720px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font: 500 12.5px/1.4 var(--sans); color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,.3); }

/* ---------- Texto largo ---------- */
.prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 1.9em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; padding-left: .3em; }
.prose ul li::marker { color: var(--gold-text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43,52,127,.3); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font: italic 500 23px/1.5 var(--serif); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose img { margin: 1.5em 0; }

/* ---------- Página con barra lateral ---------- */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
.aside-box { border: 1px solid var(--line); padding: 28px; background: #fff; }
.aside-box h3 { font-size: 22px; margin-bottom: 16px; }
.aside-box--navy { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.78); }
.aside-box--navy h3 { color: #fff; }
.aside-box--navy .btn { width: 100%; margin-top: 8px; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li + li { border-top: 1px solid var(--line-soft); }
.aside-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; color: var(--text); }
.aside-list a:hover { color: var(--navy); }
.aside-list svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.aside-people { display: grid; gap: 16px; }
.person-mini { display: flex; align-items: center; gap: 14px; color: var(--text); }
.person-mini .avatar { width: 52px; height: 52px; }
.person-mini .avatar span { font-size: 18px; }
.person-mini b { display: block; font: 600 17px/1.2 var(--serif); color: var(--ink); }
.person-mini small { font-size: 12.5px; color: var(--muted); }
.person-mini:hover b { color: var(--navy); }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* Índice de secciones de un servicio */
.toc { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { display: block; padding: 9px 16px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.toc a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Ficha de profesional ---------- */
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.profile__card { position: sticky; top: calc(var(--header-h) + 28px); border: 1px solid var(--line); padding: 36px 30px; text-align: center; }
.profile__card .avatar { width: 128px; height: 128px; margin: 0 auto 22px; }
.profile__card .avatar img { filter: none; }
.profile__card .avatar span { font-size: 48px; }
.profile__card dl { margin: 22px 0 0; text-align: left; border-top: 1px solid var(--line); }
.profile__card dt { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.profile__card dd { margin: 6px 0 0; font-size: 15px; word-break: break-word; }
.profile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.profile__tags a { padding: 8px 14px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.profile__tags a:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .profile__card { position: static; } }

/* ---------- Sobre nosotros ---------- */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 36px 40px 28px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(2n) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.value h3 { font-size: 26px; margin: 12px 0 10px; }
.value p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .value:nth-child(2n) { padding-left: 0; border-left: 0; } }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.office { border-top: 2px solid var(--navy); padding-top: 22px; }
.office h3 { font-size: 26px; margin-bottom: 8px; }
.office p { margin: 0 0 12px; color: var(--muted); }
.office small { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-info .office { margin-bottom: 30px; }
.contact-direct { display: grid; gap: 18px; margin: 10px 0 36px; }
.contact-direct a { display: flex; align-items: center; gap: 16px; color: var(--ink); font: 500 22px/1.2 var(--serif); }
.contact-direct a:hover { color: var(--navy); }
.contact-direct span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); color: var(--navy); flex-shrink: 0; }
.contact-direct svg { width: 18px; height: 18px; }
.contact-direct small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.form-card { background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.form-card h2 { font-size: clamp(30px, 3vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #D9D6CC; border-radius: 0; background: #fff;
  font: 400 15.5px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%232B347F' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,52,127,.12); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.check a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 16px 20px; margin: 20px 0 0; font-size: 15px; border-left: 3px solid; }
.alert--ok { background: #EAF4EE; border-color: var(--ok); color: var(--ok); }
.alert--err { background: #FBEDEA; border-color: var(--err); color: var(--err); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination [aria-current] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled span { color: var(--line); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.62); font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; }
.footer-top img { width: 170px; margin-bottom: 22px; }
.footer-top p { max-width: 320px; }
.footer-top h2 { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 8px 0 20px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-office + .footer-office { margin-top: 16px; }
.footer-office b { display: block; color: #fff; font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.66); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255,255,255,.75); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); margin-top: 8px; }
.social svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.notfound b { display: block; font: 500 clamp(90px, 16vw, 180px)/1 var(--serif); color: var(--line); }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Anti-spam ALTCHA ---------- */
altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 0;
  --altcha-color-base: #fff;
  --altcha-color-border: #D9D6CC;
  --altcha-color-text: var(--ink);
  --altcha-color-border-focus: var(--navy);
  --altcha-color-error-text: var(--err);
  --altcha-max-width: 100%;
  display: block; font-family: var(--sans); font-size: 14.5px;
}

/* ---------- Aviso emergente del formulario ---------- */
.modal {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; padding: 44px 40px 36px; text-align: center; color: var(--text); background: #fff;
  box-shadow: 0 30px 80px -20px rgba(15,19,54,.45); border-top: 4px solid var(--navy);
}
.modal--err { border-top-color: var(--err); }
.modal::backdrop { background: rgba(15,19,54,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal__icon { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--navy); }
.modal--ok .modal__icon { color: var(--ok); }
.modal--err .modal__icon { color: var(--err); }
.modal__tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .5s .25s var(--ease) forwards; }
.modal h2 { font-size: 30px; margin: 0 0 12px; }
.modal p { font-size: 15.5px; color: var(--muted); margin: 0 0 12px; }
.modal__note { font-size: 14px !important; color: var(--ok) !important; }
.modal ul { text-align: left; margin: 4px 0 18px; padding: 14px 18px 14px 34px; background: #FBEDEA; color: var(--err); font-size: 14.5px; }
.modal ul li + li { margin-top: 4px; }
.modal form { margin-top: 22px; }
.modal .btn { min-width: 160px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Actualidad del sector (titulares externos) ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item a { position: relative; display: block; padding: 22px 34px 22px 0; color: var(--text); }
.news-item__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.news-item__source { color: var(--navy); }
.news-item__meta time { color: var(--gold-text); }
.news-item__title { display: block; font: 600 20px/1.3 var(--serif); color: var(--ink); transition: color .2s; }
.news-item__ext { position: absolute; right: 4px; top: 26px; width: 17px; height: 17px; color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.news-item a:hover .news-item__title { color: var(--navy); }
.news-item a:hover .news-item__ext { color: var(--navy); transform: translate(2px, -2px); }
.section--paper .news-list { border-color: #DAD7CE; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.news-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.news-filter a span { font-size: 12px; color: var(--muted); }
.news-filter a:hover { border-color: var(--navy); color: var(--navy); }
.news-filter a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-filter a[aria-current] span { color: rgba(255,255,255,.75); }
.news-note { margin: 40px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .news-list { grid-template-columns: 1fr; } .news-item__title { font-size: 19px; } }
.page-hero__note { margin: 22px 0 0; font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.62); max-width: 760px; }
