/* ============================================================
   blog.css — Blog de Tlalli Consultoría Ambiental
   Basado en el blog del Congreso de EF, con la paleta de Tlalli.
   Las extensiones propias de Tlalli están al final del archivo.
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --azul:        #1f5c4a;
  --azul-oscuro: #0b3a2d;
  --azul-claro:  #e9f3ef;
  --azul-medio:  #3d7f69;
  --rojo:        #e96b56;
  --rojo-suave:  #fdf2ee;
  --negro:       #111318;
  --gris:        #5a5e68;
  --gris-claro:  #f4f5f7;
  --borde:       #dfe9e5;
  --blanco:      #ffffff;

  /* Aliases del artículo (ia.html usaba estos nombres) */
  --verde:        #1f5c4a;
  --verde-oscuro: #0b3a2d;
  --verde-claro:  #e9f3ef;
  --naranja:      #e96b56;
  --naranja-suave:#fdf2ee;
}

/* ── 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: #a7dcc5; 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(8,40,31,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: #a7dcc5; 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: #d4553f !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(11,58,45,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(233,107,86,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: #a7dcc5; }
.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), #4a9a7f);
  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: #a7dcc5;
  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(233,107,86,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: #d4553f; }
.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(11,58,45,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(233,107,86,0.15);
  border: 1px solid rgba(233,107,86,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: #d4553f; }
.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: #123f33;
  padding: 6px 0;
  border-bottom: 1px solid rgba(11,58,45,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 #cfe2da;
  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: #c6ddd4;
}
.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(11,58,45,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: #d4553f; 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 #c6ddd4; 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 {
  background:#f4f5f7;
  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(11,58,45,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(11,58,45,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: #a7dcc5;
  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: #a7dcc5; }
.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: #d4553f; }

/* ════════════════════════════════════════════════════════════
   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(11,58,45,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: #dcebe5;
  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: #c6ddd4;
  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: #a7dcc5; }
.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: #cfe2da;
  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: #d4553f; }
.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%, #8a3517 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: #c6ddd4; }
.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 #d7e7e0;
  display: block;
}
.topic-card:hover {
  border-color: var(--azul);
  box-shadow: 0 4px 20px rgba(11,58,45,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: #a7dcc5; 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; }


/* ════════════════════════════════════════════════════════════
   FIGURAS E IMÁGENES DENTRO DEL ARTÍCULO
════════════════════════════════════════════════════════════ */
.article-figure {
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,58,45,0.1);
}
.article-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-figure:hover img {
  transform: scale(1.02);
}
.article-figure figcaption {
  background: var(--azul-claro);
  border-top: 2px solid var(--azul);
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--gris);
  font-style: italic;
  line-height: 1.5;
}

/* Imagen de portada en el hero del artículo */
.hero-portada {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 28px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

@media (max-width: 780px) {
  .article-figure img { height: 240px; }
  .hero-portada        { height: 220px; }
}


/* ════════════════════════════════════════════════════════════
   BANDA DE PATROCINADORES — CARRUSEL INFINITO
════════════════════════════════════════════════════════════ */
.sponsors-band {
  background: #fff;
  border-top:    1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  padding: 16px 0;
  overflow: hidden;
}

/* Contenedor con etiqueta a la izquierda */
.sponsors-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Etiqueta fija */
.sponsors-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aab0c0;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 24px 0 32px;
  border-right: 1px solid var(--borde);
}

/* Zona del carrusel — oculta el overflow y muestra solo lo que cabe */
.sponsors-carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Degradados en los bordes para efecto de fade */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

/* Track que se desplaza — contiene 2 copias para el loop infinito */
.sponsors-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: sponsors-scroll 22s linear infinite;
}

/* Pausa al hover sobre cualquier logo */
.sponsors-track:hover { animation-play-state: paused; }

/* Cada grupo de logos (original + copia) */
.sponsors-group {
  display: flex;
  align-items: center;
}

@keyframes sponsors-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cada patrocinador */
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  opacity: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
  min-width: 120px;
  border-right: 1px solid #f0f2f5;
}
.sponsor-item:last-child { border-right: none; }
.sponsor-item:hover {
  transform: scale(1.08);
}
.sponsor-item img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: none;
}


@media (max-width: 600px) {
  .sponsors-label { padding: 0 16px 0 16px; font-size: 0.6rem; }
  .sponsor-item   { padding: 0 24px; min-width: 90px; }
  .sponsor-item img { height: 36px; max-width: 100px; }
}

/* ════════════════════════════════════════════════════════════
   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; }
}

/* ════════════════════════════════════════════════════════════
   EXTENSIONES TLALLI
════════════════════════════════════════════════════════════ */
.header-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo img { height: 46px; width: 46px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.header-logo-text { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: 1.05rem; line-height: 1.15; }
.header-logo-text span { display: block; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a7dcc5; }
nav { flex-wrap: wrap; }

.preview-banner {
  background: #fff4d6; color: #6b4e00; border-bottom: 1px solid #f0dc9a;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; padding: 8px 32px; text-align: center;
}
.preview-banner strong { color: #4a3600; }
.estado-pill {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px;
  background: #fff4d6; color: #6b4e00; vertical-align: middle; margin-left: 6px;
}

/* Miniaturas con imagen de portada */
.article-thumb img, .featured-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.article-card:hover .article-thumb img, .featured-card:hover .featured-img img { transform: scale(1.04); }
.article-thumb .cat-pill, .featured-img .featured-img-badge { z-index: 1; }
.article-thumb.has-img::after, .featured-img.has-img::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.35));
}
.article-cat, .list-cat, .trending-cat { color: var(--rojo); }

/* Encabezado de filtros (búsqueda, etiqueta, categoría) */
.filter-head {
  background: var(--azul-claro); border-left: 4px solid var(--azul); border-radius: 6px;
  padding: 18px 22px; margin-bottom: 28px; font-family: 'DM Sans', sans-serif;
}
.filter-head .fh-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rojo); }
.filter-head h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--negro); margin: 4px 0 6px; }
.filter-head p { font-size: 0.85rem; color: var(--gris); margin: 0; }
.filter-head a { color: var(--azul); font-weight: 600; text-decoration: none; }
.empty-state { padding: 32px 0; color: var(--gris); font-family: 'DM Sans', sans-serif; }
.empty-state a { color: var(--azul); font-weight: 600; }

.search-form-inline { display: flex; gap: 8px; margin-top: 12px; }
.search-form-inline input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--borde); border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; min-width: 0;
}
.search-form-inline input:focus { border-color: var(--azul); }
.search-form-inline button {
  background: var(--azul); color: #fff; border: none; border-radius: 4px; padding: 0 16px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; cursor: pointer;
}

/* Etiquetas activas */
.tag.active, .tag-cloud-item.active { background: var(--azul); color: #fff; border-color: var(--azul); }
.tag-cloud-item small { opacity: 0.6; margin-left: 3px; }

/* Banner de Tlalli en el sidebar */
.congreso-banner img { height: 54px; width: 54px; background: #fff; border-radius: 50%; padding: 4px; filter: none; opacity: 1; }
.footer-brand img { filter: none; opacity: 1; background: #fff; border-radius: 50%; padding: 4px; width: 50px; height: 50px; object-fit: contain; }
.footer-brand .fb-name { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }

/* Botón de LinkedIn */
.share-in { background: #0a66c2; color: #fff; }

/* Barra de administración (solo visible con sesión del panel) */
.admin-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px;
  background: #1d2733; color: #e8edf2; padding: 10px 32px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
}
.admin-bar a { color: #fff; background: rgba(255,255,255,0.12); padding: 5px 12px; border-radius: 4px; text-decoration: none; margin-left: 6px; }
.admin-bar a:hover { background: rgba(255,255,255,0.22); }

/* Evitar desbordes en móvil (URLs largas en referencias, tablas) */
.layout > article, .page-body > main { min-width: 0; }
.article-content a, .article-content li { overflow-wrap: anywhere; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-content img { max-width: 100%; height: auto; }

/* Navegación anterior / siguiente */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.art-nav-item {
  display: block; border: 1.5px solid var(--borde); border-radius: 8px; padding: 16px 18px; text-decoration: none;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--negro);
  transition: border-color 0.2s;
}
.art-nav-item span {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rojo); margin-bottom: 6px;
}
.art-nav-item:hover { border-color: var(--azul); }
.art-nav-item.next { text-align: right; }
.related-grid .article-thumb { height: 130px; }
.related-grid .article-title { font-size: 0.95rem; }

@media (max-width: 780px) {
  .related-grid { grid-template-columns: 1fr !important; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav-item.next { text-align: left; }
}
@media (max-width: 780px) {
  .preview-banner { padding: 8px 16px; }
  nav a { padding: 6px 10px; }
}
