/* =========================
   BASE
========================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background: #faf9f6;
  color: #222;
  line-height: 1.6;
}

main.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =========================
   HEADER / NAVIGATION
========================= */

header {
  background: #111;
  padding: 18px 24px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav .brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 60px;
  padding: 30px;
  text-align: center;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
}

/* =========================
   POSTS
========================= */

.post h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
}

.post-content {
  margin-top: 30px;
}

.post-featured-image {
  margin: 30px 0 40px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* =========================
   POST LISTS
========================= */

.post-list {
  margin-top: 40px;
}

.post-item {
  margin-bottom: 40px;
}

.post-item h2 {
  margin-bottom: 5px;
}

.post-item a {
  text-decoration: none;
  color: #111;
}

.post-item a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
}

/* =========================
   HOME — PORTADA EDITORIAL
========================= */

.home-hero {
  text-align: center;
  margin: 80px 0;
}

.home-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.home-tagline {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px auto;
  color: #444;
}

.home-pillars {
  margin: 80px 0;
}

.home-pillars h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.home-pillars article h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.home-pillars article p {
  color: #444;
  font-size: 0.95rem;
}

/* =========================
   HOME — ÚLTIMOS ARTÍCULOS
========================= */

.home-latest {
  margin: 80px 0;
}

.home-latest h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.home-latest ul {
  list-style: none;
  padding: 0;
}

.home-latest li {
  margin-bottom: 10px;
}

.home-latest a {
  text-decoration: none;
  color: #111;
}

.home-latest a:hover {
  text-decoration: underline;
}

/* =========================
   HOME — CATEGORÍAS
========================= */

.home-categories {
  margin: 80px 0;
}

.home-categories h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.home-categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.home-categories a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.home-categories a:hover {
  text-decoration: underline;
}

/* =========================
   IMÁGENES DENTRO DE ARTÍCULOS
========================= */

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 4px;
}

.post-content figure {
  margin: 40px 0;
}

.post-content figcaption {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* =========================
   UX/UI ADICIONAL
========================= */

.home-intro {
  max-width: 700px;
  margin: 60px auto;
  font-size: 1.05rem;
  color: #333;
}

.pillar-card {
  padding-top: 10px;
}

.pillar-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 8px;
}

.latest-list {
  list-style: none;
  padding: 0;
}

.latest-list li {
  margin-bottom: 12px;
}

.category-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.home-hero {
  text-align: center;
  margin: 100px 0 60px;
}

.home-hero h1 {
  font-size: 2.4rem;
}

.home-tagline {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 20px auto 0;
  color: #444;
}

.home-intro {
  max-width: 720px;
  margin: 60px auto 100px;
  font-size: 1.05rem;
}

.home-pillars {
  margin-bottom: 120px;
}

.home-latest {
  margin-bottom: 100px;
}

.home-categories {
  margin-bottom: 120px;
}

/* =========================
   CSS PARA PÁGINAS
========================= */

.page-content {
  max-width: 760px;
  margin: 80px auto 120px;
}

.page-header {
  background: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.page-body p {
  margin-bottom: 1.4em;
}

/* =========================
   CSS LOGO
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-text {
  font-family: 'Georgia', serif;
  font-weight: 700;
}

/* =========================
   CSS TRADICIONES
========================= */

.category-hero {
  max-width: 760px;
  margin: 80px auto 60px;
}

.category-intro {
  font-size: 1.05rem;
  color: #333;
}

.category-featured {
  max-width: 760px;
  margin: 80px auto;
}

.featured-article {
  margin-bottom: 50px;
}

.category-list {
  max-width: 760px;
  margin: 100px auto;
}

.category-list ul {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 14px;
}

/* =========================
   CSS MOBILE HEADER
========================= */

@media (max-width: 768px) {

  header {
    padding: 12px 16px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .site-logo {
    height: 34px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .menu {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
  }

  .menu li a {
    font-size: 0.9rem;
    white-space: nowrap;
  }
}
