/* ============================================================
   🎨 ARCHIVO MAESTRO DE ESTILOS: estilos_ckp.css (CKP Style)
   ============================================================ */

/* 1. CONFIGURACIÓN DEL LIENZO GENERAL */
body {
    background-color: #0b0f19; /* Negro profundo CKP */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. CONTENEDOR PRINCIPAL ADAPTATIVO */
.contenedor {
    width: 100%;
    max-width: 900px;
    background-color: #111827; /* Gris oscuro industrial */
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    box-sizing: border-box;
    margin-top: 10px;
}

/* 3. TIPOGRAFÍAS DE CABECERA */
h2 {
    margin: 5px 0;
    font-size: 1.4rem;
    text-align: center;
    color: #38bdf8; /* Azul cielo nítido */
}

p {
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* 4. ARQUITECTURA DE LOS SELECTORES ASÍNCRONOS COMBINADOS */
.menu-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.contenedor-selects {
    display: inline-flex;
    align-items: center;
    background-color: #121214; /* Fondo negro de los botones */
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 3px;
}

/* 5. BOTONES INTERRUPTORES (TÁCTILES) */
.btn-toggle {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #9ca3af;
}

.btn-toggle.activo {
    background-color: #00adb5; /* Turquesa CKP Activo */
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 173, 181, 0.3);
}

.btn-toggle:hover:not(.activo) {
    color: #ffffff;
}

/* 6. DESPLEGABLES DESLIZANTES (SELECTS) */
.select-filtro {
    background-color: #1e1e24; /* Gris del fondo del selector */
    color: #ffffff;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    margin-left: 5px;
}

/* 7. CONTENEDOR DEL LIENZO GRÁFICO (CHART.JS) */
.grafico-wrapper {
    position: relative;
    height: 60vh;
    max-height: 420px;
    width: 100%;
    background-color: #1e1e24; /* Resalte interior del gráfico */
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #2a2a35;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* 8. CONTENEDOR ESPECÍFICO DEL LIENZO (Evita que desaparezcan los valores en el celular) */
.lienzo-grafico {
    position: relative;
    width: 100%;
    height: 240px; /* Clava la altura para que el eje Y mantenga todas las referencias visuales */
}


