/* Reel de video compartido entre varias landings: video vertical
   (9:16) con autoplay en silencio y un botón de sonido. */

.reel-section {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--surface-soft, #f4f1e8);
}

.reel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.reel-copy {
  text-align: left;
}

/* Pill propio: .section-eyebrow / .section-kicker varían de estilo
   por página, y este componente necesita verse igual en todas. */
.reel-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(185, 77, 40, 0.1);
  border: 1px solid rgba(185, 77, 40, 0.22);
  color: var(--primary, #b94d28);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reel-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--secondary, #123c55);
  margin-bottom: 0.75rem;
}

.reel-copy p {
  max-width: 46ch;
  color: var(--muted, #5b6472);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.reel-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #0c1d2b;
  box-shadow: 0 24px 60px rgba(12, 29, 43, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0c1d2b;
}

/* Controles nativos ocultos hasta hover/focus, para que se sienta
   como un reel; siguen presentes en el DOM, así que el teclado y
   los lectores de pantalla los siguen viendo. */
.reel-frame video::-webkit-media-controls-panel {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.reel-frame:hover video::-webkit-media-controls-panel,
.reel-frame:focus-within video::-webkit-media-controls-panel {
  opacity: 1;
}

.reel-sound-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(12, 29, 43, 0.55);
  backdrop-filter: blur(6px);
  color: #fff8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reel-sound-toggle:hover {
  background: rgba(185, 77, 40, 0.75);
  transform: scale(1.06);
}

.reel-sound-toggle:focus-visible {
  outline: 2px solid #fff8ef;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .reel-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .reel-frame {
    order: -1;
    width: min(240px, 72vw);
    margin-bottom: 0.5rem;
  }

  .reel-copy {
    text-align: center;
  }

  .reel-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-sound-toggle {
    transition: none;
  }
}
