body, main.page {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333333;
    padding-top: 0 !important;
}

nav.navbar.navbar-inverse.sub-navbar.navbar-fixed-top {
    top: 0 !important;
    margin-top: 0 !important;
    min-height: 54px;
    background-color: #611232 !important;
    border-bottom: 3px solid #c9aa7c;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sub-navbar .navbar-brand {
    font-size: 14px !important;
    font-weight: 700;
    padding: 15px 10px !important;
    white-space: nowrap;
}

.sub-navbar .navbar-nav > li > a {
    font-size: 13px !important;
    padding: 16px 10px !important;
    white-space: nowrap;
}

.logo-placeholder-nav {
    display: inline-block;
    border: 1px dashed #c9aa7c;
    padding: 2px 7px;
    margin-right: 6px;
    font-size: 10px;
    color: #c9aa7c;
    border-radius: 3px;
}

#elBanner {
    margin-top: 54px !important;
}

.banner-institucional-placeholder {
    width: 100%;
    min-height: 125px;
    background: linear-gradient(135deg, #4b0e27 0%, #2b0716 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 15px;
    text-align: center;
}

.banner-logo-box {
    border: 2px dashed rgba(201, 170, 124, 0.85);
    padding: 6px 18px;
    border-radius: 6px;
    color: #c9aa7c;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.franja-dorada {
    width: 100%;
    height: 14px;
    background-color: #c9aa7c;
    margin-bottom: 18px;
}

hr.red {
    margin: 10px 0 22px;
    border-top-color: #DCE0E0;
    position: relative;
}

hr.red::before {
    content: " ";
    width: 35px;
    height: 5px;
    background-color: #B38E5D;
    display: block;
    position: absolute;
    top: -3px;
}

.ficha-collapse .panel-default {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
}

.ficha-collapse .panel-heading {
    background-color: #f6f6f6;
    padding: 13px 45px 13px 18px;
    position: relative;
    cursor: pointer;
}

.ficha-collapse .panel-title a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
}

.ficha-collapse .panel-body {
    padding: 20px;
    background-color: #fff;
}

.vista-modulo.hidden, .hidden {
    display: none !important;
}

.badge-sesion {
    display: inline-block;
    background-color: #c9aa7c;
    color: #2b0716;
    padding: 4px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11.5px;
    margin-top: 14px;
    margin-left: 6px;
}

/* Semáforo de calificaciones (Req. 20) */
.calif-reprobada {
    color: #d0021b !important;
    font-weight: 800;
    background-color: #fff5f5;
}

.calif-aprobada {
    color: #111111 !important;
    font-weight: 700;
}

/* Tarjetas de métricas rápidas */
.metric-box {
    border: 1px solid #e0e0e0;
    border-left: 5px solid #611232;
    background: #fafafa;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.metric-box h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
}

.metric-box .metric-val {
    font-size: 22px;
    font-weight: 800;
    color: #611232;
}

/* Muro de Mantenimiento (Req. 11) */
.muro-mantenimiento {
    background-color: #fff3cd;
    border: 2px solid #b38e5d;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
}

/* Barras de Gráficas de Morosidad (Req. 57) */
.bar-container {
    background-color: #eee;
    border-radius: 4px;
    height: 24px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.bar-fill {
    height: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    padding-left: 10px;
    transition: width 0.4s ease;
}

/* Modal personalizado (Reqs. 17 y 35) */
.custom-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-box {
    background: #fff;
    border-top: 5px solid #611232;
    border-radius: 6px;
    max-width: 650px;
    width: 92%;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.terminal-log {
    background: #1e1e1e;
    color: #4af626;
    font-family: monospace;
    font-size: 12px;
    padding: 15px;
    border-radius: 4px;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
}
