*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    min-height:100%;
    font-family:'Poppins','Segoe UI',Arial,sans-serif;
    background:#f4f0e8;
    color:#120b04;
}

body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
}

.container{
    width:100%;
    max-width:352px;
}

.wrap-evaluation{
    width:100%;
    background:#fff;
    border-radius:10px;
    border-top:4px solid #c9a46b;
    padding:38px 31px 32px;
    box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.login-logo{
    text-align:center;
    margin-bottom:28px;
}

.login-logo img{
    width:245px;
    max-width:100%;
    height:auto;
}

.login-title{
    text-align:center;
    margin-bottom:24px;
}

.login-title h2{
    margin:0;
    font-size:28px;
    line-height:1.15;
    font-weight:600;
    color:#120b04;
}

.login-title p{
    margin:10px auto 0;
    max-width:250px;
    font-size:16px;
    font-weight:300;
    line-height:1.45;
    color:#6f6b75;
}

.mg-text{
    margin-bottom:14px !important;
}

.mg-text label{
    display:block;
    margin-bottom:6px !important;
    font-size:15px !important;
    font-weight:400;
    color:#120b04;
}

.mg-text input{
    width:100%;
    height:46px;
    padding:0 15px;
    border:1px solid #d9c7b2;
    border-radius:6px;
    background:#eaf2ff;
    outline:none;
    font-size:15px;
    color:#000;
}

.mg-text input:focus{
    border-color:#c9a46b;
    box-shadow:0 0 0 3px rgba(201,164,107,.15);
}

.fl-btn{
    margin-top:20px;
}

.fl-btn button{
    width:100%;
    height:48px;
    border:0;
    border-radius:6px;
    background:#d1ad79;
    color:#fff;
    font-size:16px;
    font-weight:600;
    text-transform:uppercase;
    cursor:pointer;
}

.fl-btn button:hover{
    background:#c49d64;
}

.login-extra{
    margin-top:19px;
    text-align:center;
}

.login-extra span{
    font-size:15px;
    font-weight:300;
    color:#8f8b96;
}

.login-error{
    margin-bottom:16px;
    padding:12px 14px;
    border-radius:6px;
    background:#f8e7e7;
    color:#9b3d3d;
    font-size:13px;
}

@media(max-width:480px){
    body{
        padding:18px;
    }

    .container{
        max-width:352px;
    }

    .wrap-evaluation{
        padding:34px 30px 30px;
    }

    .login-logo img{
        width:230px;
    }
}











/* =========================================
   PANEL LAYOUT
========================================= */

.admin-layout{
    width:100%;
    min-height:100vh;
    background:#f4f0e8;
}

.admin-body{
    width:100%;
}

.admin-body-inner{
    display:grid;
    grid-template-columns:240px minmax(0,1fr);
    min-height:calc(100vh - 78px);
}

/* =========================================
   TOPBAR
========================================= */

.admin-header{
    height:100px;

    background:#120b04;

    border-bottom:
        1px solid rgba(201,164,107,.18);

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 28px;
}

.admin-header-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.admin-logo img{
    width:auto;
    height:42px;
}

.admin-header-divider{
    width:1px;
    height:34px;

    background:
        rgba(201,164,107,.22);
}

.admin-header-info h1{
    margin:0;

    font-size:18px;
    font-weight:500;

    color:#fff;
}

.admin-header-info p{
    margin:4px 0 0;

    font-size:13px;
    font-weight:300;

    color:#b89d73;
}

.admin-user-box{
    display:flex;
    align-items:center;
    gap:18px;
}

.admin-user-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

.admin-user-name{
    font-size:13px;
    font-weight:500;

    color:#fff;
}

.admin-user-role{
    margin-top:2px;

    font-size:11px;
    font-weight:400;

    text-transform:uppercase;
    letter-spacing:1px;

    color:#c9a46b;
}

.admin-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:40px;

    padding:0 18px;

    border-radius:40px;

    border:
        1px solid rgba(201,164,107,.34);

    color:#fff;
    text-decoration:none;

    font-size:11px;
    font-weight:500;

    letter-spacing:1px;
    text-transform:uppercase;

    transition:.2s ease;
}

.admin-logout:hover{
    background:#c9a46b;
    color:#120b04;
}

/* =========================================
   SIDEBAR
========================================= */

.admin-sidebar{
    background:#f8f5ef;

    border-right:
        1px solid rgba(201,164,107,.14);

    padding:22px 14px;
}

.admin-menu ul{
    margin:0;
    padding:0;
    list-style:none;
}

.admin-menu li{
    margin-bottom:10px;
}

.admin-menu li a{
    display:flex;
    align-items:center;

    min-height:48px;

    padding:0 16px;

    border-radius:10px;

    border:
        1px solid rgba(201,164,107,.16);

    background:#fff;

    color:#2c2218;
    text-decoration:none;

    font-size:14px;
    font-weight:400;

    transition:.2s ease;
}

.admin-menu li.active a,
.admin-menu li a:hover{
    background:#d0ad78;
    color:#fff;
}

.admin-section{
    margin:
        24px 0 12px;
}

.admin-section-title{
    padding:0 8px;

    font-size:12px;
    font-weight:500;

    letter-spacing:2px;
    text-transform:uppercase;

    color:#af8b5c;
}

/* =========================================
   MAIN
========================================= */

.admin-main{
    width:100%;
    padding:26px;
}

/* =========================================
   WELCOME
========================================= */

.admin-welcome{
    background:#fff;

    border-radius:14px;

    border-top:
        4px solid #c9a46b;

    padding:28px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.03);
}

.admin-welcome h2{
    margin:0;

    font-size:28px;
    font-weight:500;

    color:#120b04;
}

.admin-welcome-text{
    margin-top:10px;

    font-size:15px;
    font-weight:300;

    color:#7c7267;
}

/* =========================================
   CARDS
========================================= */

.admin-cards{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:18px;

    margin-top:24px;
}

.admin-card{
    background:#fff;

    border:
        1px solid rgba(201,164,107,.14);

    border-radius:14px;

    padding:22px;

    min-height:180px;

    transition:.2s ease;
}

.admin-card:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.04);
}

.admin-card h3{
    margin:0 0 14px;

    font-size:11px;
    font-weight:500;

    letter-spacing:2px;
    text-transform:uppercase;

    color:#b18d5f;
}

.admin-card-big{
    margin:0 0 12px;

    font-size:28px;
    font-weight:500;

    color:#120b04;
}

.admin-card p{
    margin:0 0 6px;

    font-size:14px;
    font-weight:400;

    line-height:1.45;

    color:#2c2218;
}

.admin-card-label{
    margin-top:8px;

    font-size:13px;
    font-weight:300;

    color:#85796c;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:900px){

    .admin-body-inner{
        grid-template-columns:1fr;
    }

    .admin-sidebar{
        border-right:none;

        border-bottom:
            1px solid rgba(201,164,107,.14);
    }

}

@media(max-width:640px){

    .admin-header{
        height:auto;

        padding:16px;

        flex-direction:column;
        align-items:flex-start;

        gap:14px;
    }

    .admin-header-divider,
    .admin-header-info{
        display:none;
    }

    .admin-user-box{
        width:100%;
        justify-content:space-between;
    }

    .admin-main{
        padding:18px;
    }

    .admin-welcome{
        padding:22px;
    }

    .admin-welcome h2{
        font-size:24px;
    }

    .admin-cards{
        grid-template-columns:1fr;
    }

    .admin-card{
        min-height:auto;
    }

}
/* FIX PANEL - EVITAR QUE EL CONTAINER DEL LOGIN DAÑE EL PANEL */

.admin-layout .container{
    max-width:none;
    width:100%;
}

.admin-layout .admin-header-inner,
.admin-layout .admin-body-inner{
    max-width:none;
    width:100%;
}

.admin-body-inner{
    display:grid;
    grid-template-columns:230px minmax(0, 1fr);
    gap:0;
}

.admin-main{
    width:100%;
    min-width:0;
    padding:26px;
}

.admin-welcome{
    width:100%;
}

.admin-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:18px;
    width:100%;
}

.admin-card{
    width:100%;
}










/* =========================================
   USUARIOS
========================================= */

.module-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:18px;

    margin-bottom:22px;
}

.module-title{
    margin:0;

    font-size:26px;
    font-weight:500;

    color:#120b04;
}

.module-subtitle{
    margin-top:8px;

    font-size:14px;
    font-weight:300;

    color:#7c7267;
}

/* =========================================
   BOTONES
========================================= */

.btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:46px;

    padding:0 22px;

    border:none;
    border-radius:8px;

    background:#d1ad79;

    color:#fff;
    text-decoration:none;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    transition:.2s ease;
}

.btn-primary:hover{
    background:#c39b62;
}

.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:46px;

    padding:0 22px;

    border-radius:8px;

    border:
        1px solid rgba(201,164,107,.24);

    background:#fff;

    color:#120b04;
    text-decoration:none;

    font-size:14px;
    font-weight:500;

    transition:.2s ease;
}

.btn-secondary:hover{
    background:#f7f2eb;
}

/* =========================================
   PANEL
========================================= */

.admin-panel{
    background:#fff;

    border-radius:14px;

    border-top:
        4px solid #c9a46b;

    padding:24px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.03);
}

.admin-panel-head{
    margin-bottom:22px;
}

.admin-panel-head h3{
    margin:0;

    font-size:22px;
    font-weight:500;

    color:#120b04;
}

/* =========================================
   TABLAS
========================================= */

.table-wrapper{
    width:100%;
    overflow-x:auto;
}

.table-basic{
    width:100%;
    border-collapse:collapse;
    min-width:720px;
}

.table-basic thead tr{
    background:#f8f4ee;
}

.table-basic th{
    padding:16px 14px;

    border-bottom:
        1px solid rgba(201,164,107,.16);

    text-align:left;

    font-size:12px;
    font-weight:600;

    letter-spacing:1px;
    text-transform:uppercase;

    color:#a78456;
}

.table-basic td{
    padding:16px 14px;

    border-bottom:
        1px solid rgba(201,164,107,.10);

    font-size:14px;
    font-weight:400;

    color:#2d2218;
}

.table-basic tbody tr:hover{
    background:#fcfaf7;
}

/* =========================================
   ACCIONES
========================================= */

.table-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.btn-table{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:34px;

    padding:0 14px;

    border-radius:6px;

    background:#d1ad79;

    color:#fff;
    text-decoration:none;

    font-size:12px;
    font-weight:600;

    transition:.2s ease;
}

.btn-table:hover{
    background:#c39b62;
}

.btn-table.danger{
    background:#b75c5c;
}

.btn-table.danger:hover{
    background:#a34a4a;
}

.btn-table.success{
    background:#6a9670;
}

.btn-table.success:hover{
    background:#5c8461;
}

/* =========================================
   FORMULARIOS
========================================= */

.form-page{
    width:100%;
}

.form-card{
    max-width:720px;

    background:#fff;

    border-radius:14px;

    border-top:
        4px solid #c9a46b;

    padding:28px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.03);
}

.form-card-header{
    margin-bottom:26px;
}

.form-card-header h2{
    margin:0;

    font-size:28px;
    font-weight:500;

    color:#120b04;
}

.form-card-header p{
    margin-top:10px;

    font-size:14px;
    font-weight:300;

    color:#7c7267;
}

.form-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px,1fr));

    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:8px;

    font-size:14px;
    font-weight:500;

    color:#120b04;
}

.form-group input,
.form-group select{
    width:100%;
    height:46px;

    padding:0 14px;

    border:
        1px solid rgba(201,164,107,.22);

    border-radius:8px;

    background:#fff;

    outline:none;

    font-size:14px;

    transition:.2s ease;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#c9a46b;

    box-shadow:
        0 0 0 3px rgba(201,164,107,.10);
}

.form-actions{
    display:flex;
    align-items:center;
    gap:12px;

    margin-top:28px;
}

.form-error{
    margin-bottom:18px;

    padding:14px;

    border-radius:8px;

    background:#f8e8e8;

    color:#9d3d3d;

    font-size:13px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:768px){

    .module-toolbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:640px){

    .admin-panel,
    .form-card{
        padding:20px;
    }

    .module-title{
        font-size:22px;
    }

    .form-card-header h2{
        font-size:24px;
    }

    .form-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

}







/* =========================================
   MÓDULOS / TABLAS
========================================= */

.module-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:24px 0 18px;
}

.module-title{
    margin:0;
    font-size:24px;
    font-weight:600;
    color:#120b04;
}

.module-subtitle{
    margin:6px 0 0;
    font-size:14px;
    font-weight:300;
    color:#7c7267;
}

.admin-panel{
    background:#fff;
    border-radius:14px;
    border-top:4px solid #c9a46b;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.03);
}

.table-wrapper{
    width:100%;
    overflow-x:auto;
}

.table-basic{
    width:100%;
    border-collapse:collapse;
    min-width:650px;
}

.table-basic thead tr{
    background:#fbf7f1;
}

.table-basic th{
    padding:14px 12px;
    border-bottom:1px solid #e2d2bf;
    text-align:left;
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#a78456;
}

.table-basic td{
    padding:13px 12px;
    border-bottom:1px solid #f0e4d6;
    font-size:14px;
    font-weight:400;
    color:#2d2218;
}

.table-basic tbody tr:hover{
    background:#fcfaf7;
}

.empty-text{
    margin:0;
    font-size:14px;
    color:#7c7267;
}

@media(max-width:640px){
    .admin-panel{
        padding:18px;
    }

    .module-title{
        font-size:22px;
    }
}

.table-contactos{
    min-width:980px;
}

.message-cell{
    max-width:420px;
    line-height:1.5;
    color:#4b4036;
}

.form-error{
    margin-bottom:18px;
    padding:14px;
    border-radius:8px;
    background:#f8e8e8;
    color:#9d3d3d;
    font-size:13px;
}

/* =========================================
   BOOK COVER
========================================= */

.book-cover{
    width:100%;
    height:220px;
    overflow:hidden;
    border-radius:14px;
    background:#f4f0e8;
}

.book-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* =========================================
   BIBLIOTECA
========================================= */

.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:20px;
    margin-top:24px;
}

.book-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    border:1px solid rgba(201,164,107,.14);
    box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.book-cover{
    width:100%;
    height:260px;
    background:#f4f0e8;
    overflow:hidden;
}

.book-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.book-content{
    padding:16px;
}

.book-content h3{
    margin:0 0 10px;
    font-size:15px;
    font-weight:600;
    color:#120b04;
}

.book-author{
    margin:0 0 10px;
    font-size:13px;
    color:#4c4035;
}

.book-category{
    display:block;
    margin-bottom:14px;
    font-size:12px;
    color:#9a7b52;
}

.book-actions{
    display:flex;
    gap:8px;
}





.book-cover{
    border:0;
    padding:0;
    cursor:pointer;
}

.book-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

.book-modal.show{
    display:block;
}

.book-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(18,11,4,.72);
}

.book-modal-content{
    position:relative;
    z-index:2;

    width:min(960px, calc(100% - 32px));
    max-height:calc(100vh - 40px);

    margin:20px auto;
    overflow:auto;

    background:#fff;
    border-radius:16px;
    border-top:4px solid #c9a46b;

    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.book-modal-close{
    position:absolute;
    top:14px;
    right:16px;

    width:38px;
    height:38px;

    border:0;
    border-radius:50%;

    background:#120b04;
    color:#fff;

    font-size:26px;
    line-height:1;

    cursor:pointer;
}

.book-modal-grid{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:28px;
    padding:34px;
}

.book-modal-image{
    background:#f4f0e8;
    border-radius:14px;
    overflow:hidden;
}

.book-modal-image img{
    width:100%;
    height:auto;
    display:block;
}

.book-modal-info h2{
    margin:0 0 14px;
    font-size:28px;
    font-weight:600;
    color:#120b04;
}

.modal-book-author{
    margin:0 0 12px;
    font-size:15px;
    color:#2d2218;
}

.modal-book-position{
    display:inline-block;
    margin-bottom:22px;
    padding:8px 12px;
    border-radius:8px;
    background:#f7f2eb;
    color:#9a7b52;
    font-size:13px;
}

.modal-book-description{
    font-size:15px;
    line-height:1.7;
    color:#4d4035;
    white-space:pre-line;
}

body.modal-active{
    overflow:hidden;
}

@media(max-width:768px){
    .book-modal-grid{
        grid-template-columns:1fr;
        padding:24px;
    }

    .book-modal-info h2{
        font-size:22px;
    }
}


.book-modal-content{
    width:min(760px, calc(100% - 32px));
    max-height:calc(100vh - 40px);
    margin:20px auto;
    overflow:auto;
    background:#fff;
    border-radius:14px;
    border-top:4px solid #c9a46b;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.book-modal-grid{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:22px;
    padding:28px;
}

.book-modal-image img{
    width:100%;
    max-height:420px;
    object-fit:contain;
    display:block;
}

.book-modal-info h2{
    margin:0 0 10px;
    font-size:22px;
    font-weight:600;
}

.modal-book-author{
    margin:0 0 10px;
    font-size:14px;
}

.modal-book-position{
    margin-bottom:14px;
    padding:6px 10px;
    font-size:12px;
}

.modal-book-description{
    font-size:14px;
    line-height:1.55;
}

.book-modal-close{
    width:32px;
    height:32px;
    font-size:22px;
}


/* =========================================
   PAGINACIÓN
========================================= */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;

    margin:30px 0 10px;
    flex-wrap:wrap;
}

.page-btn{
    min-width:38px;
    height:38px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 12px;

    border-radius:8px;

    background:#fff;

    border:1px solid rgba(201,164,107,.24);

    color:#120b04;
    text-decoration:none;

    font-size:14px;
    font-weight:500;

    transition:.2s ease;
}

.page-btn:hover{
    background:#f7f2eb;
    border-color:#c9a46b;
}

.page-btn.active{
    background:#d1ad79;
    border-color:#d1ad79;
    color:#fff;
}

/* =========================================
   GRID LIBROS
========================================= */

.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    gap:24px;
}

.book-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(0,0,0,.05);
}

.book-cover{
    width:100%;
    height:320px;

    display:block;
    overflow:hidden;
    background:#f3efe8;

    border:0;
    padding:0;
}

.book-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.book-info{
    padding:18px;
}

.book-title{
    margin:0 0 12px;
    font-size:16px;
    font-weight:700;
    color:#120b04;
}

.book-author{
    margin:0 0 10px;
    color:#5f5143;
    font-size:14px;
}

.book-position{
    display:block;
    margin-bottom:14px;
    color:#b08a5a;
    font-size:13px;
}
.search-panel{
    margin:20px 0 24px;
}

.search-form{
    display:flex;
    gap:10px;
}

.search-form input{
    flex:1;
    height:46px;
    padding:0 14px;
    border:1px solid rgba(201,164,107,.24);
    border-radius:8px;
    outline:none;
}

.search-form button{
    height:46px;
    padding:0 18px;
    border:0;
    border-radius:8px;
    background:#d1ad79;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.book-description{
    margin:0 0 14px;
    font-size:13px;
    line-height:1.5;
    color:#6b5d4f;
}

.book-modal-content{
    width:min(760px, calc(100% - 32px));
    max-height:calc(100vh - 40px);
    margin:20px auto;
    overflow:auto;
    background:#fff;
    border-radius:14px;
    border-top:4px solid #c9a46b;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.book-modal-grid{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:22px;
    padding:28px;
}

.book-modal-image img{
    width:100%;
    max-height:420px;
    object-fit:contain;
    display:block;
}

.form-group-full{
    grid-column:1 / -1;
}

.form-group textarea{
    width:100%;
    padding:14px;
    border:1px solid rgba(201,164,107,.22);
    border-radius:8px;
    background:#fff;
    outline:none;
    font-size:14px;
    font-family:inherit;
    resize:vertical;
}

.form-group textarea:focus{
    border-color:#c9a46b;
    box-shadow:0 0 0 3px rgba(201,164,107,.10);
}

.form-page{
    margin-top:24px;
}

.form-card{
    margin-top:0;
}

.form-grid{
    margin-top:24px;
}

.form-actions{
    padding-top:10px;
}


/* Credenciales */

.credenciales-filter-panel {
    margin-bottom: 22px;
}

.credenciales-filtros {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.credenciales-filtros .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.credenciales-filtros label {
    font-size: 13px;
    font-weight: 600;
    color: #6b5a42;
}

.credenciales-filtros input,
.credenciales-filtros select {
    width: 100%;
    height: 42px;
    border: 1px solid #d8c7aa;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #4b4032;
}

.credenciales-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cred-copy-text,
.cred-password-mask {
    font-family: monospace;
    font-size: 13px;
}

.cred-password-mask {
    letter-spacing: 2px;
}

.cred-link {
    color: #9b7a3c;
    font-weight: 600;
    text-decoration: none;
}

.cred-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .credenciales-filtros {
        grid-template-columns: 1fr;
    }

    .credenciales-filter-actions .btn-primary,
    .credenciales-filter-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.pagination-wrap{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    margin-top:24px;
}

.pagination-btn{
    min-width:42px;
    height:42px;
    padding:0 14px;
    border-radius:10px;
    background:#f5efe4;
    border:1px solid #dcc9a8;
    color:#6b5636;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:600;
    transition:.2s;
}

.pagination-btn:hover{
    background:#ead8b9;
}

.pagination-btn.active{
    background:#b89352;
    color:#fff;
    border-color:#b89352;
}


/* =========================================================
   CAJA CHICA
========================================================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-bottom:24px;
}

.dashboard-card{
    background:#fff;
    border:1px solid #eadfce;
    border-radius:18px;
    padding:24px;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.dashboard-label{
    display:block;
    font-size:13px;
    color:#8b7558;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.dashboard-value{
    display:block;
    font-size:34px;
    font-weight:700;
    color:#8c6a3b;
    line-height:1.1;
}

.dashboard-mini-info{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #efe5d8;
    font-size:14px;
    color:#6d5a42;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.admin-panel{
    background:#fff;
    border:1px solid #eadfce;
    border-radius:18px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.admin-form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group-full{
    grid-column:1/-1;
}

.form-group label{
    font-size:14px;
    font-weight:600;
    color:#6d5a42;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #dccfbf;
    border-radius:12px;
    background:#fffdf9;
    font-size:14px;
    color:#4d4030;
    outline:none;
    transition:.2s;
    box-sizing:border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#c7a46a;
    box-shadow:0 0 0 4px rgba(199,164,106,.12);
}

.form-actions{
    grid-column:1/-1;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:8px;
}

.btn-primary{
    background:linear-gradient(135deg,#b8945f,#9e7840);
    color:#fff;
    border:none;
    border-radius:12px;
    padding:12px 22px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 20px rgba(158,120,64,.18);
}

.empty-state{
    text-align:center;
    padding:40px 20px;
}

.empty-state h3{
    margin-bottom:10px;
    color:#7a6240;
    font-size:24px;
}

.empty-state p{
    color:#7b6a56;
    margin-bottom:20px;
}

.table-wrapper{
    overflow-x:auto;
    border-radius:14px;
}

.table-basic{
    width:100%;
    border-collapse:collapse;
    min-width:760px;
}

.table-basic thead{
    background:#f8f2e9;
}

.table-basic th{
    padding:14px;
    text-align:left;
    font-size:13px;
    font-weight:700;
    color:#7a6240;
    border-bottom:1px solid #e7d9c6;
    white-space:nowrap;
}

.table-basic td{
    padding:14px;
    border-bottom:1px solid #f0e6da;
    font-size:14px;
    color:#5f4e3b;
    vertical-align:middle;
}

.table-basic tbody tr:hover{
    background:#fffcf8;
}

.btn-table{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:10px;
    background:#efe3d0;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.2s;
}

.btn-table:hover{
    background:#e5d2b5;
}

.login-success{
    background:#edf8f0;
    color:#2d6a3f;
    border:1px solid #b9e2c3;
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:20px;
}

@media (max-width:768px){

    .dashboard-value{
        font-size:28px;
    }

    .admin-panel{
        padding:18px;
    }

    .admin-form-grid{
        grid-template-columns:1fr;
    }

    .table-basic{
        min-width:680px;
    }
}


.book-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
    flex-wrap:wrap;
}

.btn-table{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:9px 16px;
    border-radius:999px;
    background:#f3e6d4;
    color:#5b3f21;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    line-height:1;
    border:1px solid #ead8bf;
    box-shadow:0 4px 10px rgba(67, 45, 22, .08);
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-table:hover{
    background:#e7d3b6;
    color:#3f2a14;
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(67, 45, 22, .14);
}

.btn-table:active{
    transform:translateY(0);
    box-shadow:0 3px 8px rgba(67, 45, 22, .10);
}

.btn-table.danger{
    background:#fff1f1;
    color:#a33b3b;
    border-color:#f0c9c9;
}

.btn-table.danger:hover{
    background:#b95656;
    color:#fff;
    border-color:#b95656;
}
/* =========================================
   CAJA CHICA
========================================= */

.estado-abierta{
    color:#0f8b44;
    font-weight:700;
}

.estado-cerrada{
    color:#c0392b;
    font-weight:700;
}

.resumen-caja{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin-bottom:25px;
}

.resumen-item{
    background:#fff;
    border:1px solid #ece6dc;
    border-radius:12px;
    padding:18px;
}

.resumen-item h4{
    margin:0 0 10px;
    font-size:14px;
    color:#a07c4a;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.resumen-item p{
    margin:0;
    font-size:28px;
    font-weight:700;
    color:#1d1d1d;
}

.table-wrapper{
    width:100%;
    overflow-x:auto;
}

.table-basic{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.table-basic th{
    background:#fbf7f1;
    padding:10px 8px;
    border-bottom:1px solid #e2d2bf;
    text-align:left;
    color:#4a3524;
}

.table-basic td{
    padding:8px;
    border-bottom:1px solid #f0e4d6;
}

.table-basic .text-right{
    text-align:right;
}

.table-basic .text-center{
    text-align:center;
}

.caja-mini-img{
    max-height:60px;
    display:block;
    border-radius:6px;
}

/* =========================================
   ARQUEOS / CAJA
========================================= */

.admin-card hr{
    border:0;
    border-top:1px solid #e9dfd1;
    margin:16px 0;
}

.admin-card form{
    margin-top:10px;
}

.admin-card textarea{
    width:100%;
    min-height:110px;

    padding:12px 14px;

    border:
        1px solid #d9c7b2;

    border-radius:6px;

    background:#eaf2ff;

    outline:none;
    resize:vertical;

    font-size:14px;
    font-family:inherit;

    color:#000;
}

.admin-card textarea:focus{
    border-color:#c9a46b;

    box-shadow:
        0 0 0 3px rgba(201,164,107,.15);
}

.login-success{
    margin-bottom:16px;

    padding:12px 14px;

    border-radius:6px;

    background:#e7f4ea;

    color:#2d6b42;

    font-size:13px;
}

.table-basic td.text-right,
.table-basic th.text-right{
    text-align:right;
}

.table-basic td.text-center,
.table-basic th.text-center{
    text-align:center;
}

.caja-mini-img{
    display:block;

    max-width:70px;
    max-height:70px;

    border-radius:6px;

    border:
        1px solid rgba(201,164,107,.18);
}


.company-logos img {
    opacity: .35;
    transition: all .25s ease;
    cursor: pointer;
}

.company-logos img.active {
    opacity: 1;
    transform: scale(1.05);
}

/* ======================================================
   HOJAS MEMBRETADAS
====================================================== */

.hm-page{
    width:100%;
    display:flex;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
}

.hm-inner{
    width:100%;
    max-width:860px;
}

.login-wrapper{
    width:100%;
}


/* ======================================================
   HEADER
====================================================== */

.login-title{
    text-align:center;
    margin-bottom:24px;
}

.login-title h2{
    margin:0;
    font-size:30px;
    line-height:1.1;
    color:#3b2d1f;
    font-weight:700;
}

.login-title h2 span{
    color:#b88a4a;
}

.login-title p{
    margin-top:10px;
    color:#7a6b5d;
    font-size:14px;
}

/* ======================================================
   LOGOS
====================================================== */

.company-logos{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.company-logos img{
    width:85px;
    height:auto;
    opacity:.28;
    filter:grayscale(100%);
    transition:all .25s ease;
    cursor:pointer;
    border-radius:10px;
    padding:6px;
}

.company-logos img:hover{
    opacity:.65;
    transform:translateY(-2px);
}

.company-logos img.active{
    opacity:1;
    filter:none;
    background:#fff7ef;
    transform:scale(1.06);
    box-shadow:0 4px 14px rgba(184,138,74,.18);
}

/* ======================================================
   FORM
====================================================== */

.mg-text{
    margin-bottom:18px !important;
}

.mg-text label{
    display:block;
    margin-bottom:7px;
    color:#5d4d3d;
    font-weight:600;
    font-size:14px;
}

.mg-text small{
    display:block;
    margin-top:7px;
    color:#8c7d70;
    font-size:12px;
}

.mg-text select,
.mg-text input[type=file]{
    width:100%;
    border:1px solid #ddd4c7;
    border-radius:10px;
    background:#fff;
    padding:12px 14px;
    font-size:14px;
    color:#3e352d;
    transition:border .2s ease, box-shadow .2s ease;
    box-sizing:border-box;
}

.mg-text select:focus,
.mg-text input[type=file]:focus{
    border-color:#b88a4a;
    box-shadow:0 0 0 4px rgba(184,138,74,.12);
    outline:none;
}

/* ======================================================
   WATERMARK
====================================================== */

.wm-row{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-top:8px;
}

.wm-row label{
    display:flex;
    align-items:center;
    gap:7px;
    background:#faf7f2;
    border:1px solid #eadfce;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    transition:all .2s ease;
    font-size:13px;
    color:#5f5143;
}

.wm-row label:hover{
    background:#fff5e9;
    border-color:#d7b17a;
}

/* ======================================================
   BUTTON
====================================================== */

.fl-btn{
    margin-top:24px;
}

#btn-generar,
.btn-primary{
    border:none;
    background:linear-gradient(135deg,#b88a4a,#8d6531);
    color:#fff;
    padding:13px 22px;
    border-radius:12px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

#btn-generar:hover,
.btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(141,101,49,.25);
}

#btn-generar:disabled{
    opacity:.7;
    cursor:not-allowed;
}

/* ======================================================
   ALERTAS
====================================================== */

.login-error{
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:18px;
    font-size:14px;
    border:1px solid #f1c5c5;
    background:#fff4f4;
    color:#9f2d2d;
}

/* ======================================================
   PROCESANDO
====================================================== */

.procesando{
    margin-top:14px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#7b6145;
    font-size:13px;
}

.spinner{
    width:18px;
    height:18px;
    border:2px solid #ddd;
    border-top-color:#b88a4a;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:768px){

    .wrap-evaluation{
        padding:22px;
    }

    .login-title h2{
        font-size:24px;
    }

    .company-logos img{
        width:70px;
    }

    .wm-row{
        flex-direction:column;
    }

    .wm-row label{
        width:100%;
    }

    #btn-generar,
    .btn-primary{
        width:100%;
    }
}


@media (max-width: 768px) {
  .admin-layout {
    width: 100%;
    min-height: 100vh;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
  }

  .admin-header-left,
  .admin-header-right,
  .admin-user-box {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-divider {
    display: none;
  }

  .admin-body-inner {
    display: block;
    width: 100%;
  }

  .admin-sidebar {
    width: 100%;
    padding: 18px;
  }

  .admin-main {
    width: 100%;
    padding: 18px;
  }

  .admin-welcome {
    width: 100%;
    padding: 24px 20px;
  }

  .admin-welcome h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .admin-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-card {
    width: 100%;
    padding: 22px 20px;
  }

  .admin-card-big {
    font-size: 26px;
    word-break: break-word;
  }
}

@media (max-width: 768px) {

    .book-modal-content {
        width: calc(100% - 24px);
        max-height: 92vh;
        overflow-y: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .book-modal-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .book-modal-image {
        width: 100%;
    }

    .book-modal-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 16px;
    }

    .book-modal-info {
        width: 100%;
    }

    .book-modal-info h2 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .modal-book-author {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .modal-book-position {
        display: inline-block;
        margin-bottom: 18px;
    }

    .modal-book-description {
        font-size: 15px;
        line-height: 1.7;
        word-break: break-word;
    }

    .book-modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {

    input[type="file"] {
        width: 100%;
        font-size: 13px;
    }

    input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        margin: 0 !important;
    }

    label:has(input[type="radio"]) {
        width: 100%;
        min-height: 64px;
        padding: 14px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px;
        box-sizing: border-box;
    }

    label:has(input[type="radio"]) input {
        order: 1;
    }

    label:has(input[type="radio"]) span,
    label:has(input[type="radio"]) strong {
        order: 2;
        flex: 1;
        text-align: right;
        font-size: 14px;
    }

    button[type="submit"],
    .btn-primary {
        width: 100%;
    }
}








.admin-header {
    background: #ffffff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    box-shadow: 0 12px 30px rgba(45, 33, 22, .06);
}

.admin-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.admin-header-divider {
    width: 1px;
    height: 42px;
    background: #eadfce;
}

.admin-header-info h1 {
    margin: 0;
    color: #1f1a17;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.admin-header-info p {
    margin: 3px 0 0;
    color: #9a7a4f;
    font-size: 13px;
    font-weight: 400;
}

.admin-user-box {
    display: flex;
    align-items: center;
    gap: 14px;

    background: #faf7f1;
    border: 1px solid #eadfce;
    border-radius: 999px;

    padding: 8px 8px 8px 16px;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.admin-user-name {
    color: #241f1b;
    font-size: 14px;
    font-weight: 600;
}

.admin-user-role {
    color: #b38442;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.admin-logout {
    height: 36px;
    padding: 0 16px;

    border-radius: 999px;
    background: #1f1a17;
    color: #fff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.admin-logout:hover {
    background: #b38442;
}




@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 16px;
    }

    .admin-header-left {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .admin-logo img {
        height: 80px;
    }

    .admin-header-divider {
        display: none;
    }

    .admin-header-info h1 {
        font-size: 20px;
		
    }

    .admin-header-info p {
        font-size: 12px;
    }

    .admin-user-box {
        width: 100%;
        border-radius: 14px;
        justify-content: space-between;
        padding: 12px;
    }

    .admin-user-meta {
        align-items: flex-start;
    }

    .admin-logout {
        height: 36px;
    }
}

.admin-user-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.admin-user-meta{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.admin-user-name{
    text-align:center;
}

.admin-user-role{
    text-align:center;
}

.admin-logout{
    margin-top:12px;
}

/* =========================================
   FIX HEADER USUARIO
========================================= */

.admin-header-right{
    margin-left:auto;
}

.admin-user-box{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    gap:14px;

    width:auto;
    min-width:0;

    padding:8px 8px 8px 16px;

    border-radius:16px;
    background:#faf7f1;
    border:1px solid #eadfce;

    text-align:left;
}

.admin-user-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    text-align:right;
}

.admin-user-name{
    text-align:right;
    white-space:nowrap;
    line-height:1.2;
}

.admin-user-role{
    text-align:right;
    white-space:nowrap;
    line-height:1.2;
}

.admin-logout{
    margin-top:0;
    white-space:nowrap;
    flex-shrink:0;
}

/* Responsive */
@media(max-width:768px){

    .admin-user-box{
        width:100%;
        flex-direction:row;
        justify-content:space-between;
        border-radius:14px;
        padding:12px;
    }

    .admin-user-meta{
        align-items:flex-start;
        text-align:left;
    }

    .admin-user-name,
    .admin-user-role{
        text-align:left;
    }

}

/* =========================================
   FIX MENÚ LATERAL MÁS COMPACTO
========================================= */

.admin-sidebar{
    padding:14px 12px;
}

.admin-menu li{
    margin-bottom:6px;
}

.admin-menu li a{
    min-height:38px;
    padding:0 12px;
    border-radius:8px;
    font-size:13px;
}

.admin-section{
    margin:16px 0 8px;
}

.admin-section-title{
    padding:0 6px;
    font-size:11px;
    letter-spacing:1.4px;
}