:root {
  color-scheme: light;
  --paper: #f6f7fc;
  --ink: #11182c;
  --muted: #515a70;
  --accent: #422bce;
  --line: #dfe2ef;
  --head: Geist, Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
img { display: block; width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--head); }
h1 { font-size: clamp(3.5rem, 6.6vw, 6.4rem); font-weight: 700; line-height: .98; letter-spacing: -.085em; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.55rem, 4.6vw, 4.5rem); font-weight: 650; line-height: 1; letter-spacing: -.065em; }
h3 { letter-spacing: -.033em; line-height: 1.18; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-150%); background: white; padding: 8px 16px; z-index: 2; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid #6854eb; outline-offset: 4px; }
.top { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font: 750 1.55rem/1 var(--head); letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.period { color: var(--accent); }
.mark { position: relative; display: inline-block; width: 29px; height: 29px; margin-right: 8px; border-radius: 8px; background: var(--accent); }
.mark::before, .mark::after { content: ""; position: absolute; width: 8px; height: 13px; border: 2px solid #fff; border-radius: 4px; transform: rotate(37deg); }
.mark::before { top: 5px; left: 7px; }
.mark::after { top: 8px; left: 12px; }
nav { display: flex; align-items: center; gap: 31px; font-size: .94rem; font-weight: 700; }
nav > a { text-decoration: none; }
nav > a:hover:not(.button) { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; font: 700 .94rem/1.35 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: #3420ab; }
.button.compact { min-height: 40px; padding: 8px 13px; background: var(--ink); }
.button.compact:hover { background: var(--accent); }
.hero { min-height: 610px; padding-block: 46px 66px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 32px; }
.hero-copy { padding-block: 30px; }
.eyebrow { color: var(--accent); font: 750 .73rem/1.5 var(--body); letter-spacing: .11em; margin-bottom: 16px; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8877ff; margin-right: 7px; }
.intro { max-width: 510px; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.actions { margin-top: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 21px; }
.secondary { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.secondary:hover { color: var(--accent); }
.hero-image { background: #cbd9fa; border-radius: 22px; overflow: hidden; }
.hero-image img { height: auto; aspect-ratio: 1.03; object-fit: cover; object-position: center; }
.services { padding-block: 57px 90px; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 22px; margin-bottom: 33px; }
.section-head > p { max-width: 355px; justify-self: end; color: var(--muted); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.service img { object-fit: cover; height: auto; aspect-ratio: 1.72; background: #e2e4f9; }
.card-body { padding: 21px 22px 25px; }
.card-body h3 { font-size: 1.37rem; }
.card-body p { margin-top: 7px; color: var(--muted); font-size: .95rem; }
.card-body .benefit { color: var(--ink); font-weight: 700; margin-top: 12px; }
.approach { background: #16152d; color: #fff; }
.approach-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8%; padding-block: 82px; }
.approach .eyebrow { color: #bcb2ff; }
.approach p:not(.eyebrow) { color: #d3d2e2; margin-top: 14px; }
.approach ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.approach li { display: grid; grid-template-columns: 36px 1fr; gap: 15px; padding: 17px 0; border-top: 1px solid #414057; counter-increment: step; }
.approach li::before { content: "0" counter(step); color: #bcb2ff; font: 650 .9rem/1.5 var(--head); }
.approach li h3 { font-size: 1.28rem; }
.approach li p:not(.eyebrow) { margin-top: 4px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-block: 85px; align-items: start; }
.contact > div > p:not(.eyebrow) { color: var(--muted); margin-top: 17px; max-width: 365px; }
form, .form-success { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 14px; }
form label { display: block; font-weight: 700; margin-bottom: 5px; }
form label:not(:first-child) { margin-top: 13px; }
form input, form textarea { width: 100%; padding: 10px 12px; border: 1px solid #bfc5d8; border-radius: 6px; color: var(--ink); font: inherit; background: #fafafd; }
form textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: .82rem; margin-block: 9px 13px; }
.error { color: #9a1e30; font-weight: 700; }
.form-success h3 { font-size: 1.5rem; }
.form-success .secondary { margin-top: 12px; }
.footer { border-top: 1px solid var(--line); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; }
.footer .brand { color: var(--ink); }

@media (max-width: 1030px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: auto; gap: 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .top { height: 65px; }
  nav { gap: 15px; }
  nav > a:not(.button) { display: none; }
  h1 { font-size: clamp(2.75rem, 9.6vw, 4.2rem); }
  .hero, .section-head, .approach-inner, .contact { grid-template-columns: 1fr; }
  .hero { padding-block: 28px 34px; }
  .hero-copy { padding-block: 12px 0; }
  .hero-image img { aspect-ratio: 1.25; }
  .services, .approach-inner, .contact { padding-block: 47px; }
  .section-head > p { justify-self: start; }
  .approach-inner, .contact { gap: 24px; }
  .footer { flex-wrap: wrap; }
}

@media (max-width: 500px) {
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Display preferences and sticky navigation */
:root {
  --surface: #fff;
  --field: #fafafd;
  --field-line: #bfc5d8;
  --control-text: #4931a5;
  --control-border: #ded7f2;
  --control-hover: #f0edfc;
  --focus: #6854eb;
  --button: #422bce;
  --button-hover: #3420ab;
  --nav-cta: #11182c;
  --error: #9a1e30;
  --font-scale: 1;
  --header-height: 84px;
}

:root[data-font="1"] { font-size: 112.5%; --font-scale: 1.125; }
:root[data-font="2"] { font-size: 125%; --font-scale: 1.25; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101020;
  --ink: #f1effd;
  --muted: #c1bed6;
  --accent: #bcb0ff;
  --line: #34324b;
  --surface: #19192d;
  --field: #131326;
  --field-line: #615c7b;
  --control-text: #d5cbff;
  --control-border: #534775;
  --control-hover: #30274d;
  --focus: #baabff;
  --button: #654be4;
  --button-hover: #543bd3;
  --nav-cta: #513ac0;
  --error: #ff9faa;
}

html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { font-size: 1rem; }
h1 { font-size: clamp(3.25rem, calc(6.25vw * var(--font-scale)), 6.15rem); }
h2 { font-size: clamp(2.55rem, calc(4.6vw * var(--font-scale)), 4.5rem); }
.intro { font-size: clamp(1rem, calc(1.7vw * var(--font-scale)), 1.18rem); }
[lang="es"] h1 { letter-spacing: -.07em; }
:focus-visible { outline-color: var(--focus); }
.skip { background: var(--surface); z-index: 20; }
.mark, .button { background: var(--button); }
.button:hover, .button.compact:hover { background: var(--button-hover); }
.button.compact { background: var(--nav-cta); }
.service, form, .form-success { background: var(--surface); }
form input, form textarea { background: var(--field); border-color: var(--field-line); }
.error { color: var(--error); }

.top { position: sticky; inset-block-start: 0; z-index: 10; height: auto; display: block; background: var(--paper); }
.top-primary { display: contents; }
.top-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: clamp(12px, 1.8vw, 26px); min-height: 83px; padding-block: 10px; }
.top nav { justify-content: flex-end; gap: clamp(10px, 1.5vw, 24px); }
.display-controls { display: flex; align-items: center; gap: 6px; }
.display-control { display: inline-flex; align-items: center; justify-content: center; gap: .22em; padding: .22em .43em; min-height: 46px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); color: var(--control-text); font: 700 24px/1.2 Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.display-control:hover { background: var(--control-hover); }
.theme-icon { inline-size: .8em; block-size: .8em; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); flex: none; }

@media (max-width: 1100px) {
  .top-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; min-height: 0; }
  .top nav { grid-column: 1 / -1; justify-content: flex-start; }
  .top nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 40px; }
  .top .button.compact { margin-inline-start: auto; }
}
@media (max-width: 700px) {
  .top, .top-inner { display: contents; }
  .top-primary {
    position: sticky;
    inset-block-start: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .top .brand { font-size: clamp(16px, 4.7vw, 22px); }
  .top .mark { transform: scale(.76); transform-origin: left center; margin-inline-end: 0; }
  .display-controls { gap: 4px; }
  .display-control { min-width: 44px; min-height: 44px; font-size: clamp(14px, 4vw, 18px); }
  .top nav {
    gap: 10px;
    padding: 3px 12px 7px;
    border-bottom: 1px solid var(--line);
    font-size: .82rem;
  }
  .top .button.compact { gap: 6px; padding-inline: 9px; font-size: inherit; }
  h1 { font-size: clamp(2.4rem, calc(9.2vw * var(--font-scale)), 4rem); }
  h2 { font-size: clamp(1.85rem, calc(7.2vw * var(--font-scale)), 3.2rem); line-height: 1.08; }
  h1, h2, h3 { text-wrap: balance; }
  .section-head h2 br { display: none; }
  .eyebrow { margin-bottom: 12px; letter-spacing: .09em; }
}

/* News archive, article, and homepage feature */
.top nav { flex-wrap: wrap; }
.top nav > a { white-space: nowrap; }
.top nav a[aria-current="page"] { color: var(--accent); }
.hero-news { min-width: 0; }
.news-kicker { display: inline-block; margin-bottom: 10px; color: var(--accent); font-weight: 700; text-underline-offset: .2em; }
.news-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(16px, 2.8vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.news-media { width: 100%; height: auto; border-radius: 10px; object-fit: cover; }
.news-card-title { font-size: clamp(1.5rem, 2.9vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.news-card-title a { text-decoration: none; }
.news-card-title a:hover { text-decoration: underline; text-underline-offset: .12em; }
.news-date { color: var(--muted); font-size: .87rem; }
.news-summary, .news-intro { color: var(--muted); }
.news-page { padding-block: clamp(32px, 5vw, 66px); }
.news-page h1 { font-size: clamp(2.4rem, 6vw, 5rem); text-wrap: balance; }
.news-intro { margin-top: 15px; font-size: 1.15rem; }
.news-archive { display: grid; gap: 24px; margin-top: 28px; }
.news-archive .news-media { order: -2; max-width: 760px; margin-inline: auto; }
.news-archive .news-date { order: -1; }
.news-detail { max-width: 830px; margin-inline: auto; }
.news-detail > * + *, .news-copy p + p { margin-top: 18px; }
.news-detail .news-date { display: block; }
.news-detail .news-summary { font-size: 1.15rem; }
.news-copy { max-width: 66ch; }
.news-pagination { margin-top: 24px; flex-wrap: wrap; }


.news-copy h2 { margin-block: 1.25em .45em; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.03em; }

.news-meta { color: var(--muted); font-size: .87rem; line-height: 1.6; margin-top: .5rem; }
.news-meta time { display: inline; }
.news-relative { font-weight: 700; color: #000; }
.news-relative[data-age="today"] { color: #c62828; }
.news-relative[data-age="yesterday"] { color: #1565c0; }
