/* Apertura: tres planos verticales forman la pantalla ancha */
.apertura {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.plano { position: relative; overflow: hidden; animation: abrir 1400ms var(--ease) both; }
.plano:nth-child(2) { animation-delay: 180ms; }
.plano:nth-child(3) { animation-delay: 360ms; }
.plano video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apertura::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Capa gris media en toda la portada y degradado abajo, para que el texto resalte */
  background: linear-gradient(transparent 38%, rgb(7 9 10 / 0.82)), rgb(34 36 38 / 0.5);
  pointer-events: none;
}
.titulo {
  position: absolute;
  inset: auto var(--margen) clamp(28px, 7vh, 72px);
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.titulo p { max-width: 52ch; }
.titulo__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@keyframes abrir {
  from { clip-path: inset(50% 0); }
  to { clip-path: inset(0); }
}

@media (max-width: 860px) {
  .apertura { grid-template-columns: minmax(0, 1fr); }
  .plano:nth-child(n + 2) { display: none; }
}
