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

:root {
  --red: #c0392b;
  --red-light: #ef5b4e; /* mismo tono, más claro: cumple contraste 4.5:1 sobre --dark (var(--red) sólo da 3.14:1) */
  --dark: #1a1a2e;
  --gray: #555;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #fff;
}

body {
  font-family: 'Georgia', serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* NAV */
header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 3px solid var(--red);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.logo span { color: var(--red-light); }

nav {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 2rem;
  overflow-x: auto;
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a {
  color: #ccc;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--red-light); }

/* HERO */
.hero {
  background: var(--light-gray);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.hero h1 span { color: var(--red); }
.hero p { color: var(--gray); font-size: 1.1rem; }

/* SECTION LABEL */
.section-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* CATEGORIES GRID */
.categories-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 1.5rem;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.category-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }

.category-card h2,
.category-card h3 {
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--gray);
  font-family: 'Arial', sans-serif;
}

/* AUTHORS */
.authors-section {
  background: var(--light-gray);
  padding: 3rem 2rem;
}

.authors-section .inner { max-width: 1200px; margin: 0 auto; }

.authors-section h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.author-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.author-info .badge-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Arial', sans-serif;
  margin-bottom: 0.3rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--gray);
  font-family: 'Arial', sans-serif;
}

/* CONTACT */
.contact-section {
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-section h2 { font-size: 2rem; color: var(--dark); margin-bottom: 0.5rem; }
.contact-section p { color: var(--gray); margin-bottom: 2rem; font-family: 'Arial', sans-serif; }

form { display: flex; flex-direction: column; gap: 1rem; }

form input, form textarea, form select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Arial', sans-serif;
  background: var(--white);
  transition: border-color 0.2s;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--red);
}

form textarea { min-height: 150px; resize: vertical; }

form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button:hover { background: #a93226; }

/* NOSOTROS */
.nosotros-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nosotros-section h2 { font-size: 2rem; color: var(--dark); margin-bottom: 1rem; }
.nosotros-section p { color: var(--gray); font-family: 'Arial', sans-serif; margin-bottom: 1rem; line-height: 1.8; }

.mision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.mision-card {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-radius: 0 4px 4px 0;
}

.mision-card h3 { color: var(--dark); margin-bottom: 0.5rem; font-size: 1rem; }
.mision-card p { font-size: 0.85rem; margin: 0; }

/* FOOTER */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  margin-top: 3rem;
}

footer span { color: var(--red-light); }

/* PAGE HEADER */
.page-header {
  background: var(--dark);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header h1 span { color: var(--red-light); }
.page-header p { color: #aaa; font-family: 'Arial', sans-serif; }

@media (max-width: 600px) {
  .header-top { padding: 0.75rem 1rem; }
  nav { padding: 0.4rem 1rem; gap: 1rem; }
  .categories-section, .authors-section, .contact-section, .nosotros-section { padding: 2rem 1rem; }
}

/* CATEGORY PAGES — ARTICLES & ARTICULO-COMPLETO (movido aquí desde <style> inline duplicado en las 15 páginas) */
.articles-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem; margin-top:2rem; }
.article-card { border:1px solid #e0e0e0; border-radius:6px; overflow:hidden; transition:box-shadow 0.2s,transform 0.2s; }
.article-card:hover { box-shadow:0 4px 20px rgba(0,0,0,0.1); transform:translateY(-3px); }
.article-img { background:#1a1a2e; height:160px; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.article-body { padding:1.2rem; }
.article-body .cat-tag { font-family:Arial; font-size:0.7rem; text-transform:uppercase; letter-spacing:1px; color:#c0392b; font-weight:bold; }
.article-body h3 { font-size:1rem; color:#1a1a2e; margin:0.4rem 0 0.5rem; line-height:1.4; }
.article-body p { font-size:0.85rem; color:#555; font-family:Arial; }
.article-meta { font-family:Arial; font-size:0.75rem; color:#999; margin-top:0.8rem; }
.author-banner { background:#f5f5f5; border:1px solid #e0e0e0; border-radius:6px; padding:1.2rem 1.5rem; display:flex; align-items:center; gap:1rem; margin-bottom:2rem; font-family:Arial; }
.author-banner .av { width:50px; height:50px; border-radius:50%; background:#1a1a2e; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:bold; font-size:1rem; flex-shrink:0; }
.author-banner h2 { font-size:0.95rem; color:#1a1a2e; margin-bottom:0.2rem; }
.author-banner p { font-size:0.8rem; color:#555; margin:0; }
.empty-state { text-align:center; padding:4rem 2rem; color:#aaa; font-family:Arial; }
.empty-state .big-icon { font-size:4rem; margin-bottom:1rem; }
.empty-state h3 { color:#555; margin-bottom:0.5rem; }
.articulo-completo { max-width: 860px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); font-family: Georgia, serif; }
.articulo-header { border-bottom: 3px solid #c0392b; padding-bottom: 1.5rem; margin-bottom: 2rem; }
.articulo-titulo { font-size: 2rem; color: #1a1a2e; margin: 1rem 0; line-height: 1.3; }
.articulo-entradilla { font-size: 1.15rem; color: #444; font-style: italic; line-height: 1.6; }
.articulo-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-family: Arial, sans-serif; font-size: 0.85rem; color: #666; }
.autor-chip { display: flex; align-items: center; gap: 0.4rem; background: #1a1a2e; color: #fff; padding: 0.3rem 0.7rem; border-radius: 20px; }
.avatar-mini { width: 24px; height: 24px; background: #c0392b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: bold; color: #fff; }
.fecha-chip, .ciudad-chip { background: #f0f0f0; padding: 0.3rem 0.7rem; border-radius: 20px; }
.articulo-cuerpo p { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 1.2rem; }
.articulo-cuerpo blockquote { border-left: 4px solid #c0392b; padding: 0.8rem 1.2rem; margin: 1.5rem 0; background: #fafafa; font-style: italic; color: #555; }
.articulo-fuentes { background: #f9f9f9; border-radius: 6px; padding: 1rem 1.5rem; margin-top: 2rem; font-family: Arial, sans-serif; font-size: 0.85rem; color: #555; }
.articulo-fuentes ul { margin: 0.5rem 0 0 1rem; }
.articulo-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #eee; font-family: Arial, sans-serif; font-size: 0.8rem; color: #888; text-align: center; }

/* Tap targets accesibles en mobile (Lighthouse: tap targets) */
nav a { padding: 0.4rem 0.2rem; display: inline-block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* TOPICS SELECTION & INTERACTIVE TABS (Premium Modern UX) */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.topic-card {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gray);
  border-radius: 4px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-card:hover {
  background: var(--white);
  border-top-color: var(--red-light);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.topic-card.active {
  background: var(--white);
  border-top-color: var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(0);
}

.topic-badge {
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.topic-card h3 {
  font-size: 0.95rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}

.topic-card:hover h3,
.topic-card.active h3 {
  color: var(--red);
}

.topic-meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: auto;
}

/* Active Article Display Layout */
.active-article-container {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.active-article-container .articulo-completo {
  display: none;
  margin-top: 0;
}

.active-article-container .articulo-completo.active {
  display: block;
  animation: articleFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes articleFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

