
body {
  background-color: #050505;
  color: #1a1005;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

#app-container {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 56.25vh;
  position: relative;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  box-sizing: border-box;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.content-layer {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
  box-sizing: border-box;
}

.container-p1 { padding-top: 5vh; padding-left: 9%; padding-right: 9%; }
.container-p2 { padding-top: 15vh; padding-left: 9%; padding-right: 9%; }
.container-special { padding-top: 20vh; padding-left: 9%; padding-right: 9%; }
.container-others { padding-top: 10vh; padding-left: 6%; padding-right: 6%; }

@media (max-aspect-ratio: 9/16) {
  #app-container { max-width: 100vw; }
}

.story-text {
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: left;
  font-weight: 700;
  color: #1a1005;
  background: transparent;
}

#page-1 .story-text {
  font-size: 1.1rem;
}

.question-label { 
  font-size: 1.4rem; 
  font-weight: bold; 
  display: block; 
  margin-bottom: 0.5rem; 
  color: #1a1005; 
}

.pista-text { 
  font-size: 1.1rem; 
  font-style: italic; 
  margin-top: 1rem; 
  font-weight: bold; 
  color: #2b1b11; 
}

input[type="text"], textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0,0,0,0.4);
  border-bottom: 2px solid #5a3d2b;
  width: 100%;
  font-family: inherit;
  font-size: 1.3rem; 
  padding: 10px;
  box-sizing: border-box;
}

.btn-next {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  border-radius: 6px;
  animation: btnAppear 1s ease forwards;
  animation-delay: 2.5s;
}

.btn-round-arrow {
  position: absolute;
  bottom: 8%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4af37, #aa771c);
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 10px rgba(212,175,55,0.5);
  border: 2px solid #ffe58f;
  z-index: 100;
  opacity: 0;
  animation: btnAppearSimple 1s ease forwards, blink 1.5s infinite;
  animation-delay: 2.5s, 3.5s;
}

@keyframes btnAppearSimple {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 10px rgba(212,175,55,0.5); }
  50% { transform: scale(1.1); box-shadow: 0 4px 25px rgba(0,0,0,0.6), 0 0 25px rgba(212,175,55,0.8); }
}

@keyframes btnAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* EFECTOS DE IMAGEN */
.anim-zoom-in { animation: zoomIn 1.5s ease-out forwards; }
.anim-fade-in { animation: fadeIn 2s ease-in forwards; }
.anim-slide-in-right { animation: slideInRight 1.2s ease-out forwards; }
.anim-slide-in-top { animation: slideInTop 1.2s ease-out forwards; }
.anim-blur-in { animation: blurIn 1.5s ease-out forwards; }
.anim-rotate-in { animation: rotateIn 1.5s ease-out forwards; }
.anim-bounce-in { animation: bounceIn 1s cubic-bezier(0.36, 0, 0.66, -0.56) forwards; }
.anim-sepia-to-color { animation: sepiaToColor 2.5s ease-in-out forwards; }

@keyframes zoomIn { from { transform: scale(1.2); } to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInTop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes blurIn { from { filter: blur(20px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
@keyframes rotateIn { from { transform: rotate(-5deg) scale(1.1); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes sepiaToColor { from { filter: sepia(1) blur(5px); } to { filter: sepia(0) blur(0); } }

/* Botones */
.btn-gold-solid { background: linear-gradient(135deg, #d4af37, #aa771c); color: #000; border: 1px solid #ffe58f; }
.btn-black-gold { background: #111; color: #d4af37; border: 2px solid #d4af37; border-radius: 40px; }
.btn-gold-grad { background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c); background-size: 200% 200%; color: #000; transition: all 0.4s; }
.btn-gold-grad:hover { background-position: 100% 50%; }
.btn-gold-min { background: rgba(0,0,0,0.7); color: #d4af37; border-bottom: 5px solid #d4af37; border-radius: 0; }
.btn-glass { background: rgba(20,20,20,0.8); color: #fcf6ba; border: 1px solid rgba(212,175,55,0.6); }
