/* ==========================================================================
   GENUINE — hoja de estilos principal
   Inspirada en la arquitectura visual de BDO Perú, con la identidad
   cromática de GENUINE: azul profundo, verde institucional y blancos cálidos.
   ========================================================================== */

/* ---------- Tipografía ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-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;
}

/* ---------- Tokens ---------- */
:root {
  --brand-950: #131230;
  --brand-900: #1c1a3e;
  --brand-800: #241d4c;
  --brand-700: #2c245c;
  --brand-600: #3a4170;
  --brand-500: #4a5286;
  --brand-400: #6b74a3;
  --brand-300: #9ba3c4;
  --brand-200: #c3c8dc;
  --brand-100: #dcdfeb;
  --brand-50: #eef0f6;

  --accent-700: #0d6b28;
  --accent-600: #0f752c;
  --accent-500: #16a63f;
  --accent-400: #0c8c34;
  --accent-300: #6fd68c;
  --accent-200: #b7e8c4;
  --accent-50: #eaf7ee;

  --ink: #2c245c;
  --ink-soft: #3a4170;
  --charcoal: #333333;
  --body: #43465a;
  --muted: #63677a;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #ecedf1;
  --surface-invert: #1c1a3e;
  --line: #e3e4ea;
  --line-strong: #c9ccd8;
  --btn-ink: #0b1628;
  --on-dark: #ffffff;
  --on-dark-soft: #d7d9e8;

  --shadow-sm: 0 1px 2px rgba(19, 18, 48, .06), 0 1px 3px rgba(19, 18, 48, .08);
  --shadow-md: 0 10px 30px -12px rgba(19, 18, 48, .22);
  --shadow-lg: 0 30px 60px -30px rgba(19, 18, 48, .38);
  --shadow-card: 0 18px 40px -28px rgba(19, 18, 48, .45);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shell: 1440px;
  --shell-wide: 1680px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --radius: 2px;
  --header-h: 92px;
  --topbar-h: 48px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --ink: #f4f5fb;
  --ink-soft: #dcdfee;
  --charcoal: #e6e8f2;
  --body: #c9cee2;
  --muted: #9ea5c0;
  --surface: #171a3a;
  --surface-2: #1e2246;
  --surface-3: #262b54;
  --surface-invert: #0f1230;
  --line: #333a66;
  --line-strong: #454d7d;
  --brand-50: #232850;
  --brand-100: #2c3260;
  --brand-200: #3a4170;
  --on-dark: #ffffff;
  --on-dark-soft: #c9cee2;
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, .8);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 3.6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
figure { margin: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
::selection { background: var(--accent-500); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; }
.site { position: relative; overflow: clip; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: -9999px; top: 0; z-index: 999; background: var(--brand-700); color: #fff; padding: .8rem 1.2rem; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 880px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }
.section--alt { background: var(--surface-2); }
.section--brand { background: var(--brand-800); color: var(--on-dark); }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__title { margin-bottom: .35em; }
.section__lede { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0; }
.section--brand .section__lede { color: var(--on-dark-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-600); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--brand .eyebrow { color: var(--accent-300); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent-500);
  --btn-fg: var(--btn-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border: 0; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-700);
  transform: translateX(-118%) skewX(-12deg) scaleX(1.2);
  transition: transform .38s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0) skewX(-12deg); }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--accent-500); --btn-fg: var(--btn-ink); }
.btn--brand { --btn-bg: var(--brand-700); --btn-fg: #fff; }
.btn--brand::after { background: var(--accent-500); }
.btn--brand:hover { color: var(--btn-ink); }
.btn--outline {
  background: transparent; color: var(--ink); border: 2px solid var(--brand-700);
  padding: calc(.95rem - 2px) calc(1.6rem - 2px);
}
.btn--outline::after { background: var(--brand-700); }
.btn--outline:hover { color: #fff; }
.btn--outline-light {
  background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6);
  padding: calc(.95rem - 2px) calc(1.6rem - 2px);
}
.btn--outline-light::after { background: #fff; }
.btn--outline-light:hover { color: var(--brand-800); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: .2rem; text-transform: none; letter-spacing: 0; }
.btn--ghost::after { display: none; }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light::after { background: var(--accent-500); }
.btn--light:hover { color: var(--btn-ink); }
.btn--sm { padding: .65rem 1.1rem; font-size: .72rem; }
.btn--block { width: 100%; }
.btn--cta { padding: 0 1.7rem; height: 100%; display: inline-flex; align-items: center; }
.btn-link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.btn-link .ico { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.btn-link:hover { color: var(--accent-600); border-color: var(--accent-500); }
.btn-link:hover .ico { transform: translateX(3px); }
.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px;
  transition: background .2s, color .2s;
}
.iconbtn:hover { background: var(--surface-3); color: var(--accent-600); }
.iconbtn .ico { width: 22px; height: 22px; }

/* ---------- Barra superior ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 60; }
.topbar__inner {
  max-width: var(--shell-wide); margin-inline: auto; padding-left: var(--gutter);
  display: flex; align-items: center; justify-content: flex-end; gap: 1.4rem;
  min-height: var(--topbar-h); font-size: .82rem;
}
.topbar__lema { margin: 0 auto 0 0; color: var(--muted); font-size: .8rem; letter-spacing: .01em; }
.topbar__nav { display: flex; align-items: center; gap: 1.15rem; }
.topbar__nav a { color: var(--charcoal); font-weight: 500; padding: .2rem 0; border-bottom: 1px solid transparent; }
.topbar__nav a:hover { color: var(--accent-600); border-color: var(--accent-500); }
.topbar__tools { display: flex; align-items: center; gap: .35rem; height: var(--topbar-h); }
.topbar__lang { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); height: 100%; }
.topbar__lang .is-on { color: var(--ink); }
.topbar__lang .is-off { color: var(--muted); opacity: .6; }
.topbar__lang-sep { color: var(--line-strong); font-weight: 400; }
.topbar__theme { background: transparent; border: 0; width: 40px; height: 100%; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.topbar__theme .ico { width: 18px; height: 18px; }
.theme-ico--moon { display: none; }
[data-theme="dark"] .theme-ico--sun { display: none; }
[data-theme="dark"] .theme-ico--moon { display: block; }
.topbar__cta { height: var(--topbar-h); margin-left: .8rem; }

/* ---------- Cabecera principal ---------- */
.masthead {
  position: sticky; top: 0; z-index: 55; background: var(--surface);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.masthead.is-stuck { box-shadow: 0 10px 30px -22px rgba(19, 18, 48, .5); border-color: var(--line); }
.masthead__inner {
  max-width: var(--shell-wide); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 2rem;
}
.brand { flex: none; display: flex; align-items: center; align-self: stretch; }
.brand img { width: auto; height: calc(var(--header-h) - 12px); max-height: 92px; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.mainnav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.mainnav__list { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.mainnav__item { position: relative; display: flex; align-items: center; margin: 0; }
.mainnav__link {
  display: inline-flex; align-items: center; padding: .6rem .2rem; font-size: .92rem; font-weight: 600;
  color: var(--ink); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.mainnav__link:hover, .mainnav__item.is-active .mainnav__link { color: var(--accent-600); border-color: var(--accent-500); }
.mainnav__caret {
  background: transparent; border: 0; cursor: pointer; padding: .45rem .25rem; color: var(--ink);
  display: grid; place-items: center; transition: color .2s;
}
.mainnav__caret .ico { transition: transform .4s cubic-bezier(.2,.75,.25,1); }
.mainnav__caret .ico { width: 15px; height: 15px; }
.mainnav__item.is-open .mainnav__caret { color: var(--accent-600); }
.mainnav__item.is-open .mainnav__caret .ico { transform: rotate(180deg); }
.mainnav__more { display: none; }
.masthead__tools { display: flex; align-items: center; gap: .15rem; }
.masthead__search { color: var(--ink); }
.masthead__burger { display: none; }

/* ---------- Mega menú ---------- */
.mega {
  position: absolute; left: 0; right: auto; top: 100%; width: 80%; max-width: 1320px;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg); z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mega.is-open { opacity: 1; visibility: visible; animation: megaIn .4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes megaIn { from { opacity: 0; } to { opacity: 1; } }
.mega__inner {
  margin-inline: 0; padding-inline: 0;
  display: grid; grid-template-columns: 305px minmax(0, 1fr); min-height: 546px;
}
.mega__inner--one { display: block; min-height: 420px; padding: 2.6rem 3.5rem 2.8rem; }
.mega__one-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.mega__one-head .mega__aside-title { margin: 0; }
.mega__aside { background: var(--surface-2); padding: 3.3rem 0 2.6rem; display: flex; flex-direction: column; }
.mega__eyebrow { margin: 0 0 .4rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-600); }
.mega__aside-title { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin: 0 1.6rem 1.9rem 2rem; }
.mega__aside-title .ico { width: 16px; height: 16px; color: var(--charcoal); }
.mega__aside-title:hover { color: var(--accent-600); }
.mega__aside-text { color: var(--muted); font-size: .9rem; }
.mega__groups { list-style: none; margin: 0; padding: 0; }
.mega__groups li { margin: 0; }
.mega__group {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: transparent; border: 0; cursor: pointer;
  text-align: left; padding: .78rem 1.6rem .78rem 2rem; font-size: 1rem; font-weight: 700; color: var(--charcoal);
  transition: background .18s, color .18s;
}
.mega__group .ico { width: 15px; height: 15px; color: var(--brand-300); transition: transform .2s, color .2s; }
.mega__group:hover { background: var(--surface); color: var(--accent-600); }
.mega__group.is-active { background: var(--surface); color: var(--accent-600); }
.mega__group.is-active .ico { color: var(--accent-600); transform: translateX(2px); }
.mega__all { margin-top: auto; padding-top: 1.4rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.mega__all .ico { width: 15px; height: 15px; }
.mega__all:hover { color: var(--accent-600); }
.mega__panels { position: relative; padding: 3.3rem 3.5rem 3rem 2.2rem; }
.mega__panel { display: none; }
.mega__panel.is-active { display: block; animation: fadeUp .25s var(--ease) both; }
.mega__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; margin-bottom: .8rem; }
.mega__panel-head h2 { font-size: 1.35rem; margin: 0; font-weight: 600; }
.mega__panel-head a { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-600); display: inline-flex; align-items: center; gap: .3rem; }
.mega__panel-head a .ico { width: 13px; height: 13px; }
.mega__panel-text { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; max-width: 62ch; }
.mega__links { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
.mega__links li { margin: 0; break-inside: avoid; }
.mega__links a {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 0; font-size: 1rem; color: var(--charcoal);
  transition: color .18s;
}
.mega__group .u, .mega__links a .u {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px;
  padding-bottom: 2px; transition: background-size .35s cubic-bezier(.4,0,.2,1);
}
.mega__group:hover .u, .mega__group:focus-visible .u,
.mega__links a:hover .u, .mega__links a:focus-visible .u { background-size: 100% 1.5px; }
.mega__links a .ico { display: none; }
.mega__links a:hover { color: var(--accent-600); }
.mega__links a:hover .ico { opacity: 1; transform: translateX(2px); }
.mega__links--grid { columns: 3; column-gap: 2.4rem; }
.mega__links--grid a { padding: .55rem 0; }
.mega__promo { display: none;
  background: linear-gradient(155deg, var(--brand-800), var(--brand-700) 55%, var(--brand-600));
  color: #fff; padding: 2.4rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.mega__promo-eyebrow { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-300); font-weight: 700; }
.mega__promo-title { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: #fff; }
.mega__promo .btn { width: fit-content; }
.mega__promo--photo { padding: 0; position: relative; overflow: hidden; }
.mega__promo--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__promo-caption {
  position: relative; z-index: 2; margin-top: auto; padding: 1.4rem 1.6rem;
  background: linear-gradient(to top, rgba(19, 18, 48, .92), rgba(19, 18, 48, 0));
  font-size: .85rem; font-weight: 600; color: #fff;
}
.mega--about .mega__inner { grid-template-columns: 300px minmax(0, 1fr) 320px; }
.mega__links--about { columns: 2; }
.mega__links--about a { font-size: .95rem; padding-block: .7rem; }

/* ---------- Buscador ---------- */
.searchbar { border-top: 1px solid var(--line); background: var(--surface); padding: 1.2rem var(--gutter); }
.searchbar__form { max-width: var(--shell); margin-inline: auto; display: flex; align-items: center; gap: .8rem; }
.searchbar__icon { color: var(--muted); display: grid; place-items: center; }
.searchbar__icon .ico { width: 22px; height: 22px; }
.searchbar__form input {
  flex: 1; border: 0; border-bottom: 2px solid var(--line-strong); background: transparent;
  padding: .7rem .2rem; font-size: 1.15rem; color: var(--ink); outline: none;
}
.searchbar__form input:focus { border-color: var(--accent-500); }
.searchbar__close { flex: none; }
.searchbar__hint { max-width: var(--shell); margin: .5rem auto 0; color: var(--muted); font-size: .82rem; }

/* ---------- Cajón móvil: paneles deslizantes ---------- */
.drawer {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 120;
  background: var(--surface); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(100%); transition: transform .42s cubic-bezier(.22,.75,.2,1);
  will-change: transform; backface-visibility: hidden;
}
.drawer.is-open { transform: none; }
.drawer__head {
  flex: none; height: 76px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 2;
}
.brand--drawer img { width: 190px; height: auto; }
.drawer__head .iconbtn { flex: none; }
.drawer__viewport { position: relative; flex: 1; overflow: hidden; }
.dpanel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.1rem var(--gutter) 2.4rem; background: var(--surface);
  transform: translateX(100%); opacity: 0; visibility: hidden;
  transition: transform .4s cubic-bezier(.22,.75,.2,1), opacity .32s ease;
  will-change: transform; backface-visibility: hidden;
}
.dpanel.is-active { transform: none; opacity: 1; visibility: visible; }
.dpanel.is-left { transform: translateX(-100%); opacity: .28; visibility: visible; }
.dpanel.is-right { transform: translateX(100%); opacity: 0; visibility: visible; }

.dmenu { display: flex; flex-direction: column; }
.dmenu__item, .dmenu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.15rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; color: var(--ink);
  font-size: clamp(1.35rem, 7vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
}
.dmenu__item .ico, .dmenu__link .ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.dmenu__item:active, .dmenu__link:active { color: var(--accent-600); }

.dsecond { margin-top: 1.5rem; display: grid; gap: .55rem; }
.dsecond a { font-size: .95rem; color: var(--body); padding: .18rem 0; }

.dfoot { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.drawer__lang { display: flex; gap: 1rem; align-items: center; font-weight: 700; color: var(--muted); }
.drawer__lang .is-on { color: var(--accent-600); }
.drawer__theme { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: .78rem; }
.drawer__theme .ico { width: 16px; height: 16px; }
.drawer__contact { font-size: .8rem; color: var(--muted); margin: 0; }

.dback {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 0;
  background: none; border: 0; cursor: pointer; color: var(--accent-600);
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.dback .ico { width: 16px; height: 16px; }
.dback:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 4px; }
.dmenu__item:focus-visible, .dmenu__link:focus-visible,
.dlist button:focus-visible, .dlist a:focus-visible { outline: 0; background: var(--surface-2); }
.drawer:focus { outline: 0; }
.dpanel__title { display: flex; align-items: center; gap: .5rem; font-size: clamp(1.5rem, 8vw, 1.85rem); font-weight: 800; color: var(--accent-600); margin: .45rem 0 1rem; letter-spacing: -.025em; }
.dpanel__title .ico { width: 20px; height: 20px; color: var(--accent-600); }
.dpanel__kicker { margin: 1rem 0 .15rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); }
.dpanel__h { font-size: 1.45rem; margin: .15rem 0 1rem; line-height: 1.15; font-weight: 800; color: var(--accent-600); }

.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { border-bottom: 1px solid var(--line); }
.dlist button, .dlist a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: .95rem 0; background: none; border: 0; text-align: left;
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.dlist .ico { width: 17px; height: 17px; color: var(--muted); flex: none; }
.dlist--sub button, .dlist--sub a { font-weight: 500; font-size: .95rem; color: var(--body); padding: .75rem 0; }
.dlist--sub .ico { width: 15px; height: 15px; }
.dall { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem; font-size: .88rem; font-weight: 800; color: var(--accent-600); }
.dall .ico { width: 16px; height: 16px; }

.scrim { position: fixed; inset: 0; background: rgba(19, 18, 48, .55); z-index: 110; opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.scrim.is-open { opacity: 1; }

/* ---------- Héroe / carrusel ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(600px, calc(100svh - 148px), 860px); min-height: 600px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__slide-media {
  position: absolute; top: 0; right: 0; width: 73%; height: 100%;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 66% 100%);
  overflow: hidden; opacity: 0; transition: opacity .8s var(--ease);
}
.hero__slide-media.is-active { opacity: 1; }
.hero__slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.hero__slide-media.is-active img { transform: scale(1); }
.hero__slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19, 18, 48, .35), rgba(19, 18, 48, 0) 45%); }
.hero__accent {
  position: absolute; right: 0; bottom: 0; width: min(26%, 400px); height: 28%;
  background: linear-gradient(160deg, var(--accent-500), var(--accent-700));
  clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 2;
}
.hero__accent::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 12px);
}
.hero__inner { position: relative; z-index: 3; height: 100%; display: flex; }
.hero__content { width: min(43vw, 640px); padding-top: clamp(72px, 7vw, 112px); display: flex; flex-direction: column; }
.hero__copy { position: relative; }
.hero__textholder { display: none; will-change: transform, opacity; }
.hero__textholder.is-active { display: block; }
.hero__eyebrow { color: var(--accent-600); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent-500); }
.hero__title { font-size: clamp(2.1rem, 3.35vw, 3.3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 0 0 1.1rem; color: var(--ink); max-width: 20ch; }
.hero__text { font-size: clamp(.98rem, 1.15vw, 1.12rem); line-height: 1.55; color: var(--body); max-width: 42ch; margin: 0 0 1.7rem; }
.hero__cta { margin-bottom: 0; }
.hero__controls { margin-top: auto; padding-bottom: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: .9rem; }
.hero__thumbs { display: flex; align-items: center; gap: .9rem; }
.hero__arrow {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--brand-300);
  background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background .2s, color .2s, border-color .2s;
}
.hero__arrow .ico { width: 18px; height: 18px; }
.hero__arrow:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.hero__strip { display: flex; gap: .55rem; flex: 1; max-width: 470px; }
.hero__thumb {
  position: relative; flex: 0 0 152px; height: 74px; padding: 0; border: 0; cursor: pointer;
  background: var(--surface-3); overflow: hidden; opacity: .55; transition: opacity .25s, outline-color .25s;
  outline: 2px solid transparent; outline-offset: 2px;
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(19, 18, 48, .25); transition: opacity .2s; }
.hero__thumb:hover { opacity: .85; }
.hero__thumb.is-active { opacity: 1; outline-color: var(--accent-500); }
.hero__thumb.is-active::after { opacity: 0; }
.hero__pause {
  width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; align-self: flex-start; margin-left: 2px;
}
.hero__pause .ico { width: 15px; height: 15px; }
.hero__pause:hover { color: var(--accent-600); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink); background: var(--surface);
  transition: background .2s, color .2s, border-color .2s;
}
.hero__scroll .ico { width: 18px; height: 18px; }
.hero__scroll:hover { background: var(--accent-500); color: var(--btn-ink); border-color: var(--accent-500); }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; z-index: 5; background: rgba(19, 18, 48, .08); }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--accent-500); }
.hero__progress span.is-running { animation: heroProgress var(--hero-delay, 7s) linear forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-48px); } }
@keyframes heroInLeft { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }

.hero__textholder.is-leaving { display: block; animation: heroOut .43s cubic-bezier(.55,0,.85,.4) forwards; }
.hero__textholder.is-entering { display: block; animation: heroInLeft .62s cubic-bezier(.2,.75,.25,1) both; }
.hero__curtain-clip {
  position: absolute; top: 0; left: 27%; width: 73%; height: 100%;
  overflow: hidden; z-index: 6; pointer-events: none;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 66% 100%);
}
.hero__curtain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700) 70%);
  transform: translateX(-100%);
  transition: transform .46s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
}
.hero__curtain::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px);
}
.hero__curtain.is-covering { transform: translateX(0); }
.hero__curtain.is-revealing { transform: translateX(100%); }
.hero__thumb { transition: opacity .25s, outline-color .25s, transform .25s; }
.hero__thumb.is-active { transform: translateY(-2px); }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Publicaciones (carrusel) ---------- */
.insights { position: relative; background: var(--surface-2); padding-block: clamp(56px, 6vw, 92px); overflow: hidden; }
.insights::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .25;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.insights__head { position: relative; text-align: center; margin-bottom: 2rem; }
.insights__title { font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 400; margin-bottom: .5rem; }
.insights__sub { color: var(--muted); margin: 0; font-size: 1.05rem; }
.insights__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.insights__filters { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.insights__filters-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.select-chip { position: relative; display: inline-flex; align-items: center; }
.select-chip select {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: .5rem 2.2rem .5rem .9rem; font-size: .82rem; font-weight: 600; cursor: pointer; border-radius: 2px;
}
.select-chip .ico { position: absolute; right: .6rem; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.insights__nav { display: flex; align-items: center; gap: .5rem; }
.insights__nav .iconbtn { border: 1px solid var(--line-strong); width: 42px; height: 42px; }
.insights__viewport { position: relative; }
.insights__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 22px; scroll-behavior: smooth;
}
.insights__track::-webkit-scrollbar { display: none; }
.insights__track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.insight-card {
  flex: 0 0 320px; scroll-snap-align: start; background: var(--surface); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.insight-card__media { position: relative; aspect-ratio: 320 / 300; overflow: hidden; background: var(--surface-3); }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.05); }
.insight-card__tag {
  position: absolute; top: 0; left: 0; background: var(--surface); color: var(--ink);
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .5rem .8rem;
}
.insight-card__body { padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.insight-card__title { font-size: 1.06rem; line-height: 1.35; margin: 0 0 .7rem; font-weight: 700; }
.insight-card__title a:hover { color: var(--accent-600); }
.insight-card__date { color: var(--muted); font-size: .76rem; margin: auto 0 0; padding-top: 1rem; }
.insight-card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-600); }
.insight-card__more .ico { width: 14px; height: 14px; }
.insights__dots { display: flex; justify-content: center; gap: .4rem; margin-top: .4rem; }
.insights__dot { width: 26px; height: 4px; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.insights__dot.is-active { background: var(--brand-700); width: 40px; }
.insights__seeall { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* ---------- Servicios en portada ---------- */
.services-home { position: relative; overflow: hidden; }
.services-home__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.services-home__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-tile {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: 1.9rem 1.7rem 1.6rem; display: flex; flex-direction: column; min-height: 262px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service-tile::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--accent-500);
  transition: height .3s var(--ease);
}
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.service-tile:hover::before { height: 100%; }
.service-tile__icon { width: 46px; height: 46px; color: var(--brand-700); margin-left: auto; margin-bottom: .9rem; }
.service-tile__icon .ico { width: 42px; height: 42px; stroke-width: 1.2; }
.service-tile__title { font-size: 1.12rem; margin: 0 0 .6rem; font-weight: 700; }
.service-tile__text { font-size: .87rem; color: var(--muted); margin: 0 0 1.2rem; }
.service-tile__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-600); }
.service-tile__more .ico { width: 14px; height: 14px; }
.services-home__media { position: relative; align-self: stretch; min-height: 520px; }
.services-home__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.services-home__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(44, 36, 92, .1), rgba(44, 36, 92, .55)); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.services-home__media-caption { position: absolute; z-index: 2; left: 2rem; bottom: 2rem; right: 2rem; color: #fff; }
.services-home__media-caption p { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.services-home__foot { margin-top: 2rem; display: flex; justify-content: flex-end; }

/* ---------- Cifras ---------- */
.stats { background: var(--brand-800); color: #fff; position: relative; overflow: hidden; }
.stats::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 55%; height: 180%;
  background: linear-gradient(160deg, rgba(22, 166, 63, .22), transparent 65%);
  transform: skewX(-18deg);
}
.stats__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.stat { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 1.4rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-size: clamp(2.4rem, 3.6vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat__value span { color: var(--accent-300); font-size: .6em; vertical-align: super; }
.stat__label { margin: .7rem 0 .25rem; font-size: .92rem; font-weight: 600; color: #fff; }
.stat__note { margin: 0; font-size: .78rem; color: var(--on-dark-soft); }

/* ---------- Bloque "Juntos, prosperamos" ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.split__media::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 46%; height: 42%; border-left: 3px solid var(--accent-500); border-bottom: 3px solid var(--accent-500); pointer-events: none; }
.split__body h2 { margin-bottom: .7rem; }
.split__body p { font-size: 1.02rem; color: var(--body); }
.split__body .btn { margin-top: .8rem; }

/* ---------- Franja de oficinas ---------- */
.offices-banner { position: relative; background: var(--surface-2); overflow: hidden; padding-block: clamp(64px, 8vw, 110px); }
.offices-banner__bg {
  position: absolute; inset: 0; opacity: .9;
  background-image: url('../media/map-pattern.svg');
  background-size: cover; background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 10%, rgba(0,0,0,.55) 60%, transparent 92%);
}
.offices-banner__inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto; }
.offices-banner h2 { font-weight: 400; }
.offices-banner p { color: var(--muted); }
.offices-banner .btn { margin-top: 1.2rem; }

/* ---------- Pie ---------- */
.site-foot { background: var(--brand-800); color: var(--on-dark-soft); padding-top: clamp(52px, 6vw, 84px); }
.site-foot__main {
  max-width: var(--shell-wide); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.5fr .9fr .9fr .9fr 1.2fr; gap: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: 3rem;
}
.foot-brand__logo img { width: 168px; height: auto; margin-bottom: 1.1rem; }
.foot-brand__text { font-size: .84rem; color: var(--on-dark-soft); max-width: 34ch; }
.foot-social { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.foot-social a {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; transition: background .2s, border-color .2s, color .2s;
}
.foot-social a:hover { background: var(--accent-500); border-color: var(--accent-500); color: var(--btn-ink); }
.foot-social .ico { width: 17px; height: 17px; }
.foot-col__title { color: #fff; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin: 0 0 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .55rem; }
.foot-col a { font-size: .85rem; color: var(--on-dark-soft); transition: color .2s; }
.foot-col a:hover { color: var(--accent-300); }
.foot-contact address { font-style: normal; display: grid; gap: .55rem; margin-bottom: 1.2rem; }
.foot-contact__line { display: flex; align-items: flex-start; gap: .55rem; font-size: .84rem; color: var(--on-dark-soft); }
.foot-contact__line .ico { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--accent-300); }
.site-foot__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  max-width: var(--shell-wide); margin-inline: auto; padding: 1.2rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot-copy { margin: 0; font-size: .78rem; color: var(--on-dark-soft); }
.foot-legal { list-style: none; display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0; padding: 0; }
.foot-legal a { font-size: .76rem; color: var(--on-dark-soft); }
.foot-legal a:hover { color: var(--accent-300); }
.foot-aviso { max-width: var(--shell-wide); margin: 0 auto; padding: 0 var(--gutter) 1.6rem; font-size: .68rem; line-height: 1.6; color: rgba(255, 255, 255, .5); }

/* ---------- Capas flotantes ---------- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  background: #232323; color: #fff; padding: .9rem var(--gutter); transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.cookies.is-visible { transform: none; }
.cookies__inner { max-width: var(--shell-wide); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookies__text { margin: 0; flex: 1 1 380px; font-size: .82rem; color: #e8e8e8; }
.cookies__text a { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; }
.cookies__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookies .btn { font-size: .72rem; padding: .72rem 1.1rem; }
.cookies .btn--ghost-light { background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.cookies .btn--ghost-light::after { background: #fff; }
.cookies .btn--ghost-light:hover { color: #232323; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: #0b1628; color: #25d366; border: 1px solid rgba(37, 211, 102, .45);
  box-shadow: 0 16px 34px -12px rgba(11, 22, 40, .7);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); background: #25d366; color: #0b1628; box-shadow: 0 22px 40px -12px rgba(11, 22, 40, .75); }
.wa-float__icon { width: 28px; height: 28px; display: grid; place-items: center; }
.wa-float__icon .ico { width: 30px; height: 30px; stroke-width: 0; fill: currentColor; }
.wa-float__text {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); border-radius: 3px; padding: .45rem .65rem;
  font-size: .74rem; font-weight: 600; white-space: nowrap; max-width: none;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
.wa-float:hover .wa-float__text, .wa-float:focus-visible .wa-float__text { opacity: 1; visibility: visible; }
.to-top {
  position: fixed; right: 18px; bottom: 78px; z-index: 85; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.to-top .ico { width: 18px; height: 18px; }

/* ---------- Diálogo de mapa ---------- */
.mapa-dialog {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto;
  padding: 0; border: 0; background: var(--surface); color: var(--body);
  box-shadow: var(--shadow-lg);
}
.mapa-dialog::backdrop { background: rgba(19, 18, 48, .6); backdrop-filter: blur(2px); }
.mapa-dialog__inner { padding: 1.6rem; overflow-y: auto; max-height: calc(100vh - 48px); }
.mapa-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mapa-dialog__eyebrow { margin: 0 0 .2rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); }
.mapa-dialog__title { font-size: 1.5rem; margin: 0; }
.mapa-dialog__address { color: var(--body); margin: .8rem 0 .6rem; }
.mapa-dialog__coords { margin: 0 0 1.1rem; }
.mapa-dialog__coords dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .2rem; }
.mapa-dialog__coords dd { margin: 0; }
.mapa-dialog__coords code { background: var(--surface-2); padding: .35rem .55rem; border: 1px solid var(--line); font-size: .85rem; }
.mapa-dialog__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.mapa-dialog__actions .btn { font-size: .72rem; padding: .7rem 1rem; }
.mapa-dialog__nota { font-size: .74rem; color: var(--muted); margin: .9rem 0 .6rem; }
.mapa-dialog__canvas iframe { width: 100%; height: 300px; border: 1px solid var(--line); margin-top: .6rem; background: var(--surface-2); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative; background: var(--surface-2); border-bottom: 1px solid var(--line);
  overflow: hidden; padding-block: clamp(36px, 5vw, 62px) clamp(46px, 7vw, 88px);
}
.page-hero__media {
  position: absolute; top: 0; right: 0; width: 52%; height: 100%;
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19, 18, 48, .45), rgba(19, 18, 48, .05) 60%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 620px; }
.page-hero__kicker { color: var(--accent-600); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem; }
.page-hero h1 { margin-bottom: .8rem; max-width: 18ch; }
.page-hero__lede { font-size: clamp(1rem, 1.25vw, 1.16rem); color: var(--body); max-width: 50ch; margin: 0; }
.page-hero--with-media { color: var(--ink); }
.page-hero--subtle .page-hero__media { width: 44%; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { max-width: 820px; margin-inline: auto; }
.page-hero--article .page-hero__inner { max-width: 820px; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero--article { padding-bottom: clamp(30px, 4vw, 48px); }
.page-hero__meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; margin-top: 1rem; }
.page-hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Migas ---------- */
.migas { padding-block: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; padding: 0; font-size: .76rem; color: var(--muted); }
.migas li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.migas li + li::before { content: "›"; color: var(--line-strong); }
.migas a:hover { color: var(--accent-600); }

/* ---------- Prosa ---------- */
.prose { max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose p { font-size: 1.02rem; line-height: 1.75; color: var(--body); }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose h4 { margin-top: 1.6rem; font-size: 1.05rem; color: var(--ink); }
.prose ul, .prose ol { color: var(--body); }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--accent-500); background: var(--surface-2); }
.prose blockquote p { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.prose blockquote footer { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.nota { font-size: .82rem !important; color: var(--muted) !important; background: var(--surface-2); border: 1px solid var(--line); padding: .8rem 1rem; }
.tabla-caja { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); }
.tabla-caja table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.tabla-caja th { text-align: left; background: var(--surface-2); color: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.tabla-caja td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.tabla-caja tr:last-child td { border-bottom: 0; }

/* ---------- Tarjetas genéricas ---------- */
.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.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(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 1.6rem;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.card__icon { width: 42px; height: 42px; color: var(--brand-700); margin-bottom: 1rem; }
[data-theme="dark"] .card__icon { color: var(--accent-300); }
.card__icon .ico { width: 38px; height: 38px; stroke-width: 1.3; }
.card__title { font-size: 1.1rem; margin: 0 0 .5rem; }
.card__text { font-size: .88rem; color: var(--muted); margin: 0; }
.card__more { margin-top: auto; padding-top: 1rem; }
.card--link:hover { color: inherit; }
.card--link .card__more { color: var(--accent-600); }

/* Servicios: listado */
.service-card { position: relative; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 210px 1fr; min-height: 190px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card__media { position: relative; overflow: hidden; background: var(--surface-3); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; }
.service-card__kicker { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .35rem; }
.service-card__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.service-card__text { font-size: .88rem; color: var(--muted); margin: 0 0 1rem; }
.service-card__more { margin-top: auto; }
.service-card__icon { position: absolute; right: 1.2rem; top: 1.2rem; width: 30px; height: 30px; color: var(--brand-300); }

/* Detalle de servicio */
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.service-detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.2rem; }
.aside-card { background: var(--surface-2); border: 1px solid var(--line); padding: 1.5rem; }
.aside-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.aside-card p { font-size: .85rem; color: var(--muted); }
.aside-card .btn { font-size: .7rem; padding: .75rem 1rem; margin-top: .4rem; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { margin: 0; border-bottom: 1px solid var(--line); }
.aside-links li:last-child { border-bottom: 0; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem 0; font-size: .85rem; color: var(--ink); }
.aside-links a:hover { color: var(--accent-600); }
.aside-links .ico { width: 14px; height: 14px; color: var(--brand-300); }
.items-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.item-card { border-top: 2px solid var(--brand-700); background: var(--surface-2); padding: 1.3rem 1.4rem; }
.item-card h3 { font-size: 1rem; margin: 0 0 .4rem; }
.item-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Industrias */
.industry-card { position: relative; display: block; overflow: hidden; background: var(--brand-800); min-height: 250px; color: #fff; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s var(--ease), opacity .3s; }
.industry-card:hover img { transform: scale(1.05); opacity: .42; }
.industry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 18, 48, .92), rgba(19, 18, 48, .25) 60%, transparent); }
.industry-card__body { position: relative; z-index: 2; padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 250px; }
.industry-card__body h3 { color: #fff; font-size: 1.08rem; margin: 0; }
.industry-card__body p { color: var(--on-dark-soft); font-size: .8rem; margin: .4rem 0 0; }
.industry-card__arrow { position: absolute; right: 1.2rem; top: 1.2rem; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; color: #fff; }
.industry-card:hover .industry-card__arrow { background: var(--accent-500); border-color: var(--accent-500); color: var(--btn-ink); }

/* Publicaciones: rejilla */
.filterbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; }
.filterbar__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filterbar .btn-link { font-size: .74rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .5rem; }
.post-card__title { font-size: 1.07rem; line-height: 1.35; margin: 0 0 .6rem; }
.post-card__excerpt { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.post-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .74rem; color: var(--muted); }
.post-card__foot .ico { width: 14px; height: 14px; }

/* Artículo */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.article-hero-img { margin: 0 0 2rem; aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-3); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.2rem; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share a, .share button { width: 38px; height: 38px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.share .ico { width: 16px; height: 16px; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.person { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--logo img { width: 46%; height: auto; object-fit: contain; }
.person__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.person__name { font-size: 1.1rem; margin: 0 0 .15rem; }
.person__role { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-600); margin: 0 0 .3rem; }
.person__area { font-size: .82rem; color: var(--muted); margin: 0 0 .8rem; }
.person__bio { font-size: .84rem; color: var(--body); margin: 0 0 1rem; }
.person__links { margin-top: auto; display: flex; gap: .8rem; flex-wrap: wrap; font-size: .76rem; }
.person__links a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); font-weight: 600; }
.person__links a:hover { color: var(--accent-600); }
.person__links .ico { width: 14px; height: 14px; }

/* Oficinas */
.office-list { display: grid; gap: 26px; }
.office-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.office-card__body { padding: 1.8rem; }
.office-card__role { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); }
.office-card__city { font-size: 1.5rem; margin: .2rem 0 .5rem; }
.office-card__address { font-size: .9rem; color: var(--body); margin: 0 0 1rem; }
.office-card__meta { display: grid; gap: .4rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.office-card__meta span { display: flex; align-items: center; gap: .45rem; }
.office-card__meta .ico { width: 15px; height: 15px; color: var(--brand-400); }
.office-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.office-card__actions .btn { font-size: .7rem; padding: .7rem 1rem; }
.office-card__media { position: relative; min-height: 240px; overflow: hidden; background: var(--surface-3); }
.office-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office-card__coords { position: absolute; left: .8rem; bottom: .8rem; background: rgba(19, 18, 48, .82); color: #fff; font-size: .7rem; padding: .3rem .5rem; z-index: 2; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-line { display: flex; gap: .8rem; align-items: flex-start; }
.contact-line__icon { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-600); }
.contact-line__icon .ico { width: 18px; height: 18px; }
.contact-line dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-line dd { margin: .1rem 0 0; font-size: .92rem; color: var(--ink); }
.contact-line dd a:hover { color: var(--accent-600); }

/* Formulario */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field > label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.field .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); padding: .8rem .9rem; outline: none; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-50); }
.field textarea { min-height: 150px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: .6rem; }
.field--check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.field--check label { font-size: .82rem; font-weight: 400; color: var(--body); letter-spacing: 0; }
.field__hint { font-size: .74rem; color: var(--muted); }
.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__note { font-size: .74rem; color: var(--muted); margin: 0; }
.form-message { padding: 1rem 1.2rem; border-left: 3px solid var(--accent-500); background: var(--accent-50); color: var(--accent-700); font-size: .9rem; margin-bottom: 1.2rem; }
[data-theme="dark"] .form-message { background: rgba(22, 166, 63, .12); color: var(--accent-300); }
.form-message--error { border-color: #b3261e; background: #fdecea; color: #8c1d18; }

/* Acordeón */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--ink);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary .ico { width: 18px; height: 18px; transition: transform .2s; color: var(--accent-600); }
.accordion__item[open] summary .ico { transform: rotate(45deg); }
.accordion__body { padding: 0 0 1.2rem; color: var(--body); font-size: .92rem; }

/* CTA banda */
.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand-700)); color: #fff; padding-block: clamp(44px, 6vw, 76px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -6%; top: -40%; width: 40%; height: 180%; background: linear-gradient(160deg, rgba(22, 166, 63, .28), transparent 70%); transform: skewX(-16deg); }
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-weight: 500; }
.cta-band p { color: var(--on-dark-soft); margin: .4rem 0 0; max-width: 60ch; }

/* Eventos */
.event-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); }
.event-card__date { text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; }
.event-card__day { font-size: 2.2rem; font-weight: 800; color: var(--brand-700); line-height: 1; }
[data-theme="dark"] .event-card__day { color: var(--accent-300); }
.event-card__month { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-card__title { font-size: 1.12rem; margin: 0 0 .4rem; }
.event-card__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.event-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.event-card__meta .ico { width: 14px; height: 14px; }
.event-card__cta { justify-self: end; }

/* Buscador */
.search-page .searchbar--page { border: 1px solid var(--line); padding: 1rem; margin-bottom: 2rem; }
.search-page .searchbar__form { max-width: none; }
.search-results { display: grid; gap: 1rem; }
.search-result { display: grid; gap: .25rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.search-result:hover { border-color: var(--accent-500); transform: translateX(3px); }
.search-result__type { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); }
.search-result__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0; }
.search-result__text { font-size: .85rem; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip { border: 1px solid var(--line-strong); padding: .45rem .8rem; font-size: .78rem; color: var(--ink); background: var(--surface); }
a.chip:hover, .chip:hover { border-color: var(--accent-500); color: var(--accent-600); }

/* Mapa del sitio */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.sitemap-col h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; }
.sitemap-col li { margin: 0 0 .45rem; }
.sitemap-col a { font-size: .9rem; color: var(--ink); }
.sitemap-col a:hover { color: var(--accent-600); }

/* ---------- Transparencia ---------- */
.trans-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.trans-hero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 45%; height: 170%; background: linear-gradient(160deg, rgba(22, 166, 63, .14), transparent 70%); transform: skewX(-18deg); }
.trans-hero__inner { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 76px); max-width: 900px; }
.trans-hero h1 { max-width: 22ch; }
.trans-ficha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.trans-ficha dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .25rem; }
.trans-ficha dd { margin: 0; font-size: .88rem; color: var(--ink); font-weight: 500; }
.trans-switch { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; background: var(--brand-800); color: #fff; margin-top: -1px; }
.trans-switch__text { min-width: 240px; }
.trans-switch__label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-300); margin: 0 0 .2rem; font-weight: 700; }
.trans-switch__state { margin: 0; font-size: .88rem; color: var(--on-dark-soft); }
.trans-switch .btn { flex: none; }
.trans-view { padding-top: 2.4rem; }
.trans-view[hidden] { display: none; }
.trans-view__title { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .7rem; }
.trans-view__intro { font-size: 1.02rem; color: var(--body); max-width: 76ch; }
.trans-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 2rem 0; }
.trans-card { border: 1px solid var(--line); background: var(--surface); padding: 1.5rem; position: relative; }
.trans-card__num { font-size: .78rem; font-weight: 800; color: var(--accent-500); letter-spacing: .1em; margin: 0 0 .4rem; }
.trans-card h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.trans-card p { font-size: .88rem; color: var(--body); margin: 0; }
.trans-quote { margin: 2rem 0; padding: 1.6rem 1.8rem; background: var(--brand-50); border-left: 3px solid var(--accent-500); }
.trans-quote p { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin: 0 0 .4rem; }
.trans-quote footer { font-size: .78rem; color: var(--muted); }
.trans-block { margin: 2rem 0; }
.trans-block h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.trans-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.trans-check li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--body); margin: 0; }
.trans-check .ico { width: 18px; height: 18px; color: var(--accent-600); flex: none; margin-top: .15rem; }
.trans-indice { border: 1px solid var(--line); background: var(--surface-2); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.trans-indice p { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; font-weight: 700; }
.trans-indice ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.trans-indice li { margin-bottom: .3rem; font-size: .86rem; }
.trans-indice a { color: var(--ink); }
.trans-indice a:hover { color: var(--accent-600); }
.trans-doc { max-width: 78ch; }
.trans-seccion { padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.trans-seccion__cab { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.trans-seccion__num { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-weight: 800; font-size: .85rem; }
.trans-seccion h3 { margin: .2rem 0 0; font-size: 1.25rem; }
.trans-seccion h4 { font-size: 1rem; margin: 1.4rem 0 .4rem; color: var(--ink); }
.trans-seccion p, .trans-seccion li { font-size: .94rem; }
.trans-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.trans-cierre { margin-top: 2.6rem; padding: 1.8rem; background: var(--surface-2); border: 1px solid var(--line); }
.trans-cierre h3 { margin-bottom: .5rem; }
.trans-cierre p { font-size: .92rem; color: var(--body); }
.trans-print-note { display: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 6rem; }
.error-page__code { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: var(--brand-100); line-height: 1; letter-spacing: -.05em; }
[data-theme="dark"] .error-page__code { color: var(--brand-700); }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  :root { --header-h: 84px; }
  .topbar__lema { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .mega__inner { grid-template-columns: 280px minmax(0, 1fr) 280px; }
  .mega__links { columns: 1; }
  .mega__links--grid { columns: 2; }
  .site-foot__main { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-contact { grid-column: 1 / -1; }
  .foot-contact address { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .mainnav { justify-content: flex-end; }
  .mainnav__list { display: none; }
  .masthead__burger { display: inline-grid; }
  .masthead__search { display: inline-grid; }
  .brand img { height: auto; width: 220px; max-height: none; }
  .mega { display: none; }
  .hero { height: auto; min-height: 0; }
  .hero__stage { position: absolute; inset: 0; }
  .hero__inner { min-height: 620px; padding-bottom: 8px; }
  .hero__content { width: 100%; max-width: 660px; padding-top: 80px; }
  .hero__slide-media { width: 100%; clip-path: none; }
  .hero__curtain-clip { left: 0; width: 100%; clip-path: none; }
  .hero__slide-media::after { background: linear-gradient(185deg, rgba(19, 18, 48, .72) 0%, rgba(19, 18, 48, .45) 38%, rgba(19, 18, 48, .82) 100%); }
  .hero__accent { display: none; }
  .hero__inner { position: relative; z-index: 3; }
  .hero__title, .hero__text { color: #fff; }
  .hero__title { max-width: 22ch; }
  .hero__eyebrow { color: var(--accent-300); }
  .hero__thumb { border: 1px solid rgba(255, 255, 255, .25); }
  .hero__arrow { border-color: rgba(255, 255, 255, .5); color: #fff; }
  .hero__pause { color: rgba(255, 255, 255, .7); }
  .hero__scroll { display: none; }
  .services-home__layout { grid-template-columns: 1fr; }
  .services-home__media { min-height: 320px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--3, .post-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 10; }
  .page-hero__media { width: 60%; opacity: .55; }
  .page-hero__inner { max-width: 100%; }
  .office-card { grid-template-columns: 1fr; }
  .office-card__media { min-height: 200px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 90px minmax(0, 1fr); }
  .event-card__cta { grid-column: 2; justify-self: start; }
  .trans-ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trans-cards { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-home__grid { gap: 14px; }
  .service-card { grid-template-columns: 150px 1fr; }
  .items-grid { grid-template-columns: 1fr; }
  .cookies__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --header-h: 76px; --topbar-h: 44px; }
  .topbar__nav { display: none; }
  .topbar__inner { padding-inline: var(--gutter); justify-content: space-between; }
  .topbar__tools { margin-left: auto; }
  .topbar__cta { padding-inline: 1rem; font-size: .7rem; letter-spacing: .04em; }
  .brand img { height: auto; width: 180px; max-height: none; }
  .hero__inner { min-height: 620px; }
  .hero__content { padding-top: 56px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__strip { max-width: none; }
  .hero__thumb { flex-basis: 104px; height: 58px; }
  .hero__arrow { width: 34px; height: 34px; }
  .hero__controls { padding-bottom: 24px; gap: .6rem; }
  .grid--2, .grid--3, .grid--4, .post-grid, .team-grid { grid-template-columns: 1fr; }
  .services-home__grid { grid-template-columns: 1fr; }
  .service-tile { min-height: 0; }
  .service-detail__aside, .article-aside { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card__media { aspect-ratio: 16 / 8; }
  .form__row { grid-template-columns: 1fr; }
  .site-foot__main { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .foot-contact address { grid-template-columns: 1fr; }
  .site-foot__bottom { flex-direction: column; align-items: flex-start; }
  .trans-indice ol { columns: 1; }
  .trans-ficha { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; gap: .8rem; }
  .event-card__date { display: flex; align-items: baseline; gap: .5rem; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .6rem; text-align: left; }
  .event-card__cta { grid-column: 1; }
  .insights__bar { align-items: flex-start; }
  .insights__nav { display: none; }
  .article-hero-img { aspect-ratio: 16 / 10; }
  .cookies { padding: .7rem .85rem; max-height: 72vh; overflow-y: auto; }
  .cookies__inner { gap: .55rem; }
  .cookies__text { flex: none; font-size: .68rem; line-height: 1.42; color: #e2e2e2; }
  .cookies__text a { text-underline-offset: 2px; }
  .cookies__actions { width: 100%; gap: .4rem; margin-top: .15rem; }
  .cookies__actions .btn { flex: 1 1 0; font-size: .62rem; padding: .55rem .4rem; letter-spacing: .02em; }
  .wa-float__text { display: none; }
  .wa-float { width: 48px; height: 48px; }
  .to-top { bottom: 70px; right: 14px; }
}

@media (max-width: 480px) {
  .topbar__cta { display: none; }
  .topbar__inner { justify-content: flex-end; gap: .6rem; }
  .hero__thumbs { gap: .5rem; }
  .hero__thumb { flex-basis: 80px; height: 50px; }
  .hero__arrow { display: none; }
  .page-hero { padding-bottom: 34px; }
  .page-hero__media { width: 100%; opacity: .28; clip-path: none; }
  .insights__filters { width: 100%; }
  .select-chip { flex: 1; }
  .select-chip select { width: 100%; }
  .site-foot__main { grid-template-columns: 1fr; }
}

/* ---------- Ultra ancho ---------- */
@media (min-width: 1800px) {
  :root { --shell: 1560px; --shell-wide: 1800px; --header-h: 100px; }
  body { font-size: 17px; }
  .topbar__inner { font-size: .86rem; }
  .mainnav__link { font-size: 1rem; }
  .brand img { height: auto; width: 400px; max-height: none; }
  .hero { height: 900px; }
  .hero__content { width: min(38vw, 620px); }
  .hero__title { font-size: clamp(3rem, 3.4vw, 3.9rem); }
  .hero__text { font-size: 1.22rem; }
  .hero__thumb { flex-basis: 152px; height: 74px; }
  .insight-card { flex-basis: 360px; }
  .service-tile { min-height: 280px; }
  .section { padding-block: 112px; }
}

/* ---------- Impresión ---------- */
@media print {
  .topbar, .masthead, .site-foot, .cookies, .wa-float, .to-top, .trans-switch,
  .trans-actions, .migas, .hero__scroll, .hero__progress, .page-hero__media { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .trans-view[hidden] { display: block !important; }
  .trans-hero, .section, .trans-seccion { padding: 0 !important; border: 0 !important; }
  a { text-decoration: underline; color: #000; }
  .trans-seccion { break-inside: avoid; }
}

/* Las animaciones se mantienen siempre visibles: la preferencia del sistema
   no debe apagar la secuencia del carrusel ni los menús. */

/* ---------- Ajustes de componentes ---------- */
.hero__strip { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hero__strip::-webkit-scrollbar { display: none; }
.hero__thumb { scroll-snap-align: start; }
.insights__track { cursor: grab; }
.card__num { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--accent-600); margin: 0 0 .4rem; }
.accent { display: inline-flex; color: var(--accent-600); }
.chip[aria-current="true"] { border-color: var(--accent-500); background: var(--accent-50); color: var(--accent-700); font-weight: 700; }
[data-theme="dark"] .chip[aria-current="true"] { background: rgba(22, 166, 63, .16); color: var(--accent-300); }

.trans-tabs { display: flex; gap: .25rem; background: rgba(255, 255, 255, .1); padding: .3rem; flex: none; }
.trans-tab {
  background: transparent; border: 0; color: #fff; cursor: pointer; padding: .65rem 1.05rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  opacity: .72; transition: background .2s, color .2s, opacity .2s; white-space: nowrap;
}
.trans-tab:hover { opacity: 1; }
.trans-tab.is-active { background: #fff; color: var(--brand-800); opacity: 1; }
.trans-tab:focus-visible { outline-color: #fff; }

.trans-view h2:focus { outline: none; }
.trans-doc .tabla-caja { font-size: .82rem; }
.trans-doc .tabla-caja td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.trans-page .chips { margin-top: .6rem; }

.office-card__meta code { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line); padding: .1rem .3rem; }
.search-result__title { display: block; }

/* Página de servicio: iconos de lista */
.trans-check .ico { flex: none; }

@media (max-width: 720px) {
  .trans-switch { align-items: flex-start; }
  .trans-tabs { width: 100%; }
  .trans-tab { flex: 1; padding-inline: .4rem; }
}

@media print {
  .trans-page #trans-resumen { display: none !important; }
  .trans-page #trans-detalle { display: block !important; }
  .trans-page .trans-print-note { display: block; }
}

/* Control de pausa del héroe */
.hero__pause .ico-play { display: none; }
.hero__pause[aria-pressed="true"] .ico-pausa { display: none; }
.hero__pause[aria-pressed="true"] .ico-play { display: block; }
.hero__pause span { display: inline-flex; }
/* Mega menú: enlace al servicio completo */
.mega__panel-all {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.mega__panel-all .ico { width: 14px; height: 14px; }
.mega__panel-all:hover { color: var(--accent-600); border-color: var(--accent-500); }
.mega__promo .btn { white-space: nowrap; }
/* Detalles de interacción */
.drawer .iconbtn:focus-visible, .mapa-dialog .iconbtn:focus-visible { outline-width: 2px; outline-offset: 1px; }
.mapa-dialog__canvas:empty::before {
  content: "El mapa se carga aquí cuando lo solicite.";
  display: grid; place-items: center; height: 300px; margin-top: .6rem;
  border: 1px dashed var(--line-strong); color: var(--muted); font-size: .8rem; text-align: center; padding: 1rem;
}

/* ---------- Suavizado general ---------- */
main { animation: pageIn .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .38s ease, color .38s ease, border-color .38s ease,
              fill .38s ease, stroke .38s ease, box-shadow .38s ease !important;
}

.page-hero__media img { animation: mediaIn 1.3s cubic-bezier(.22,.61,.36,1) both; }
@keyframes mediaIn { from { transform: scale(1.06); } to { transform: scale(1); } }

.searchbar:not([hidden]) { animation: fadeDown .3s cubic-bezier(.22,.61,.36,1) both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mapa-dialog[open] { animation: dialogIn .3s cubic-bezier(.22,.61,.36,1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

.office-card__media img,
.person__photo img { transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.office-card:hover .office-card__media img,
.person:hover .person__photo img { transform: scale(1.045); }
.office-card, .person, .event-card, .trans-card, .search-result { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.office-card:hover, .event-card:hover, .trans-card:hover { box-shadow: var(--shadow-md); }
.trans-card:hover { transform: translateY(-2px); }

/* Subrayado que se escribe de izquierda a derecha en enlaces secundarios */
.foot-col a, .foot-legal a, .aside-links a, .contact-line a, .migas a, .office-card__meta a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .3s cubic-bezier(.4,0,.2,1), color .2s ease;
}
.foot-col a:hover, .foot-legal a:hover, .aside-links a:hover,
.contact-line a:hover, .migas a:hover, .office-card__meta a:hover { background-size: 100% 1px; }

/* Acordeones del cajón y detalles */
.drawer__group[open] > ul,
.drawer__group[open] > .drawer__subgroup { animation: fadeDown .25s ease both; }

/* Cambio de tema: pequeños giros de los iconos */
.theme-ico { transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease; }
[data-theme="dark"] .theme-ico--moon { transform: rotate(0deg); }
.theme-ico--sun { transform: rotate(0deg); }
[data-theme="dark"] .theme-ico--sun { transform: rotate(90deg); }

/* Enlaces del menú principal: subrayado que crece */
.mainnav__link { position: relative; }
.mainnav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--accent-500); transition: width .3s cubic-bezier(.4,0,.2,1);
}
.mainnav__link:hover::after, .mainnav__item.is-active .mainnav__link::after { width: 100%; }
.mainnav__link { border-bottom-color: transparent !important; }


/* Mega menú en pantallas ultra wide: centrado, no pegado a la izquierda */
@media (min-width: 1700px) {
  .mega {
    left: 50%; right: auto; transform: translateX(-50%);
    width: min(80vw, 1320px);
  }
}

@media (min-width: 1700px) {
  .mega.is-open { animation: none; }
}
