:root {
    --bg-color: #050505;
    --accent-color: #ffffff;
    --text-muted: #888;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: white;
}

#experience-canvas {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

/* Overlay de Instrucciones */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: opacity 0.5s ease;
}

#instructions {
    text-align: center;
    cursor: pointer;
}

#instructions h1 {
    font-size: 3rem;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 200;
}

#instructions p {
    color: var(--text-muted);
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.selection-menu {
    margin: 3rem 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.scene-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scene-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.controls-hint {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.7rem;
    color: #444;
}

/* Punto de mira */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: difference;
    opacity: 0.5;
}

/* Controles Mobile */
#mobile-controls {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
    pointer-events: none;
    user-select: none;
}

.joystick-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.joystick-zone span {
    font-size: 0.6rem;
    letter-spacing: 0.2rem;
    opacity: 0.5;
}

.joystick-base {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.joystick-stick {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    transition: transform 0.1s ease-out;
}

/* Solo mostrar en dispositivos táctiles o pantallas pequeñas */
@media (max-width: 1024px) {
    #mobile-controls {
        display: flex;
    }
    #crosshair {
        display: none; /* Ocultar punto de mira en mobile para limpiar la vista */
    }
}
