/* ============================================================
   MAIN CSS — El Criterio Puebla
   Estilos adicionales, overrides, glue entre módulos.
   ============================================================ */

/* ---- Focus visible global ---- */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Imágenes lazy ---- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ---- WordPress alignment classes ---- */
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide  { max-width: 900px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; max-width: none; }

/* ---- WordPress caption ---- */
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 12px;
  color: var(--color-text-soft);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
}

/* ---- Page body ---- */
.page-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 680px;
}

.page-body p { margin-bottom: 1.25em; }
.page-body h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 1.75em 0 0.6em;
}
.page-body a {
  color: var(--color-red);
}

/* ---- Sticky post indicator ---- */
.sticky .card-hero::before,
.sticky .card-minimal::before {
  content: 'Destacado';
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: var(--color-red);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

/* ---- Transition suave en navegación ---- */
.navbar a,
.footer-nav a,
.mobile-menu__list a {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Customizer preview: color de acento dinámico ---- */
.acento-preview {
  color: var(--color-red);
}

/* ---- Page quiénes somos ---- */
.page-quienes-somos .page-title {
  margin-bottom: 24px;
}

/* ---- Loading states ---- */
.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Separador de artículo ---- */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}
