* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #000;
  overflow: hidden; /* Evita el scroll */
  font-family: 'Cinzel', serif;
}

/* Configuración general de las pantallas */
.pantalla {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  /* Transición suave y lenta para efecto mágico */
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out, transform 1.5s ease-in-out;
  transform: scale(0.95); /* Empieza un poco más pequeña */
  z-index: 1;
}

.pantalla.activa {
  opacity: 1;
  visibility: visible;
  transform: scale(1); /* Se expande a tamaño normal */
  z-index: 10;
}

/* Las fotos */
.imagen-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la foto a la pantalla sin deformar */
  z-index: -1;
}

/* --- BOTÓN INVISIBLE DEL SELLO (Pantalla 1) --- */
/* Lo posicionamos justo donde está el sello de cera en la foto */
.boton-sello {
  position: absolute;
  top: 55%; /* Ajusta estos valores si tu foto es diferente */
  left: 15%; 
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: transparent; /* Invisible */
  border: none;
  cursor: pointer;
  z-index: 20;
  /* Un brillo sutil al pasar el dedo/mouse para indicar que se puede tocar */
  box-shadow: 0 0 0px rgba(255, 215, 0, 0);
  transition: box-shadow 0.3s;
}

.boton-sello:hover, .boton-sello:active {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* Brillo dorado */
}

/* --- BOTÓN DE ACEPTAR MISIÓN (Pantalla 2) --- */
.btn-magico {
  position: absolute;
  bottom: 8%; /* Abajo en una esquina */
  right: 8%;
  background: rgba(10, 25, 15, 0.85); /* Verde muy oscuro Slytherin */
  color: #d4af37; /* Dorado */
  border: 2px solid #d4af37;
  padding: 12px 25px;
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  z-index: 20;
}

.btn-magico:hover {
  background: #0a190f;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}

/* --- EFECTO DE DESTELLO MÁGICO --- */
#destello-magico {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(200,255,200,0.8) 40%, rgba(255,255,255,0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 999; /* Por encima de todo */
  transition: opacity 0.4s ease-out;
}

/* Clase que activa el destello */
#destello-magico.activo {
  opacity: 1;
}

/* Ajustes para que el botón del sello se adapte a pantallas móviles */
@media (max-width: 480px) {
  .btn-magico { font-size: 1rem; padding: 10px 20px; bottom: 5%; right: 5%; }
  /* Si en el móvil no da con el sello, ajusta aquí el top/left */
  .boton-sello { top: 53%; left: 12%; width: 60px; height: 60px; } 
}