@font-face{font-family:'Noto Sans';font-style:normal;font-weight:400;font-display:swap;src:url('noto-sans-400.woff2') format('woff2')}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:600;font-display:swap;src:url('noto-sans-600.woff2') format('woff2')}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:700;font-display:swap;src:url('noto-sans-700.woff2') format('woff2')}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:600;font-display:swap;src:url('noto-serif-600.woff2') format('woff2')}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:700;font-display:swap;src:url('noto-serif-700.woff2') format('woff2')}

picture{display:contents}
img{height:auto}

:root {
  --bg:        oklch(97.5% 0.006 235);
  --surface:   oklch(100% 0 0);
  --fg:        oklch(23% 0.032 250);
  --muted:     oklch(52% 0.022 245);
  --border:    oklch(89% 0.010 240);
  --accent:    oklch(52% 0.135 250);
  --accent-2:  oklch(66% 0.105 205);
  --navy:      oklch(28% 0.055 255);
  --sand:      oklch(80% 0.075 75);

  --font-display: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Noto Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius:  10px;
  --radius-lg: 16px;
  --shadow:  0 1px 2px oklch(23% 0.03 250 / .06), 0 8px 24px oklch(23% 0.03 250 / .07);
  --shadow-lg: 0 8px 30px oklch(23% 0.03 250 / .18);
  --container: 1240px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--fg); text-wrap: balance; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(99% 0.004 240 / .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; }
.brand-text span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 9px 13px; border-radius: 999px;
  color: var(--fg); font-size: .92rem; font-weight: 600;
}
.nav a:hover { background: oklch(52% 0.135 250 / .09); text-decoration: none; color: var(--accent); }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--fg); margin: 0 auto; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: clamp(460px, 78vh, 720px);
  display: flex; align-items: flex-end;
  background: var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url('../images/hero-fondo.jpg');
  background-image: image-set(url('../images/hero-fondo.webp') type('image/webp'), url('../images/hero-fondo.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 38%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, oklch(28% 0.055 255 / .35) 0%, oklch(24% 0.06 255 / .72) 55%, oklch(20% 0.055 255 / .92) 100%);
}
.hero-inner { padding-block: clamp(40px, 7vh, 90px); max-width: 900px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.5rem); margin: .35em 0 .3em; }
.hero .tagline { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: oklch(92% 0.02 230); margin: 0 0 1.4em; max-width: 46ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8em; padding: 0; list-style: none; }
.hero-chips li {
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  background: oklch(100% 0 0 / .12); border: 1px solid oklch(100% 0 0 / .22);
  padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: oklch(46% 0.14 250); }
.btn-ghost { background: oklch(100% 0 0 / .1); color: #fff; border-color: oklch(100% 0 0 / .35); }
.btn-ghost:hover { background: oklch(100% 0 0 / .2); }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: .25em 0 .35em; }
.section-head p { color: var(--muted); margin: 0; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: oklch(33% 0.03 250); }
.prose p { margin: 0 0 1.1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 22px 24px; }
.fact dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }

.board-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.board { columns: 4; column-gap: 16px; }
.board-item { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.board-item[hidden] { display: none; }
.board-item .board-fig { margin: 0; position: relative; display: block; }
.board-item img { width: 100%; height: auto; transition: transform .5s ease; }
.board-item button.board-open {
  all: unset; display: block; width: 100%; cursor: zoom-in;
}
.board-item:hover img { transform: scale(1.04); }
.board-item .board-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; display: block;
  background: linear-gradient(180deg, transparent, oklch(20% 0.05 255 / .85));
  color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.board-item .board-cap span { display: block; font-weight: 400; opacity: .8; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.news-item h3 { font-size: 1.12rem; margin: 0 0 6px; }
.news-item h3 a { color: var(--fg); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.chip { background: oklch(52% 0.135 250 / .09); color: var(--accent); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.news-item p { margin: 0; color: oklch(38% 0.03 250); font-size: .95rem; }

.news-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.news-thumb {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--border);
  cursor: zoom-in; font: inherit; appearance: none; aspect-ratio: 4 / 3;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-thumb:hover img { transform: scale(1.06); }
.news-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-media--single { grid-template-columns: 1fr; }
.news-media--single .news-thumb { max-width: 190px; aspect-ratio: 3 / 4; }

.news-video {
  position: relative; display: block; width: 100%; margin-top: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--navy); aspect-ratio: 16 / 9;
}
.news-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s ease; }
.news-video:hover img { opacity: 1; }
.news-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-video .video-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: oklch(100% 0 0 / .92); box-shadow: var(--shadow); display: grid; place-items: center;
}
.news-video .video-play::after {
  content: ""; width: 0; height: 0;
  border-left: 16px solid var(--accent);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.news-video:hover .video-play { background: #fff; }

.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.doc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.doc-card img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.doc-card > span { display: block; }
.doc-card .doc-body { flex: 1 1 auto; }
.doc-card[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.doc-card .doc-title { display: block; font-weight: 700; color: var(--fg); font-size: 1rem; }
.doc-card .doc-type { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.doc-card .doc-arrow { margin-left: auto; color: var(--accent); font-size: 1.3rem; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font: inherit; color: var(--fg);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: oklch(52% 0.135 250 / .09); color: var(--accent); font-weight: 600; }
.form-msg.is-visible { display: block; }

.contact-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.contact-aside h3 { margin: 0 0 16px; font-size: 1.2rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 3px; }
.contact-aside dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }

.site-footer { background: var(--navy); color: oklch(88% 0.02 240); padding-block: clamp(40px, 5vw, 64px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .footer-heading { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; font-size: .92rem; color: oklch(80% 0.02 240); }
.site-footer a { color: oklch(85% 0.06 205); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid oklch(100% 0 0 / .14); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; color: oklch(72% 0.02 240); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social img { width: 20px; height: 20px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: oklch(15% 0.03 255 / .92); padding: 4vh 4vw;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  border: 1px solid oklch(100% 0 0 / .3); background: transparent; color: #fff;
  border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lightbox-caption { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .85; }

.page-hero { background: var(--navy); color: #fff; padding-block: clamp(44px, 6vw, 76px); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: .2em 0 0; }
.page-hero p { color: oklch(86% 0.02 235); max-width: 60ch; margin: .8em 0 0; }
.breadcrumb { font-size: .82rem; color: oklch(78% 0.03 230); }
.breadcrumb a { color: oklch(85% 0.06 205); }

@media (max-width: 1080px) {
  .board { columns: 3; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 10px; gap: 2px; }
  .nav a { display: block; padding: 12px 14px; border-radius: var(--radius); }
  .news { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .board { columns: 2; }
}
@media (max-width: 520px) {
  .board { columns: 1; }
  .brand-text strong { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
