/* ============================================================
   SIMU — Podcast
   Estilos del índice (/podcast) y páginas de episodio.
   ============================================================ */

/* ---- Hero del podcast ---- */
.phero { padding: 64px 0 48px; }

.phero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 680px;
}

.phero p.lead {
  font-size: 1.12rem;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 32px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Filtro ---- */
.filter-bar {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
}

.filter-select {
  font-size: 0.9rem;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  background: var(--white);
}

.filter-count {
  font-size: 0.85rem;
  color: var(--gray);
  margin-left: auto;
}

/* ---- Grid de episodios ---- */
.episodes { padding: 0 0 80px; }

.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ep-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ep-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(22, 33, 58, 0.18);
}

.ep-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-soft), #E8EDF5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ep-thumb .ep-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.18;
}

.ep-thumb.has-image {
  background-size: cover;
  background-position: center;
}

.ep-thumb.has-image .ep-number {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(7, 45, 98, 0.85);
  padding: 3px 9px;
  border-radius: 6px;
  opacity: 1;
}

.ep-thumb .play-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 45, 98, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-thumb .play-badge svg {
  width: 13px;
  height: 13px;
  color: var(--white);
}

/* Estado pendiente */
.ep-thumb.is-pending {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-soft),
    var(--bg-soft) 10px,
    #ECE7DA 10px,
    #ECE7DA 20px
  );
}

.ep-thumb.is-pending .ep-number { opacity: 0.15; }

.pending-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.ep-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ep-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.ep-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.ep-guest {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.ep-date {
  color: var(--gray);
  font-size: 0.8rem;
  white-space: nowrap;
}

.ep-card.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

.ep-card.is-pending:hover {
  transform: none;
  box-shadow: none;
}

/* ---- Página de episodio individual ---- */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--green-deep);
  font-weight: 600;
}

.ep-header { padding: 20px 0 32px; }

.ep-header h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--gray);
}

.ep-meta .guest-name { font-weight: 700; color: var(--navy); }
.ep-meta .dot-sep   { width: 4px; height: 4px; border-radius: 50%; background: var(--gray); }

.video-wrap {
  margin: 28px 0 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
  box-shadow: 0 20px 50px -24px rgba(22, 33, 58, 0.35);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.ep-stats {
  display: flex;
  gap: 24px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.ep-stat { font-size: 0.88rem; color: var(--gray); }
.ep-stat strong { color: var(--navy); font-weight: 700; }

h2.section-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 40px 0 16px;
}

.ep-body-text p {
  font-size: 1.04rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.learn-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--gray);
}

.learn-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green-deep);
}

.timestamps {
  display: flex;
  flex-direction: column;
  margin: 16px 0 8px;
}

.ts-row {
  display: flex;
  gap: 18px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  align-items: baseline;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ts-row:first-child { border-top: 1px solid var(--line); }
.ts-row:hover { background: var(--bg-soft); }

.ts-time {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green-deep);
  flex-shrink: 0;
  width: 64px;
  font-size: 0.92rem;
}

.ts-label { color: var(--gray); }

.sponsor-note {
  font-size: 0.85rem;
  color: var(--gray);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 24px 0;
  line-height: 1.6;
}

.sponsor-note strong { color: var(--navy); }
.sponsor-note a { color: var(--green-deep); font-weight: 600; }

.more-info {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.more-info-text { font-size: 0.96rem; color: var(--navy); font-weight: 600; }

.more-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
}

.more-info-link svg { width: 14px; height: 14px; }

.close-cta {
  margin: 48px 0 60px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.close-cta p { font-size: 1.05rem; margin-bottom: 20px; color: rgba(255, 255, 255, 0.88); }

.platform-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
}

.close-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.next-ep {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.next-ep a {
  color: var(--green-deep);
  font-weight: 700;
}

/* ---- Responsive Podcast ---- */
@media (max-width: 860px) { .ep-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px) {
  .ep-grid { grid-template-columns: 1fr; }
  .filter-count { margin-left: 0; width: 100%; }
}
