/* ---- RESET Y CONFIGURACIÓN GLOBAL ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; /* Se mantiene sin scroll al inicio */ }
body {
    background-color: #050816;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
}
#app-container {
    width: 100%;
    height: 100%;
    display: flex; /* Centra el contenido de la intro */
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease-in-out;
}
/* ---- CLASE PARA ACTIVAR SCROLL Y CAMBIAR LAYOUT ---- */
body.is-interactive #app-container {
    display: block; /* Desactiva el centrado flex */
    height: auto; /* Permite que el contenedor crezca */
    padding: 8vh 20px; /* Añade espacio vertical para el contenido */
}
/* ---- ANIMACIÓN KEYFRAMES ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* ---- SECCIONES INTERACTIVAS ---- */
.interactive-section {
    width: 100%;
    animation: fadeIn 1.5s ease-in-out;
}
.content-wrapper { max-width: 650px; margin: 0 auto; }
.interactive-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 8px #00ffff, 0 0 15px #00ffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.interactive-section .subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
/* ---- FORMULARIO ARCANO ---- */
#arcano-form .date-inputs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
#arcano-form input[type="number"] {
    background-color: rgba(0, 255, 255, 0.05); border: 1px solid #00ffff; color: #ffffff;
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; text-align: center;
    width: 100px; padding: 10px; border-radius: 5px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#arcano-form input[type="number"]:focus {
    outline: none; background-color: rgba(0, 255, 255, 0.1); box-shadow: 0 0 15px #00ffff;
}
/* ---- BOTÓN CTA ---- */
.cta-button {
    background-color: transparent; border: 2px solid #00ffff; color: #00ffff;
    font-family: 'Orbitron', sans-serif; font-size: 1.2rem; letter-spacing: 2px;
    padding: 12px 30px; cursor: pointer; border-radius: 5px; text-transform: uppercase;
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: #00ffff; color: #050816; box-shadow: 0 0 20px #00ffff;
}
.cta-button:disabled {
    cursor: not-allowed; border-color: #557777; color: #557777;
}
/* ---- REVELACIÓN PROGRESIVA ---- */
#arcano-introduccion { text-align: center; border-top: none !important; }
.reveal-item {
    text-align: left; max-height: 0; opacity: 0; overflow: hidden;
    transition: all 1s ease-in-out; margin-top: 0;
    border-top: 1px solid rgba(0, 255, 255, 0); padding-top: 0;
}
.reveal-item.visible {
    max-height: 1500px; opacity: 1; margin-top: 25px; padding-top: 25px;
    border-top-color: rgba(0, 255, 255, 0.2);
}
.reveal-item h4 {
    font-family: 'Orbitron', sans-serif; color: #00ffff; font-size: 1.3rem; margin-bottom: 15px; font-weight: bold;
}
.reveal-item p { font-size: 1.1rem; line-height: 1.7; color: #e0e0e0; }
/* ---- PUZZLES ---- */
#puzzle-form { margin-top: 30px; }
#puzzle-form input[type="text"] {
    background-color: rgba(0, 255, 255, 0.05); border: 1px solid #00ffff; color: #ffffff;
    font-family: 'Roboto', sans-serif; font-size: 1.2rem; text-align: center;
    width: 100%; max-width: 400px; padding: 12px; border-radius: 5px; margin-bottom: 20px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#puzzle-form input[type="text"]:focus {
    outline: none; background-color: rgba(0, 255, 255, 0.1); box-shadow: 0 0 15px #00ffff;
}
#puzzle-revelacion-wrapper {
    margin-top: 30px; padding: 20px; border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px; background-color: rgba(0, 255, 255, 0.05);
}
#puzzle-revelacion { font-size: 1.1rem; line-height: 1.7; color: #ffffff; margin-bottom: 20px; }
/* ---- INTRO VIDEO ---- */
#intro-section {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; background-color: #050816; transition: opacity 1s ease-out;
}
#intro-video {
    position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    object-fit: cover; transform: translate(-50%, -50%);
}
#intro-section.fade-out { opacity: 0; pointer-events: none; }