/* ============================================================
   IMPORT FONT
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');


/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {

  /* BRAND */
  --color-brand:        #243C8C;
  --color-brand-light:  #72C0EA;
  --color-brand-dark:   #162557;
  --color-brand-accent: #00ADEE;
  --color-brand-mid:    #3E60CB;

  /* GRAYS */
  --color-gray-dark:  #3C3C3B;
  --color-gray-mid:   #6B7280;
  --color-gray-light: #E5E7EB;

  /* BACKGROUNDS */
  --color-bg:        #FFFFFF;
  --color-bg-light:  #d3eaf8;
  --color-bg-subtle: #F6FBFE;
  --color-bg-dark:   #222222;
  --color-bg-brand:  #243C8C;

  /* TEXT */
  --color-text:         #2D2D2D;
  --color-text-muted:   #4A5F8A;
  --color-text-inverse: #FFFFFF;
  --color-text-gray:    #6b7280

  /* BORDERS — valores mínimos para WCAG 1.4.11 (3:1 vs bg blanco) */
  --color-border:       #5A7FA0; /* 3.54:1 vs #FFF — bordes de card */
  --color-border-input: #5E7899; /* 3.52:1 vs #FFF — bordes de inputs */

  /* SEMANTIC */
  --color-error:   #B91C1C;
  --color-success: #166534;
  --color-warning: #92400E;

  /* FOCUS — #243C8C navy = 10.00:1 vs #FFF (WCAG 1.4.11 + 2.4.11 ✅) */
  /* En dark mode se redefine a #00ADEE (7.13:1 vs fondo oscuro ✅)       */
  --color-focus: #243C8C;

  /* =========================
     TYPOGRAPHY — MOBILE BASE
  ========================= */
  --font-family-base: 'Lexend', sans-serif;
  --font-family-mono: monospace;

  --font-size-xs:       0.75rem;
  --font-size-sm:       0.875rem;
  --font-size-base:     1rem;
  --font-size-md:       1.0625rem;
  --font-size-lg:       1.125rem;
  --font-size-xl:       1.25rem;
  --font-size-2xl:      1.5rem;
  --font-size-3xl:      1.875rem;
  --font-size-4xl:      2.25rem;
  --font-size-hero:     2.5rem;
  --font-size-quicknum: 3rem;

  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --line-height-tight:   1.2;
  --line-height-snug:    1.35;
  --line-height-base:    1.6;
  --line-height-relaxed: 1.75;

  --letter-spacing-tight:  -0.01em;
  --letter-spacing-normal:  0;
  --letter-spacing-wide:    0.02em;
  --letter-spacing-wider:   0.05em;
}

/* Escala tipográfica para tablet (≥ 640px) */
@media (min-width: 640px) {
  :root {
    --font-size-md:       1.125rem;
    --font-size-lg:       1.25rem;
    --font-size-xl:       1.5rem;
    --font-size-2xl:      1.875rem;
    --font-size-3xl:      2.25rem;
    --font-size-4xl:      3rem;
    --font-size-hero:     3.75rem;
    --font-size-quicknum: 4rem;
  }
}


/* ============================================================
   RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ============================================================
   BASE
============================================================ */

/* ── html / body ──────────── */
html {
  /* Sin font-size aquí — el JS lo gestiona dinámicamente */
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: var(--letter-spacing-normal);
  overflow-x: hidden; /* fallback para Safari < 16 */
  overflow-x: clip;   /* evita scroll sin crear contexto de apilamiento */
  font-size: var(--font-size-base);
  transition: background-color .3s ease, color .3s ease;
}

.is-logo-image {
  width: 145px;
  height: auto;
}
/* Override de Kadence theme que inyecta su propia font-family */
body,
.entry-content,
.site-main,
.kb-rich-text,
.wp-block-kadence-advancedheading,
.kb-adv-text,
nav,
.header-navigation,
.site-header,
.site-footer {
  font-family: 'Lexend', sans-serif !important;
}
 
/* ── GeneratePress overrides ──────────── */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
  background: var(--color-bg);
}

.site-info {
  background: var(--color-bg-brand);
}

/* ── Kadence column padding fix (mobile) ──────────── */
@media (max-width: 767px) {
  .wp-block-kadence-column {
    padding-inline: 1.2rem;
  }
}


/* ============================================================
   TYPOGRAPHY
============================================================ */

/* ── Headings ──────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

/* Móvil */
h1 { font-size: var(--font-size-3xl); color: var(--color-brand); }
h2 { font-size: var(--font-size-2xl); color: var(--color-brand-mid); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); text-transform: uppercase; }

p {
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
}

/* Desktop */
@media (min-width: 640px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  h4 { font-size: var(--font-size-xl); }
  h5 { font-size: var(--font-size-lg); }
  h6 { font-size: var(--font-size-md); }
  p  { line-height: var(--line-height-relaxed); font-size: var(--font-size-md); }
}


/* ============================================================
   LINKS
============================================================ */
a {
  color: var(--color-brand-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--color-brand-mid);
}

a:hover,
a:focus {
  color: var(--color-brand);
}


/* ============================================================
   FOCUS STYLES (WCAG 1.4.11 + 2.4.11)
   --color-focus: #243C8C = 10.00:1 vs blanco ✅
============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  background: rgba(36, 60, 140, 0.08);
}

/* ============================================================
   UTILITIES
============================================================ */

/* ── Screen reader ──────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0); /* IE11 legacy */
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Hidden ──────────── */
[hidden] {
  display: none !important;
}

/* ── Visibility classes ──────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

@media (min-width: 768px) {
  .only-mobile { display: none !important; }
}

@media (max-width: 767px), (min-width: 1024px) {
  .only-tablet { display: none !important; }
}

@media (max-width: 1023px) {
  .only-desktop { display: none !important; }
}

/* ── Full bleed ──────────── */
.full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}


/* ============================================================
   MOTION & CONTRAST PREFERENCES
============================================================ */

/* ── Reduced motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ── prefers-contrast: more ──────────── */

/* PREFERS-CONTRAST: MORE (macOS, Linux, Android)
   Complementa forced-colors (Windows) y data-contrast="high" (widget JS).
   Refuerza bordes, elimina sombras decorativas y asegura
   legibilidad en sistemas que aumentan contraste a nivel OS. */
@media (prefers-contrast: more) {
  /* Bordes de card e inputs más oscuros/visibles */
  .card {
    border-color: var(--color-brand);
  }

  input, textarea, select {
    border-color: var(--color-brand);
  }

  /* Elimina fondos sutiles que podrían reducir legibilidad */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  [tabindex]:focus-visible {
    background: transparent;
    outline-width: 3px;
  }

  /* Refuerza separación del panel de accesibilidad */
  .accessibility-panel {
    border-color: var(--color-brand);
    border-width: 2px;
    box-shadow: none;
  }

  .accessibility-fab {
    border: 2px solid var(--color-brand-dark);
    box-shadow: none;
  }

  /* Elimina sombras decorativas */
  .card,
  .accessibility-panel,
  .accessibility-fab {
    box-shadow: none;
  }

  /* Refuerza borde en secciones de fondo oscuro */
  .bg-navy {
    outline: 2px solid var(--color-brand-light);
    outline-offset: -2px;
  }
}


/* ============================================================
   DARK MODE
============================================================ */
html[data-theme="dark"] {
  --color-bg:        #0d1526;
  --color-bg-subtle: #152040;
  --color-bg-dark:   #162340;
  --color-bg-brand:  #162340;
  --color-bg-light:  #162340;

  --color-text:         #e8f0fc;
  --color-text-muted:   #8ea4c8;
  --color-text-inverse: #ffffff;
  --color-text-gray:    #ffffff;

  /* Redefinir gray-mid con un valor semánticamente coherente para dark */
  --color-gray-mid: #a0aec0;

  --color-brand:       #A0B1EE; /* para TEXTO sobre fondo oscuro: 8.69:1 ✅ */
  --color-brand-light: #0F7CB3;
  --color-brand-dark:  #243C8C; /* para FONDOS de botón en dark: 10.00:1 ✅ */
  --color-brand-mid:   #3E60CB; /* para fondos hover: 5.61:1 con texto blanco ✅ */
  --color-brand-accent: #00ADEE;

  /* Bordes dark mode — deben cumplir 3:1 vs bg #0d1526 (WCAG 1.4.11)
     #5B7FA0 vs #0d1526 = 4.54:1 ✅ */
  --color-border:       #5B7FA0;
  --color-border-input: #5B7FA0;

  /* Focus cyan: 7.13:1 vs fondo oscuro #0d1526 ✅ */
  --color-focus: #00ADEE;

  /* Indica al navegador que use estilos nativos oscuros para inputs/selects */
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-navigation,
html[data-theme="dark"] .top-bar {
  background: var(--color-bg);
  color: var(--color-text) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: var(--color-text) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .entry-content {
  color: var(--color-text) !important;
}

html[data-theme="dark"] a,
html[data-theme="dark"] a:visited {
  color: var(--color-brand);
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus {
  color: var(--color-text-inverse);
}

html[data-theme="dark"] .main-nav .menu > li > a:hover,
html[data-theme="dark"] .main-nav .menu > li.current-menu-ancestor > a,
html[data-theme="dark"] .main-nav .menu > li.current-menu-item > a {
  color: var(--color-brand);
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer h2,
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer a:visited {
  background: var(--color-bg-brand);
  color: var(--color-text-inverse);
}

html[data-theme="dark"] .site-footer a:hover,
html[data-theme="dark"] .site-footer a:focus {
  color: var(--color-text-inverse);
  text-decoration: underline;
}

html[data-theme="dark"] .copyright-bar {
  color: var(--color-text-inverse);
}

html[data-theme="dark"] .acx-section--brand,
html[data-theme="dark"] .site-info {
  background: var(--color-bg) !important;
}

html[data-theme="dark"] .acx-cat {
  background: rgba(160, 177, 238, 0.15);
  color: var(--color-brand);
}

html[data-theme="dark"] .bg-navy h2,
html[data-theme="dark"] .bg-navy h3,
html[data-theme="dark"] .bg-navy p,
html[data-theme="dark"] .bg-navy a,
html[data-theme="dark"] .bg-navy a:visited {
  color: var(--color-text-inverse) !important;
}

html[data-theme="dark"] .featured-category__title_dx a,
html[data-theme="dark"] .featured-category__title_dx a:visited {
  color: var(--color-brand);
}

html[data-theme="dark"] .featured-category__title_dx a:hover,
html[data-theme="dark"] .featured-category__title_dx a:focus {
  color: var(--color-text-inverse);
}

html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] textarea:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] [tabindex]:focus-visible {
  /* --color-focus en dark = #00ADEE: 7.13:1 vs fondo oscuro ✅ */
  background: rgba(0, 173, 238, 0.2);
}

html[data-theme="dark"] .acx-cat-hori {
  color: var(--color-text-inverse);
}

html[data-theme="dark"] .pagination .page-numbers.current,
html[data-theme="dark"] .nav-links .page-numbers.current,
html[data-theme="dark"] .pagination a.page-numbers:hover,
html[data-theme="dark"] .nav-links a.page-numbers:hover {
  color: var(--color-bg);
}


/* ============================================================
   HIGH CONTRAST MODE
============================================================ */
html[data-contrast="high"] {
  color-scheme: light; /* fuerza inputs/selects a mostrar estilos claros sobre negro */

  --color-bg:        #000000;
  --color-bg-subtle: #0a0a0a;
  --color-bg-dark:   #000000;
  --color-bg-brand:  #000000;
  --color-bg-light:  #000000;

  --color-text:         #ffffff;
  --color-text-muted:   #cccccc;
  --color-text-inverse: #ffffff;
  --color-text-gray: #ffffff;

  --color-brand:        #ffffff;
  --color-brand-light:  #ffd400;
  --color-brand-dark:   #ffffff;
  --color-brand-accent: #ffd400;
  --color-brand-mid:    #ffd400;

  --color-border:       #ffffff;
  --color-border-input: #ffffff;

  --color-focus: #ffd400;
}

html[data-contrast="high"] body {
  background: #000000 !important;
  color: #f2f2f2 !important;
}

html[data-contrast="high"] h1,
html[data-contrast="high"] h2,
html[data-contrast="high"] h3,
html[data-contrast="high"] h4,
html[data-contrast="high"] h5,
html[data-contrast="high"] h6 {
  color: #ffffff !important;
}

html[data-contrast="high"] p,
html[data-contrast="high"] li,
html[data-contrast="high"] .entry-content,
html[data-contrast="high"] .site-main {
  color: #f2f2f2 !important;
}

html[data-contrast="high"] a {
  color: #ffd400 !important;
  text-decoration: underline !important;
}

html[data-contrast="high"] .site-header,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .main-navigation {
  background: #000000 !important;
  color: #f2f2f2 !important;
}

html[data-contrast="high"] .site-footer p,
html[data-contrast="high"] .site-footer h2,
html[data-contrast="high"] .site-footer a,
html[data-contrast="high"] .site-footer a:visited {
  color: #ffffff !important;
}

html[data-contrast="high"] .site-footer a:hover,
html[data-contrast="high"] .site-footer a:focus {
  color: #ffd400 !important;
  text-decoration: underline !important;
}

html[data-contrast="high"] .acx-cat {
  background: #000000 !important;
  color: #ffd400 !important;
  border: 1px solid #ffd400;
}

html[data-contrast="high"] .bg-navy {
  border: 2px solid #ffffff;
}

html[data-contrast="high"] .bg-navy h2,
html[data-contrast="high"] .bg-navy h3,
html[data-contrast="high"] .bg-navy p,
html[data-contrast="high"] .bg-navy a,
html[data-contrast="high"] .bg-navy a:visited {
  color: #ffffff !important;
}

html[data-contrast="high"] .bg-navy a:hover,
html[data-contrast="high"] .bg-navy a:focus {
  color: #ffd400 !important;
}

.page-id-14111 .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   ACCESSIBILITY WIDGET
============================================================ */
.accessibility-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
}

@media (min-width: 480px) {
  .accessibility-widget {
    right: 24px;
    bottom: 24px;
  }
}

/* FAB */
.accessibility-fab {
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #1e2d5a;
  color: var(--color-text-inverse);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(36, 60, 140, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  line-height: 0;
}

@media (min-width: 480px) {
  .accessibility-fab {
    width: 56px;
    height: 56px;
  }
}

.accessibility-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 60, 140, .4);
}

/* Panel */
.accessibility-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: calc(100vw - 32px);
  background: #1e2d5a;        /* navy oscuro — contraste con el contenido claro */
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 480px) {
  .accessibility-panel {
    width: 300px;
    bottom: 72px;
    padding: 20px;
  }
}

/* Separador entre secciones */
.accessibility-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.accessibility-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accessibility-section:first-child {
  padding-top: 0;
}

/* Header */
.accessibility-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 0;
}

.accessibility-panel-header h2 {
  margin: 0;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.accessibility-close {
  border: none;
  background: rgba(255,255,255,.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  min-height: 36px;
  min-width: 44px;
  max-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.accessibility-close:hover {
  background: rgba(255,255,255,.2);
}

/* Labels de sección */
.accessibility-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* Fila de botones (tamaño de texto) */
.accessibility-row {
  display: flex;
  gap: 6px;
}

/* Botones base */
.accessibility-panel button {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px !important;
  font-family: 'Lexend', sans-serif !important;
  font-weight: 500 !important;
  transition: background .15s ease, border-color .15s ease;
  flex: 1 1 auto;
}

.accessibility-panel button:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

.accessibility-panel button:focus-visible {
  outline: 3px solid var(--color-brand-accent);
  outline-offset: 2px;
}

/* Grupo de modo visual */
.accessibility-mode-group {
  display: flex;
  gap: 6px;
}

/* Botón de modo activo */
.accessibility-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px !important;
  font-size: 12px !important;
}

.accessibility-mode-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.accessibility-mode-btn__label {
  font-size: 11px !important;
  font-weight: 600 !important;
}

.accessibility-mode-btn.is-active {
  background: var(--color-brand-accent) !important;
  border-color: var(--color-brand-accent) !important;
  color: #ffffff !important;
}

.accessibility-mode-btn.is-active:hover {
  background: #009fd4 !important;
}

/* Contador de tamaño */
#font-size-value {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
  margin: 0;
}

/* Reset */
#global-reset {
  width: 100%;
  background: rgba(185, 28, 28, .7) !important;
  color: #ffffff !important;
  border-color: rgba(185, 28, 28, .5) !important;
  flex: 1 1 100%;
}

#global-reset:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* ── Dark mode: el panel ya es oscuro, solo ajustar el FAB ── */
html[data-theme="dark"] .accessibility-fab {
  background: var(--color-brand-mid);
  border-color: var(--color-brand);
}

html[data-theme="dark"] .accessibility-panel {
  background: #0d1526;
  border-color: rgba(255,255,255,.1);
}

/* ── High contrast overrides ── */
html[data-contrast="high"] .accessibility-fab {
  background: #000000;
  color: #ffd400;
  border: 2px solid #ffd400;
}

html[data-contrast="high"] .accessibility-fab:hover,
html[data-contrast="high"] .accessibility-fab:focus {
  background: #ffd400;
  color: #000000;
}

html[data-contrast="high"] .accessibility-panel {
  background: #000000;
  border: 2px solid #ffffff;
}

html[data-contrast="high"] .accessibility-panel button {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}

html[data-contrast="high"] .accessibility-panel button:hover,
html[data-contrast="high"] .accessibility-panel button:focus {
  background: #ffd400;
  color: #000000;
  border-color: #ffd400;
}

html[data-contrast="high"] .accessibility-mode-btn.is-active {
  background: #ffd400 !important;
  color: #000000 !important;
  border-color: #ffd400 !important;
}

html[data-contrast="high"] #global-reset {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ff4444 !important;
}

html[data-contrast="high"] #global-reset:hover,
html[data-contrast="high"] #global-reset:focus {
  background: #ff4444 !important;
  color: #000000 !important;
}


/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.inside-header {
  padding: 10px 20px;
}

@media (min-width: 768px) {
  .inside-header {
    padding: 10px 30px;
  }
  .site-main .wp-block-group__inner-container { padding: 0; }
}


.has-inline-mobile-toggle #site-navigation {
  flex-basis: unset;
}


/* ============================================================
   TOP BAR
============================================================ */

/* ── Mobile default (column) ──────────── */
.top-bar {
  background: var(--color-brand-mid);
  color: var(--color-text-inverse);
  font-size: 0.875rem;
}

.top-bar-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.top-bar-sx,
.top-bar__right {
  display: flex;
  align-items: center;
}

.top-bar__right {
  display: none;
}

.top-bar-only {
  display: block;
}

.top-bar .menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-bar .menu-item {
  margin: 0;
  padding: 0;
}

/* accessible clickable area */
.top-bar .menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.875rem;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.top-bar .menu a:hover {
  background: rgba(255,255,255,0.12);
}

.top-bar .menu a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
  background: rgba(255,255,255,0.18);
}

.top-bar a {
  color: inherit;
}

.top-bar-widget,
.top-bar-widget p {
  margin: 0 auto;
  font-size: var(--font-size-sm);
}

/* ── Desktop (row) ──────────── */
@media (min-width: 769px) {
  .top-bar-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
  }

  .top-bar__right {
    display: flex;
    margin-left: auto;
  }

  .top-bar-only {
    display: none;
  }
}
/* ============================================================
   FOOTER
============================================================ */
.site-footer,
.footer-widgets,
.site-info {
  background: var(--color-bg-brand);
}

.copyright-bar {
  color: var(--color-text-inverse);
}

.site-footer p,
.site-footer h2,
.site-footer a,
.site-footer a:visited {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-text-inverse);
  text-decoration: underline;
}

.widget-title {
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}


/* ============================================================
   BACKGROUNDS
============================================================ */
.bg-azul {
  background: var(--color-bg-light);
}

.bg-navy {
  background: var(--color-bg-brand);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy p,
.bg-navy a,
.bg-navy a:visited {
  color: var(--color-text-inverse);
}

.bg-navy a:hover,
.bg-navy a:focus {
  color: var(--color-text-inverse);
  text-decoration: underline;
}


/* ============================================================
   CATEGORY TAG
============================================================ */
.acx-cat {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-brand);
  background: var(--color-bg-light);
  padding: 2px 8px;
  border-radius: 4px;
}


/* ============================================================
   LISTS
============================================================ */
ul, ol {
  padding-left: 20px;
}

@media (min-width: 640px) {
  ul, ol {
    padding-left: 24px;
  }
}

li {
  line-height: var(--line-height-base);
  margin-bottom: 6px;
}


/* ============================================================
   FORMS
============================================================ */

/* ── Native inputs ──────────── */
input, textarea, select {
  font-size: var(--font-size-base);
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid var(--color-border-input);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 640px) {
  input, textarea, select {
    padding: 10px 12px;
  }
}

/* ── FluentForms .ff-* ──────────── */
.fluentform .ff-el-group {
  margin: 1rem 0 0 0;
}

.ff-el-group.ff-custom_html p {
  font-size: var(--font-size-sm);
  text-align: center;
}

.fluentform .ff-el-is-error .text-danger {
  font-size: 14px;
}

.ff-el-form-control {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 2px solid #222;
  border-radius: 8px;
  font-size: 16px;
}

.ff-el-form-control:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.ff-btn-submit {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
}

.ff-el-input--label label {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
  display: block;
}

.wp-block-social-links .wp-social-link svg {
  height: 2em;
  width: 2em;
}


/* ============================================================
   CARDS
============================================================ */

/* ── .card generic ──────────── */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .card {
    padding: 24px;
  }
}

/* ── .lc-card ──────────── */
.lc-card {
  background: var(--color-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}

.lc-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eef5;
}

.lc-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 2.5rem;
}

.lc-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}

.lc-card__cont {
  min-height: 210px;
  overflow: hidden;
}

.lc-card__footer {
  padding: 0 1.1rem 2rem 1.1rem;
  text-align: center;
}

/* ── .card-post legacy ──────────── */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.05),
    0 20px 50px rgba(0,0,0,.08);
  border-radius: 24px;
}

.card-post:hover,
.card-post:focus-within {
  box-shadow:
    0 0 0 2px #16C79A,
    0 10px 60px rgba(0,0,0,.1);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  min-width: 100%;
  min-height: 200px;
  width: auto;
  height: auto;
}

.card-content {
  height: 270px;
  padding: 0 20px;
}

.card-btn {
  padding: 0 20px;
}

.card-header {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header a {
  font-weight: var(--font-weight-semibold);
  font-size: 1.375rem;
  line-height: 1.25;
  padding-right: 1rem;
  text-decoration: none;
  color: inherit;
}

.card-footer {
  margin-top: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,.08);
}

.card-meta {
  display: flex;
  align-items: center;
  color: #787878;
}


/* ============================================================
   PAGINATION
============================================================ */
.pagination .nav-links {
  text-align: center;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 2rem auto;
  font-family: inherit;
  justify-content: center;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.pagination a.page-numbers,
.nav-links a.page-numbers {
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  background-color: transparent;
}

.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover {
  color: var(--color-text-inverse);
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  color: var(--color-text-inverse);
  background-color: var(--color-brand);
  border: 2px solid var(--color-brand);
  cursor: default;
}

.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
  color: var(--color-brand);
  border: 2px solid transparent;
  min-width: auto;
  padding: 0 4px;
  cursor: default;
}

.pagination a.page-numbers:focus-visible,
.nav-links a.page-numbers:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}


/* ============================================================
   HUB CONTROLS
============================================================ */

/* ── Mobile default (column) ──────────── */
.hub-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: .5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  min-width: 0;
}

.hub-count {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.hub-active-filters {
  margin: 1rem 0;
}

/* Filtro por año / categoría */
.hub-filter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: end;
}

/* Labels visibles al lado de los selects */
.hub-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  width: 100%;
}

/* Selects más compactos */
.hub-filter-form select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.hub-filter-form select:hover {
  border-color: #9ca3af;
}

.hub-filter-form select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(36,60,140,0.1);
}

.hub-filter-form button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
}

.hub-filter-form button:hover {
  background-color: #2563eb;
}

/* ── Wide screens (row) ──────────── */
@media (min-width: 481px) {
  .hub-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hub-filter-form {
    flex-wrap: nowrap;
  }

  .hub-filter-label {
    width: auto;
  }

  .hub-filter-form select {
    flex: 0 1 auto;
    max-width: 290px;
  }
}


/* ============================================================
   FEATURED POST
============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 2rem;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-post__content {
  padding: 0 30px 30px;
}

@media (min-width: 768px) {
  .featured-post__content {
    padding: 0;
  }
}

.featured-post__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.featured-post__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 2.5rem;
}

.featured-post__title {
  font-size: var(--font-size-xl);
  margin-bottom: 20px;
}

.featured-post__excerpt {
  margin-bottom: 20px;
}

.featured-post__footer {
  margin-top: auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .featured-post__footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    align-items: center;
  }
}

.featured-post__meta {
  display: flex;
  gap: 20px;
  color: #787878;
}

.featured-post__author {
  margin-top: 0;
  text-align: left;
}

.featured-post__author p {
  font-size: var(--font-size-sm) !important;
  color: var(--color-gray-mid);
  text-align: left;
  margin-bottom: 0;
}

.featured-post__author strong {
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-mid);
}

.featured-post__category {
  color: var(--color-brand, #2c3e50);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--font-size-sm, 0.875rem);
  letter-spacing: 0.5px;
}

.featured-post__date {
  color: var(--color-text-gray, #787878);
  font-size: var(--font-size-sm, 0.875rem);
}

.featured-post__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px;
  background-color: var(--color-brand, #1e3a8a);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: var(--font-weight-medium, 500);
  font-size: var(--font-size-base, 1rem);
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .featured-post__btn {
    width: auto;
  }
}

.featured-post__btn:hover {
  background-color: var(--color-brand-dark, #1e40af);
  color: #fff;
  transform: translateY(-1px);
}

.featured-post__btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}


/* ============================================================
   LC-GRID
============================================================ */
.lc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (min-width: 480px) {
  .lc-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .lc-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
    gap: 3rem;
  }
}


/* ============================================================
   FEATURED CATEGORY COMPONENT
============================================================ */
.featured-category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.featured-category__main {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.09);
}

.featured-category__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef5;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.featured-category__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-category__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 2.5rem;
}

.featured-category__content {
  padding-top: 2rem;
}

.featured-category__list {
  display: flex;
  flex-direction: column;
  flex: 2;
  border-left: none;
}

.featured-category__item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.09);
}

.featured-category__number {
  font-size: 2rem;
}

.featured-category__excerpt {
  margin-bottom: 1rem;
}

h3.featured-category__title {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
}

h3.featured-category__title a {
  color: inherit;
  text-decoration: none;
}

h3.featured-category__title a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.featured-category__item-content h3 a {
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .featured-category__main {
    display: grid;
    padding-right: 2rem;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

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

  .featured-category__list {
    border-left: 1px solid rgba(0,0,0,.09);
  }

  h3.featured-category__title {
    font-size: var(--font-size-xl);
  }

  .featured-category__item {
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 0;
  }

  .featured-category__item-content h3 a {
    font-size: inherit;
  }
}


/* ============================================================
   LOOP OPINION
============================================================ */

/* ── Cabecera sección ─────────────────────────────────── */
.lo-section {
  margin: 2rem 0;
}

.lo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e5e7eb;
}

.lo-header__title {
  font-size: .72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}

.lo-header__link {
  font-size: .78rem;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}

.lo-header__link:hover,
.lo-header__link:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.lo-header__link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.lo-header__link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Grid principal ───────────────────────────────────── */
.lo-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .lo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Card featured ────────────────────────────────────── */
.lo-featured {
  position: relative;
  min-height: 260px;
  background: #1e2d4a;
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .lo-featured {
    min-height: 360px;
  }
}

.lo-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  display: block;
}

/* Degradado sutil para mejorar contraste del texto */
.lo-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 50, .85) 0%,
    rgba(10, 20, 50, .25) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.lo-featured__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem;
}

.lo-featured__cat {
  display: inline-block;
  font-size: .65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .25rem .7rem;
  margin-bottom: .75rem;
}

.lo-featured__title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  color: #fff;
  margin: 0 0 .6rem;
}

.lo-featured__meta {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
}

.lo-featured__meta time { font-style: normal; }

/* Enlace invisible cubre toda la card */
.lo-featured__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
}

.lo-featured__link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -4px;
}

/* ── Lista de artículos ───────────────────────────────── */
.lo-list {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-subtle);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lo-list__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
  transition: background .15s;
  flex: 1;
}

.lo-list__item:last-child {
  border-bottom: none;
}

.lo-list__item:hover {
  background: #f9fafb;
}

.lo-list__num {
  font-size: .7rem;
  font-weight: var(--font-weight-bold);
  color: #d1d5db;
  min-width: 20px;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lo-list__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.lo-list__cat {
  font-size: .65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
}

.lo-list__title {
  font-size: .9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-accent);
  margin: 0;
}

.lo-list__excerpt {
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lo-list__date {
  font-size: .7rem;
  color: #9ca3af;
}

.lo-list__arrow {
  color: #d1d5db;
  align-self: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: transform .15s, color .15s;
}

.lo-list__item:hover .lo-list__arrow {
  transform: translateX(3px);
  color: #9ca3af;
}

/* Enlace invisible cubre toda la fila */
.lo-list__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lo-list__link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -3px;
  border-radius: 3px;
}


/* ============================================================
   LOOP TEXT
============================================================ */
.article-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-gray-light);
}

.article-text {
  border-bottom: 1px solid var(--color-gray-light);
}

.article-text__image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.article-text__image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.article-text__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.article-text:hover .article-text__image-wrap img {
  transform: scale(1.04);
}

.article-text__body {
  padding: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-text__cont {
  height: auto;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-text-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--color-gray-light);
    margin-top: 1rem;
  }

  .article-text__body {
    padding: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .article-text__cont {
    height: 300px;
  }

  .article-text {
    padding: 0 1.5rem;
    border-right: 1px solid var(--color-gray-light);
    border-bottom: none;
  }

  .article-text:first-child {
    padding-left: 0;
  }

  .article-text:last-child {
    padding-right: 0;
    border-right: none;
  }
}


/* ============================================================
   QUICK INFO — NEW
============================================================ */
.quick-info {
  background-color: var(--color-bg-subtle);
  margin: 2rem 0;
  padding: 3rem 0;
}
.quick-info h2 {
  color: var(--color-gray-dark);
  text-transform: none;
} 
.quickinfo-number {
  font-size: var(--font-size-quicknum);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 10px;
  color: var(--color-brand);
}

.quickinfo-label {
  font-size: var(--font-size-base);
  line-height: 1.4;
  color: var(--color-gray-dark);
}

.quickinfo-bottom {
  margin-top: 10px;
  text-align: left;
  padding: 0 15px;
  width: auto;
}

.quickinfo-bottom p {
  margin: 0;
  font-size: var(--font-size-sm);
}

.quickinfo-bottom a {
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
}
.quickinfo-item {
    background: var(--color-bg);
}
/* ── 2 columns ──────────── */
@media (min-width: 640px) {
  .quickinfo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .quickinfo-item {
    border-bottom: none;
    border-right: 2px solid var(--color-brand);
  }

  .quickinfo-item:first-child {
    padding-left: 0;
    border-right: 2px solid var(--color-brand);
  }

  .quickinfo-item:last-child {
    padding-right: 0;
    border-right: none;
  }
}
/* ── 4 columns ──────────── */
@media (min-width: 1024px) {
  .quickinfo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



/* ============================================================
   PATRON SECTIONS
============================================================ */

/* ── patron-cta ──────────── */
.patron-cta__logo-wrap {
  background: #d6e4f7;
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 700px) {
  .patron-cta__logo-wrap {
    max-width: 280px;
    padding: 2.5rem;
  }
}

.patron-cta__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.patron-cta__imagen {
  width: 85%;
}

.patron-cta__btn .wp-block-button__link:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

/* ── lcs-section (fondo azul) ──────────── */
.lcs-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.lcs-section__header {
  width: 100%;
  align-items: flex-start !important;
}

.lcs-section__eyebrow {
  margin: 0;
  color: #7eb3f5;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

h2.lcs-section__title {
  color: var(--color-text-inverse);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lcs-section__btn .wp-block-button__link:focus-visible {
  outline: 3px solid #7eb3f5;
  outline-offset: 3px;
}

/* ── lcs-section-light (fondo blanco) ──────────── */
.lcs-section-light {
  background: var(--color-bg);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.lcs-section-light > * {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.lcs-section-light .lc-grid {
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.lcs-section-light__header {
  width: 100%;
  align-items: flex-start !important;
  margin: 0 auto;
}

.lcs-section-light__header > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.lcs-section-light__eyebrow,
.lcs-section-light__title {
  margin: 0 !important;
}

.lcs-section-light__eyebrow {
  color: #7eb3f5;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.lcs-section-light__title {
  color: var(--color-brand);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.lcs-section-light__btn .wp-block-button__link:focus-visible {
  outline: 3px solid #7eb3f5;
  outline-offset: 3px;
}


/* ============================================================
   CATEGORY HEADER
============================================================ */
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-header__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.category-header__title {
  margin: 0;
}


/* ============================================================
   HERO
============================================================ */
.acx-hero-01 { line-height: 0; }

.acx-hero-01-image {
  clip-path: ellipse(75% 100% at 75% 50%);
  border-radius: 42% 58% 24% 76% / 48% 30% 70% 52%;
  overflow: hidden;
}

.acx-hero_text {
  padding: 4rem 0;
}

.texto-destacado {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
}


/* ============================================================
   ALIADOS
============================================================ */
.aliado-item {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aliado-item img {
  height: 100%;
  object-fit: contain;
}


/* ============================================================
   LOADING STATE
============================================================ */
#category-content.loading {
  position: relative;
  pointer-events: none;
}

#category-content.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#category-content {
  transition: opacity 0.2s ease-in-out;
}


/* ============================================================
   PAGE — PORTADA
============================================================ */
.home h2 {
  color: var(--color-brand);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0;
}
h2.widget-title { 
font-size: inherit;
color: var(--color-text-inverse);
margin-bottom: 1rem;
}
@media (min-width: 768px) {
.hone h2 {
    font-size: var(--font-size-4xl);
  }
}
.bg-light {
  background: var(--color-bg-subtle);
}

/* ============================================================
   PAGE — CATEGORY
============================================================ */
.hub-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hub-category-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: -17px;
}

/* ── hub-header / page-blog ──────────── */
.acx-cat-hori {
  /* intentionally empty — inherits from .acx-cat base if needed */
}
.ff-btn-submit {
    font-family: var(--font-family-base);
}

.wp-image-14144 {
    width: 60%;
}

/* ============================================================
   FLUENT FORM — MENSAJE DE ÉXITO (dark + alto contraste)
============================================================ */
#fluentform_1_success.ff-message-success {
  /* token propio del componente; se redefine por modo abajo */
  --ff-ok: var(--color-success);
  --ff-ok-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");

  max-width: 520px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border, #5A7FA0);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
  animation: ff-pop .45s ease;
}

/* Icono check-circle de un solo color → recolorea por modo vía mask */
#fluentform_1_success.ff-message-success::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background-color: var(--ff-ok);
  -webkit-mask: var(--ff-ok-icon) center / contain no-repeat;
          mask: var(--ff-ok-icon) center / contain no-repeat;
  animation: ff-check .5s .12s ease both;
}

#fluentform_1_success.ff-message-success p {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
}

@keyframes ff-pop   { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
@keyframes ff-check { from { transform: scale(0); } to { transform: scale(1); } }

/* ── DARK MODE: verde claro, contraste alto sobre fondo oscuro ── */
html[data-theme="dark"] #fluentform_1_success.ff-message-success {
  --ff-ok: #4ade80;
  box-shadow: none;
}

/* ── ALTO CONTRASTE: amarillo del sistema, sin sombra, borde blanco ── */
html[data-contrast="high"] #fluentform_1_success.ff-message-success {
  --ff-ok: var(--color-focus);           /* #ffd400 */
  background: var(--color-bg);           /* #000 */
  border: 2px solid var(--color-border); /* #fff */
  box-shadow: none;
}

/* ── prefers-contrast: more (macOS/Linux/Android) ── */
@media (prefers-contrast: more) {
  #fluentform_1_success.ff-message-success {
    border-color: var(--color-brand);
    box-shadow: none;
  }
}

/* ── Windows forced-colors ── */
@media (forced-colors: active) {
  #fluentform_1_success.ff-message-success {
    border: 2px solid CanvasText;
    box-shadow: none;
  }
  #fluentform_1_success.ff-message-success::before {
    background-color: CanvasText;
  }
}