:root {
    --bm-blue: #1565d8;
    --bm-blue-dark: #0f2f5f;
    --bm-light: #f4f9ff;
    --bm-text: #14213d;
    --bm-muted: #5b6b82;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--bm-text);
    background: #ffffff;
}

.navbar {
    min-height: 76px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--bm-blue) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
}

.bm-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 48%, #e7f2ff 100%);
    overflow: hidden;
}

.bm-title {
    font-size: 3.3rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--bm-blue-dark);
}

.bm-title span {
        color: var(--bm-blue);
}

.bm-subtitle {
    font-size: 1.25rem;
    color: var(--bm-muted);
    max-width: 620px;
}

.bm-btn-primary {
    background: var(--bm-blue);
    color: #fff;
    border-radius: 14px;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.bm-btn-outline {
    border: 1px solid var(--bm-blue);
    color: var(--bm-blue);
    border-radius: 14px;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.bm-card-preview {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(15, 47, 95, 0.18);
}

.bm-screen {
    border-radius: 18px;
    border: 1px solid #dce9f8;
    background: #ffffff;
    overflow: hidden;
}

.bm-screen-header {
    background: var(--bm-blue);
    color: white;
    padding: 14px 18px;
    font-weight: 700;
}

.bm-screen-body {
    padding: 18px;
}

.bm-stat {
    background: var(--bm-light);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.bm-feature {
    background: #ffffff;
    border: 1px solid #e7eef8;
    border-radius: 22px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 10px 28px rgba(15, 47, 95, 0.06);
}

.bm-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #e8f2ff;
    color: var(--bm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.bm-section {
    padding: 80px 0;
}

.bm-dark {
    background: var(--bm-blue-dark);
    color: white;
    padding: 45px 0;
}

    .bm-dark p {
        color: #c9d7ea;
    }
.hero-bitmedical {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f4fbff 0%, #ffffff 50%, #eef7ff 100%);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary {
    border-radius: 30px;
    padding-left: 25px;
    padding-right: 25px;
}

.btn-outline-secondary {
    border-radius: 30px;
    padding-left: 25px;
    padding-right: 25px;
}
.bm-page-header {
    background: linear-gradient(135deg, #0f2f5f 0%, #1565d8 100%);
    color: white;
    padding: 75px 0;
}

.bm-page-header h1 {
    font-weight: 800;
    font-size: 2.8rem;
}

.bm-page-header p {
    max-width: 720px;
    color: #dbeafe;
    font-size: 1.15rem;
    margin-top: 12px;
}

.bm-product-card {
    background: #ffffff;
    border: 1px solid #e4edf8;
    border-radius: 24px;
    padding: 34px;
    height: 100%;
    box-shadow: 0 14px 35px rgba(15, 47, 95, 0.08);
    transition: all 0.2s ease;
}

.bm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 47, 95, 0.13);
}

.bm-product-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #e8f2ff;
    color: #1565d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.bm-product-card h3 {
    color: #0f2f5f;
    font-weight: 800;
    margin-bottom: 14px;
}

.bm-product-card p {
    color: #5b6b82;
}

.bm-product-card ul {
    margin-top: 18px;
    padding-left: 20px;
}

.bm-product-card li {
    margin-bottom: 8px;
    color: #26364f;
}
.bm-login-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 55%, #e7f2ff 100%);
    padding: 70px 0;
}

.bm-login-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 24px 60px rgba(15, 47, 95, 0.16);
    border: 1px solid #e4edf8;
}

.bm-login-card h2 {
    color: #0f2f5f;
    font-weight: 800;
}

.bm-login-card .form-control {
    height: 48px;
    border-radius: 12px;
}

.bm-login-card .btn-primary {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
}
.bm-app {
display: flex;
min-height: 100vh;
}

.bm-sidebar {
width: 260px;
background: #0f2f5f;
color: white;
padding: 25px;
}

.bm-logo {
font-size: 1.7rem;
font-weight: 800;
margin-bottom: 40px;
}

.bm-sidebar ul {
list-style: none;
padding: 0;
}

.bm-sidebar li {
margin-bottom: 12px;
}

.bm-sidebar a {
color: white;
text-decoration: none;
display: block;
padding: 12px;
border-radius: 10px;
}

.bm-sidebar a:hover {
    background: rgba(255,255,255,0.12);
}

.bm-main {
flex: 1;
padding: 35px;
background: #f5f8fc;
}

.bm-kpi {
background: white;
border-radius: 18px;
padding: 25px;
text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.bm-kpi h2 {
    color: #1565d8;
    font-size: 2rem;
    font-weight: 800;
}
.sistema-layout {
    display: flex;
    height: calc(100vh - 70px);
    background: #f1f5f9;
}

.menu-lateral {
    width: 250px;
    background: #0f172a;
    color: white;
    padding: 20px;
}

.menu-titulo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #38bdf8;
}

.menu-lateral button {
    display: block;
    width: 100%;
    background: transparent;
    color: #e5e7eb;
    border: none;
    text-align: left;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

    .menu-lateral button:hover {
        background: #1e293b;
    }

.menu-separador {
    margin: 20px 0 8px;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
}

.zona-trabajo {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 8px 0;
    gap: 4px;
    overflow-x: auto;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    cursor: pointer;
}

    .tab-item.activo {
        background: #2563eb;
        color: white;
    }

    .tab-item button {
        border: none;
        background: transparent;
        color: inherit;
        font-size: 18px;
        cursor: pointer;
    }

.tabs-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: white;
}

.tab-panel {
    display: none;
    width: 100%;
    height: 100%;
}

.tab-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bienvenida {
    padding: 40px;
}
.bm-modulo {
    padding: 24px;
    background: #f1f5f9;
    min-height: 100vh;
}

.bm-modulo-header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    padding: 22px 26px;
    border-radius: 16px;
    margin-bottom: 20px;
}

    .bm-modulo-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }

    .bm-modulo-header p {
        margin: 4px 0 0;
        color: #bfdbfe;
    }

.bm-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    margin-bottom: 20px;
}

.bm-card-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 17px;
}

.bm-grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.bm-card label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
}

.bm-table {
    font-size: 14px;
}

.bm-table thead th {
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.bm-table td {
    vertical-align: middle;
}

.bm-badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.bm-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.bm-badge.off {
    background: #fee2e2;
    color: #991b1b;
}

.bm-footer {
    padding: 24px 0;
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
}

@media(max-width: 1100px) {
    .bm-grid-layout {
        grid-template-columns: 1fr;
    }
}

/*-----------------------------------------
  Plataforma Clásica
------------------------------------------*/

.bm-classic-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
    transition: .25s;
}

    .bm-classic-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(15,23,42,.08);
    }

.bm-classic-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg,#f8fafc,#e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.bm-classic-card h5 {
    font-weight: 600;
}

.bm-classic-card .btn {
    border-radius: 10px;
}

.bm-toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-toast {
    min-width: 280px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .25);
    animation: bmToastIn .25s ease-out;
}

.bm-toast-success {
    background: #16a34a;
}

.bm-toast-error {
    background: #dc2626;
}

.bm-toast-warning {
    background: #f59e0b;
}

.bm-toast-info {
    background: #2563eb;
}

.bm-toast.salir {
    opacity: 0;
    transform: translateX(20px);
    transition: .3s;
}

@keyframes bmToastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}