/*
 * ---------------------------------------
 * ESTILOS GLOBALES Y RESPONSIVOS
 * ---------------------------------------
 */

/* 1. RESET Y FONDO GLOBAL */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f4f7f9; /* Fondo suave para la aplicación */
    font-family: 'Lexend', 'Arial', sans-serif;
}

/* * 2. REGLA DE ACCESO (Límite: 768px para soporte de Tablets)
 * Ocultamos el contenedor de la APP en pantallas móviles
 */
#app-container {
    display: none; /* Oculto por defecto */
}

@media screen and (min-width: 768px) {
    #app-container {
        display: block; /* Visible en Tablets (Portrait/Landscape) y PC */
    }
}

/* * 3. MENSAJE DE ADVERTENCIA (ALERTA PANTALLA PEQUEÑA)
 * Se muestra solo cuando el ancho es menor a 768px
 */
.alerta-pantalla-pequena {
    display: none; /* Oculto en PC y Tablets */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    color: #343a40;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 99999;
    border-top: 5px solid #dc3545; /* Barra roja de advertencia */
}

@media screen and (max-width: 767px) {
    .alerta-pantalla-pequena {
        display: flex; /* Se activa en celulares */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .alerta-pantalla-pequena h2 {
        color: #dc3545;
        margin-bottom: 10px;
    }
    
    .alerta-pantalla-pequena p {
        max-width: 85%;
        font-size: 1.1rem;
    }
}

/* * 4. ESTILOS DE TABLAS Y COMPONENTES (Opcional/Base)
 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* * 6. ESTILOS EN GENERAL
 */

.text-xs { font-size: .75rem; }

.card-kpi { transition: transform 0.2s; border: none; }
.card-kpi:hover { transform: translateY(-3px); }
.chart-container { position: relative; height: 50vh; width: 100%; }

.nav-tabs .nav-link { color: #495057; }
.nav-tabs .nav-link.active { font-weight: bold; border-bottom: 3px solid #0d6efd; }

.card-hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.bg-gradient-dark { background: linear-gradient(135deg, #212529 0%, #343a40 100%); }

/* Ajuste para que los controles no tapen las tarjetas */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    filter: invert(1); /* Para que se vean negros si el fondo es claro */
}

/* Colores */
.sophi { color: #6610f2; }
.teal { color: #20c997; }
.warm { color: #fd7e14; }


