/* --- SISTEMA DE DISEÑO Y CONFIGURACIÓN GLOBAL --- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fbf9f6;
  color: #2c2822;
  font-family: 'Lora', Georgia, serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- ENCABEZADO Y COMPONENTE DE NAVEGACIÓN --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ebdcc5;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(26, 23, 18, 0.02);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: #1a1712;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #5c554a;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: #e4833c;
}
.nav-button {
  margin-left: 20px;
  text-decoration: none;
  color: #fff !important;
  background-color: #e4833c;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(228, 131, 60, 0.2);
}
.nav-button:hover {
  background-color: #cb6d2a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(228, 131, 60, 0.3);
}
.nav-button:active {
  transform: translateY(0);
}

/* --- VISTA DE ENTRADA O LANDING PAGE (INICIO) --- */
.hero-landing {
  padding: 48px 40px;
  background: linear-gradient(135deg, #fdf7ee 0%, #f6ebe0 100%);
  border: 1px solid #ebdcc5;
  margin-top: 32px;
  margin-bottom: 32px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(26, 23, 18, 0.02);
}
.hero-landing-content {
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: #fdf2e9;
  color: #e4833c;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-landing h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1712;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 0 0 16px 0;
}
.hero-landing p {
  font-size: 1.15rem;
  color: #5c554a;
  margin: 0 0 24px 0;
  max-width: 70ch;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #e4833c;
  line-height: 1.1;
}
.stat-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: #8c8475;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* --- SECCIÓN DE BÚSQUEDA --- */
.search-section {
  margin-bottom: 32px;
}
.search-box-card {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(26, 23, 18, 0.03);
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: #a19785;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-input-landing {
  width: 100%;
  padding: 16px 18px 16px 50px;
  border: 2px solid #e1d8c9;
  border-radius: 10px;
  background: #fffdfa;
  color: #2c2822;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.search-input-landing:focus {
  outline: none;
  border-color: #e4833c;
  box-shadow: 0 4px 16px rgba(228, 131, 60, 0.12);
  background: #fff;
}
.search-meta {
  margin: 10px 0 0 4px;
  color: #736c5e;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

/* --- DISEÑO DE TARJETAS Y GRID DE PÓDCAST --- */
.home-section {
  margin-bottom: 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #ebdcc5;
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1a1712;
  margin: 0;
  letter-spacing: -0.5px;
}
.section-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e4833c;
  text-decoration: none;
  transition: color 0.2s ease;
}
.section-link:hover {
  color: #cb6d2a;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.podcast-card {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(26, 23, 18, 0.03);
  transition: all 0.25s ease;
}
.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(228, 131, 60, 0.1);
  border-color: #e4833c;
}
.podcast-thumb-link {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1712;
}
.podcast-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.podcast-card:hover .podcast-thumb {
  transform: scale(1.04);
}
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.podcast-card:hover .play-overlay {
  opacity: 1;
}
.play-button-icon {
  background: #e4833c;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.podcast-card:hover .play-button-icon {
  transform: scale(1.1);
}
.podcast-info {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.podcast-tag {
  align-self: flex-start;
  background: #fdf2e9;
  color: #e4833c;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}
.podcast-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.35;
  flex-grow: 1;
}
.podcast-info h3 a {
  color: #1a1712;
  text-decoration: none;
  transition: color 0.2s ease;
}
.podcast-info h3 a:hover {
  color: #e4833c;
}

/* --- DISEÑO EDITORIAL DE ARTÍCULOS --- */
.post-list-landing {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-item-landing {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(26, 23, 18, 0.01);
}
.post-item-landing:hover {
  border-color: #e4833c;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(26, 23, 18, 0.04);
}
.post-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  min-width: 0;
}
.post-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1712;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.post-item-title:hover {
  color: #e4833c;
}
.post-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: #8c8475;
  font-weight: 500;
}
.post-item-date {
  color: #8c8475;
}
.post-item-sep {
  color: #e2d8c7;
}
.post-item-cat {
  color: #e4833c;
  font-weight: 700;
}
.post-item-action {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e4833c;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.post-item-landing:hover .post-item-action {
  color: #cb6d2a;
}
.no-results-msg {
  padding: 24px;
  text-align: center;
  color: #8c8475;
  font-size: 1.1rem;
}

/* --- MIGA DE PAN (BREADCRUMBS) --- */
.breadcrumbs {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: #8c8475;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 500;
}
.breadcrumbs a {
  color: #8c8475;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: #e4833c;
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #e1d8c9;
}
.breadcrumb-current {
  color: #4a453c;
  font-weight: 600;
}

/* --- VISTA DE ARTÍCULO INDIVIDUAL (SINGLE) --- */
.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 0 48px;
}
.article {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(26, 23, 18, 0.02);
}
.article-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #ebdcc5;
  padding-bottom: 24px;
}
.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1712;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 16px 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #8c8475;
}
.meta-separator {
  color: #ebdcc5;
}
.article-category {
  color: #e4833c;
  font-weight: 700;
}
.article-source-link {
  color: #7f2f1f;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.article-source-link:hover {
  color: #e4833c;
  text-decoration: underline;
}

.article-body {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #2c2822;
}
.article-body p, .article-body li {
  margin-bottom: 24px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(26, 23, 18, 0.05);
}
.article-body div[style*="padding-bottom"] {
  margin: 36px 0 !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 23, 18, 0.06);
  overflow: hidden;
}
.article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(26, 23, 18, 0.06);
}
.article-body div[style*="padding-bottom"] iframe {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
blockquote {
  border-left: 4px solid #e4833c;
  margin: 32px 0;
  padding: 6px 20px;
  background: #fffcf8;
  font-style: italic;
  color: #4a453c;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 2px 0 0 rgba(228, 131, 60, 0.05);
}
.article-footer {
  margin-top: 48px;
  border-top: 1px solid #ebdcc5;
  padding-top: 24px;
}
.back-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #7f2f1f;
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover {
  color: #e4833c;
  text-decoration: underline;
}

/* --- VISTA DE LISTADOS (LIST / CATEGORÍAS) --- */
.list-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 0 48px;
}
.list-header {
  margin-bottom: 32px;
  border-bottom: 2px solid #ebdcc5;
  padding-bottom: 16px;
}
.list-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1712;
  letter-spacing: -0.8px;
  margin: 0;
}
.list-intro {
  font-size: 1.1rem;
  color: #5c554a;
  margin-top: 12px;
  border-left: 3px solid #e4833c;
  padding-left: 16px;
  font-style: italic;
}

/* --- PAGINADOR --- */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.pager a {
  text-decoration: none;
  transition: all 0.2s ease;
}
.pager-btn {
  color: #7f2f1f;
  background: #fff;
  border: 1px solid #e1d8c9;
  border-radius: 8px;
  padding: 8px 18px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(26, 23, 18, 0.02);
  display: inline-block;
}
a.pager-btn:hover {
  background: #e4833c;
  color: #fff;
  border-color: #e4833c;
  box-shadow: 0 4px 12px rgba(228, 131, 60, 0.2);
}
span.pager-disabled {
  background: #faf8f5;
  border: 1px solid #ebdcc5;
  border-radius: 8px;
  padding: 8px 18px;
  min-width: 110px;
  text-align: center;
  color: #bcaea0;
  opacity: 0.6;
  pointer-events: none;
  display: inline-block;
}
.pager-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1d8c9;
  border-radius: 8px;
  color: #5c554a;
  background: #fff;
  box-shadow: 0 2px 5px rgba(26, 23, 18, 0.01);
  font-weight: 600;
}
a.pager-num:hover {
  background: #fdf2e9;
  color: #e4833c;
  border-color: #e4833c;
}
.pager-active {
  background: #e4833c;
  color: #fff;
  border-color: #e4833c;
  cursor: default;
}
.pager-ellipsis {
  color: #8c8475;
  padding: 0 4px;
  cursor: default;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 48px;
  border-top: 1px solid #ebdcc5;
  color: #8c8475;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* --- DISEÑO RESPONSIVO (MÓVIL) --- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .nav a, .nav-button {
    margin-left: 0;
    margin-right: 0;
    padding: 6px 12px;
  }
  .hero-landing {
    padding: 32px 20px;
    border-radius: 12px;
    margin-top: 20px;
  }
  .hero-landing h1 {
    font-size: 2.1rem;
  }
  .hero-landing p {
    font-size: 1.05rem;
  }
  .article {
    padding: 24px;
  }
  .article-header h1 {
    font-size: 1.9rem;
  }
  .post-item-landing {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .post-item-action {
    align-self: flex-end;
  }
}
