/* ============ ESTILOS BASE DEL BELÉN (belen-base.css) ============ */

/* 1. VARIABLES GLOBALES (Cero hardcode: todo se controla desde aquí) */
:root {
    /* Jerarquía de capas limpia y predecible */
    --z-escena: 10;
    --z-figuras: 50;
    --z-ui: 100;
    --z-modal: 1000;
    
    /* Comportamiento "líquido" (transiciones suaves) */
    --transicion-liquida: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Estándares visuales */
    --radio-borde: 12px;
    --sombra-base: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 2. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #1a1a2e; /* Fondo de respaldo */
    overflow: hidden; /* Evita scroll no deseado en la app */
    font-family: 'Bebas Neue', Arial, sans-serif;
}

/* 3. ESCENARIO (Fondo y capa de figuras) */
.container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-escena);
}

.stage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(100%) brightness(0.85);
    transition: var(--transicion-liquida);
}

/* Al ganar, el escenario recupera su color y brillo original suavemente */
.celebracion-activa .stage-image {
    filter: grayscale(0%) brightness(1);
}

.escena-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none; /* Permite clicks a través del overlay vacío */
    z-index: var(--z-figuras);
}

.zona-figuras {
    position: absolute;
    inset: 0;
    pointer-events: none; /* Las figuras individuales reactivarán pointer-events: auto */
}
