/* ============================================================================
   PATA AMARILLA — podcast.css
   ============================================================================
   Estilos de la página Podcast (page-podcast.php) — "PATA AMARILLA STREAM".

   DISEÑO v1.2 — acabado premium consistente con el resto del sitio:
     - Eyebrow label sobre el título "Programas"
     - Línea decorativa amarilla bajo títulos de programa
     - Cards de programa: borde fino + hover sutil en vez de sombra pesada
     - Secciones de programa: padding generoso, separador visual superior
     - Títulos de programa más compactos, descripción más legible
     - Videos con border-radius consistente y hover de elevación
     - Colores de fondo propios de cada programa 100% respetados

   ESTRUCTURA:
     1. .pa-programs-header    — encabezado "Programas" con eyebrow
     2. .pa-programs-grid      — 3 tarjetas de vista previa
     3. .pa-program-section    — sección completa por programa
     4. .pa-program-videos     — grid 3 videos YouTube por programa
     5. .pa-social-row         — fila de iconos redes sociales

   Los programas se gestionan como CPT 'pa_program' desde wp-admin.
   Cada uno define su propio color de fondo (theme_color) en el CPT.

   @package PataAmarilla
   @version 1.2.0
   ============================================================================ */

.page-id-22440 .site-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── STREAM HERO — usa .pa-page-hero de style.css, solo overrides locales ── */
.pa-stream-banner { /* alias para compatibilidad */ }

/* ── 1. ENCABEZADO "PROGRAMAS" ──────────────────────────────────── */
.pa-programs-header {
  text-align: center;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.pa-programs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--pa-font-micro);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pa-amarillo);
  background: var(--pa-negro);
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.pa-programs-header h2 {
  font-family: var(--pa-font-titulo);
  font-size: var(--pa-font-section-title);
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--pa-negro);
  line-height: 1.1;
}
.pa-programs-header-line {
  display: block;
  width: 44px;
  height: 4px;
  background: var(--pa-amarillo);
  border-radius: 2px;
}

/* ── 2. GRID DE TARJETAS DE PROGRAMAS ────────────────────────── */
.pa-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 420px));
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 64px;
  justify-content: center;
}
.pa-program-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background: var(--pa-negro);
  transition: box-shadow .5s ease, transform .5s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  position: relative;
}
.pa-program-card:only-child {
  max-width: 680px;
  width: 100%;
  justify-self: center;
}
.pa-program-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(-6px);
}
.pa-program-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 1;
  min-height: 200px;
}
.pa-program-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .6s ease;
  filter: brightness(.92) saturate(1.05);
}
.pa-program-card:hover .pa-program-card-img img {
  transform: scale(1.07);
  filter: brightness(.7) saturate(1.1);
}
.pa-program-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: linear-gradient(0deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.75) 28%,
    rgba(0,0,0,.2) 48%,
    transparent 62%
  );
  transition: background .4s ease;
}
.pa-program-card:hover .pa-program-card-overlay {
  background: linear-gradient(0deg,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.82) 32%,
    rgba(0,0,0,.28) 52%,
    transparent 66%
  );
}
.pa-program-card-title {
  font-family: var(--pa-font-titulo);
  font-size: var(--pa-font-card-title);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--pa-blanco);
  line-height: 1.1;
  letter-spacing: .03em;
  padding: 0 16px;
  margin: 0;
}
.pa-program-card-title::before { display: none; }
.pa-program-card-title::after { display: none; }
.pa-program-card-meta {
  color: rgba(255,255,255,.75);
  font-size: var(--pa-font-meta);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: none;
  padding: 4px 16px 16px;
}
.pa-program-card-meta::after { content: none; }
.pa-program-card:hover .pa-program-card-meta::after { content: none; }

/* Footer solo visible si tiene redes configuradas */
.pa-program-card-footer {
  display: none;
}
.pa-program-card-footer:has(.pa-social-row a) {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
}

/* ── 3. SECCIÓN COMPLETA POR PROGRAMA ───────────────────────── */
.pa-program-section {
  padding: 56px 24px 64px;
  scroll-margin-top: 100px;
  background-repeat: repeat;
  position: relative;
}
/* Separador superior sutil entre secciones de programa */
.pa-program-section + .pa-program-section {
  border-top: none;
}

/* Texturas de fondo SVG */
.pa-texture-ninguna  { background-image: none; }
.pa-texture-fino {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-blend-mode: overlay;
}
.pa-texture-grueso {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  background-blend-mode: overlay;
}
.pa-texture-manchas {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.015 0.09' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 340px 340px;
  background-blend-mode: overlay;
}

.pa-program-section-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.pa-program-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.pa-program-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Eyebrow dentro de la sección del programa */
.pa-program-eyebrow {
  font-size: var(--pa-font-micro);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 6px;
  color: inherit;
}
.pa-program-section-title {
  font-family: var(--pa-font-titulo);
  font-size: var(--pa-font-section-title);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
  line-height: 1;
  letter-spacing: .02em;
}
/* Horario del programa — pill con icono de reloj, usa currentColor para
   adaptarse al texto negro/blanco de cada programa sin CSS extra */
.pa-program-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--pa-font-body-sm);
  font-weight: 700;
  letter-spacing: .01em;
  color: inherit;
  border: 1.5px solid currentColor;
  opacity: .8;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 10px 0 4px;
  width: fit-content;
}
.pa-program-schedule svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Línea decorativa bajo el título del programa */
.pa-program-title-line {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .4;
  margin: 16px 0 16px;
}
.pa-program-section-desc {
  font-size: var(--pa-font-body);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 32px;
  opacity: .85;
  color: inherit;
}

/* ── 4. VIDEOS — carrusel horizontal, miniatura + reproducir al clic ───────────
   Soporta desde 1 video suelto hasta los 15 que trae una playlist de
   YouTube. Las miniaturas cargan solas; el iframe (pesado) solo se
   inyecta cuando el usuario hace clic, para no cargar 15 reproductores
   de una vez.
   ────────────────────────────────────────────────────────────────── */
.pa-program-videos {
  position: relative;
}
.pa-program-videos-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pa-program-videos-track::-webkit-scrollbar { display: none; }

.pa-video-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  cursor: pointer;
}
.pa-video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pa-video-card:hover .pa-video-thumb-wrap {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,.35);
}
.pa-video-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}
.pa-video-card:hover .pa-video-thumb-wrap img {
  transform: scale(1.05);
  filter: brightness(.75);
}
.pa-video-thumb-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.pa-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pa-video-play svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .2s ease;
}
.pa-video-card:hover .pa-video-play svg { transform: scale(1.12); }
.pa-video-title {
  display: block;
  margin-top: 10px;
  font-size: var(--pa-font-meta);
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
  opacity: .85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Flechas del carrusel de videos — mismas que Columnistas: grandes,
   solidas en ambar, con pulso, color de icono fijo (#111111). */
.pa-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pa-amarillo);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,197,24,.4);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  animation: pa-carousel-pulse 2.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.pa-carousel-btn.pa-video-prev { left: -70px; }
.pa-carousel-btn.pa-video-next { right: -70px; }
.pa-carousel-btn svg { width: 24px; height: 24px; display: block; pointer-events: none; }
.pa-carousel-btn:focus-visible { outline: 3px solid rgba(17,17,17,.45); outline-offset: 3px; }
.pa-carousel-btn:hover:not(:disabled) {
  background: var(--pa-negro);
  transform: translateY(-50%) scale(1.08);
  animation-play-state: paused;
}
.pa-carousel-btn:hover:not(:disabled) svg path { stroke: var(--pa-amarillo); }
.pa-carousel-btn:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
.pa-carousel-btn:disabled { opacity: .3; cursor: default; animation: none; box-shadow: none; }
@keyframes pa-carousel-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(245,197,24,.4), 0 0 0 0 rgba(245,197,24,.45); }
  50%       { box-shadow: 0 6px 20px rgba(245,197,24,.4), 0 0 0 12px rgba(245,197,24,0); }
}

/* Boton "Ver mas videos" — solo existe visualmente en movil (ver media
   query mas abajo); en escritorio el carrusel horizontal ya muestra
   todo mediante scroll, asi que este boton permanece oculto. */
.pa-videos-more {
  display: none;
}

/* ── 5. FILA DE REDES SOCIALES ────────────────────────────────── */
.pa-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pa-social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}
.pa-social-row a:hover { opacity: 1; transform: translateY(-2px); }
.pa-social-row svg { width: 100%; height: 100%; }
.pa-program-card .pa-social-row {
  justify-content: flex-start;
  color: var(--pa-negro);
}

/* ============================================================================
   MÓVIL — ≤ 900px
   ============================================================================ */
@media (max-width: 900px) {
  .pa-programs-header { padding: 48px 20px 32px; }
  .pa-programs-grid {
    grid-template-columns: minmax(0, 420px);
    padding-bottom: 48px;
  }
  .pa-program-card:only-child { max-width: 100%; }
  .pa-program-section { padding: 40px 20px 48px; }

  /* Videos en movil: grilla estatica de 2 columnas x 3 filas (6 videos
     visibles), sin scroll horizontal. "Ver mas" despliega el resto y
     la seccion crece. Las flechas del carrusel de escritorio se ocultan
     porque ya no hay scroll horizontal que controlar. */
  .pa-video-prev,
  .pa-video-next {
    display: none;
  }
  .pa-program-videos-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    overflow: visible;
  }
  .pa-video-card { width: auto; }
  .pa-program-videos-track .pa-video-card:nth-child(n+7) {
    display: none;
  }
  .pa-program-videos-track.is-expanded .pa-video-card {
    display: block;
  }
  .pa-video-title { font-size: var(--pa-font-body); margin-top: 10px; }

  .pa-videos-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 13px 20px;
    background: var(--pa-amarillo);
    color: #111111;
    border: none;
    border-radius: 10px;
    font-size: var(--pa-font-button);
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pa-videos-more-icon { transition: transform .25s ease; }
  .pa-videos-more.is-open .pa-videos-more-icon { transform: rotate(180deg); }
}

/* ── BANDA SOCIAL NIVEL PAGINA ────────────────────────────── */
.pa-stream-social-band {
  background: #111;
  border-bottom: 2px solid #F2D119;
  padding: 12px 24px;
}
.pa-ssb-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pa-ssb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-ssb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F2D119;
  flex-shrink: 0;
  animation: pa-pulse 2s ease-in-out infinite;
}
@keyframes pa-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}
.pa-ssb-label {
  font-size: var(--pa-font-meta);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.pa-ssb-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-ssb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: var(--pa-font-button);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .2s ease, opacity .2s ease;
}
.pa-ssb-platform {
  font-weight: 800;
  font-size: var(--pa-font-button);
}
.pa-ssb-handle {
  font-weight: 600;
  opacity: .7;
  letter-spacing: 0;
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: 8px;
  margin-left: 2px;
}
.pa-ssb-yt   .pa-ssb-handle { border-color: rgba(255,255,255,.4); }
.pa-ssb-kick .pa-ssb-handle { border-color: rgba(0,0,0,.2); }
.pa-ssb-btn:hover { transform: translateY(-2px); opacity: .88; }
.pa-ssb-yt   { background: #FF0000; color: #fff; }
.pa-ssb-kick { background: #53FC18; color: #000; }

/* ── STRIP EN LA CARD (OPCION B) ──────────────────────────── */
.pa-pcs {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: transparent;
  border-top: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.pa-pcs-label {
  font-size: var(--pa-font-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
}
.pa-pcs-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: var(--pa-font-micro);
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pa-pcs-btn:hover { opacity: .85; transform: translateY(-1px); }
.pa-pcs-yt   { background: #FF0000; color: #fff; }
.pa-pcs-kick { background: #53FC18; color: #000; }

@media (max-width: 900px) {
  .pa-ssb-inner { justify-content: center; }
  .pa-ssb-left  { display: none; }
  .pa-stream-social-band { padding: 12px 20px; }
  .pa-ssb-links { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .pa-ssb-btn { flex: 1; min-width: 0; justify-content: center; }
}

.pa-program-card { cursor: pointer; }
.pa-pcs-btn { cursor: pointer; }
