:root{
  --bg:#07070b;
  --fade: 520ms;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg);
  overflow:hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.intro{
  position:fixed; inset:0;
  display:grid; place-items:center;
  padding: clamp(12px, 2.4vw, 28px);
}

.frame{
  width:min(1200px, 98vw);
  height:min(760px, 92vh);
  position:relative;
}

.badges{
  position:absolute;
  top: 14px; left: 14px; right: 14px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
  opacity:.9;
}
.badge{
  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing:.26em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}

.scene{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}

.shot{
  position:absolute;
  width:100%;
  height:100%;
  object-fit: contain; /* importante para que no se deforme */
  user-select:none;
  -webkit-user-drag:none;
  opacity:1;
  transition: opacity var(--fade) ease;
}

.shot-open{ opacity:0; }

.intro.open .shot-closed{ opacity:0; }
.intro.open .shot-open{ opacity:1; }

/* HOTSPOT: coloca el botón encima del lacre.
   Estos porcentajes dependen de la imagen. AJUSTA si hace falta. */
.hotspot{
  position:absolute;
  border:0;
  background: transparent;
  cursor:pointer;
  border-radius: 999px;

  /* JS lo rellena */
  left: 0; top: 0; width: 0; height: 0;
}
.hotspot:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 6px;
}

/* Texto inferior */
.bottomText{
  position:absolute;
  bottom: 22px;
  left: 0; right:0;
  text-align:center;
  color: rgba(255,255,255,.70);
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
  pointer-events:none;
}
.bottomText .line1{
  letter-spacing:.22em;
  text-transform: uppercase;
  font-size: 12px;
  opacity:.9;
}
.bottomText .line2{
  margin-top:6px;
  font-size: 12.5px;
  opacity:.65;
}

/* Fade out general antes de redirigir */
.intro.fadeout{
  animation: fadeOut 520ms ease forwards;
}
@keyframes fadeOut{
  to{ opacity:0; transform: translateY(-6px) scale(.995); }
}

@media (prefers-reduced-motion: reduce){
  .shot{ transition:none; }
  .intro.fadeout{ animation:none; }
}
