/* ============================================================================
   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: 11px;
  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: clamp(36px, 4.5vw, 56px);
  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(3, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.pa-program-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: var(--pa-blanco);
  transition: box-shadow .3s ease, transform .3s ease;
}
.pa-program-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.pa-program-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 1;
}
.pa-program-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.pa-program-card:hover .pa-program-card-img img {
  transform: scale(1.04);
}
.pa-program-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.62) 100%);
}
.pa-program-card-title {
  font-family: var(--pa-font-titulo);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--pa-blanco);
  line-height: 1;
  letter-spacing: .03em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.pa-program-card-meta {
  color: var(--pa-blanco);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
/* 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: 11px;
  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: clamp(34px, 4.2vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
  line-height: 1;
  letter-spacing: .02em;
}
/* 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: 10px 0 16px;
}
.pa-program-section-desc {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 32px;
  opacity: .85;
  color: inherit;
}

/* ── 4. VIDEOS ──────────────────────────────────────────────────── */
.pa-program-videos {
  position: relative;
}
.pa-program-videos-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pa-program-video-thumb {
  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-program-video-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,.35);
}
.pa-program-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}
.pa-program-video-thumb iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.pa-program-videos-next {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pa-blanco);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: box-shadow .2s ease;
}
.pa-program-videos-next:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ── 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: 1fr;
    max-width: 480px;
    padding-bottom: 48px;
  }
  .pa-program-section { padding: 40px 20px 48px; }
  .pa-program-videos-track { grid-template-columns: repeat(2, 1fr); }
  .pa-program-videos-next { display: none; }
}
@media (max-width: 480px) {
  .pa-program-videos-track { grid-template-columns: 1fr; }
}
