/* Hero editorial: fondo inmersivo + tira de tarjetas desplegables */
.hero.hero-editorial {
  --hero-accent: #ff8a10;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: center;
  padding-block: clamp(54px, 7vw, 90px);
  background: #0b2c1a;
  color: white;
}

.hero.hero-editorial::before {
  display: none;
}

.hero-fondo-imagen {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background-image: url("../img/hero-cardenal.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(.92) contrast(1.04);
  transform: scale(1.04);
  transition: opacity .28s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}

.hero-fondo-tinte {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--hero-accent) 34%, transparent), transparent 33%),
    linear-gradient(90deg, rgba(5,33,18,.96) 0%, rgba(5,33,18,.86) 42%, rgba(5,33,18,.5) 70%, rgba(5,33,18,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32));
  transition: background .45s ease;
}

.hero-editorial .hero-layout {
  position: relative;
  z-index: 2;
}

.hero-editorial .hero-kicker {
  color: #ffd15a;
}

.hero-editorial .hero-kicker::before {
  background: var(--hero-accent);
}

.hero-editorial h1 {
  color: white;
  text-shadow: 0 8px 34px rgba(0,0,0,.28);
}

.hero-editorial p.lead {
  color: rgba(255,255,255,.76);
}

.hero-editorial .tarjeta-reproductor {
  border-color: rgba(255,255,255,.17);
  background: rgba(7,31,17,.6);
  color: white;
  box-shadow: 0 28px 70px -32px rgba(0,0,0,.7);
  backdrop-filter: blur(18px);
}

.hero-editorial .info-reproductor .nombre-programa {
  color: white;
}

.hero-editorial .info-reproductor .franja {
  color: rgba(255,255,255,.62);
}

.hero-editorial .tarjeta-reproductor .barra-ecualizador {
  color: var(--hero-accent);
}

.hero-editorial .boton-play {
  background: var(--hero-accent);
  color: #123d24;
}

.hero-visual.hero-filmstrip {
  min-height: 475px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-film-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-film-etiqueta {
  color: rgba(255,255,255,.65);
  font-family: var(--fuente-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-film-controles {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-family: var(--fuente-mono);
  font-size: 10px;
}

.hero-film-controles button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(7,31,17,.46);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}

.hero-film-controles button:hover {
  transform: translateY(-2px);
  background: var(--hero-accent);
  color: #123d24;
}

.hero-film-cards {
  height: 370px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  perspective: 1100px;
}

.hero-film-card {
  position: relative;
  width: 130px;
  height: 185px;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(7,31,17,.65);
  color: white;
  cursor: pointer;
  transform-origin: top center;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.9);
  transition:
    width .58s cubic-bezier(.2,.8,.2,1),
    height .58s cubic-bezier(.2,.8,.2,1),
    transform .58s cubic-bezier(.2,.8,.2,1),
    opacity .3s ease;
}

.hero-film-card:hover {
  transform: translateY(-4px);
}

.hero-film-card.activa {
  width: 220px;
  height: 355px;
  border-color: color-mix(in srgb, var(--hero-accent) 70%, white);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.85);
}

.hero-film-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

.hero-film-card:not(.activa) img {
  filter: brightness(.66) saturate(.72);
}

.hero-film-card.activa img {
  transform: scale(1.035);
}

.hero-film-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding-top: 28px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 3px 12px rgba(0,0,0,.8);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

.hero-film-caption {
  margin: 14px 0 0;
  color: white;
  font-family: var(--fuente-display);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
  letter-spacing: -.02em;
}

@media (max-width: 980px) {
  .hero.hero-editorial {
    min-height: auto;
  }
  .hero-fondo-tinte {
    background:
      linear-gradient(180deg, rgba(5,33,18,.94), rgba(5,33,18,.72) 64%, rgba(5,33,18,.88)),
      radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--hero-accent) 28%, transparent), transparent 40%);
  }
  .hero-visual.hero-filmstrip {
    min-height: 420px;
  }
  .hero-film-cards {
    height: 330px;
    justify-content: center;
  }
  .hero-film-card.activa {
    width: 210px;
    height: 320px;
  }
}

@media (max-width: 640px) {
  .hero.hero-editorial {
    min-height: auto;
    padding-block: 48px 64px;
  }
  .hero-fondo-imagen {
    background-position: 66% center;
  }
  .hero-visual.hero-filmstrip {
    min-height: 350px;
  }
  .hero-film-top {
    margin-bottom: 12px;
  }
  .hero-film-cards {
    height: 290px;
    justify-content: flex-start;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  .hero-film-cards::-webkit-scrollbar {
    display: none;
  }
  .hero-film-card {
    width: 92px;
    height: 135px;
    border-radius: 16px;
  }
  .hero-film-card.activa {
    width: 170px;
    height: 270px;
  }
  .hero-film-caption {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fondo-imagen,
  .hero-film-card,
  .hero-film-card img {
    transition: none;
  }
}
