/* ============================================================
   Observatorio de Chancay — Universidad del Pacífico
   Visual system extracted from Home + Publicaciones references
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #0F1F40;
  /* primary dark — interior blocks */
  --navy-deep: #0A1730;
  /* footer / hero overlays */
  --navy-ink: #16233D;
  /* headlines */
  --blue: #1356EE;
  /* electric accent — links, active states */
  --blue-bright: #0062FF;
  /* stats band */
  --blue-strip: #1265F5;
  /* vertical divider strip */
  --gold: #C97E26;
  /* category labels / CTAs */
  --gold-tag: #D38020;
  /* featured pill */
  --gold-deep: #A9651A;

  /* Teal accent */
  --teal: #2DBDA8;
  --teal-dark: #229B8C;

  /* Neutrals */
  --ink: #1B2435;
  --text: #3C4658;
  --muted: #717B90;
  --faint: #9AA2B1;
  --line: #E5E8EE;
  --line-2: #EEF0F4;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;

  /* Data tints */
  --tint-blue: #E8F0FE;
  --tint-gold: #F7EBD7;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 15px;

  --shadow-card: 0 1px 2px rgba(16, 30, 64, .04), 0 6px 22px rgba(16, 30, 64, .06);
  --shadow-pop: 0 8px 30px rgba(16, 30, 64, .13);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--blue);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--navy-ink);
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ---------- Reusable atoms ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--teal);
}

.eyebrow.blue {
  color: var(--blue);
}

.eyebrow.muted {
  color: var(--muted);
}

.section-pad {
  padding-block: clamp(48px, 7vw, 84px);
}

.divider-rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Links / CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--teal);
  transition: gap .18s ease, color .18s ease;
}

.cta:hover {
  gap: .85em;
  color: var(--teal-dark);
}

.cta.blue {
  color: var(--teal);
}

.cta.blue:hover {
  color: var(--teal-dark);
}

.cta .arr {
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: #0B43C4;
}

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  padding: 8px 13px;
  background: #fff;
  color: var(--navy-ink);
  border-radius: 10px;
}

.cat-label {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--teal);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  overflow: hidden;
}

a.card:hover,
.card.clickable:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

a.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media .pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--teal);
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.card-title {
  font-size: 21px;
  line-height: 1.16;
}

.card-sum {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-author {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 2.8vw, 34px);
}

.bg-dark .publi-card:nth-child(2) {
  flex-direction: column-reverse;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Scrolled state — applies to all pages (shadow on non-home, full restyle on home) */
.site-header.is-stuck {
  box-shadow: 0 4px 20px rgba(15, 31, 64, .08);
  border-bottom-color: transparent;
}

/* Home overlay header */
.site-header {
  position: absolute;
  background: transparent;
  border-bottom: none;
  width: 100%;
  padding: 10px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-header.is-stuck {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(15, 31, 64, .08);
  padding: 0;
  animation: headerSlideDown .3s ease;
}

/* Internal pages (noticia, publicacion, indicador) */
.site-header--internal {
  position: sticky;
  background: var(--navy);
  border-bottom: none;
  width: 100%;
  padding: 0;
}

.site-header .header-inner {
  justify-content: space-between;
  padding: 0;
}

.site-header .brand .wordmark {
  color: #fff;
  transition: color .25s ease;
}

.site-header.is-stuck .brand img {
  filter: brightness(0) saturate(100%);
  transition: filter .25s ease;
}

.site-header .main-nav {
  gap: clamp(24px, 4vw, 52px);
}

.site-header .main-nav {
  margin-left: 0;
}

.site-header .header-tools {
  padding-left: 0;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, .80);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  transition: color .25s ease;
}

.site-header .nav-link::after {
  display: none;
}

.site-header .nav-link.active {
  color: var(--navy-deep);
  background: var(--teal);
  border-radius: 30px;
  padding: 7px 22px;
  font-weight: 600;
}

.site-header .nav-link:hover:not(.active) {
  color: #fff;
}

.site-header.is-stuck .nav-link {
  color: var(--navy-ink);
}

.site-header.is-stuck .nav-link:hover:not(.active) {
  color: var(--blue);
}

.site-header .icon-btn {
  color: #fff;
  transition: color .25s ease;
}

.site-header.is-stuck .icon-btn {
  color: var(--navy-ink);
}

.site-header .lang-toggle {
  border: none;
  overflow: visible;
  gap: 5px;
  transition: border-color .25s ease;
}

.site-header .lang-toggle a {
  background: var(--navy);
  color: #fff;
  border-radius: 30px;
  padding: 7px 14px;
  transition: background .25s ease, color .25s ease;
}

.site-header .lang-toggle a.on {
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 700;
}

.site-header.is-stuck .lang-toggle a {
  background: #fff;
  color: var(--navy);
}

.site-header.is-stuck .lang-toggle a.on {
  background: var(--teal);
  color: #fff;
}

.site-header .search-bar {
  background: var(--navy-deep);
  border-bottom: 0;
  transition: background .25s ease, border-color .25s ease;
}

.site-header .search-bar.open {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-header .search-bar input {
  color: #fff;
}

.site-header .search-bar input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.site-header.is-stuck .search-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck .search-bar input {
  color: var(--navy-ink);
}

.site-header.is-stuck .search-bar input::placeholder {
  color: var(--muted);
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck {
    animation: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 200px;
}

.brand .shield {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-ink);
  line-height: .98;
  font-size: 17px;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.brand .wordmark small {
  display: block;
  font-size: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-ink);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2.5px;
  background: var(--blue);
  transition: right .22s ease;
}

.nav-link:hover::after {
  right: 0;
}

.nav-link.active {}

.nav-link.active::after {
  right: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 4px;
}

.icon-btn {
  background: none;
  border: 0;
  padding: 6px;
  color: var(--navy-ink);
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  color: var(--blue);
}

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--teal);
  border-radius: 2px;
  overflow: hidden;
}

.lang-toggle a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 7px 11px;
  border: 0;
  background: #fff;
  color: var(--navy);
  display: inline-block;
}

.lang-toggle a.on {
  background: var(--teal);
  color: #fff;
}

/* search overlay */
.search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.search-bar.open {
  max-height: 90px;
}

.search-bar .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 20px;
}

.search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-ink);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--faint);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  padding-bottom: 220px;
  height: 750px;
  max-height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-bg-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 23, 48, .86) 0%, rgba(10, 23, 48, .68) 36%, rgba(10, 23, 48, .28) 70%, rgba(10, 23, 48, .14) 100%);
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-bg-slide:first-child {
  background-position: center 60%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 150px;
  padding-bottom: 40px;
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.hero .sub {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 21px);
  margin-top: 18px;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .01em;
}

.hero-arrows {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: background .18s ease, border-color .18s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
}

.hero-arrow.left {
  left: var(--gutter);
}

.hero-arrow.right {
  right: var(--gutter);
}

/* ---------- Hero dots ---------- */
.hero-dots {
  position: absolute;
  right: clamp(18px, 2.5vw, 36px);
  top: calc(50% - 80px);
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  border: 1.5px solid rgba(255, 255, 255, .55);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hero-dots .dot:hover {
  background: rgba(255, 255, 255, .55);
  transform: scale(1.15);
}

.hero-dots .dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 189, 168, .45);
}

.hero-dots .dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 189, 168, .35);
}

/* ---------- Hero track / panes (vertical slider) ---------- */
.hero-track {
  display: grid;
  grid-template-areas: "stack";
}

.hero-track>* {
  grid-area: stack;
}

.hero-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-pane.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-eyebrow {
  color: var(--teal);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {

  .hero-bg-slide,
  .hero-pane {
    transition: none;
  }
}

/* ---------- Hero stats bar (home) ---------- */
.hero-stats-bar {
  position: absolute;
  bottom: -62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--teal);
  border-radius: 25px;
  width: min(980px, calc(100% - (var(--gutter) * 2)));
}

.hero-stats-bar .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 30px;
  padding-inline: clamp(18px, 2vw, 30px);
}

.hero-stats-bar .stat {
  padding-inline: clamp(10px, 1.2vw, 20px);
  text-align: center;
}

.hero-stats-bar .stat:first-child {
  padding-left: 0;
}

.hero-stats-bar .stat:not(:last-child) {
  border-right: 1px solid var(--blue-bright);
}

.hero-stats-bar .stat .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  color: var(--navy-deep);
}

.hero-stats-bar .stat .cap {
  font-family: var(--sans);
  font-size: 13.5px;
  margin-top: 8px;
  color: rgba(10, 23, 48, .72);
  line-height: 1.35;
  max-width: 22ch;
  margin-inline: auto;
}

.hero+.section-pad {
  padding-top: 130px;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy-deep);
  color: #fff;
}

.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 40px;
}

.stat {
  padding-inline: clamp(16px, 2vw, 32px);
}

.stat:first-child {
  padding-left: 0;
}

.stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.stat .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: #fff;
}

.stat .cap {
  font-family: var(--sans);
  font-size: 13.5px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.35;
  max-width: 22ch;
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.04;
  color: white;
}

.section-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-center h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: .01em;
}

.section-center.blue h2 {
  color: var(--blue);
}

.section-center.teal h2 {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Featured publication ---------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.featured-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-body .tag-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.featured-body h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  color: #fff;
}

.featured-body p {
  font-size: 16px;
  color: var(--text);
  max-width: 46ch;
  color: #fff;
}

.section-noticias .featured-body h3,
.section-noticias .featured-body p {
  color: var(--navy-ink);
}

/* ---------- Data cards ---------- */
.data-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-card h3 {
  font-size: 23px;
  line-height: 1.14;
}

.data-card .desc {
  font-size: 14.5px;
  color: var(--text);
}

.stat-block {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 20px 22px;
}

.stat-block.blue {
  background: var(--tint-blue);
  border-left: 20px solid var(--navy);
}

.stat-block.gold {
  background: var(--tint-blue);
  border-left: 20px solid var(--teal);
}

.stat-block .big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--navy-ink);
}

.stat-block .lab {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  align-self: center;
}

.stat-block.gold .lab {
  color: var(--teal-dark);
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 10px 15px;
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.meta-item .k {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--blue);
}

.meta-item .v {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--navy-ink);
  font-weight: 600;
  margin-top: 3px;
}

.data-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------- Interior split header ---------- */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: clamp(400px, 40vw, 450px);
}

.split-head .pane-text {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 18px;
  position: relative;
}

/* .split-head .pane-text::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--blue-strip);
} */

.split-head h1 {
  color: var(--navy-ink);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  padding-bottom: 10px;
}

.split-head .pane-text p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy-ink);
}

.split-head .pane-img {
  overflow: hidden;
  background: var(--navy-deep);
}

.split-head .pane-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-container {
  background: var(--teal);
  padding: 15px 24px;
  border-radius: 30px;
  margin-bottom: 40px;
}

/* ---------- Filters bar ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.filter-tab {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 0;
  position: relative;
}

.filter-tab:hover {
  color: var(--navy-ink);
}

.filter-tab.active {
  color: var(--blue);
}

.filter-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  background: var(--blue);
}

.filter-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 11px 20px;
  min-width: 280px;
}

.filter-search input {
  border: 0;
  outline: 0;
  flex: 1;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-ink);
  background: transparent;
}

.filter-search input::placeholder {
  color: var(--faint);
  letter-spacing: .08em;
}

/* count + empty */
.result-meta {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  padding-block: 24px 4px;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--navy-ink);
  margin-bottom: 10px;
}

/* ---------- Article (detalle) ---------- */
.article-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.article-head .kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.article-head h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  margin-bottom: 20px;
}

.article-head .lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: var(--text);
}

.byline {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.byline strong {
  color: var(--navy-ink);
  font-weight: 600;
}

.byline .dot {
  color: var(--line);
}

.article-hero {
  margin: clamp(34px, 5vw, 56px) 0;
}

.article-hero img {
  width: 100%;
  height: clamp(280px, 42vw, 540px);
  object-fit: cover;
}

.article-hero figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  color: #2A3242;
  margin-bottom: 26px;
}

.prose h2 {
  font-size: 30px;
  margin: 44px 0 18px;
}

.prose h3 {
  font-size: 23px;
  margin: 36px 0 14px;
}

.prose ul {
  margin: 0 0 26px;
  padding-left: 22px;
}

.prose li {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.pullquote {
  border-left: 4px solid var(--teal);
  padding: 6px 0 6px 28px;
  margin: 38px 0;
}

.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--navy-ink);
}

.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
}

.download-box {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 24px 28px;
  margin: 40px auto;
  max-width: 720px;
}

.download-box .di {
  display: flex;
  gap: 16px;
  align-items: center;
}

.download-box .di .ic {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 3px;
}

.download-box .ti {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-ink);
}

.download-box .me {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Indicator detail ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kpi {
  background: #fff;
  padding: 22px 24px;
}

.kpi .k {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--teal);
}

.kpi .v {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy-ink);
  margin-top: 6px;
  line-height: 1;
}

.kpi .v small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.chart-card {
  border: 1px solid var(--line);
  background: #fff;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.seg button {
  border: 0;
  background: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 15px;
  color: var(--muted);
}

.seg button.on {
  background: var(--navy);
  color: #fff;
}

.chart-area {
  padding: 26px 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--navy-ink);
}

.data-table td.num,
.data-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover {
  background: var(--bg-alt);
}

.metabox {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 24px 26px;
}

.metabox dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 22px;
}

.metabox dt {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--teal);
  align-self: center;
}

.metabox dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--navy-ink);
}

/* ---------- Quiénes somos ---------- */
.lead-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.42;
  color: var(--navy-ink);
  max-width: 24ch;
}

.feature-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.line-cell {
  background: #fff;
  padding: 30px 30px 34px;
}

.line-cell .no {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.line-cell h3 {
  font-size: 22px;
  margin: 12px 0 10px;
}

.line-cell p {
  font-size: 14.5px;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.person .ph {
  aspect-ratio: 1/1;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.person .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2);
}

.person .ph .mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, #16315e, #0F1F40);
}

.person h4 {
  font-size: 18px;
  margin: 14px 0 3px;
}

.person .role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.person .aff {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.allies {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ally {
  border: 1px solid var(--line);
  padding: 18px 24px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-ink);
  font-size: 16px;
  background: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-strip);
  color: rgba(255, 255, 255, .78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-brand .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 22px;
}

.footer-brand img {
  width: 250px;
}

.footer-brand p.about {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--navy-ink);
  margin-bottom: 20px;
}

.footer-col .frow {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 15px;
  line-height: 1.45;
}

.footer-col .frow svg {
  flex: none;
  margin-top: 2px;
  color: var(--navy-ink);
}

.footer-col a.frow:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 38px;
  height: 38px;
  background: var(--navy-ink);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .18s ease;
}

.socials a:hover {
  background: var(--teal-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Breadcrumb / back ---------- */
.crumb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding-block: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.crumb a:hover {
  color: var(--blue);
}

.crumb .sep {
  color: var(--line);
}

/* ---------- Related strip ---------- */
.related {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

/* reveal-on-scroll — transform-only so a throttled/background tab (paused rAF,
   frozen transitions) can never strand content hidden; worst case it sits a few px low */
.reveal {
  transform: translateY(14px);
  transition: transform .6s ease;
}

.reveal.in {
  transform: none;
}

/* page enter — base state is fully visible; animation is a safe enhancement
   (transform-only so a throttled/paused tab never strands content hidden) */
#root {
  opacity: 1;
  animation: pageIn .42s ease both;
}

@keyframes pageIn {
  from {
    transform: translateY(10px);
  }

  to {
    transform: none;
  }
}

/* ---------- Custom ---------- */
.bg-dark {
  background-color: var(--navy);
}

/* ---------- Responsive ---------- */
@media (max-width:980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .hero-stats-bar .inner {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 24px;
  }

  .hero-stats-bar .stat:nth-child(2) {
    border-right: none;
  }

  .hero-stats-bar .stat:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgba(15, 31, 64, .14);
    padding-top: 20px;
    margin-top: 4px;
  }

  .hero-stats-bar .stat:nth-child(4) {
    border-top: 1px solid rgba(15, 31, 64, .14);
    padding-top: 20px;
    margin-top: 4px;
    border-right: none;
  }

  .hero {
    padding-bottom: 250px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .split-head {
    grid-template-columns: 1fr;
  }

  .split-head .pane-img {
    min-height: 220px;
    order: -1;
  }

  .split-head .pane-text::after {
    display: none;
  }

  .feature-line {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:760px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    height: 68px;
  }

  .site-header--home .header-inner {
    justify-content: space-between;
  }

  .grid-3,
  .grid-2,
  .lines-grid {
    grid-template-columns: 1fr;
  }

  .meta-row {
    grid-template-columns: 1fr 1fr;
  }

  .filter-search {
    min-width: 100%;
    margin-left: 0;
    order: 5;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-band .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats-bar {
    width: min(560px, calc(100% - 28px));
    bottom: -52px;
  }

  .hero+.section-pad {
    padding-top: 110px;
  }
}