/*
Theme Name: El Criterio Puebla
Theme URI: https://elcriterio.com.mx
Author: Helix Inteligencia
Author URI: https://helixinteligencia.com.mx
Description: Tema oficial de El Criterio Puebla — portal de análisis político, de poder y territorial para Puebla, México. Política, poder y territorio. Puebla con criterio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
License: Proprietary
License URI: https://elcriterio.com.mx
Text Domain: el-criterio-puebla
Tags: news, magazine, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   VARIABLES CSS GLOBALES
   ============================================================ */

:root {
  --color-navy:      #1C2B4A;
  --color-slate:     #3A506B;
  --color-red:       #B5330A;
  --color-red-light: #E8503A;
  --color-sand:      #F5EDE0;
  --color-ivory:     #F5F0E8;
  --color-white:     #FFFFFF;
  --color-border:    #DDD5C4;
  --color-text:      #2C2820;
  --color-text-mid:  #5F5E5A;
  --color-text-soft: #888780;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --max-width: 1200px;
  --gutter: 24px;

  --transition-fast: 0.15s ease;
  --transition-med:  0.25s ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
}

/* ============================================================
   RESET Y BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

input, textarea, select {
  font-family: var(--font-sans);
}

/* ============================================================
   CONTENEDOR GLOBAL
   ============================================================ */

.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding: 32px 0;
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.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;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.kicker {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
  margin-bottom: 6px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  border-left: 3px solid var(--color-red);
  padding-left: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section-block {
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border: 1px solid var(--color-red);
}

.btn-primary:hover {
  background: var(--color-red-light);
  border-color: var(--color-red-light);
  text-decoration: none;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-ivory);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--color-ivory);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-navy);
  color: var(--color-ivory);
  border-color: var(--color-navy);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-soft);
}

.breadcrumb a:hover {
  color: var(--color-red);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--color-border);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 9999;
  background: var(--color-navy);
  color: var(--color-ivory);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}
