/* --------------------------------------------------------------------------
   Hero con video (portada)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--ink-000);
  overflow: hidden;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 420px;
  max-height: 78vh;
  width: 100%;
}

@media (max-width: 767.98px) {
  .hero-media { aspect-ratio: 4 / 5; min-height: 460px; }
}

.hero-media video,
.hero-media iframe,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* El velo es negro translúcido: mantiene el B/N y asegura contraste del texto */
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.72) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 6vw, 4.5rem);
}

.hero-title h1 {
  color: var(--ink-000);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 900;
  max-width: 18ch;
}
.hero-title {
  color: var(--ink-000);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 900;
  max-width: 18ch;
}
/*#hero .hero-title {
  max-width: unset !important;
}*/

.hero-lead {
  display: block;
  color: var(--ink-100);
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

/* Sólo el slider dentro de #hero: contenido alineado a la derecha */
#hero .hero-content .container { text-align: right; }
#hero .hero-content .hero-title,
#hero .hero-content .hero-lead { margin-left: auto; }
#hero .hero-content .hero-actions { justify-content: flex-end; }

/* Botón circular de reproducción */
.play-btn {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--ink-000);
  background: rgba(10, 10, 10, 0.55);
  color: var(--ink-000);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-btn:hover, .play-btn:focus-visible {
  background: var(--ink-000);
  color: var(--ink-900);
  transform: scale(1.06);
}

.play-btn svg { width: 28px; height: 28px; margin-left: 4px; }

/* Video aún no cargado al gestor: botón visible pero inerte */
.yt-facade.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.yt-facade.is-disabled:hover,
.yt-facade.is-disabled:focus-visible {
  background: rgba(10, 10, 10, 0.55);
  color: var(--ink-000);
  transform: none;
}

/* --------------------------------------------------------------------------
   Carousel del hero (Vista hero-slider)
   Las alturas y el encuadre del media los aporta .hero / .hero-media.
   -------------------------------------------------------------------------- */
#heroCarousel { position: relative; }

/* Vídeo de fondo del slide (misma colocación que .hero-media img/video) */
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Controles prev/next (chevrons de Bootstrap Icons) sobre el hero oscuro */
.hero-ctrl {
  width: 3.5rem;
  background: none;
  border: 0;
  opacity: 1;
  z-index: 3;
}

.hero-ctrl i {
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.hero-ctrl:hover i,
.hero-ctrl:focus-visible i { color: var(--ink-000); }

/* Indicadores en barras B/N */
.hero-indicators {
  bottom: 1.25rem;
  margin: 0;
  gap: 0.5rem;
}

.hero-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-indicators [data-bs-target].active {
  width: 44px;
  background: var(--ink-000);
}
