/* ============================================================
   Banner audiovisual de portada
   Video de fondo silenciado + capa oscura por CSS (ajustable).
   Intensidad de la capa: --banner-shade (0.40–0.50 recomendado).
   ============================================================ */
.banner {
  --banner-shade: 0.45;
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: min(26rem, 70svh);
  max-height: 56rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--edge);
  background: #121212;
  color: #fff;
  overflow: hidden;
}

.banner__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #121212;
}

.banner__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 55%),
    rgba(0, 0, 0, var(--banner-shade));
}

.banner :focus-visible {
  outline-color: #fff;
}

/* Control de pausa: no es visible. Queda disponible para teclado y lectores de pantalla;
   al recibir el foco aparece como una pastilla discreta en la esquina. */
.banner__toggle {
  position: absolute;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  background: none; color: #fff; cursor: pointer;
  font: 500 0.8125rem/1 var(--font-base);
}

.banner__toggle[hidden] {
  display: none;
}

.banner__toggle:focus-visible {
  z-index: 5; right: var(--edge); bottom: var(--edge);
  width: auto; height: auto; margin: 0; padding: 0.6rem 0.9rem;
  overflow: visible; clip: auto; clip-path: none;
  background: rgba(0, 0, 0, 0.72); border-radius: 2px;
  outline: 1px solid #fff; outline-offset: 2px;
}
