/* ==========================================================================
   BLESSED BARBER STUDIO — HERO TRÍPTICO (ORDENADOR >= 1024px)
   Móvil y tablet (< 1024px): vídeo vertical 720x1280 a pantalla completa.
   Ordenador (>= 1024px): 3 paneles verticales lado a lado con desfase de
   reproducción (0s / 6.7s / 13.4s) y laterales ligeramente oscurecidos.
   ========================================================================== */

.hero-triptico-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--p7-ebony, #0B0702);
}

/* Móvil y tablet (< 1024px): solo panel central a pantalla completa */
.hero-triptico-panel--center {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-triptico-panel--side {
  display: none;
}

/* Ordenador (>= 1024px): tríptico de 3 paneles verticales */
@media (min-width: 1024px) {
  .hero-media.hero-triptico {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background-color: var(--p7-carbon, #0A0909);
  }

  .hero-triptico-panel--center {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
  }

  .hero-triptico-panel--side {
    display: block;
  }

  /* Velo sutil en los laterales para que el panel central destaque */
  .hero-triptico-panel--side::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(10, 9, 9, 0.30);
  }

  /* Difusor superior suave en escritorio para legibilidad del header */
  .hero-media.hero-triptico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(88px, 12vh, 128px);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(10, 9, 9, 0.72) 0%,
      rgba(10, 9, 9, 0.34) 50%,
      rgba(10, 9, 9, 0) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-triptico-panel .hero-video {
    display: none;
  }
}
