:root{
  --hi-ui-max: 980px;
  --hi-bottom-gap: 6%;
}

/* Cuando se activa la historia fullscreen, bloqueamos scroll */
body.hi-fullscreen-active{
  overflow: hidden !important;
  background: #000 !important;
}

/* Contenedor fullscreen */
.hi-stage{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
}

/* Fondo imagen */
.hi-stage .hi-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.02);
  display: none;
}

/* Video fullscreen */
.hi-stage .hi-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;

  /* “Boost” visual estilo demo */
  --boost-saturate: 1.35;
  --boost-contrast: 1.12;
  --boost-bright:   1.03;
  filter:
    saturate(var(--boost-saturate))
    contrast(var(--boost-contrast))
    brightness(var(--boost-bright));
}

/* Ocultar controles nativos */
.hi-stage .hi-video::-webkit-media-controls,
.hi-stage .hi-video::-webkit-media-controls-enclosure,
.hi-stage .hi-video::-webkit-media-controls-panel{
  display: none !important;
}

/* Gradiente inferior tipo demo */
.hi-stage .hi-gradient{
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 40%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,.30),
    rgba(0,0,0,.60),
    rgba(0,0,0,.85),
    rgba(0,0,0,1)
  );
}

/* UI Overlay */
.hi-stage .hi-ui{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
}

/* Título + texto (encima de botones) */
.hi-stage .hi-title{
  width: min(var(--hi-ui-max), 94vw);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.hi-stage .hi-text{
  width: min(var(--hi-ui-max), 94vw);
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}

/* Botón Play (centrado) */
.hi-stage .hi-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  animation: hiPulse 1s infinite;
}
@keyframes hiPulse{
  0%{ transform: translate(-50%,-50%) scale(1); }
  50%{ transform: translate(-50%,-50%) scale(1.08); }
  100%{ transform: translate(-50%,-50%) scale(1); }
}

/* Decisiones centradas abajo */
.hi-stage .hi-choices{
  width: min(var(--hi-ui-max), 94vw);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: var(--hi-bottom-gap);
}

/* Botones pro */
.hi-stage .hi-choices button{
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .2px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .15s ease, opacity .2s ease, background .2s ease;
}
.hi-stage .hi-choices button:hover{ transform: scale(1.03); background: rgba(0,0,0,.65); }
.hi-stage .hi-choices button:active{ transform: scale(.98); }

/* Responsive */
@media (max-width: 768px){
  .hi-stage .hi-gradient{ height: 48%; }
  .hi-stage .hi-title{ font-size: 19px; }
  .hi-stage .hi-text{ font-size: 14px; }
  .hi-stage .hi-choices{ padding-bottom: 9%; }
}
