/* ============================================================
   OBSERVATORIO ANDINO LGBTIQ+ — Sistema de Diseño
   Manual de marca: paleta pág. 23 | tipografía pág. 24-27
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Paleta institucional exacta */
  --c-carmine: #D52049;
  --c-orange:  #E35310;
  --c-yellow:  #E99300;
  --c-green:   #35A855;
  --c-teal:    #05A8B3;
  --c-violet:  #785B8B;
  --c-dark:    #433331;

  /* Roles */
  --color-bg:      #F7F7F5;
  --color-surface: #FFFFFF;
  --color-ink:     var(--c-dark);
  --color-muted:   #7A6E6D;
  --color-border:  #E2DEDD;
  --color-primary: var(--c-teal);
  --color-accent:  var(--c-carmine);

  /* Tipografía — equivalencias autorizadas (manual pág. 27) */
  --font-display: 'Roboto Condensed', sans-serif;  /* ≡ Elza Narrow */
  --font-body:    'Roboto', sans-serif;             /* ≡ Elza         */
  --font-mono:    'Roboto Mono', monospace;         /* ≡ Tching Mono  */

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;

  /* Geometría */
  --radius:      6px;
  --radius-lg:   14px;
  --radius-pill: 999px;
  --max-w:       1160px;
  --max-w-post:  740px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(67,51,49,.08);
  --shadow-md: 0 8px 32px rgba(67,51,49,.12);
  --shadow-lg: 0 16px 48px rgba(67,51,49,.16);

  /* Transiciones */
  --t: .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-carmine); }
ul, ol { padding-left: var(--sp-4); }

/* ── TIPOGRAFÍA ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--color-ink);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: var(--sp-3); }

blockquote {
  border-left: 5px solid var(--c-teal);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(5,168,179,.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: 1.1rem;
  margin: var(--sp-5) 0;
}
blockquote cite {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-muted);
  font-style: normal;
}

code {
  font-family: var(--font-mono);
  background: #f0eeed;
  color: var(--c-carmine);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .875em;
}
pre {
  background: var(--c-dark);
  color: var(--c-yellow);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--sp-5) 0;
}
pre code { background: none; color: inherit; padding: 0; }

hr {
  border: none;
  height: 4px;
  background: linear-gradient(90deg,
    var(--c-carmine) 0% 16.66%,
    var(--c-orange)  16.66% 33.33%,
    var(--c-yellow)  33.33% 50%,
    var(--c-green)   50%    66.66%,
    var(--c-teal)    66.66% 83.33%,
    var(--c-violet)  83.33% 100%
  );
  margin: var(--sp-6) 0;
  border-radius: var(--radius-pill);
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--max-w-post); }

.site-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-7);
  align-items: start;
}
.site-layout--full { grid-template-columns: 1fr; }

/* ── FRANJA ARCOÍRIS ─────────────────────────────────────── */
.rainbow-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--c-carmine) 0%     16.66%,
    var(--c-orange)  16.66% 33.33%,
    var(--c-yellow)  33.33% 50%,
    var(--c-green)   50%    66.66%,
    var(--c-teal)    66.66% 83.33%,
    var(--c-violet)  83.33% 100%
  );
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: var(--c-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
  gap: var(--sp-4);
}

/* Logo / nombre del sitio */
.site-branding { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.site-branding__logo { width: 48px; height: auto; }

.site-branding__text { display: flex; flex-direction: column; gap: 2px; }

.site-branding__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.1;
}
.site-branding__name:hover { color: var(--c-yellow); }

.site-branding__tagline {
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-teal);
  line-height: 1.2;
}

/* Navegación */
.site-nav { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

.site-nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--t);
}
.site-nav__link:hover,
.site-nav__link--active {
  background: var(--c-teal);
  color: #fff;
}

/* Hamburger móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: #fff;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t);
}

/* ── HERO / PORTADA ──────────────────────────────────────── */
.site-hero {
  background: var(--c-dark);
  color: #fff;
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(5,168,179,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(120,91,139,.15) 0%, transparent 70%);
  pointer-events: none;
}
.site-hero__content { position: relative; z-index: 1; max-width: 680px; }
.site-hero__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-teal);
  margin-bottom: var(--sp-3);
  display: block;
}
.site-hero__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.site-hero__title em {
  font-style: normal;
  color: var(--c-yellow);
}
.site-hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: var(--sp-5);
}
.site-hero .rainbow-bar {
  width: 120px;
  height: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-5);
}

/* ── BLOG — GRID DE POSTS ───────────────────────────────── */
.posts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--color-border);
}
.posts-header__title {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
  list-style: none;
  padding: 0;
}

/* Primer post destacado */
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
}

/* ── CARD DE POST ────────────────────────────────────────── */
.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Franja de color superior — ciclo de 6 colores institucionales */
.post-card::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}
.post-card:nth-child(6n+1)::before { background: var(--c-carmine); }
.post-card:nth-child(6n+2)::before { background: var(--c-orange);  }
.post-card:nth-child(6n+3)::before { background: var(--c-yellow);  }
.post-card:nth-child(6n+4)::before { background: var(--c-green);   }
.post-card:nth-child(6n+5)::before { background: var(--c-teal);    }
.post-card:nth-child(6n+6)::before { background: var(--c-violet);  }

.post-card__thumbnail {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card:first-child .post-card__thumbnail { aspect-ratio: 21/7; }
.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card__thumbnail img { transform: scale(1.04); }

.post-card__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }

.post-card__cats { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.post-card__cat {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--c-teal);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: background var(--t);
}
.post-card__cat:hover { background: var(--c-carmine); color: #fff; }

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
  line-height: 1.25;
  transition: color var(--t);
}
.post-card__title:hover { color: var(--c-teal); }
.post-card:first-child .post-card__title { font-size: clamp(1.4rem, 2.5vw, 2rem); }

.post-card__excerpt {
  font-size: .95rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-3);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
}
.post-card__date,
.post-card__reading-time {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── POST INDIVIDUAL ─────────────────────────────────────── */
.single-post { padding-block: var(--sp-7); }

.single-post__header { margin-bottom: var(--sp-6); }

.single-post__cats { margin-bottom: var(--sp-4); }

.single-post__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  border-left: 6px solid var(--c-teal);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--sp-5);
}
.single-post__meta-sep { color: var(--color-border); }

.single-post__thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  aspect-ratio: 16/7;
}
.single-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido del post */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-ink);
}
.entry-content > * + * { margin-top: var(--sp-4); }

.entry-content > p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2a2020;
  border-bottom: 3px solid var(--c-yellow);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.entry-content h2 { margin-top: var(--sp-6); border-left: 4px solid var(--c-orange); padding-left: var(--sp-3); }
.entry-content h3 { margin-top: var(--sp-5); color: var(--c-teal); }

.entry-content ul li::marker,
.entry-content ol li::marker { color: var(--c-teal); }

/* Navegación entre posts */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
}
.nav-previous,
.nav-next {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: all var(--t);
}
.nav-previous:hover, .nav-next:hover {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-sm);
}
.nav-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--sp-1);
}
.nav-next { text-align: right; }

/* ── PÁGINA ESTÁTICA ─────────────────────────────────────── */
.page-content { padding-block: var(--sp-7); }
.page-content__title {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--color-border);
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-4); }

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  border-top: 4px solid var(--c-teal);
}
.widget-title {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-teal);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
}

/* ── BARRA DE PROGRESO ───────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  z-index: 200;
  transition: width .1s linear;
  background: linear-gradient(90deg,
    var(--c-carmine), var(--c-orange), var(--c-yellow),
    var(--c-green), var(--c-teal), var(--c-violet)
  );
}

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--t);
}
.btn--primary {
  background: var(--c-teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-carmine);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213,32,73,.3);
}
.btn--outline {
  background: transparent;
  color: var(--c-teal);
  border: 2px solid var(--c-teal);
}
.btn--outline:hover {
  background: var(--c-teal);
  color: #fff;
}

/* ── PAGINACIÓN ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.pagination .page-numbers {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  color: var(--color-ink);
  transition: all var(--t);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: #fff;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.75);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-2);
  letter-spacing: .04em;
}
.footer-brand__desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-teal);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--c-yellow); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── FORMULARIOS ─────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color var(--t);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-teal);
}

/* ── 404 / SEARCH EMPTY ──────────────────────────────────── */
.error-page {
  text-align: center;
  padding: var(--sp-8) 0;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-teal), var(--c-carmine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-card {
  animation: fadeUp .45s ease both;
}
.posts-grid .post-card:nth-child(1) { animation-delay: .05s; }
.posts-grid .post-card:nth-child(2) { animation-delay: .10s; }
.posts-grid .post-card:nth-child(3) { animation-delay: .15s; }
.posts-grid .post-card:nth-child(4) { animation-delay: .20s; }
.posts-grid .post-card:nth-child(5) { animation-delay: .25s; }
.posts-grid .post-card:nth-child(6) { animation-delay: .30s; }

/* ── ACCESIBILIDAD ───────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-3);
  background: var(--c-teal);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  z-index: 999;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-7: 3rem; --sp-8: 4rem; }

  .container { padding-inline: var(--sp-3); }

  .site-header__inner { padding-block: var(--sp-2); }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-dark);
    padding: var(--sp-3);
    flex-direction: column;
    align-items: stretch;
    border-top: 3px solid var(--c-teal);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: var(--sp-3); border-radius: var(--radius); }

  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid .post-card:first-child { grid-column: 1; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }

  .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  .single-post__meta { flex-wrap: wrap; gap: var(--sp-2); }
}

@media (max-width: 480px) {
  .site-branding__tagline { display: none; }
}

/* ── CORRECCIONES v1.1.0 ─────────────────────────────────────
   Estilos extraídos de inline styles en templates PHP
   ──────────────────────────────────────────────────────────── */

/* index.php — sección de posts */
.section-posts {
  padding-block: var(--sp-7);
}

/* single.php — bloque de tags */
.post-tags {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Tag con color violeta (diferencia visual respecto a categorías) */
.post-card__cat--tag {
  background: var(--c-violet) !important;
}
.post-card__cat--tag:hover {
  background: var(--c-dark) !important;
}

/* page.php — contenedor narrow centrado */
.page-narrow-wrap {
  margin-inline: auto;
}

/* page.php — cabecera de página */
.page-content__header {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--color-border);
}

.page-content__title {
  margin-top: var(--sp-3);
}

/* page.php — thumbnail con espacio inferior */
.page-thumbnail {
  margin-bottom: var(--sp-5);
}

/* ── 404 ─────────────────────────────────────────────────── */
.error-404-page {
  padding-block: var(--sp-8);
}

.error-404-inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.error-404-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 20vw, 10rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--c-teal), var(--c-carmine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-4);
}

.error-404-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--sp-3);
}

.error-404-desc {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}

.error-404-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.error-404-search {
  display: flex;
  gap: var(--sp-2);
  width: 100%;
}

.error-404-search input {
  flex: 1;
}

/* ── PARCHE v1.1.1 — Ajustes finos de hero, nav, grid y footer ─────
   Movido desde Customizer Additional CSS al theme versionado.
   ────────────────────────────────────────────────────────────── */

/* 1. Hero: padding razonable (antes estaba ~606px, muy alto) */
.site-hero {
  padding-top: 48px;
  padding-bottom: 40px;
}

/* 2. Compensar admin bar de WP cuando hay sesión iniciada */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* 3. Hero title: tipografía más compacta en pantallas medianas */
.site-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.site-hero__desc {
  margin-bottom: 16px;
}

/* 4. Nav: alineación vertical correcta del header inner */
.site-header__inner {
  min-height: 56px;
}

/* 5. Posts grid: card única centrada cuando hay 1 solo post */
.posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.posts-grid .post-card:only-child {
  max-width: 580px;
}

/* 6. Tagline del sitio: visible y con buen contraste */
.site-branding__tagline {
  display: block;
  opacity: 0.75;
}

/* 7. Footer: padding superior reducido */
.site-footer {
  padding-top: 40px !important;
}

/* 8. Admin bar + hero: evitar superposición en front-end logueado */
.admin-bar .site-hero {
  padding-top: 56px;
}

/* ════════════════════════════════════════════════════════════════
   v1.1.3 — MEJORAS EDITORIALES PARA NOTICIAS Y PÁGINAS
   Tipografía editorial, citas, tablas, imágenes Gutenberg,
   bloques de página, print styles y accesibilidad reforzada.
   ════════════════════════════════════════════════════════════════ */

/* ── 1. ENLACES EN CONTENIDO ────────────────────────────────── */
.entry-content a:not(.btn):not(.post-card__cat):not(.page-numbers) {
  color: var(--c-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t), text-decoration-color var(--t);
}
.entry-content a:not(.btn):not(.post-card__cat):not(.page-numbers):hover {
  color: var(--c-carmine);
  text-decoration-thickness: 2px;
}

/* ── 2. JERARQUÍA H1–H6 EN .entry-content ───────────────────── */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}
.entry-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.entry-content h4 {
  font-size: 1.1rem;
  margin-top: var(--sp-5);
  color: var(--c-violet);
}
.entry-content h5 {
  font-size: 1rem;
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
}
.entry-content h6 {
  font-size: .9rem;
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
}

/* ── 3. LEAD PARAGRAPH — más sobrio (reemplaza border-bottom amarillo) ─ */
.entry-content > p:first-of-type {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.65;
  color: #2a2020;
  border-bottom: none;            /* ← desactivamos la línea amarilla */
  padding-bottom: 0;
  margin-bottom: var(--sp-5);
}

/* Clase opcional para forzar lead en cualquier párrafo */
.entry-content .lead,
.entry-content p.has-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.65;
  color: #2a2020;
}

/* ── 4. BLOCKQUOTE — cita destacada (Yogyakarta, voceros, etc.) ─ */
.entry-content blockquote,
.entry-content .wp-block-quote {
  position: relative;
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-6);
  background: rgba(5, 168, 179, 0.05);
  border-left: 4px solid var(--c-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--color-ink);
}
.entry-content blockquote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: var(--sp-3);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--c-teal);
  opacity: 0.25;
  pointer-events: none;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite,
.entry-content blockquote footer {
  display: block;
  margin-top: var(--sp-3);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.entry-content blockquote cite::before,
.entry-content blockquote footer::before {
  content: "— ";
}

/* Pull-quote (cita destacada decorativa, Gutenberg) */
.entry-content .wp-block-pullquote {
  border-top: 4px solid var(--c-carmine);
  border-bottom: 4px solid var(--c-carmine);
  background: transparent;
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  margin: var(--sp-6) 0;
}
.entry-content .wp-block-pullquote::before { content: none; }

/* ── 5. IMÁGENES Y FIGURES (Gutenberg + classic) ────────────── */
.entry-content img,
.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.entry-content figure {
  margin: var(--sp-5) 0;
}
.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.5;
}

/* Alineaciones Gutenberg/classic */
.entry-content .alignleft {
  float: left;
  margin: var(--sp-2) var(--sp-4) var(--sp-3) 0;
  max-width: 50%;
}
.entry-content .alignright {
  float: right;
  margin: var(--sp-2) 0 var(--sp-3) var(--sp-4);
  max-width: 50%;
}
.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}
.entry-content .alignwide {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  width: min(100vw, calc(var(--max-w) + 200px));
  margin-left: auto;
  margin-right: auto;
}
.entry-content .alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.entry-content .alignfull img,
.entry-content .alignwide img {
  width: 100%;
}
@media (max-width: 768px) {
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: var(--sp-4) 0;
    max-width: 100%;
  }
}

/* ── 6. TABLAS (boletines comparados, datos legislativos) ─── */
.entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: .95rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entry-content table thead {
  background: var(--c-teal);
  color: #fff;
}
.entry-content table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: var(--sp-3);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .05em;
}
.entry-content table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.entry-content table tbody tr:nth-child(even) {
  background: rgba(5, 168, 179, 0.025);
}
.entry-content table tbody tr:last-child td { border-bottom: none; }

/* Tabla responsive — scroll horizontal en mobile */
.entry-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 7. CÓDIGO INLINE Y BLOQUE ──────────────────────────────── */
.entry-content code,
.entry-content kbd {
  font-family: var(--font-mono);
  font-size: .92em;
  background: rgba(67, 51, 49, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-dark);
}
.entry-content kbd {
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  font-size: .85em;
}
.entry-content pre {
  font-family: var(--font-mono);
  font-size: .9rem;
  background: var(--c-dark);
  color: #f5f5f5;
  padding: var(--sp-4);
  border-radius: var(--radius);
  border-left: 4px solid var(--c-teal);
  overflow-x: auto;
  line-height: 1.6;
}
.entry-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ── 8. ELEMENTOS INLINE FINOS ──────────────────────────────── */
.entry-content mark {
  background: linear-gradient(180deg, transparent 50%, rgba(233, 147, 0, 0.4) 50%);
  padding: 0 2px;
  color: inherit;
}
.entry-content sup,
.entry-content sub { font-size: .75em; }

/* ── 9. HR DECORATIVO (mini gradient arcoíris) ─────────────── */
.entry-content hr,
.entry-content .wp-block-separator {
  border: none;
  height: 3px;
  background: linear-gradient(90deg,
    var(--c-carmine), var(--c-orange), var(--c-yellow),
    var(--c-green),   var(--c-teal),   var(--c-violet)
  );
  border-radius: 2px;
  margin: var(--sp-6) auto;
  max-width: 120px;
}

/* ── 10. LISTAS ANIDADAS Y DEFINICIONES ─────────────────────── */
.entry-content ul,
.entry-content ol {
  padding-left: var(--sp-5);
}
.entry-content li + li { margin-top: var(--sp-2); }
.entry-content li > ul,
.entry-content li > ol {
  margin-top: var(--sp-2);
}
.entry-content dl { margin: var(--sp-4) 0; }
.entry-content dt {
  font-weight: 700;
  color: var(--c-teal);
  margin-top: var(--sp-3);
}
.entry-content dd {
  margin-left: var(--sp-4);
  color: var(--color-muted);
}

/* ── 11. .post-card__title — quitar UPPERCASE para legibilidad editorial ── */
.post-card__title {
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.post-card:first-child .post-card__title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

/* ── 12. .single-post__title — responsive del border-left ─── */
@media (max-width: 768px) {
  .single-post__title {
    border-left-width: 4px;
    padding-left: var(--sp-3);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}

/* ── 13. .post-card destacada — mobile sin aspect-ratio panorámico ─ */
@media (max-width: 768px) {
  .posts-grid .post-card:first-child .post-card__thumbnail {
    aspect-ratio: 16 / 9;
  }
}

/* ── 14. BLOQUES EDITORIALES PARA PÁGINAS Y NOTAS LARGAS ──── */

/* Resumen ejecutivo / caja destacada */
.summary-box {
  background: rgba(5, 168, 179, 0.06);
  border-left: 4px solid var(--c-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.summary-box__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-teal);
  margin-bottom: var(--sp-2);
}
.summary-box__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
  color: var(--color-ink);
}

/* Datos clave (números grandes en grilla) */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}
.data-stat {
  text-align: center;
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--c-teal);
}
.data-stat__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--c-teal);
  display: block;
  margin-bottom: var(--sp-2);
}
.data-stat__label {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
}

/* Sección de página con padding consistente */
.page-section {
  padding-block: var(--sp-6);
}
.page-section + .page-section {
  border-top: 1px solid var(--color-border);
}

/* CTA / llamada a la acción */
.page-cta {
  background: linear-gradient(135deg, var(--c-teal), var(--c-violet));
  color: #fff;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--sp-6) 0;
}
.page-cta h2,
.page-cta h3 {
  color: #fff;
  border: none !important;
  padding: 0;
  margin-bottom: var(--sp-3);
}
.page-cta p {
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--sp-4);
}
.page-cta .btn {
  background: #fff;
  color: var(--c-teal);
}
.page-cta .btn:hover {
  background: var(--color-ink);
  color: #fff;
}

/* ── 15. FUENTES Y REFERENCIAS (lista al pie de un estudio) ──── */
.references {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-muted);
}
.references h2 {
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-left: none !important;
  padding: 0 !important;
  color: var(--color-muted) !important;
}
.references ol,
.references ul {
  padding-left: var(--sp-4);
}

/* ── 16. SCROLL-MARGIN para anchors (TOC, deep links) ───────── */
.entry-content [id],
.page-content [id] {
  scroll-margin-top: var(--sp-6);
}

/* ── 17. ACCESIBILIDAD — prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .post-card { animation: none; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card__thumbnail img { transform: none; }
}

/* ── 18. PRINT STYLES (estudios e informes en PDF/papel) ─── */
@media print {
  /* Ocultar lo no-imprimible */
  .site-header,
  .site-footer,
  .sidebar,
  .post-navigation,
  .pagination,
  .nav-toggle,
  #reading-progress,
  .skip-link,
  .post-tags,
  .single-post__meta-sep { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .container, .container--narrow { max-width: none; padding: 0; }

  .entry-content { font-size: 11pt; }
  .entry-content h2 { border-left: none; padding-left: 0; }
  .entry-content h3 { color: #000; }
  .entry-content blockquote {
    background: none;
    border-left: 2px solid #666;
    color: #333;
  }
  .entry-content blockquote::before { display: none; }

  /* Mostrar URLs después de cada link inline */
  .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }

  /* Evitar cortes feos */
  .post-card,
  .summary-box,
  .data-stat,
  blockquote,
  table,
  figure { page-break-inside: avoid; }

  h1, h2, h3 { page-break-after: avoid; }
}

/* ════════════════════════════════════════════════════════════════
   v1.1.4 — ESTILO INSTITUCIONAL PARA PÁGINAS (tipo Quiénes Somos)
   Replica el manual de marca aplicado al PDF de presentación.
   Reutilizable en cualquier página estática.
   ════════════════════════════════════════════════════════════════ */

/* ── Hero institucional ─────────────────────────────────────── */
.oa-page-hero {
  text-align: center;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
}
.oa-page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
  text-transform: none;
  border: none;
  padding: 0;
}
.oa-page-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-ink);
  margin-bottom: var(--sp-1);
  font-weight: 400;
}
.oa-page-hero__highlight {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-carmine);
  margin-top: var(--sp-2);
  letter-spacing: .02em;
}
.oa-page-hero .rainbow-bar {
  margin: var(--sp-4) auto 0;
  max-width: 720px;
}

/* ── Headings de sección con border-left en color ─────────── */
.entry-content .oa-section-heading,
.oa-section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
  border-left: 5px solid var(--c-teal); /* default teal */
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-4);
  color: var(--c-teal);
  background: none;
}

/* Variantes de color por sección (alineadas al manual de marca) */
.oa-section-heading--carmine { border-left-color: var(--c-carmine); color: var(--c-carmine); }
.oa-section-heading--orange  { border-left-color: var(--c-orange);  color: var(--c-orange);  }
.oa-section-heading--yellow  { border-left-color: var(--c-yellow);  color: var(--c-yellow);  }
.oa-section-heading--green   { border-left-color: var(--c-green);   color: var(--c-green);   }
.oa-section-heading--teal    { border-left-color: var(--c-teal);    color: var(--c-teal);    }
.oa-section-heading--violet  { border-left-color: var(--c-violet);  color: var(--c-violet);  }

/* Override del h2 default de entry-content cuando lleva clase oa */
.entry-content h2.oa-section-heading {
  border-left-width: 5px; /* refuerzo */
}

/* ── Bloques de declaración (Misión, Visión, etc.) ──────────── */
.oa-statement {
  border-left: 4px solid var(--c-teal);
  background: rgba(5, 168, 179, 0.04);
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-5);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.oa-statement--carmine { border-left-color: var(--c-carmine); background: rgba(213, 32, 73, 0.05); }
.oa-statement--orange  { border-left-color: var(--c-orange);  background: rgba(227, 83, 16, 0.05); }
.oa-statement--yellow  { border-left-color: var(--c-yellow);  background: rgba(233, 147, 0, 0.06); }
.oa-statement--green   { border-left-color: var(--c-green);   background: rgba(53, 168, 85, 0.06); }
.oa-statement--teal    { border-left-color: var(--c-teal);    background: rgba(5, 168, 179, 0.05); }
.oa-statement--violet  { border-left-color: var(--c-violet);  background: rgba(120, 91, 139, 0.06); }

/* ── Lista con marcador de triángulo (▸) ───────────────────── */
.entry-content ul.oa-list-triangles,
ul.oa-list-triangles {
  list-style: none;
  padding-left: 0;
  margin: var(--sp-4) 0;
}
.oa-list-triangles > li {
  position: relative;
  padding-left: var(--sp-5);
  margin-top: var(--sp-3);
  line-height: 1.65;
}
.oa-list-triangles > li::before {
  content: "▸";
  position: absolute;
  left: var(--sp-2);
  top: 0;
  color: var(--c-teal);
  font-size: 1.1em;
  line-height: 1.65;
}
.oa-list-triangles > li strong:first-child {
  display: inline;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── Grid de valores institucionales (label + descripción) ── */
.oa-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.oa-value {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.oa-value__label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3) var(--sp-3);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.1;
  background: var(--c-teal); /* default */
}
.oa-value__desc {
  padding: var(--sp-3) var(--sp-4);
  background: #f3f1ef;
  color: var(--color-ink);
  font-size: .95rem;
  line-height: 1.55;
  display: flex;
  align-items: center;
}

/* Variantes de color del label */
.oa-value--carmine .oa-value__label { background: var(--c-carmine); }
.oa-value--orange  .oa-value__label { background: var(--c-orange);  }
.oa-value--yellow  .oa-value__label { background: var(--c-yellow);  color: var(--c-dark); }
.oa-value--green   .oa-value__label { background: var(--c-green);   }
.oa-value--teal    .oa-value__label { background: var(--c-teal);    }
.oa-value--violet  .oa-value__label { background: var(--c-violet);  }

/* Mobile: stack label arriba, descripción abajo */
@media (max-width: 640px) {
  .oa-value {
    grid-template-columns: 1fr;
  }
  .oa-value__label {
    padding: var(--sp-2) var(--sp-3);
    font-size: .85rem;
  }
}

/* ── Footer institucional al pie de página ─────────────────── */
.oa-page-footer {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  text-align: center;
}
.oa-page-footer .rainbow-bar {
  margin: 0 auto var(--sp-4);
  max-width: 480px;
}
.oa-page-footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: var(--sp-1);
}
.oa-page-footer__title strong { color: var(--c-carmine); }
.oa-page-footer__countries {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--c-teal);
  letter-spacing: .08em;
}

/* ════════════════════════════════════════════════════════════════
   v1.1.6 — BLOQUE INSTITUCIONAL EN FOOTER GLOBAL
   El cierre "Observatorio Andino LGBTIQ+ | Impulsado por Fundación
   Iguales — Chile · Perú · Bolivia" + iconos de redes sociales se
   movió desde page.php / single.php al footer global del sitio
   (template-parts/footer.php).
   ════════════════════════════════════════════════════════════════ */

.site-footer__institutional {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.site-footer__institutional-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--sp-1);
}
.site-footer__institutional-title strong {
  color: var(--c-carmine);
}
.site-footer__institutional-countries {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-teal);
  letter-spacing: .1em;
  margin-bottom: var(--sp-3);
}

/* Redes sociales — iconos circulares */
.site-footer__socials {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--t), color var(--t), transform var(--t);
}
.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  background: var(--c-teal);
  color: #fff;
  transform: translateY(-2px);
}
.site-footer__socials svg {
  display: block;
}

@media (max-width: 480px) {
  .site-footer__institutional-title { font-size: .9rem; }
  .site-footer__socials a { width: 36px; height: 36px; }
}

