/* Hereda reset, tipografía y variables de global.css. Todo el componente está
   delimitado por podcast__ para evitar conflictos. Medidas relativas y Flexbox. */
.podcast {
  --podcast-ink: #101044;
  --podcast-blue: #0057ff;
  --podcast-muted: #526b98;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--color-white);
  color: var(--podcast-ink);
}
.podcast__container { width: min(var(--container-width-fluid), var(--container-width)); margin-inline: auto; }
.podcast__eyebrow, .podcast__tag { display: inline-flex; align-items: center; gap: .4rem; color: var(--podcast-blue); background: #e5efff; border-radius: .4rem; }
.podcast__eyebrow { padding: .35rem .65rem; font-size: .75rem; margin-bottom: .65rem; }
.podcast__eyebrow svg { width: 1rem; height: 1rem; }
.podcast__title { max-width: 15ch; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.podcast__intro { max-width: 50ch; margin-top: 1rem; color: var(--podcast-muted); font-size: clamp(.9rem, 1.5vw, 1.1rem); }
/* Los filtros pueden desplazarse horizontalmente en móvil sin desbordar la página. */
.podcast__filters:not([hidden]) { display: flex; gap: .65rem; margin-block: 1.5rem; overflow-x: auto; padding-bottom: .3rem; }
.podcast__filters button { flex: 1 0 auto; display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 3rem; border: 0; padding: .75rem 1rem; border-radius: var(--radius-sm); background: #f3f6fc; color: var(--podcast-ink); font-size: .8rem; cursor: pointer; }
.podcast__filters button[aria-pressed="true"] { background: var(--podcast-blue); color: var(--color-white); }
.podcast__filters svg { width: 1.2rem; height: 1.2rem; }
.podcast__episodes { display: flex; align-items: stretch; gap: 1.25rem; margin-top: 1.25rem; }
.podcast__card { border: .0625rem solid #ebeff6; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-white); box-shadow: 0 .15rem .75rem #14285908; }
.podcast__card--featured { flex: 1.3 1 0; min-width: 0; }
.podcast__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .85rem; }
.podcast__thumbnail { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #142644; color: var(--color-white); }
.podcast__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.podcast__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 4rem; aspect-ratio: 1; border-radius: 50%; border: .125rem solid currentColor; background: #0008; font-size: 1.5rem; }
.podcast__thumbnail:hover .podcast__play { background: var(--podcast-blue); }
.podcast__featured-label { position: absolute; inset: 1rem auto auto 1rem; background: var(--podcast-blue); color: var(--color-white); border-radius: .5rem; padding: .45rem .7rem; font-size: .75rem; }
.podcast__duration { position: absolute; right: .5rem; bottom: .5rem; padding: .1rem .3rem; border-radius: .2rem; background: #000c; font-size: .7rem; }
.podcast__card-body { padding: 1rem 1.2rem; }
.podcast__tag { padding: .1rem .4rem; font-size: .7rem; }
.podcast__card h3 { font-size: clamp(1rem, 1.65vw, 1.4rem); line-height: 1.2; letter-spacing: -.035em; margin-top: .4rem; }
.podcast__card h3 a { color: inherit; text-decoration: none; }
.podcast__description { margin-top: .5rem; color: var(--podcast-muted); font-size: .9rem; }
.podcast__card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.podcast__guest { color: var(--podcast-muted); font-size: .75rem; }
.podcast__outline { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 1.3rem; border: .0625rem solid var(--podcast-blue); border-radius: 5rem; color: var(--podcast-blue); text-decoration: none; font-size: .8rem; font-weight: 600; }
.podcast__outline:hover { background: #e7f0ff; }
.podcast__card--compact { display: flex; flex: 1; gap: .9rem; }
.podcast__card--compact .podcast__thumbnail { flex: 0 0 38%; min-height: 7.5rem; }
.podcast__card--compact .podcast__card-body { flex: 1; min-width: 0; padding: .7rem .7rem .7rem 0; }
.podcast__card--compact h3 { font-size: .9rem; line-height: 1.3; }
.podcast__card--compact .podcast__play { width: 1.8rem; font-size: .7rem; background: var(--color-white); color: var(--podcast-blue); }
.podcast__card--compact .podcast__card-footer { margin-top: .65rem; }
.podcast__all { display: flex; justify-content: center; margin-block: 1.25rem; }
/* El estado se anuncia a lectores de pantalla sin añadir espacio al diseño. */
.podcast__status { position: absolute; width: .0625rem; height: .0625rem; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.podcast__empty { flex: 1; padding: 2.5rem; background: #f3f6fc; border-radius: var(--radius-sm); color: var(--podcast-muted); }
/* Banner de suscripción: ilustración local decorativa y enlaces al canal oficial. */
.podcast__subscribe { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; border-radius: var(--radius-md); background: radial-gradient(ellipse at 0 100%, #c7ddfb, transparent 48%), linear-gradient(120deg, #e7f1ff, #edf5ff); overflow: hidden; }
.podcast__microphone { flex: 0 0 8rem; width: 8rem; height: 8rem; transform: rotate(-15deg); }
.podcast__subscribe-copy { flex: 1; min-width: 0; }
.podcast__subscribe-copy > span { color: var(--podcast-blue); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.podcast__subscribe h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.podcast__subscribe p { margin-top: .4rem; color: var(--podcast-muted); font-size: .75rem; }
.podcast__youtube { display: inline-flex; align-items: center; gap: .5rem; color: #080e1c; font-size: 1.6rem; font-weight: 800; text-decoration: none; letter-spacing: -.06em; }
.podcast__youtube svg { width: 3.5rem; height: 2.5rem; }
.podcast__subscribe > .podcast__outline { flex-shrink: 0; background: #ffffff66; }
.podcast :is(a, button):focus-visible { outline: .1875rem solid #de8d00; outline-offset: .1875rem; }
/* Dialog nativo: controla Escape, foco y bloqueo del contenido de fondo. */
.podcast__dialog { width: min(92vw, 60rem); max-height: 90vh; margin: auto; padding: 1.25rem; border: 0; border-radius: var(--radius-sm); background: var(--color-white); color: var(--podcast-ink); }
.podcast__dialog::backdrop { background: #061525cc; }
.podcast__dialog header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.podcast__dialog h3 { font-size: 1rem; }
.podcast__close { flex-shrink: 0; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; cursor: pointer; background: #eef3fb; font-size: 1.5rem; }
.podcast__player { aspect-ratio: 16 / 9; background: #061525; }
.podcast__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.podcast__youtube-fallback { display: inline-block; margin-top: .75rem; color: var(--podcast-blue); }
@media (max-width: 62rem) {
  .podcast__episodes { flex-direction: column; }
  .podcast__card--featured, .podcast__list { flex-basis: auto; }
  .podcast__subscribe { flex-wrap: wrap; gap: 1rem; }
  .podcast__subscribe-copy { flex-basis: 60%; }
  .podcast__youtube { margin-left: auto; }
}
@media (max-width: 35rem) {
  .podcast__microphone { flex-basis: 5rem; width: 5rem; height: 6rem; }
  .podcast__subscribe { padding: 1rem; }
  .podcast__subscribe-copy { flex-basis: 50%; }
  .podcast__card--compact { gap: .65rem; }
  .podcast__card--compact .podcast__thumbnail { flex-basis: 35%; }
  .podcast__card--compact h3 { font-size: .82rem; }
  .podcast__card-body { padding: 1rem; }
}
