/* ==========================================================================
   Vanguard · Technology & Innovation — hoja de estilos principal
   Identidad tomada del deck corporativo: navy #00101e, naranja y teal.
   ========================================================================== */

/* Tipografías del manual de marca (Google Fonts, licencia OFL), alojadas en la propia web */
@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Arimo";
  src: url("/assets/fonts/arimo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: #00101e;
  --navy-2: #061a2b;
  --navy-3: #0c2638;
  --navy-line: rgba(255, 255, 255, .12);
  --ink: #0a1724;
  --text: #36434f;
  --muted: #5c6873;
  --bg: #f5f3f2;
  --bg-2: #ede8e4;
  --surface: #ffffff;
  --line: #e2ddd9;
  --line-strong: #c9c2bc;
  --orange: #ff5b05;
  --orange-hover: #ff7a33;
  --orange-ink: #c2410c;
  --teal: #0c7f8b;
  --teal-ink: #0b6b75;
  --teal-light: #6fd0d8;
  --on-dark: #f3f1f2;
  --on-dark-muted: #b4bfc8;
  --error: #b42318;
  --success: #067647;

  --font: "Arimo", Arial, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Arimo", Arial, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Michroma", "Arimo", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 16, 30, .05), 0 10px 30px rgba(0, 16, 30, .07);
  --shadow-lg: 0 2px 4px rgba(0, 16, 30, .06), 0 24px 60px rgba(0, 16, 30, .14);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-ink); text-underline-offset: .18em; }
a:hover { color: var(--orange-ink); }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; 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: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange-ink); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--teal); padding: .2rem 0 .2rem 1rem; margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--navy); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1.5px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--primary:hover { --btn-bg: var(--orange-hover); box-shadow: 0 8px 24px rgba(255, 95, 15, .35); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-border: rgba(255, 255, 255, .45); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-border: #fff; }
.btn--dark { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--navy-3); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--outline:hover { --btn-border: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--ink);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--orange-ink); transition: transform .18s ease; }
.link-arrow:hover { color: var(--orange-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow, .hero .link-arrow { color: var(--on-dark); }
.section--dark .link-arrow .icon { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 16, 30, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--navy-line);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; color: var(--on-dark); flex: none; }
.brand .logo { height: 30px; width: auto; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--navy-line); border-radius: 12px; color: var(--on-dark); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--navy); border-bottom: 1px solid var(--navy-line);
  padding: 12px var(--gutter) 28px;
  display: none;
}
.nav-open .site-nav { display: block; }
.nav-open body { overflow: hidden; }
.nav-list { list-style: none; display: grid; }
.nav-list a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--navy-line);
  color: var(--on-dark); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.nav-list a[aria-current] { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px;
  border: 1px solid var(--navy-line); border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .08em;
}
.lang-switch:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a { border: 0; padding: 8px 12px; font-size: .97rem; border-radius: 8px; color: var(--on-dark-muted); }
  .nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav-list a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
  .nav-actions { margin: 0; }
  .nav-open body { overflow: auto; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--white { background: var(--surface); }
.section--light { background: var(--bg); }
.section--warm { background: linear-gradient(160deg, var(--bg) 0%, #f7ece5 100%); }
.section--dark { background: var(--navy); color: var(--on-dark-muted); overflow: hidden; }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--orange); }
.section--dark a:not(.btn) { color: var(--teal-light); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36rem 26rem at 88% 8%, rgba(255, 95, 15, .26), transparent 65%),
    radial-gradient(34rem 28rem at 6% 100%, rgba(14, 127, 138, .32), transparent 65%);
}
.section--dark > .container { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-foot { margin-top: clamp(28px, 4vw, 44px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split--center { align-items: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--on-dark-muted);
  padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 34rem at 80% 18%, rgba(255, 95, 15, .5), transparent 62%),
    radial-gradient(30rem 26rem at 102% 102%, rgba(14, 127, 138, .55), transparent 62%),
    radial-gradient(30rem 24rem at -6% 112%, rgba(14, 127, 138, .4), transparent 62%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--orange); }
.hero .lead { color: var(--on-dark-muted); max-width: 60ch; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.25rem; font-size: .92rem; color: var(--on-dark-muted); list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--orange); width: 18px; height: 18px; }
.hero-mark { display: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero-mark { display: block; justify-self: end; width: min(100%, 380px); }
}
.hero-mark .mark-v { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .35); stroke-width: 2; }
.hero-mark .mark-sq { fill: var(--orange); }

.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 20ch; }
.page-hero--article h1 { max-width: 24ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; list-style: none; }
.anchor-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.anchor-nav a:hover { border-color: var(--orange); color: #fff; }
.anchor-nav .icon { color: var(--orange); width: 18px; height: 18px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--on-dark); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
}
.card h3 { margin-top: .2rem; }
.card p { color: var(--text); }
.card .card-foot { margin-top: auto; padding-top: 1.5rem; }
.card--flat { box-shadow: none; }
.card--dark { background: rgba(255, 255, 255, .04); border-color: var(--navy-line); box-shadow: none; }
.card--dark p { color: var(--on-dark-muted); }
.card--service { border-top: 4px solid var(--orange); }
.card--link { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.icon-badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff; margin-bottom: 1.4rem; flex: none;
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--teal { background: var(--teal); }
.icon-badge--soft { background: #fbe9df; color: var(--orange-ink); }
.icon-badge--soft-teal { background: #e0f1f2; color: var(--teal-ink); }
.icon-badge--sm { width: 44px; height: 44px; margin-bottom: 1rem; }
.icon-badge--sm .icon { width: 22px; height: 22px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-badge { margin-bottom: 0; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { font-size: 1rem; }

/* ---------- Statement / manifesto ---------- */
.statement h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); max-width: 18ch; }
.statement .lead { max-width: 58ch; }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); color: var(--on-dark);
}
.chips--light li { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* ---------- Learning trio (Aprender · Participar · Aplicar) ---------- */
.trio { display: grid; gap: 14px; list-style: none; counter-reset: trio; }
.trio li {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.trio li::before {
  counter-increment: trio; content: "0" counter(trio);
  grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 700;
}
.trio strong { font-family: var(--font-head); font-size: 1.15rem; }
.trio span { color: var(--muted); }

/* ---------- Method steps ---------- */
.steps { display: grid; gap: 16px; list-style: none; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .12em;
  color: var(--orange-ink); margin-bottom: .8rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { font-size: .98rem; color: var(--text); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; right: -13px; width: 10px; height: 10px;
    border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
  }
}
.section--dark .step { background: rgba(255, 255, 255, .04); border-color: var(--navy-line); box-shadow: none; }
.section--dark .step p { color: var(--on-dark-muted); }
.section--dark .step::before { color: var(--orange); }

/* ---------- Pillars (impacto) ---------- */
.pillar { padding-top: 24px; border-top: 2px solid var(--ink); }
.pillar h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.pillar p { color: var(--text); }

/* ---------- Audience cards (factor humano) ---------- */
.audience { display: grid; gap: 16px; }

/* ---------- Article cards ---------- */
.post-card { text-decoration: none; color: inherit; height: 100%; }
.post-card .post-cat {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .9rem;
}
.post-card h3 { font-size: 1.3rem; }
.post-card:hover h3 { color: var(--orange-ink); }
.post-card .link-arrow { margin-top: auto; padding-top: 1.25rem; }

/* ---------- Service blocks (página Servicios) ---------- */
.service-block { scroll-margin-top: calc(var(--header-h) + 8px); }
.service-intro { display: grid; gap: 28px; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.service-intro .icon-badge { width: 64px; height: 64px; }
.service-intro .icon-badge .icon { width: 30px; height: 30px; }
.service-intro h2 { max-width: 22ch; }
@media (min-width: 960px) { .service-intro { grid-template-columns: auto minmax(0, 1fr); gap: 32px; } }
.service-label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .6rem; }

.subblock + .subblock { margin-top: clamp(40px, 5vw, 64px); }
.subblock > h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: 1rem; }
.subblock-text { max-width: 70ch; }

.mini-steps { display: grid; gap: 10px; list-style: none; counter-reset: ms; }
.mini-steps li {
  display: flex; gap: 14px; align-items: center; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.mini-steps li::before {
  counter-increment: ms; content: counter(ms); flex: none;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--orange); font-weight: 700; font-size: .9rem;
}
@media (min-width: 900px) { .mini-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mini-steps li { flex-direction: column; align-items: flex-start; } }

.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: clamp(40px, 5vw, 56px); padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px);
  border-radius: var(--radius); background: var(--navy); color: var(--on-dark-muted);
  background-image: radial-gradient(28rem 14rem at 100% 0%, rgba(255, 95, 15, .28), transparent 70%);
}
.cta-inline p { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: #fff; max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--orange-ink); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--orange-ink); }
.faq .faq-a { padding: 0 0 22px; max-width: 70ch; }

/* ---------- Profile (Ferran) ---------- */
.profile { display: grid; gap: 24px; align-items: start; }
.profile-avatar {
  width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center;
  background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; letter-spacing: .02em;
  background-image: radial-gradient(5rem 5rem at 80% 10%, rgba(255, 95, 15, .45), transparent 70%);
}
.profile-role { font-weight: 600; color: var(--teal-ink); margin-bottom: 1rem; }
@media (min-width: 720px) { .profile { grid-template-columns: auto minmax(0, 1fr); gap: 32px; } }

/* ---------- Contact blocks ---------- */
.contact-panel { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) { .contact-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 1.75rem; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; }
.contact-list .label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list .value { font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.08rem; word-break: break-word; }
.contact-list a:hover { color: var(--orange-ink); text-decoration: underline; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h2, .form-card h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }

/* ---------- Forms ---------- */
.lead-form { position: relative; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 650; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1724' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a79f98; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 127, 138, .18); }
.field [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12) !important; }
.field-hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .88rem; color: var(--error); font-weight: 600; margin: 6px 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.field--check label { font-weight: 400; color: var(--text); font-size: .93rem; margin: 0; }
.field--check .field-error { grid-column: 2; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status.is-info { color: var(--teal-ink); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-basic { margin-top: 22px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.privacy-basic summary { cursor: pointer; font-weight: 600; color: var(--text); }
.privacy-basic dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; }
.privacy-basic dt { font-weight: 700; color: var(--ink); }
.privacy-basic dd { margin: 0; }
@media (max-width: 520px) { .privacy-basic dl { grid-template-columns: 1fr; } .privacy-basic dd { margin-bottom: 6px; } }

/* ---------- Article / prose ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: var(--on-dark-muted); margin-top: 1.4rem; }
.article-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose ul { padding-left: 1.3em; margin-bottom: 1.15em; }
.prose li { margin-bottom: .4em; }
.prose .intro { font-size: 1.22rem; color: var(--ink); }
.source { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.aside-card { background: var(--navy); color: var(--on-dark-muted); border-radius: var(--radius); padding: 28px; background-image: radial-gradient(20rem 12rem at 100% 0%, rgba(255, 95, 15, .3), transparent 70%); }
.aside-card .eyebrow { color: var(--orange); }
.aside-card h2, .aside-card h3 { color: #fff; font-size: 1.35rem; }
.aside-card .btn { width: 100%; margin-top: 1.2rem; }

.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); width: 34%; }
.placeholder { background: #fff3cd; color: #6b4e00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Thanks / 404 ---------- */
.center-page { min-height: 62vh; display: grid; align-items: center; }
.check-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); margin-bottom: 1.6rem; }
.check-badge .icon { width: 34px; height: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 0; font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr 1fr .8fr 1.2fr; } .footer-brand { grid-column: auto; } }
.brand--footer .logo { height: 46px; }
.footer-brand p { margin: 1.25rem 0 1.5rem; max-width: 40ch; }
.footer-title { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--on-dark-muted); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--orange); width: 18px; height: 18px; margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--navy-line); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a, .link-button { color: var(--on-dark-muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.footer-legal a:hover, .link-button:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile contact bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(0, 16, 30, .96); border-top: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px;
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .95rem; border: 1px solid var(--navy-line);
}
.mobile-bar a .icon { width: 18px; height: 18px; }
.mobile-bar a.is-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
  max-width: 560px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 100vmax rgba(0, 16, 30, .18), var(--shadow-lg); border: 1px solid var(--line); font-size: .93rem;
}
.consent-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: .45rem; }
.consent-text { margin-bottom: 0; }
.consent-text a { font-weight: 600; }
.consent-prefs { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.consent-cat { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.consent-cat input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.consent-cat label { display: grid; gap: 2px; cursor: pointer; }
.consent-cat strong { font-size: .95rem; }
.consent-cat span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.consent-cat input:disabled + label { cursor: default; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-actions [data-consent-action="configure"], .consent-actions [data-consent-action="save"] { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .consent-actions { grid-template-columns: repeat(3, 1fr); }
  .consent-actions [data-consent-action="configure"], .consent-actions [data-consent-action="save"] { grid-column: auto; }
}
@media (min-width: 760px) { .consent { left: 24px; bottom: 24px; right: auto; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .mobile-bar, .consent, .site-footer, .lead-form, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero, .section--dark { background: #fff !important; color: #000; }
  .hero h1, .section--dark h2 { color: #000; }
}

/* ---------- Ajustes ---------- */
.card h4 { font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; line-height: 1.25; margin: 0 0 .45rem; }
.card--dark h4 { color: var(--on-dark); }
.card p + .chips { margin-top: 1.25rem; }
.h-spaced { margin-top: 2.25rem; }
.contact-panel h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.contact-panel .lead + .contact-list { margin-top: 2rem; }
.contact-panel--form-first .form-card { order: -1; }
@media (min-width: 1000px) { .contact-panel--form-first .form-card { order: 0; } }
.aside-card .link-arrow { color: var(--on-dark); margin-top: 1rem; }
.aside-card .link-arrow .icon { color: var(--orange); }
.related-list { list-style: none; display: grid; gap: 10px; margin-top: 1rem; }

/* ---------- Página de producto (Vanguard 360) ---------- */
.benefits { list-style: none; display: grid; gap: 12px; margin-top: 1.8rem; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); font-weight: 600; }
.benefits .icon { color: var(--orange); width: 22px; height: 22px; margin-top: 2px; }
.layer-card {
  display: none; justify-self: end; width: min(100%, 380px);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); border-radius: calc(var(--radius) + 4px);
  padding: 26px 26px 22px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 960px) { .layer-card { display: block; } }
.layer-card-title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.layer-card ul { list-style: none; }
.layer-card li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--navy-line); color: var(--on-dark); font-weight: 600; }
.layer-card li .icon-badge { margin: 0; width: 38px; height: 38px; }
.layer-card li .icon-badge .icon { width: 19px; height: 19px; }
.layer-card-foot { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: .92rem; color: var(--on-dark-muted); }
.layer-card-foot .icon { color: var(--orange); }
.stats { display: grid; gap: 22px; }
.stat { border-left: 3px solid var(--orange); padding-left: 18px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); line-height: 1; color: var(--orange-ink); margin-bottom: .3rem; }
.stat span { color: var(--text); }
.pillar-block + .pillar-block { margin-top: clamp(44px, 5vw, 64px); }
.pillar-head { display: flex; align-items: center; gap: 14px; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: .6rem; }
.pillar-num { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--orange); font-size: 1.1rem; }
.pillar-block .subblock-text { margin-bottom: 1.5rem; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-card { font-size: 1.15rem; margin-bottom: .45rem; }
.section--tight { padding: 28px 0; }
.fine-print { font-size: .85rem; color: var(--muted); max-width: 90ch; margin: 0; }
.service-summary { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin-top: 1.5rem; }
.service-summary li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); }
.service-summary .icon { color: var(--orange-ink); }

/* ---------- Tablas legales ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0 1.5rem; }
.legal .cookie-table { margin: 0; min-width: 560px; font-size: .9rem; }
.legal .cookie-table th { width: auto; background: var(--navy); color: #fff; }
.legal .cookie-table td:first-child { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; white-space: nowrap; color: var(--ink); }
.legal .cookie-group td { background: var(--bg); font-weight: 700; color: var(--ink); font-family: var(--font) !important; }

/* ==========================================================================
   DINÁMICA E INTERACCIÓN
   Tipografía de marca, cabecera inteligente, portada a pantalla completa,
   apariciones al hacer scroll y respuesta al cursor en cada elemento.
   ========================================================================== */

/* ---------- Tipografía de marca (Michroma para titulares) ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.22; }
h1 { font-size: clamp(1.75rem, 1rem + 2.9vw, 3.3rem); }
h2 { font-size: clamp(1.35rem, 1rem + 1.45vw, 2.15rem); }
.hero h1 { text-transform: uppercase; max-width: 24ch; line-height: 1.16; }
.display-xl { font-size: clamp(1.7rem, .9rem + 3.2vw, 3.6rem); text-transform: uppercase; line-height: 1.14; max-width: 26ch; }
.statement h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem); max-width: 22ch; }
.eyebrow { font-family: var(--font-display); font-weight: 400; font-size: .66rem; letter-spacing: .24em; }
.footer-title, .stat strong, .pillar-num, .trio li::before, .step::before, .service-label, .post-cat, .claim-num, .office-city, .office-country, .offices-title, .marquee-item, .check-badge { font-family: var(--font-display); font-weight: 400; }
.service-label, .post-cat, .office-country { font-size: .66rem; letter-spacing: .2em; }
.contact-panel h2 { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); }
.form-card h2, .form-card h3, .aside-card h2 { font-family: var(--font-head); font-weight: 700; }
::selection { background: var(--orange); color: var(--navy); }

/* ---------- Transición entre páginas (navegadores compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- Cabecera fija (siempre visible) ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .55s var(--ease-out), box-shadow .45s var(--ease);
}
body { padding-top: var(--header-h); }
body[data-hero="dark"] { padding-top: 0; }
body[data-hero="dark"] .hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px)); }
.js body[data-hero="dark"] .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.nav-open .site-header { background: var(--navy) !important; transform: none !important; }
.logo-word { transition: opacity .4s var(--ease), transform .55s var(--ease-out); }
.brand .logo-mark { transition: color .3s; }
.brand:hover .logo-mark { color: var(--orange); }

/* Enlaces de navegación con subrayado animado */
@media (min-width: 1000px) {
  .nav-list a { position: relative; }
  .nav-list a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
  }
  .nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .nav-list a[aria-current] { box-shadow: none; }
  .nav-list a:hover { background: transparent; }
}

/* Desplegable de oficinas */
.nav-offices { position: relative; }
.nav-offices-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--on-dark-muted); font: 600 .97rem var(--font-head);
}
.nav-offices-btn .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.nav-offices-btn:hover, .nav-offices-btn[data-current] { color: #fff; }
.nav-offices.is-open .nav-offices-btn .icon { transform: rotate(180deg); }
.nav-offices-menu { list-style: none; display: none; padding: 4px 0 8px; }
.nav-offices.is-open .nav-offices-menu { display: block; }
.nav-offices-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 4px;
  color: var(--on-dark); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--navy-line);
}
.nav-offices-menu small { color: var(--on-dark-muted); font-weight: 400; font-size: .85rem; }
.nav-actions { flex-wrap: wrap; }
.nav-actions .nav-offices { flex-basis: 100%; }
@media (min-width: 1000px) {
  .nav-actions { flex-wrap: nowrap; gap: 10px; }
  .nav-actions .nav-offices { flex-basis: auto; }
  .nav-offices-menu {
    display: block; position: absolute; right: 0; top: calc(100% + 12px); min-width: 250px; padding: 8px;
    background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility .3s;
  }
  .nav-offices-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-offices:hover .nav-offices-menu, .nav-offices:focus-within .nav-offices-menu, .nav-offices.is-open .nav-offices-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-offices:hover .nav-offices-btn .icon { transform: rotate(180deg); }
  .nav-offices-menu a { color: var(--ink); border: 0; border-radius: 10px; padding: 12px 14px; transition: background-color .25s, padding .3s var(--ease-out), color .25s; }
  .nav-offices-menu a:hover { background: var(--bg); padding-left: 20px; color: var(--orange-ink); }
  .nav-offices-menu small { color: var(--muted); }
}

/* ---------- Intro de marca (solo portada, primera visita) ---------- */
.preloader { display: none; }
.has-intro .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; background: var(--navy);
  transition: transform .9s var(--ease-out) .05s;
}
.has-intro.intro-done .preloader { transform: translateY(-100%); }
.preloader-mark { width: 92px; height: auto; overflow: visible; }
.preloader-mark .pl-v { fill: var(--on-dark); animation: plV .8s var(--ease-out) both; }
.preloader-mark .pl-sq { fill: var(--orange); animation: plSq .7s var(--ease-out) .35s both; }
@keyframes plV { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes plSq { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Portadas con fotografía ---------- */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media[data-parallax] { inset: -9% 0; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.js-motion .hero-media img { transform: scale(1.12); transition: transform 2.8s var(--ease-out); }
.js-motion.is-loaded .hero-media img { transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 16, 30, .94) 0%, rgba(0, 16, 30, .78) 42%, rgba(0, 16, 30, .4) 100%),
    linear-gradient(0deg, rgba(0, 16, 30, .9) 0%, rgba(0, 16, 30, 0) 55%);
}
.hero--full { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(56px, 11vh, 120px); }
.hero--full > .container { width: 100%; }
.hero--full::before { opacity: .55; }
.page-hero .hero-media::after { background: linear-gradient(90deg, rgba(0, 16, 30, .95) 0%, rgba(0, 16, 30, .82) 50%, rgba(0, 16, 30, .55) 100%); }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 32px; display: none; align-items: center; gap: 14px;
  color: var(--on-dark-muted); text-decoration: none; font-family: var(--font-display); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
.scroll-cue:hover { color: #fff; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@media (min-width: 760px) { .scroll-cue { display: inline-flex; } }

/* Paneles apilados: el manifiesto cubre la portada al hacer scroll */
@media (min-width: 700px) and (min-height: 620px) {
  .stack-panel { position: sticky; top: 0; }
  .stack-panel + .stack-panel { box-shadow: 0 -30px 80px rgba(0, 0, 0, .45); }
}
.stack-inner { transform-origin: 50% 100%; }
.panel-statement { align-items: center; }
.panel-statement .lead { max-width: 62ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin-top: 1.4rem; color: var(--on-dark); }

/* Texto que se ilumina palabra a palabra */
.js-motion .scrub .sw { opacity: .22; transition: opacity .35s var(--ease); }
.js-motion .scrub .sw.is-lit { opacity: 1; }

/* ---------- Apariciones al hacer scroll ---------- */
.js-motion [data-reveal="up"] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js-motion [data-reveal="up"].is-in { opacity: 1; transform: none; }
.js-motion [data-reveal="clip"] > .hero-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.js-motion [data-reveal="clip"].is-in > .hero-media { clip-path: inset(0 0 0 0); }
.js-motion [data-reveal="clip"] > figcaption { opacity: 0; transition: opacity .8s var(--ease) .6s; }
.js-motion [data-reveal="clip"].is-in > figcaption { opacity: 1; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-w > span { display: inline-block; }
.js-motion [data-reveal="split"] .split-w > span { transform: translate3d(0, 110%, 0); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js-motion [data-reveal="split"].is-in .split-w > span { transform: none; }

/* ---------- Botones: barrido de color y flecha ---------- */
.btn { overflow: hidden; isolation: isolate; --btn-sweep: var(--navy); --btn-sweep-fg: #fff; transition: color .4s var(--ease), border-color .4s var(--ease), transform .35s var(--ease-out), box-shadow .4s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-sweep); border-radius: inherit;
  transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease-out);
}
.btn { position: relative; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--btn-sweep-fg); }
.btn .icon { transition: transform .45s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px) rotate(-45deg); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(255, 91, 5, .35); }
.hero .btn, .section--dark .btn, .site-header .btn, .claims .btn, .aside-card .btn, .cta-inline .btn, .site-footer .btn { --btn-sweep: #fff; --btn-sweep-fg: var(--navy); }
.btn--ghost { --btn-sweep: #fff; --btn-sweep-fg: var(--navy); }
.btn--dark { --btn-sweep: var(--orange); --btn-sweep-fg: var(--navy); }
.btn--outline { --btn-sweep: var(--ink); --btn-sweep-fg: #fff; }
.btn:disabled::before { display: none; }

/* Botón tipo "chip" (como Cases & Lacambra) */
.chip-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 4px;
  background: rgba(10, 23, 36, .07); color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .35s var(--ease-out);
}
.chip-btn .icon { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.chip-btn:hover { background: var(--navy); color: #fff; }
.chip-btn:hover .icon, a:hover > .chip-btn .icon { transform: rotate(-45deg); }

/* Enlaces con flecha: subrayado que crece */
.link-arrow { position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 1.6em; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.link-arrow:hover::after, a:hover > .link-arrow::after, .post-card:hover .link-arrow::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover .icon, .post-card:hover .link-arrow .icon { transform: translateX(4px) rotate(-45deg); }

/* ---------- Foco de luz que sigue al cursor ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 5, .14), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.claim-card.spot > .icon-badge { position: absolute; }
.section--dark .spot::after, .card--dark.spot::after, .layer-card.spot::after, .aside-card.spot::after, .cta-inline.spot::after, .office-card.spot::after {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 5, .22), transparent 62%);
}

/* ---------- Tarjetas: elevación, color y cursor ---------- */
.card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease), background-color .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255, 91, 5, .45); }
.card--dark:hover { border-color: rgba(255, 91, 5, .5); background: rgba(255, 255, 255, .06); box-shadow: none; }
.icon-badge { transition: transform .55s var(--ease-out), background-color .4s, color .4s; }
.card:hover .icon-badge, .feature:hover .icon-badge, .claim-card:hover .icon-badge, .contact-list li:hover .icon-badge { transform: rotate(-10deg) scale(1.08); }
.card:hover .icon-badge--soft, .card:hover .icon-badge--soft-teal { background: var(--orange); color: #fff; }
.card h3, .card h4 { transition: color .3s; }
.card--flat:hover h4, .card--flat:hover .h-card { color: var(--orange-ink); }

/* Tarjetas de servicio sobre fotografía (estilo Cases & Lacambra) */
.claims { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark-muted); padding: var(--section-y) 0; background: var(--navy); }
.claims .hero-media::after { background: linear-gradient(180deg, rgba(0, 16, 30, .85), rgba(0, 16, 30, .5) 45%, rgba(0, 16, 30, .85)); }
.claims h2, .claims .section-head p { color: #fff; }
.claims .eyebrow { color: var(--orange); }
.claims-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .claims-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; } .claims-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.claim-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface); color: var(--ink); text-decoration: none; border-radius: 4px;
  transition: background-color .55s var(--ease), color .45s var(--ease), transform .6s var(--ease-out);
}
.claim-card .claim-num { font-size: .72rem; letter-spacing: .2em; color: var(--orange-ink); transition: color .45s; }
.claim-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1rem, .9rem + .45vw, 1.25rem); line-height: 1.4; color: inherit; margin: 0; padding-right: 56px; }
.claim-card p { color: var(--text); margin: 0; transition: color .45s; }
.claim-card .chip-btn { margin-top: auto; align-self: flex-start; }
.claim-card .icon-badge { position: absolute; top: clamp(20px, 2.4vw, 30px); right: clamp(20px, 2.4vw, 30px); margin: 0; width: 46px; height: 46px; background: var(--navy); color: var(--orange); }
.claim-card .icon-badge .icon { width: 22px; height: 22px; }
.claim-card:hover { background: var(--orange); color: var(--navy); transform: translateY(-8px); }
.claim-card:hover p, .claim-card:hover .claim-num { color: var(--navy); }
.claim-card:hover .chip-btn { background: var(--navy); color: #fff; }
.claim-card:hover .chip-btn .icon { transform: rotate(-45deg); }
.claim-card--dark { background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); color: #fff; min-height: 260px; }
.claim-card--dark p, .claim-card--dark .claim-num { color: var(--on-dark-muted); }
.claim-card--dark .chip-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.claim-card--dark:hover { border-color: var(--orange); }

/* Aprender · Participar · Aplicar */
.trio li { transition: background-color .45s var(--ease), border-color .45s, transform .55s var(--ease-out), box-shadow .45s; }
.trio li::before { transition: background-color .45s, color .45s; }
.trio li:hover { background: var(--navy); border-color: var(--navy); transform: translateX(10px); box-shadow: var(--shadow-lg); }
.trio li:hover strong { color: #fff; }
.trio li:hover span { color: var(--on-dark-muted); }
.trio li:hover::before { background: var(--orange); color: var(--navy); }

/* Metodología */
.step { transition: background-color .5s var(--ease), border-color .45s, transform .55s var(--ease-out), box-shadow .5s; }
.step h3, .step p, .step::before { transition: color .4s; }
.step:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step:hover h3 { color: #fff; }
.step:hover p { color: var(--on-dark-muted); }
.step:hover::before { color: var(--orange); }
.section--dark .step:hover { background: var(--orange); border-color: var(--orange); }
.section--dark .step:hover h3, .section--dark .step:hover p, .section--dark .step:hover::before { color: var(--navy); }

/* Pilares con línea que se dibuja */
.pillar { position: relative; transition: transform .5s var(--ease-out); }
.pillar::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.pillar:hover::before { transform: scaleX(1); }
.pillar h3 { transition: transform .5s var(--ease-out), color .3s; }
.pillar:hover h3 { transform: translateX(8px); color: var(--orange-ink); }

/* Chips de sectores */
.chips li { transition: background-color .35s, color .35s, border-color .35s, transform .4s var(--ease-out); }
.chips li:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: translateY(-3px); }

/* Preguntas frecuentes */
.faq summary { transition: color .3s, padding-left .45s var(--ease-out); }
.faq summary:hover { padding-left: 10px; }
.faq summary .icon { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease-out), background-color .35s, color .35s, border-color .35s; }
.faq summary:hover .icon { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* Listas del pie: flecha que aparece */
.footer-links a { display: inline-flex; align-items: center; gap: 0; transition: color .3s, gap .4s var(--ease-out); }
.footer-links a::before { content: "\2192"; display: inline-block; width: 0; overflow: hidden; color: var(--orange); transform: rotate(-45deg); transition: width .4s var(--ease-out); }
.footer-links a:hover { gap: 8px; text-decoration: none; }
.footer-links a:hover::before { width: 1em; }

/* Contacto: elementos que reaccionan */
.contact-list li { transition: transform .45s var(--ease-out); }
.contact-list li:hover { transform: translateX(6px); }

/* Imágenes con zoom al pasar el cursor */
.media-zoom, .office-media, .post-media, .split-media { display: block; overflow: hidden; }
.media-zoom img, .office-media img, .post-media img, .split-media img { transition: transform 1.2s var(--ease-out), filter .8s var(--ease); }
.media-zoom:hover img, .office-card:hover .office-media img, .post-card:hover .post-media img, .split-media:hover img { transform: scale(1.07); }

/* Artículos con imagen */
.post-card { overflow: hidden; }
.post-media { margin: calc(clamp(24px, 3vw, 34px) * -1) calc(clamp(24px, 3vw, 34px) * -1) 22px; aspect-ratio: 16 / 9; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }

/* Imagen lateral con revelado */
.split-media { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 16, 30, .6)); pointer-events: none; }
.split-media-tag { position: absolute; left: 22px; bottom: 20px; z-index: 1; color: #fff; font-family: var(--font-display); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Cinta de sectores en movimiento ---------- */
.marquee {
  overflow: hidden; margin-top: clamp(44px, 6vw, 72px); padding: 24px 0;
  border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; list-style: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 40px); padding-right: clamp(22px, 3vw, 40px);
  font-size: clamp(1rem, .85rem + 1vw, 1.75rem); text-transform: uppercase; color: var(--on-dark); white-space: nowrap; transition: color .35s;
}
.marquee-item::after { content: ""; width: .5em; height: .5em; background: var(--orange); flex: none; }
.marquee-item:hover { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bloque final de contacto (naranja con fotografía) ---------- */
.cta-band { position: relative; background: var(--surface); }
.cta-band-grid { display: grid; }
@media (min-width: 1000px) { .cta-band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.cta-band-panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px); background: var(--orange); color: var(--navy);
}
.cta-band-panel .hero-media { z-index: -1; }
.cta-band-panel .hero-media img { mix-blend-mode: multiply; opacity: .5; filter: grayscale(1) contrast(1.1); }
.cta-band-panel .hero-media::after { background: linear-gradient(0deg, rgba(255, 91, 5, .95) 15%, rgba(255, 91, 5, .2)); }
.cta-band-panel .eyebrow { color: var(--navy); }
.cta-band-panel h2 { color: var(--navy); font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); text-transform: uppercase; max-width: 16ch; }
.cta-band-panel .lead { color: var(--navy); max-width: 46ch; }
.cta-band-panel .contact-list .label { color: rgba(0, 16, 30, .72); }
.cta-band-panel .contact-list a, .cta-band-panel .contact-list .value { color: var(--navy); }
.cta-band-panel .icon-badge { background: var(--navy); color: var(--orange); }
.cta-band-form { padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px); display: flex; align-items: center; background: var(--surface); }
.cta-band-form .lead-form { width: 100%; max-width: 680px; }

/* ---------- Oficinas (pie y páginas) ---------- */
.offices { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--navy-line); }
.offices-head { display: grid; gap: 10px 48px; margin-bottom: 28px; align-items: end; }
@media (min-width: 900px) { .offices-head { grid-template-columns: auto minmax(0, 52ch); justify-content: space-between; } }
.offices-title { color: #fff; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); text-transform: uppercase; margin: 0; }
.offices-intro { margin: 0; color: var(--on-dark-muted); }
.offices-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .offices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; } }
.office-card { display: flex; flex-direction: column; background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); border-radius: 4px; overflow: hidden; transition: background-color .5s var(--ease), border-color .5s; }
.office-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 91, 5, .5); }
.office-media { aspect-ratio: 16 / 9; }
.office-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.office-card:hover .office-media img { filter: saturate(1.05); }
.office-body { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 26px; flex: 1; color: var(--on-dark-muted); }
.office-country { margin: 0; color: var(--orange); }
.office-city { margin: 0 0 6px; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); text-transform: uppercase; color: #fff; }
.office-city a { color: inherit; text-decoration: none; }
.office-card address { font-style: normal; line-height: 1.6; }
.office-contact { margin: 8px 0 0; }
.office-contact a { color: var(--on-dark); text-decoration: none; }
.office-contact a:hover { color: var(--orange); }
.office-actions { margin-top: auto; padding-top: 18px; }
.office-card .chip-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.office-card .chip-btn:hover, .office-card:hover .chip-btn { background: var(--orange); color: var(--navy); }
.offices--light .office-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.offices--light .office-card:hover { background: var(--surface); border-color: var(--orange); }
.offices--light .office-body { color: var(--text); }
.offices--light .office-city { color: var(--ink); }
.offices--light .office-contact a { color: var(--ink); }
.offices--light .office-card .chip-btn { background: rgba(10, 23, 36, .07); color: var(--ink); }
.offices--light .office-country { color: var(--orange-ink); }

/* Ficha de oficina */
.office-info { display: grid; gap: 18px; }
.office-info .contact-list { margin-top: 0; }

/* ---------- Ajustes sobre fotografía ---------- */
.hero .breadcrumb li, .hero .breadcrumb a { color: var(--on-dark-muted); }
.hero-meta li { transition: color .3s; }
.hero-meta li:hover { color: #fff; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track > [aria-hidden="true"] { display: none; }
}
.split-media { isolation: isolate; }
.split-media .hero-media { z-index: 0; }
.split-media .hero-media::after { display: none; }
.split-media-tag { z-index: 2; }
.hero--office { min-height: 86vh; min-height: 86svh; }
.contact-list .label { text-transform: none; letter-spacing: .04em; }
.page-hero--article h1 { text-transform: none; font-size: clamp(1.45rem, 1rem + 2.1vw, 2.5rem); max-width: 28ch; }
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.3rem, .7rem + 3.6vw, 1.75rem); }
  .display-xl { font-size: clamp(1.3rem, .7rem + 3.6vw, 1.7rem); }
  h2 { font-size: clamp(1.2rem, .9rem + 1.8vw, 1.45rem); }
  .claim-card h3 { font-size: .98rem; }
}
@media (max-width: 999px) { .nav-offices-btn { padding-left: 4px; font-size: 1.05rem; color: var(--on-dark); } }

/* ---------- Legibilidad sobre fotografía ---------- */
.hero h2, .hero h3 { color: #fff; }
.hero h1, .hero h2, .hero .lead { text-shadow: 0 2px 24px rgba(0, 16, 30, .55); }
.panel-statement .hero-media::after {
  background:
    linear-gradient(90deg, rgba(0, 16, 30, .93) 0%, rgba(0, 16, 30, .84) 55%, rgba(0, 16, 30, .7) 100%),
    linear-gradient(0deg, rgba(0, 16, 30, .6) 0%, rgba(0, 16, 30, 0) 50%);
}
.js-motion .scrub .sw { opacity: .45; }
