* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #000;
  /* Un fondo de madera oscura sutil para que combine con la mesa de las fotos */
  background-image: radial-gradient(circle at center, #1a1512 0%, #000 100%);
  overflow: hidden; 
  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;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
  z-index: 1;
}

.pantalla.activa {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* Las fotos */
.imagen-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* EL TRUCO ESTÁ AQUÍ: contain en vez de cover */
  object-fit: contain; 
  z-index: -1;
}

/* --- BOTÓN INVISIBLE DEL SELLO (Pantalla 1) --- */
.boton-sello {
  position: absolute;
  /* Como la imagen ahora está centrada, ajustamos la posición */
  top: 50%; 
  left: 20%; 
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: transparent; 
  border: none;
  cursor: pointer;
  z-index: 20;
  transition: box-shadow 0.3s;
}

.boton-sello:hover, .boton-sello:active {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* --- BOTÓN DE ACEPTAR MISIÓN (Pantalla 2) --- */
.btn-magico {
  position: absolute;
  /* Lo bajamos un poquito para que no tape la letra de la carta */
  bottom: 15%; 
  right: 50%;
  transform: translateX(50%); /* Lo centramos horizontalmente */
  background: rgba(10, 25, 15, 0.9); 
  color: #d4af37; 
  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;
  border-radius: 4px; /* Un borde sutil redondeado */
}

.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: translateX(50%) 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; 
  transition: opacity 0.4s ease-out;
}

#destello-magico.activo {
  opacity: 1;
}

/* Ajustes extra para móviles */
@media (max-width: 480px) {
  .btn-magico { 
    font-size: 1.1rem; 
    padding: 10px 20px; 
    bottom: 18%; /* Lo subimos un poco más para que no se salga en el móvil */
  }
  /* Reajustamos el botón del sello para el móvil */
  .boton-sello { 
    top: 48%; 
    left: 18%; 
    width: 70px; 
    height: 70px; 
  } 
}