/*=========================================================
   WOLFSTORE CSS - BASE DEL SISTEMA (LIMPIO Y CORREGIDO)
=========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    background:#0f172a;
    color:#e5e7eb;
    overflow-x:hidden;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

/*=========================================================
VARIABLES
=========================================================*/
:root{
    --wolf-primary:#3b82f6;
    --wolf-secondary:#06b6d4;
    --wolf-success:#22c55e;
    --wolf-warning:#f59e0b;
    --wolf-danger:#ef4444;
    --wolf-dark:#0f172a;
    --wolf-dark2:#111827;
    --wolf-dark3:#1e293b;
    --wolf-text:#e5e7eb;
    --wolf-text2:#94a3b8;
    --wolf-border:rgba(255,255,255,.08);
    --wolf-radius:16px;
    --wolf-shadow:0 12px 30px rgba(0,0,0,.30);
}

/*=========================================================
TIPOGRAFÍA
=========================================================*/
h1, h2, h3, h4, h5, h6{
    margin:0;
    font-weight:700;
}

p{
    margin:0;
}

/*=========================================================
LAYOUT
=========================================================*/
.wolf-layout{
    display:flex;
    width:100%;
    min-height:100vh;
    background:#0f172a;
}

.wolf-panel{
    flex:1;
    display:flex;
    flex-direction:column;
    min-width:0;
    transition:.30s ease;
}

.wolf-content{
    flex:1;
    overflow:auto;
    background:#111827;
    padding:25px;
}

/*=========================================================
FULLSCREEN Y SIDEBAR COLAPSADO
=========================================================*/
body.fullscreen-mode .wolf-panel,
body.fullscreen-mode .wolf-content{
    width:100%;
}

body.sidebar-collapsed .wolf-sidebar{
    width:70px;
    min-width:70px;
    max-width:70px;
}

body.sidebar-collapsed .wolf-brand{
    justify-content:center;
}

body.sidebar-collapsed .wolf-logo{
    width:42px;
}

body.sidebar-collapsed .wolf-title{
    display:none !important;
}

body.sidebar-collapsed .wolf-menu span{
    display:none !important;
}

body.sidebar-collapsed .wolf-menu a{
    justify-content:center;
    padding:0;
}

body.sidebar-collapsed .wolf-menu i{
    margin-right:0 !important;
    width:100%;
    text-align:center;
    font-size:20px;
}

body.fullscreen-mode .wolf-sidebar{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    overflow:hidden;
    border:none;
    opacity:0;
}

/*=========================================================
TRANSICIONES Y SCROLL
=========================================================*/
.wolf-sidebar,
.wolf-panel,
.wolf-content{
    transition:all .30s ease;
}

::-webkit-scrollbar{
    width:8px;
}
::-webkit-scrollbar-track{
    background:#111827;
}
::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:20px;
}
::-webkit-scrollbar-thumb:hover{
    background:#475569;
}

/*=========================================================
UTILIDADES
=========================================================*/
.d-none{ display:none !important; }
.text-center{ text-align:center; }
.w-100{ width:100%; }

/*=========================================================
RESPONSIVE MÓVIL
=========================================================*/
@media (max-width:991px){
    .wolf-layout{
        flex-direction:column;
    }
    .wolf-sidebar{
        position:fixed;
        top:70px;
        left:-230px;
        height:calc(100vh - 70px);
        z-index:998;
    }
    body.sidebar-open .wolf-sidebar{
        left:0;
    }
    .wolf-panel{
        width:100%;
    }
    .wolf-content{
        padding:15px;
    }
}

/*=========================================================
FOCUS, IMÁGENES Y ENLACES
=========================================================*/
button:focus,
a:focus,
input:focus{
    outline:none;
    box-shadow:none;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:inherit;
    text-decoration:none;
}

/* =========================================================
   CORRECCIÓN GLOBAL DE ESPACIADO SUPERIOR
   Evita que el contenido de los módulos se oculte tras el navbar
=========================================================*/
.wolf-content, 
.container-fluid.wolf-page {
    padding-top: 37px !important;
    box-sizing: border-box !important;
}

/*=========================================================
FIN DE WOLFSTORE.CSS BASE
=========================================================*/