/* ========================================= */
/* 1. ESTILOS BASE Y FONDOS                  */
/* ========================================= */
body { 
    margin: 0; 
    overflow: hidden; 
    font-family: 'Segoe UI', sans-serif; 
    background: #000; 
}

/* ========================================= */
/* 2. PANTALLA DE INICIO                     */
/* ========================================= */
#start-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('texturas/fondo_inicio.jpg') center center / cover no-repeat;     
    z-index: 2000; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white;
}

#start-screen .content {
    background: rgba(0, 0, 0, 0.8); 
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    text-align: center;
}

#start-screen h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #cc6600;
    text-shadow: 0 0 10px #0ff;
}

#start-screen h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff00de;
    text-shadow: 0 0 10px #0ff;
}

.start-btn {
    background: linear-gradient(45deg, #00ffff, #0088ff);
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff;
}

.direct-access {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.btn-direct {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-direct:hover {
    transform: scale(1.1); 
}

.btn-direct i { margin-right: 8px; }

/* Colores de los botones de minijuegos */
.piano { background-color: #9b59b6; } 
.bateria { background-color: #e74c3c; } 
.juke { background-color: #f1c40f; color: #2c3e50; } 

/* ========================================= */
/* 3. PANTALLA DE CARGA                      */
/* ========================================= */
#loading-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('texturas/fondo_inicio.jpg') center center / cover no-repeat;
    z-index: 3000; 
    display: none; 
    flex-direction: column; justify-content: center; align-items: center;
    color: white;
}

#loading-container h1 {
    font-size: 3rem;
    color: #ae00ff; 
    text-shadow: 0 0 10px #ae00ff, 0 0 20px #00ffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#loading-text {
    font-size: 1.2rem;
    color: #cc6600; 
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 0 1px #ff00cc;
}

.progress-box {
    width: 300px; height: 30px; 
    background: #222; border: 2px solid #fff; border-radius: 15px;
    margin-top: 20px; overflow: hidden;
}

#progress-bar {
    width: 0%; height: 100%; 
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    transition: width 0.3s ease;
}

/* ========================================= */
/* 4. INTERFAZ DEL JUEGO (UI)                */
/* ========================================= */
#game-container {
    position: relative;
    width: 100%; height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100; 
    pointer-events: none; 
}

#stats { 
    color: #cd7f32; font-weight: bold; 
    margin-top: 10px; text-shadow: 0 0 5px #0ff; 
}

#minimap-container {
    position: absolute; 
    bottom: 20px; left: 20px; 
    width: 150px; height: 150px; 
    border: 2px solid white; 
    background: #000; 
    overflow: hidden; 
    z-index: 100;
    pointer-events: auto; 
}

#minimap-content { 
    position: absolute; 
    width: 150px; height: 150px; 
    z-index: 1;
}

#player-dot {
    position: absolute; 
    width: 10px; height: 10px; 
    background: red; border-radius: 50%; 
    z-index: 2; 
    transform: translate(-50%, -50%);
}

#interact-prompt {
    position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8); color: #00ffcc;
    padding: 15px 30px; border: 2px solid #00ffcc;
    border-radius: 10px; font-family: 'Courier New', monospace;
    font-size: 1.5rem; font-weight: bold; z-index: 1000;
    pointer-events: none; display: none;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    text-align: center;
}

.hidden { display: none !important; }

/* ========================================= */
/* 5. MENÚS Y MODALES                        */
/* ========================================= */

/* Alerta Personalizada (Bailarín / Pistas) */
#modal-bailarin {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000; 
    display: flex; justify-content: center; align-items: center;
}

.modal-fondo {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px); 
}

.modal-caja {
    position: relative;
    width: 400px;
    background: linear-gradient(135deg, #2a0044 0%, #000000 100%);
    border: 3px solid #ae00ff; 
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px #ae00ff, 0 0 10px #00ffff inset;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    font-family: 'Arial', sans-serif;
}

.modal-icono {
    font-size: 50px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #fff;
}

#modal-titulo {
    color: #00ffff; 
    margin: 0 0 15px 0;
    font-family: 'Fredoka One', cursive; 
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #ff00de;
}

#modal-texto {
    white-space: pre-wrap; 
    font-size: 1.1rem;
    line-height: 1.6;
    color: #C29E59;
    text-align: center;
    margin-bottom: 25px;
}

#modal-boton {
    background: #ff0055; 
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px #ff0055;
}

#modal-boton:hover {
    transform: scale(1.1);
    background: #ff3377;
    box-shadow: 0 0 25px #ff3377;
}

/* ========================================= */
/* BOCADILLO 3D (BAILARÍN EN ESCENARIO)      */
/* ========================================= */
#bocadillo-bailarin {
    position: absolute; 
    top: 20%; left: 50%; transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2a0044 0%, #000000 100%);
    padding: 20px; border-radius: 20px; 
    border: 3px solid #ae00ff;
    box-shadow: 0 0 30px #ae00ff, 0 0 10px #00ffff inset;
    font-family: 'Arial', sans-serif; font-size: 1.2rem;
    text-align: center; z-index: 100; width: 320px;
}
#texto-bailarin {
    margin: 0; color: white; font-weight: bold; line-height: 1.4;
}
.triangulo {
    position: absolute; 
    bottom: -18px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 18px solid #ae00ff;
}
/* Menú de Confirmación Neón (Tecla E) */
#modal-confirm {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    z-index: 20000; 
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); 
}

/* ========================================= */
/* MENÚ DE CONFIRMACIÓN (TECLA E Y NIVEL 2)  */
/* ========================================= */
.confirm-box {
    background: linear-gradient(135deg, #2a0044 0%, #000000 100%);
    border: 3px solid #ae00ff; 
    box-shadow: 0 0 30px #ae00ff, 0 0 10px #00ffff inset;
    padding: 30px; width: 400px; text-align: center;
    border-radius: 20px; font-family: 'Arial', sans-serif;
    color: white; animation: aparecer 0.3s ease-out;
}
#confirm-titulo {
    color: #00ffff; margin-top: 0; text-transform: uppercase;
    font-family: 'Fredoka One', cursive; letter-spacing: 1px;
    text-shadow: 0 0 10px #ff00de;
}
#confirm-mensaje { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.5; color: #e0e0e0; }

.confirm-botones { display: flex; justify-content: space-around; gap: 20px; }

/* Botones compartidos estilo Violinista */
.confirm-botones button, .btn-transport, .btn-cancel {
    background: transparent; color: #fff;
    border: 2px solid #ae00ff; padding: 15px 20px;
    font-size: 1rem; font-weight: bold; border-radius: 50px;
    cursor: pointer; transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(174, 0, 255, 0.4);
    text-transform: uppercase; font-family: 'Arial', sans-serif;
}
.confirm-botones button:hover, .btn-transport:hover {
    background: #ae00ff; color: white; box-shadow: 0 0 25px #ae00ff; transform: scale(1.05); 
}
.btn-cancel { border-color: #ff0055; box-shadow: 0 0 10px rgba(255, 0, 85, 0.4); }
.btn-cancel:hover { background: #ff0055; box-shadow: 0 0 25px #ff0055; color: white; transform: scale(1.05); }
#btn-aceptar { background: transparent; border: 2px solid #00ffcc; color: #00ffcc; box-shadow: 0 0 10px #00ffcc; }
#btn-aceptar:hover { background: #00ffcc; color: black; box-shadow: 0 0 25px #00ffcc; }

#btn-cancelar { background: transparent; border: 2px solid #ff3333; color: #ff3333; box-shadow: 0 0 10px #ff3333; }
#btn-cancelar:hover { background: #ff3333; color: white; box-shadow: 0 0 25px #ff3333; }

/* Menú del Transporte (Taxi) */
#transport-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500; display: flex; align-items: center; justify-content: center;
}

/* ========================================= */
/* MENÚ DEL TRANSPORTE (TAXI)                */
/* ========================================= */
.transport-box {
    background: linear-gradient(135deg, #2a0044 0%, #000000 100%);
    border: 3px solid #ae00ff; border-radius: 20px;
    padding: 30px; text-align: center; 
    box-shadow: 0 0 30px #ae00ff, 0 0 10px #00ffff inset;
    animation: popIn 0.3s ease-out;
}
.transport-box h2 { 
    color: #00ffff; margin-bottom: 20px; font-size: 24px; 
    font-family: 'Fredoka One', cursive; text-shadow: 0 0 10px #ff00de;
}
.btn-transport, .btn-cancel { margin-top: 15px; display: block; width: 100%; }
.btn-transport:hover { transform: scale(1.05); }

.btn-cancel:hover { background: #777; }

/* Botones Preguntas Violinista */
.trivia-botones {
    display: flex; flex-direction: column; gap: 15px; margin-top: 25px;
}

.btn-trivia {
    background: transparent; color: #fff;
    border: 2px solid #ae00ff; padding: 15px 20px;
    font-size: 1rem; font-weight: bold; border-radius: 50px;
    cursor: pointer; transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(174, 0, 255, 0.4);
    text-transform: uppercase; font-family: 'Arial', sans-serif;
}

.btn-trivia:hover {
    background: #ae00ff; color: white; box-shadow: 0 0 25px #ae00ff; transform: scale(1.05); 
}

/* ========================================= */
/* 6. CINEMÁTICAS Y VÍDEOS                   */
/* ========================================= */
.cinematica-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 100000; 
    display: none; justify-content: center; align-items: center;
}

.cinematica-layer video {
    width: 100%; height: 100%;
    object-fit: cover; 
    background: #000;
}

#video-transporte-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: black; z-index: 2000; 
    display: none; justify-content: center; align-items: center;
}

#video-taxi {
    width: 100vw; height: 100vh; object-fit: cover; 
}

/* Botones flotantes (Bici y Omitir) */
#btn-bici-accion {
    position: absolute; bottom: 30px; right: 30px;
    width: max-content !important; 
    background: rgba(0, 0, 0, 0.5); color: white; 
    border: 2px solid rgba(255, 255, 255, 0.5); 
    padding: 8px 16px; border-radius: 20px; 
    font-family: 'Segoe UI', sans-serif; font-weight: bold; font-size: 12px;      
    cursor: pointer; z-index: 2000; text-transform: uppercase;
    transition: all 0.3s ease; display: none; 
}

#btn-bici-accion:hover {
    background: rgba(0, 255, 204, 0.6); border-color: white; transform: scale(1.05); 
}

.btn-skip {
    position: absolute !important; bottom: 30px !important; top: auto !important;    
    right: 30px !important; width: max-content !important; 
    background: rgba(0, 0, 0, 0.5) !important; color: white !important; 
    border: 2px solid rgba(255, 255, 255, 0.5) !important; 
    padding: 8px 16px !important; font-size: 12px !important;   
    cursor: pointer; border-radius: 20px !important; 
    font-weight: bold; font-family: 'Segoe UI', sans-serif;
    z-index: 100010; transition: all 0.3s ease; text-transform: uppercase;
}

.btn-skip:hover {
    background: rgba(255, 0, 0, 0.8) !important; border-color: white !important; transform: scale(1.05);
}

/* ========================================= */
/* 7. ANIMACIONES CLAVE                      */
/* ========================================= */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes aparecer {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}