/* ============================================================
   DocuGest ASOLIMDAY - Estilos Principales
   ============================================================ */

/* --- Fuente local Poppins (latin-ext: acentos español) --- */
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-300-ext.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-400-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-500-ext.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-600-ext.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-700-ext.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Variables CSS --- */
:root {
    --navy: #1B1F5E;
    --navy-light: #252A6E;
    --cyan-light: #5CCFEF;
    --teal: #4BA8C9;
    --gold: #F0A830;
    --dark-teal: #1A6B7A;
    --light-bg: #F4F8FB;
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--light-bg); color: #333; }
a { text-decoration: none; }

/* ============================================================
   LAYOUT AUTH (Login, Cambiar Password)
   ============================================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B1F5E 0%, #1A6B7A 50%, #1B1F5E 100%);
    position: relative;
    overflow: hidden;
}
.auth-body::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(92,207,239,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240,168,48,0.06) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(75,168,201,0.07) 0%, transparent 45%);
    animation: authFloat 20s ease-in-out infinite;
}
@keyframes authFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(2%,-2%) rotate(1deg); }
    50% { transform: translate(-1%,3%) rotate(-1deg); }
    75% { transform: translate(3%,1%) rotate(0.5deg); }
}
.wave-bottom {
    position: fixed; bottom: 0; left: 0;
    width: 100%; height: 120px; z-index: 0;
}
.wave-bottom svg { width: 100%; height: 100%; }

.login-wrapper {
    position: relative; z-index: 10;
    width: 100%; max-width: 440px; padding: 20px;
}
.login-card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 45px 40px 35px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.logo-container { text-align: center; margin-bottom: 8px; }
.logo-container img { width: 130px; height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1)); }
.login-title {
    text-align: center; font-size: 14px; font-weight: 600;
    color: var(--navy); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px;
}
.login-subtitle {
    text-align: center; font-size: 11px; color: #6c757d;
    margin-bottom: 30px; letter-spacing: 0.5px;
}
.accent-bar {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    border-radius: 2px; margin: 0 auto 25px;
}

/* Form floating con iconos */
.form-floating { margin-bottom: 18px; }
.form-floating > .form-control {
    border: 2px solid #e9ecef; border-radius: 12px;
    padding: 16px 16px 8px 48px; font-size: 14px;
    font-family: 'Poppins', sans-serif; height: 56px;
    transition: all 0.3s ease; background-color: #f8fafc;
}
.form-floating > .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(75,168,201,0.15);
    background-color: #fff;
}
.form-floating > label { padding-left: 48px; font-size: 13px; color: #adb5bd; }
.input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--teal); font-size: 18px; z-index: 5; transition: color 0.3s;
}
.form-floating:focus-within .input-icon { color: var(--navy); }
.password-toggle {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #adb5bd; cursor: pointer;
    z-index: 5; font-size: 16px; transition: color 0.2s;
}
.password-toggle:hover { color: var(--navy); }

.btn-login {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    border: none; border-radius: 12px; color: white;
    font-family: 'Poppins', sans-serif; font-weight: 600;
    font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s ease;
    position: relative; overflow: hidden; margin-top: 8px;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75,168,201,0.4);
    color: white;
}
.btn-login:active { transform: translateY(0); }
.btn-login::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-login:hover::after { left: 100%; }

.login-footer {
    text-align: center; margin-top: 25px;
    font-size: 11px; color: rgba(255,255,255,0.5);
}

/* Alert login */
.alert-login {
    background: rgba(220,53,69,0.1); border: 1px solid rgba(220,53,69,0.2);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #dc3545; animation: shake 0.5s;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-5px); }
    40%,80% { transform: translateX(5px); }
}

/* Cambiar password - warning badge */
.warning-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240,168,48,0.12); color: var(--gold);
    padding: 8px 18px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.password-requirements {
    background: #f8f9fa; border-radius: 12px;
    padding: 16px 20px; margin: 20px 0;
}
.password-requirements .req {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: #6c757d; padding: 5px 0;
    transition: color 0.3s;
}
.password-requirements .req.valid { color: var(--success); }
.password-requirements .req.valid i::before { content: "\F26B"; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-w); height: 100vh;
    background: linear-gradient(180deg, var(--navy) 0%, #141745 100%);
    z-index: 1000; overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.sidebar-header {
    padding: 24px 20px 16px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header img { width: 80px; margin-bottom: 6px; }
.sidebar-header .brand {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
    letter-spacing: 2px; text-transform: uppercase;
}
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-label {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3);
    letter-spacing: 2px; text-transform: uppercase;
    padding: 12px 14px 6px; margin-top: 4px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; margin: 2px 0; border-radius: 10px;
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active {
    background: linear-gradient(135deg, var(--teal), var(--dark-teal));
    color: #fff; box-shadow: 0 4px 15px rgba(75,168,201,0.3);
}
.nav-item i { font-size: 18px; width: 22px; text-align: center; }
.nav-badge {
    margin-left: auto; background: var(--gold);
    color: var(--navy); font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
}
.sidebar-footer {
    padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .nav-item { color: rgba(255,255,255,0.4); font-size: 12px; }
.sidebar-footer .nav-item:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: fixed; top: 0; left: var(--sidebar-w); right: 0;
    height: var(--topbar-h); background: #fff; z-index: 999;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-bottom: 1px solid #eee;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left .breadcrumb { margin: 0; font-size: 13px; }
.topbar-left .breadcrumb-item a { color: var(--teal); text-decoration: none; }
.topbar-left .breadcrumb-item.active { color: var(--navy); font-weight: 600; }
.btn-toggle-sidebar {
    display: none; background: none; border: none;
    font-size: 22px; color: var(--navy); cursor: pointer;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-notif {
    position: relative; background: none; border: none;
    font-size: 20px; color: #6c757d; cursor: pointer;
}
.topbar-notif .badge-dot {
    position: absolute; top: 0; right: 0;
    width: 8px; height: 8px; background: var(--gold);
    border-radius: 50%; border: 2px solid #fff;
}
.user-dropdown {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 6px 12px; border-radius: 10px;
    transition: background 0.2s; text-decoration: none;
}
.user-dropdown:hover { background: var(--light-bg); }
.user-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
}
.user-info { line-height: 1.2; }
.user-info .name { font-size: 13px; font-weight: 600; color: var(--navy); }
.user-info .role { font-size: 10px; color: #adb5bd; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-w);
    padding: 84px 28px 28px;
    min-height: 100vh;
}
.page-header { margin-bottom: 28px; }
.page-header h1 {
    font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 2px;
    display: flex; align-items: center; gap: 10px;
}
.page-header h1 i { color: var(--teal); }
.page-header p { font-size: 13px; color: #6c757d; margin: 0; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: #fff; border-radius: 14px; padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex; align-items: center; gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.stat-icon.teal { background: rgba(75,168,201,0.12); color: var(--teal); }
.stat-icon.gold { background: rgba(240,168,48,0.12); color: var(--gold); }
.stat-icon.navy { background: rgba(27,31,94,0.1); color: var(--navy); }
.stat-icon.cyan { background: rgba(92,207,239,0.12); color: var(--cyan-light); }
.stat-icon.danger { background: rgba(220,53,69,0.1); color: var(--danger); }
.stat-icon.success { background: rgba(40,167,69,0.1); color: var(--success); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 12px; color: #6c757d; margin-top: 2px; }

/* ============================================================
   CARDS GENERALES
   ============================================================ */
.card-custom {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: visible;
}
.card-custom .card-header-custom {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
}
.card-custom .card-header-custom h5 {
    font-size: 15px; font-weight: 600; color: var(--navy); margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.card-custom .card-body-custom { padding: 22px; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn-teal {
    background: linear-gradient(135deg, var(--teal), var(--dark-teal));
    color: #fff; border: none; border-radius: 10px;
    padding: 10px 20px; font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 13px; transition: all 0.3s;
}
.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75,168,201,0.3);
    color: #fff;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d4922a);
    color: #fff; border: none; border-radius: 10px;
    padding: 10px 20px; font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 13px; transition: all 0.3s;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,168,48,0.3);
    color: #fff;
}
.btn-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff; border: none; border-radius: 10px;
    padding: 10px 20px; font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 13px; transition: all 0.3s;
}
.btn-navy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27,31,94,0.3);
    color: #fff;
}
.btn-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; font-size: 16px; transition: all 0.2s; cursor: pointer;
}
.btn-icon.teal { background: rgba(75,168,201,0.1); color: var(--teal); }
.btn-icon.teal:hover { background: var(--teal); color: #fff; }
.btn-icon.gold { background: rgba(240,168,48,0.1); color: var(--gold); }
.btn-icon.gold:hover { background: var(--gold); color: #fff; }
.btn-icon.navy { background: rgba(27,31,94,0.1); color: var(--navy); }
.btn-icon.navy:hover { background: var(--navy); color: #fff; }
.btn-icon.danger { background: rgba(220,53,69,0.1); color: var(--danger); }
.btn-icon.danger:hover { background: var(--danger); color: #fff; }

/* ============================================================
   TABLAS
   ============================================================ */
.table-custom {
    width: 100%; border-collapse: separate; border-spacing: 0;
}
.table-custom thead th {
    background: var(--navy); color: #fff;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; padding: 14px 16px;
    border: none;
}
.table-custom thead th:first-child { border-radius: 10px 0 0 0; }
.table-custom thead th:last-child { border-radius: 0 10px 0 0; }
.table-custom tbody td {
    padding: 14px 16px; font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.table-custom tbody tr:hover { background: rgba(75,168,201,0.04); }
.table-custom tbody tr.inactive { background: rgba(220,53,69,0.03); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #dee2e6; border-radius: 24px; transition: 0.3s;
}
.toggle-slider:before {
    content: ''; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: white;
    border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Status badges */
.badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-status.active { background: rgba(40,167,69,0.1); color: var(--success); }
.badge-status.inactive { background: rgba(220,53,69,0.1); color: var(--danger); }
.badge-status.pending { background: rgba(240,168,48,0.12); color: var(--gold); }
.badge-status.seen { background: rgba(40,167,69,0.1); color: var(--success); }
.badge-nuevo {
    background: var(--gold); color: #fff;
    font-size: 9px; font-weight: 700; padding: 2px 8px;
    border-radius: 10px; text-transform: uppercase;
}

/* Cedula monospace */
.cedula-code {
    font-family: 'Courier New', monospace; font-size: 13px;
    background: #f0f2f5; padding: 3px 8px; border-radius: 6px;
    color: var(--navy); font-weight: 600;
}

/* ============================================================
   PAGINACION
   ============================================================ */
.pagination-custom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; background: #f8f9fa;
    border-radius: 0 0 14px 14px;
}
.pagination-custom .info { font-size: 12px; color: #6c757d; }
.pagination-custom .pages { display: flex; gap: 4px; }
.pagination-custom .page-btn {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; border: 1px solid #dee2e6;
    background: #fff; color: #495057; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.pagination-custom .page-btn:hover { border-color: var(--teal); color: var(--teal); }
.pagination-custom .page-btn.active {
    background: var(--teal); color: #fff; border-color: var(--teal);
}
.pagination-custom .page-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-label-custom {
    font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.form-control-custom {
    border: 2px solid #e9ecef; border-radius: 10px;
    padding: 10px 14px; font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.form-control-custom:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(75,168,201,0.15);
}
.form-select-custom {
    border: 2px solid #e9ecef; border-radius: 10px;
    padding: 10px 14px; font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.form-select-custom:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(75,168,201,0.15);
}

/* Dropzone */
.dropzone {
    border: 2px dashed #dee2e6; border-radius: 14px;
    padding: 40px; text-align: center;
    transition: all 0.3s; cursor: pointer;
    background: #fafbfc;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--teal);
    background: rgba(75,168,201,0.04);
}
.dropzone i { font-size: 40px; color: var(--teal); margin-bottom: 10px; }
.dropzone p { font-size: 14px; color: #6c757d; margin: 0; }
.dropzone .hint { font-size: 12px; color: #adb5bd; margin-top: 8px; }

/* ============================================================
   QUICK ACTION CARDS
   ============================================================ */
.action-card {
    background: #fff; border-radius: 14px; padding: 24px;
    text-align: center; border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s; cursor: pointer; text-decoration: none;
    display: block;
}
.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--teal);
}
.action-card .icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 12px;
}
.action-card h6 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.action-card p { font-size: 11px; color: #adb5bd; margin: 0; }

/* ============================================================
   WELCOME BANNER (Dashboard Trabajador)
   ============================================================ */
.welcome-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-teal) 100%);
    border-radius: 16px; padding: 32px 36px; color: #fff;
    position: relative; overflow: hidden; margin-bottom: 28px;
}
.welcome-banner::before {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(92,207,239,0.1);
}
.welcome-banner::after {
    content: ''; position: absolute; right: 60px; bottom: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(240,168,48,0.08);
}
.welcome-banner h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.welcome-banner h2 .gold { color: var(--gold); }
.welcome-banner p { font-size: 13px; opacity: 0.8; margin: 0; }

/* ============================================================
   DOCUMENT CARDS
   ============================================================ */
.doc-card {
    background: #fff; border-radius: 12px; padding: 18px;
    border: 1px solid #eee; border-left: 4px solid transparent;
    transition: all 0.3s; position: relative;
}
.doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-left-color: var(--teal);
}
.doc-card.unread { border-left-color: var(--gold); }
.doc-card .doc-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(220,53,69,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--danger); font-size: 20px;
}
.doc-card .doc-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.doc-card .doc-meta { font-size: 11px; color: #adb5bd; }

/* Category list (Mis Documentos) */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-item {
    padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: space-between;
}
.category-item:hover { background: rgba(75,168,201,0.04); }
.category-item.active {
    background: rgba(75,168,201,0.08);
    border-left: 3px solid var(--teal);
}
.category-item .cat-name {
    font-size: 13px; font-weight: 500; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
}
.category-item .cat-count {
    font-size: 11px; background: #f0f2f5;
    padding: 2px 8px; border-radius: 10px; color: #6c757d;
}
.year-submenu {
    padding-left: 32px; display: none;
}
.year-submenu.show { display: block; }
.year-item {
    padding: 8px 16px; font-size: 12px; color: #6c757d;
    cursor: pointer; transition: all 0.2s; border-radius: 6px;
}
.year-item:hover { background: rgba(75,168,201,0.06); color: var(--navy); }
.year-item.active { color: var(--teal); font-weight: 600; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert-custom {
    border-radius: 12px; padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; margin-bottom: 20px;
    animation: slideUp 0.3s ease;
}
.alert-custom.success { background: rgba(40,167,69,0.1); color: var(--success); border: 1px solid rgba(40,167,69,0.2); }
.alert-custom.error { background: rgba(220,53,69,0.1); color: var(--danger); border: 1px solid rgba(220,53,69,0.2); }
.alert-custom.warning { background: rgba(240,168,48,0.1); color: var(--gold); border: 1px solid rgba(240,168,48,0.2); }
.alert-custom.info { background: rgba(75,168,201,0.1); color: var(--teal); border: 1px solid rgba(75,168,201,0.2); }

/* ============================================================
   PDF VIEWER MODAL
   ============================================================ */
.pdf-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 2000;
    animation: fadeIn 0.3s;
}
.pdf-modal {
    position: fixed; top: 5%; left: 5%; right: 5%; bottom: 5%;
    background: #fff; border-radius: 16px; z-index: 2001;
    display: flex; flex-direction: column; overflow: hidden;
    animation: slideUp 0.3s;
}
.pdf-modal-header {
    padding: 16px 24px; background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.pdf-modal-header h5 { font-size: 15px; font-weight: 600; margin: 0; }
.pdf-modal-body { flex: 1; padding: 0; }
.pdf-modal-body iframe { width: 100%; height: 100%; border: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,0.5); z-index: 999;
    }
    .sidebar-overlay.show { display: block; }
    .topbar { left: 0; }
    .btn-toggle-sidebar { display: block !important; }
    .main-content { margin-left: 0; }
}

@media (max-width: 767.98px) {
    .main-content { padding: 74px 16px 16px; }
    .topbar { padding: 0 16px; }
    .page-header h1 { font-size: 18px; }
    .stat-card { padding: 16px; }
    .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    .stat-value { font-size: 22px; }
    .welcome-banner { padding: 24px 20px; }
    .welcome-banner h2 { font-size: 18px; }
    .table-responsive-custom { overflow-x: auto; }
    .login-card { padding: 35px 25px 30px; border-radius: 16px; }
    .logo-container img { width: 100px; }

    /* PDF modal fullscreen en movil */
    .pdf-modal { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; }
}
