/* ============================================================
   blog.css — Congreso de Educación Física
   CSS completo: artículo + homepage + componentes PHP
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --azul:        #0a2463;
  --azul-oscuro: #061540;
  --azul-claro:  #e8edf8;
  --azul-medio:  #1a3a8f;
  --rojo:        #d62828;
  --rojo-suave:  #fdf0f0;
  --negro:       #111318;
  --gris:        #5a5e68;
  --gris-claro:  #f4f5f7;
  --borde:       #e0e4ef;
  --blanco:      #ffffff;

  /* Aliases del artículo (ia.html usaba estos nombres) */
  --verde:        #0a2463;
  --verde-oscuro: #061540;
  --verde-claro:  #e8edf8;
  --naranja:      #d62828;
  --naranja-suave:#fdf0f0;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--blanco);
  color: var(--negro);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
}
.topbar a { color: #a8c4f0; text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 20px; }

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
header {
  background: var(--azul);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 3px solid var(--rojo);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(6,21,64,0.35);
}
.header-logo { padding: 12px 0; flex-shrink: 0; }
.header-logo img { height: 50px; display: block; }
.header-logo-fallback {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.header-logo-fallback span { color: #a8c4f0; font-style: italic; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
nav a:hover,
nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
nav a.nav-cta {
  background: var(--rojo) !important;
  color: #fff !important;
  border-radius: 4px;
  margin-left: 8px;
}
nav a.nav-cta:hover { background: #b31e1e !important; }

/* ════════════════════════════════════════════════════════════
   HERO — compartido entre index y artículo
════════════════════════════════════════════════════════════ */
.hero {
  background: var(--negro);
  position: relative;
  overflow: hidden;
  padding: 80px 40px 70px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(10,36,99,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(214,40,40,0.2) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 340px; height: 500px;
  background: rgba(255,255,255,0.025);
  transform: rotate(18deg);
  pointer-events: none;
}

/* Hero — página de artículo */
.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.category-badge {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: #a8c4f0; }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 32px;
  font-style: italic;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.author-chip { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul), #2a52be);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.author-avatar-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info  { font-family: 'DM Sans', sans-serif; }
.author-name  { color: #fff; font-size: 0.85rem; font-weight: 500; }
.author-role  { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.meta-divider { color: rgba(255,255,255,0.25); font-size: 1.2rem; }
.meta-date {
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.read-time, .meta-views {
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* Hero — página principal (dos columnas) */
.hero-inner-home {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8c4f0;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--rojo);
}
.hero-desc {
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
  font-family: 'DM Sans', sans-serif;
}

/* Search */
.search-wrap { position: relative; max-width: 440px; }
.search-wrap input {
  width: 100%;
  padding: 14px 54px 14px 20px;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: var(--negro);
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: box-shadow 0.2s;
}
.search-wrap input::placeholder { color: #9aa0b4; }
.search-wrap input:focus { box-shadow: 0 4px 28px rgba(214,40,40,0.35); }
.search-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: var(--rojo);
  border: none;
  border-radius: 4px;
  width: 38px; height: 38px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: #b31e1e; }
.search-btn svg { width:16px; height:16px; stroke:#fff; fill:none; stroke-width:2.5; stroke-linecap:round; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.search-tag:hover { background: rgba(255,255,255,0.1); color: #fff; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(10,36,99,0.18);
  z-index: 200;
  overflow: hidden;
}
.search-results.show { display: block; }
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gris-claro); }
.sr-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.sr-title { font-size: 0.88rem; font-weight: 600; color: var(--negro); margin-bottom: 3px; font-family:'DM Sans',sans-serif; }
.sr-cat   { font-size: 0.68rem; color: var(--rojo); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-family:'DM Sans',sans-serif; }

/* Hero stats */
.hero-right { display: flex; flex-direction: column; gap: 14px; }
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-num span { color: var(--rojo); }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 400; font-family:'DM Sans',sans-serif; }
.newsletter-card {
  background: rgba(214,40,40,0.15);
  border: 1px solid rgba(214,40,40,0.3);
  border-radius: 8px;
  padding: 22px;
}
.newsletter-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; line-height: 1.5; font-family:'DM Sans',sans-serif; }
.newsletter-card strong { color: #fff; }
.newsletter-input-row { display: flex; gap: 8px; }
.newsletter-card input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.9);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}
.newsletter-card button, .newsletter-msg {
  background: var(--rojo);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-card button:hover { background: #b31e1e; }
.newsletter-msg { background: none; color: #a8e6c0; padding: 0; cursor: default; }

/* ════════════════════════════════════════════════════════════
   CATEGORY STRIP
════════════════════════════════════════════════════════════ */
.cat-strip {
  background: var(--azul);
  padding: 0 32px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 20px 0 0;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 4px;
  flex-shrink: 0;
}
.cat-btn, .cat-strip a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 13px 18px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: inline-block;
}
.cat-btn:hover, .cat-strip a:hover { color: #fff; }
.cat-btn.active, .cat-strip a.active { color: #fff; border-bottom-color: var(--rojo); }

/* ════════════════════════════════════════════════════════════
   LAYOUT — homepage (con sidebar)
════════════════════════════════════════════════════════════ */
.page-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════
   LAYOUT — artículo individual
════════════════════════════════════════════════════════════ */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* ── Section heading ────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--borde);
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: '';
  display: block;
  width: 4px; height: 22px;
  background: var(--rojo);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-head a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rojo);
  text-decoration: none;
}
.section-head a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   ARTICLE BODY — contenido del artículo
════════════════════════════════════════════════════════════ */
article h2, .article-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin: 48px 0 16px;
  line-height: 1.25;
}
article h3, .article-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--negro);
  margin: 32px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
article p, .article-content p {
  font-size: 1.08rem;
  color: #2a2e28;
  margin-bottom: 22px;
  font-weight: 300;
}
article strong, .article-content strong { font-weight: 600; color: var(--negro); }
article a, .article-content a { color: var(--azul); }

.drop-cap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--azul);
  float: left;
  line-height: 0.85;
  margin: 4px 10px 0 0;
}

/* Pull quote */
.pullquote {
  border-left: 4px solid var(--rojo);
  margin: 40px 0;
  padding: 20px 28px;
  background: var(--rojo-suave);
}
.pullquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--negro);
  margin: 0;
  line-height: 1.5;
}

/* Highlight box */
.highlight-box {
  background: var(--azul-claro);
  border-left: 4px solid var(--azul);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 6px 6px 0;
}
.highlight-box .box-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azul-oscuro);
  margin-bottom: 12px;
}
.highlight-box ul { list-style: none; padding: 0; }
.highlight-box li {
  font-size: 1rem;
  color: #1a2a5e;
  padding: 6px 0;
  border-bottom: 1px solid rgba(10,36,99,0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.highlight-box li:last-child { border-bottom: none; }
.highlight-box li::before {
  content: '✦';
  color: var(--azul);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Tool cards */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.tool-card {
  border: 1.5px solid #d0d8ee;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.tool-card:hover { border-color: var(--azul); transform: translateY(-2px); }
.tool-icon {
  width: 40px; height: 40px;
  background: var(--azul-claro);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.tool-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--negro);
  margin-bottom: 6px;
}
.tool-desc { font-size: 0.88rem; color: var(--gris); line-height: 1.5; margin: 0; }
.tool-tag {
  display: inline-block;
  margin-top: 10px;
  background: var(--azul-claro);
  color: var(--azul-oscuro);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

/* Warning box */
.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f5b800;
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
}
.warning-box .box-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5800;
  margin-bottom: 10px;
}
.warning-box p { color: #5a4000; font-size: 0.97rem; margin: 0; }

/* Section divider */
.section-divider { display: flex; align-items: center; gap: 16px; margin: 44px 0; }
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #c8d4ee;
}
.section-divider span { color: var(--azul); font-size: 1rem; }

/* CTA final */
.cta-final {
  background: var(--azul-oscuro);
  border-radius: 12px;
  padding: 40px 36px;
  margin: 52px 0 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(10,36,99,0.6), transparent);
}
.cta-final * { position: relative; }
.cta-final h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.cta-final p { color: rgba(255,255,255,0.72); font-size: 0.97rem; margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.cta-btn:hover { background: #b31e1e; transform: translateY(-1px); }

/* Tags */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--gris-claro);
  color: var(--gris);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
}
.tag:hover { background: var(--azul); color: #fff; }

/* ── Compartir artículo ────────────────────────────────────── */
.share-section {
  margin: 36px 0;
  padding: 24px;
  background: var(--gris-claro);
  border-radius: 8px;
}
.share-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 12px;
}
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  flex: 1;
  min-width: 80px;
  padding: 9px 14px;
  border: none;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}
.share-btn:hover { opacity: 0.85; }
.share-wa { background: #25d366; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-tw   { background: #000;    color: #fff; }
.share-copy { background: var(--azul-claro); color: var(--azul);
              border: 1.5px solid #c8d4ee; cursor: pointer;
              font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.share-ig   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
              color: #fff; cursor: pointer;
              font-family: 'DM Sans', sans-serif; border: none; transition: all 0.2s; }
.share-ig:hover { opacity: .85; }

/* ── Bio del autor ───────────────────────────────────────── */
.autor-bio-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  margin: 40px 0;
}
.autor-bio-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.autor-bio-foto   { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.autor-bio-nombre { font-weight: 700; font-size: 1rem; color: var(--negro); font-family:'DM Sans',sans-serif; }
.autor-bio-cargo  { font-size: 0.8rem; color: var(--rojo); margin-bottom: 8px; font-family:'DM Sans',sans-serif; }
.autor-bio-texto  { font-size: 0.88rem; color: var(--gris); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   FEATURED CARD (homepage)
════════════════════════════════════════════════════════════ */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(10,36,99,0.12);
  margin-bottom: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
}
.featured-card:hover { box-shadow: 0 8px 40px rgba(10,36,99,0.2); transform: translateY(-3px); }
.featured-img {
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}
.featured-img-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--rojo);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.featured-content {
  background: var(--azul-oscuro);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a8c4f0;
  margin-bottom: 14px;
}
.featured-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.featured-title em { font-style: italic; color: #a8c4f0; }
.featured-excerpt { font-size: 0.9rem; color: rgba(255,255,255,0.58); line-height: 1.65; margin-bottom: 24px; }
.featured-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.featured-meta-date,
.featured-meta-time { font-family:'DM Sans',sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.38); }
.read-btn {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.2s;
  margin-top: 8px;
  align-self: flex-start;
}
.read-btn:hover { background: #b31e1e; }

/* ════════════════════════════════════════════════════════════
   ARTICLE CARDS GRID (homepage)
════════════════════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.article-card {
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  background: #fff;
  display: block;
}
.article-card:hover {
  border-color: var(--azul);
  box-shadow: 0 6px 28px rgba(10,36,99,0.1);
  transform: translateY(-2px);
}
.article-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cat-pill {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  color: #fff;
}
.article-body { padding: 18px 18px 20px; }
.article-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 8px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-excerpt {
  font-size: 0.83rem;
  color: var(--gris);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: #aab0c0;
}
.read-link {
  color: var(--azul);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
}

/* ── List articles ─────────────────────────────────────────── */
.list-articles { margin-bottom: 40px; }
.list-article {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--borde);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.list-article:last-child { border-bottom: none; }
.list-article:hover .list-title { color: var(--rojo); }
.list-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #dde3f2;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
}
.list-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 5px;
}
.list-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.list-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: #aab0c0;
  display: flex;
  gap: 12px;
}

/* ── Paginación ────────────────────────────────────────────── */
.paginacion {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pag-btn, .pag-num {
  font-family: 'DM Sans', sans-serif;
  padding: 9px 16px;
  border: 1.5px solid var(--borde);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--azul);
  transition: all 0.2s;
}
.pag-num.active { background: var(--azul); color: #fff; border-color: var(--azul); }
.pag-btn:hover, .pag-num:hover { border-color: var(--azul); }

/* ════════════════════════════════════════════════════════════
   SIDEBAR — artículo y homepage
════════════════════════════════════════════════════════════ */
.sidebar { position: sticky; top: 88px; }

/* Sidebar artículo (clases del HTML original) */
.sidebar-card {
  background: var(--gris-claro);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 16px;
}
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid #e2e5e0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  color: var(--gris);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.2s;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li:hover { color: var(--azul); }
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--rojo);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}
.related-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e5e0; }
.related-item:last-child { border-bottom: none; }
.related-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c8d4ee;
  line-height: 1;
  flex-shrink: 0;
}
.related-text { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--gris); line-height: 1.4; }

/* Sidebar blog (sdb-card) */
.sdb-card {
  background: var(--gris-claro);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.sdb-card.dark { background: var(--azul-oscuro); }
.sdb-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sdb-title::after { content: ''; flex: 1; height: 1px; background: var(--borde); }
.sdb-card.dark .sdb-title { color: #a8c4f0; }
.sdb-card.dark .sdb-title::after { background: rgba(255,255,255,0.1); }

/* Trending */
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
  cursor: pointer;
  text-decoration: none;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #d0d8ee;
  line-height: 1;
  flex-shrink: 0;
}
.trending-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 4px;
}
.trending-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--negro);
  line-height: 1.35;
  transition: color 0.2s;
}
.trending-item:hover .trending-title { color: var(--azul); }
.trending-views { font-family:'DM Sans',sans-serif; font-size: 0.68rem; color: #aab0c0; margin-top: 4px; }

/* Categories list */
.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--borde);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover, .cat-list li a:hover { color: var(--azul); }
.cat-list li a { color: inherit; text-decoration: none; flex: 1; }
.cat-count {
  background: var(--azul-claro);
  color: var(--azul);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Newsletter sidebar */
.sdb-newsletter p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; font-family:'DM Sans',sans-serif; }
.sdb-newsletter strong { color: #fff; }
.sdb-newsletter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.sdb-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.sdb-newsletter input:focus { border-color: rgba(255,255,255,0.4); }
.sdb-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.sdb-newsletter button:hover { background: #b31e1e; }
.privacy { font-family:'DM Sans',sans-serif; font-size: 0.68rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 10px; }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gris);
  background: #fff;
  border: 1.5px solid var(--borde);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-cloud-item:hover { background: var(--azul); color: #fff; border-color: var(--azul); }

/* Congreso banner */
.congreso-banner {
  background: linear-gradient(135deg, var(--rojo) 0%, #8b0000 100%);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.congreso-banner img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.congreso-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.congreso-banner p { font-family:'DM Sans',sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; line-height: 1.5; }
.congreso-banner a {
  display: inline-block;
  background: #fff;
  color: var(--rojo);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.congreso-banner a:hover { opacity: 0.9; }

/* ════════════════════════════════════════════════════════════
   COMENTARIOS
════════════════════════════════════════════════════════════ */
.comentario {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--borde);
}
.com-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.com-body { flex: 1; }
.com-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.com-meta strong { font-family:'DM Sans',sans-serif; font-size: 0.9rem; color: var(--negro); }
.com-meta span   { font-family:'DM Sans',sans-serif; font-size: 0.75rem; color: #aab0c0; }
.com-body p      { font-size: 0.9rem; color: var(--gris); line-height: 1.6; }
.com-reply-btn {
  background: none; border: none;
  color: var(--azul);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
}
.com-form-wrap {
  margin-top: 32px;
  padding: 28px;
  background: var(--gris-claro);
  border-radius: 8px;
}
.com-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.com-form-wrap input,
.com-form-wrap textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.com-form-wrap input:focus,
.com-form-wrap textarea:focus { border-color: var(--azul); }
.com-form-wrap textarea { resize: vertical; margin-bottom: 14px; }

/* ════════════════════════════════════════════════════════════
   TOPICS BAND
════════════════════════════════════════════════════════════ */
.topics-band { background: var(--azul-claro); padding: 44px 32px; margin-top: 16px; }
.topics-inner { max-width: 1180px; margin: 0 auto; }
.topics-band .section-head { border-bottom-color: #c8d4ee; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.topic-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  border: 1.5px solid #d8e0f0;
  display: block;
}
.topic-card:hover {
  border-color: var(--azul);
  box-shadow: 0 4px 20px rgba(10,36,99,0.1);
  transform: translateY(-3px);
}
.topic-icon  { font-size: 2rem; margin-bottom: 10px; }
.topic-name  { font-family:'DM Sans',sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--azul); line-height: 1.3; }
.topic-count { font-family:'DM Sans',sans-serif; font-size: 0.68rem; color: #aab0c0; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.45);
  padding: 44px 32px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  text-align: left;
}
.footer-brand img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.7; display: block; }
.footer-brand p   { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.4); max-width: 240px; }
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { font-size: 0.82rem; color: rgba(255,255,255,0.38); padding: 5px 0; cursor: pointer; transition: color 0.2s; }
.footer-col li a { color: inherit; text-decoration: none; }
.footer-col li:hover, .footer-col li a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #a8c4f0; text-decoration: none; }

/* ════════════════════════════════════════════════════════════
   ANIMACIONES
════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > *, .hero-inner-home > * { animation: fadeUp 0.7s ease both; }
.hero-inner > *:nth-child(2), .hero-inner-home > *:nth-child(2) { animation-delay: 0.12s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-body       { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  header           { padding: 0 16px; }
  .topbar          { padding: 8px 16px; }
  .hero            { padding: 44px 16px; }
  .cat-strip       { padding: 0 16px; }
}
@media (max-width: 780px) {
  .layout          { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner-home { grid-template-columns: 1fr; }
  .hero            { padding: 50px 20px; }
  header           { padding: 14px 20px; }
}
@media (max-width: 640px) {
  .featured-card   { grid-template-columns: 1fr; }
  .com-form-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tools-grid      { grid-template-columns: 1fr; }
  .articles-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .topics-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-inner    { grid-template-columns: 1fr; }
}
