:root{
    --azul:#002b66;
    --azul-2:#0f4c81;
    --naranja:#f7941d;
    --gris:#f4f6f8;
    --texto:#263238;
    --borde:#d9dee5;
}

body{
    margin:0;
    font-family:Arial, sans-serif;
    color:var(--texto);
    background:var(--gris);
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(rgba(255,255,255,.50), rgba(255,255,255,.50)),
        url("../img/fondo_tecnofix.jpg") center center / cover no-repeat;
    z-index:-1;
}

.card{
    background:white;
    border-radius:14px;
    padding:22px;
    margin-bottom:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    border:1px solid rgba(0,43,102,.08);
}

h1,h2,h3{
    color:var(--azul);
}

.btn{
    display:inline-block;
    background:var(--azul);
    color:white;
    padding:9px 14px;
    border-radius:8px;
    text-decoration:none;
    border:0;
    cursor:pointer;
    margin:3px;
}

.btn:hover{
    background:var(--azul-2);
}

.btn-orange{
    background:var(--naranja);
}

.tabla{
    width:100%;
    border-collapse:collapse;
    background:white;
}

.tabla th{
    background:var(--azul);
    color:white;
    padding:10px;
    text-align:left;
}

.tabla td{
    padding:10px;
    border-bottom:1px solid var(--borde);
}

.tabla tr:hover{
    background:#f8fafc;
}

.stat{
    background:white;
    border-radius:14px;
    padding:20px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    border-left:5px solid var(--naranja);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.app-shell{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:linear-gradient(180deg,#002b66,#001b40);
    color:white;
    padding:22px 16px;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    max-height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
}

.sidebar-logo{
    text-align:center;
    margin-bottom:14px;
}

.sidebar-logo img{
    max-width:155px;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:9px 12px;
    border-radius:10px;
    margin-bottom:4px;
    font-size:15px;
    font-weight:500;
}

.sidebar a:hover{
    background:rgba(255,255,255,.12);
}

.sidebar-section{
    margin:24px 16px 12px;
    font-size:17px;
    font-weight:800;
    color:#ffffff;
    text-transform:uppercase;
    border-top:1px solid rgba(255,255,255,.20);
    padding-top:16px;
    letter-spacing:1px;
}

.main-area{
    margin-left:260px;
    width:calc(100% - 260px);
}

.topbar{
    height:64px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px;
    box-shadow:0 4px 14px rgba(0,0,0,.06);
    position:sticky;
    top:0;
    z-index:10;
}

.content{
    padding:28px;
}

.user-badge{
    color:#002b66;
    font-weight:bold;
}