﻿/* --- VARIABLES --- */
:root {
    --fcl-oscuro: #0b1a2a;
    --fcl-azul-hover: #1a3047;
    --fcl-texto: #ffffff;
    --fcl-fondo: #f4f7f6;
    --fcl-header-height: 90px;
}

/* --- ESTRUCTURA BASE PC --- */
.contenedor-principal_fcl {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--fcl-fondo) !important;
}

/* --- SIDEBAR --- */
.sidebar_fcl {
    width: 260px !important;
    background: var(--fcl-oscuro) !important;
    color: var(--fcl-texto) !important;
    position: fixed !important;
    height: calc(100% - var(--fcl-header-height)) !important;
    left: 0 !important;
    top: var(--fcl-header-height) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.link-menu_fcl {
    display: flex !important;
    align-items: center;
    padding: 15px 25px !important;
    color: var(--fcl-texto) !important;
    text-decoration: none !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

    .link-menu_fcl:hover {
        background: var(--fcl-azul-hover) !important;
        padding-left: 35px !important;
    }

/* --- CONTENIDO --- */
.contenido-central_fcl {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    padding: 30px !important;
}

.hoja-blanca_fcl {
    background: #ffffff !important;
    min-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

/* --- MODAL Y PANELES (Lo que alimenta el análisis) --- */
.modal_fcl {
    display: none;
    position: fixed;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.extra-large-modal {
    width: 900px !important;
    background: #fcfcfc;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.panel-fcl {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.panel-title {
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #2d3748;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

.input-fcl {
    border: 1px solid #cbd5e0 !important;
    padding: 10px !important;
    border-radius: 5px !important;
    width: 100%;
}

.form-row_fcl {
    display: flex;
    gap: 15px;
}

/* Clases de columnas para el modal */
.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.33%;
}

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 768px) {
    .header-movil_fcl {
        display: flex !important;
        background: var(--fcl-oscuro) !important;
        color: white;
        padding: 10px 20px;
        position: fixed !important;
        top: var(--fcl-header-height) !important;
        width: 100%;
        height: 50px;
        z-index: 1001;
        align-items: center;
    }

    .sidebar_fcl {
        top: calc(var(--fcl-header-height) + 50px) !important;
        left: -260px !important;
    }

    #check_fcl:checked ~ .contenedor-principal_fcl .sidebar_fcl {
        left: 0 !important;
    }

    .contenido-central_fcl {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
    }

    .form-row_fcl {
        flex-direction: column;
    }

    .col-6, .col-4 {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .header-movil_fcl {
        display: none !important;
    }
}
