:root{--bg-primary:#f8fafc;--bg-secondary:#fff;--bg-tertiary:#f1f5f9;--text-primary:#0f172a;--text-secondary:#475569;--text-muted:#94a3b8;--border-color:#e2e8f0;--color-primary:#6366f1;--color-primary-light:#6366f11a;--color-success:#10b981;--color-success-light:#10b98114;--color-warning:#f59e0b;--color-danger:#ef4444;--color-danger-light:#ef444414;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f}*{box-sizing:border-box;margin:0;padding:0}html{background-color:#f8fafc}body{color:#0f172a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#0000;font-family:Inter,system-ui,-apple-system,sans-serif;overflow-x:hidden}body::-webkit-scrollbar{width:6px;height:6px}body::-webkit-scrollbar-track{background:0 0}body::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}body::-webkit-scrollbar-thumb:hover{background:#cbd5e1}a{color:inherit;text-decoration:none}button{font-family:inherit;font-size:inherit;color:inherit;background:0 0;border:none;outline:none}input,select,textarea{font-family:inherit;font-size:inherit;color:inherit;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;outline:none;padding:.45rem .65rem;transition:all .2s cubic-bezier(.4,0,.2,1)}input:focus,select:focus,textarea:focus{border-color:#6366f1}input[type=checkbox],input[type=radio],input[type=file]{background:0 0;border:none;padding:0}.app-container{min-height:100vh;display:flex}.main-content{background-color:#0000;flex-direction:column;flex:1;height:100vh;display:flex;overflow-y:auto}.main-content::-webkit-scrollbar{width:6px;height:6px}.main-content::-webkit-scrollbar-track{background:0 0}.main-content::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}.main-content::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.page-container{width:100%;max-width:1400px;margin:0 auto;padding:2rem;animation:.4s ease-out fadeIn}@media (width<=768px){.page-container{padding:1rem}}.page-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.page-header .header-titles h1{letter-spacing:-.03em;color:#0f172a;margin-bottom:.25rem;font-size:1.75rem;font-weight:700}.page-header .header-titles p{color:#475569;font-size:.95rem}.page-header .header-actions{gap:.75rem;display:flex}.btn{cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:.5rem;padding:.6rem 1.2rem;font-size:.9rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.btn.btn-primary{color:#fff;background-color:#6366f1}.btn.btn-primary:hover{background-color:#4f46e5;transform:translateY(-1px)}.btn.btn-secondary{color:#0f172a;background-color:#f1f5f9;border:1px solid #e2e8f0}.btn.btn-secondary:hover{background-color:#e2e8f0;border-color:#cbd5e1}.btn.btn-danger{color:#fff;background-color:#ef4444}.btn.btn-danger:hover{background-color:#ed2d2d}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1.25rem;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #0000000d}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background-color:#000000b3;justify-content:center;align-items:center;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.modal-content{background-color:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;max-width:500px;animation:.3s cubic-bezier(.16,1,.3,1) slideUp;overflow:hidden;box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #0000000d}.modal-content .modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.modal-content .modal-header h3{font-size:1.1rem;font-weight:700}.modal-content .modal-header .close-btn{color:#94a3b8;cursor:pointer}.modal-content .modal-header .close-btn:hover{color:#0f172a}.modal-content .modal-body{padding:1.5rem}.form-group{flex-direction:column;gap:.4rem;margin-bottom:1.25rem;display:flex}.form-group label{color:#475569;text-transform:uppercase;font-size:.8rem;font-weight:600}.form-group input,.form-group select,.form-group textarea{color:#0f172a;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.6rem .8rem;font-size:.9rem;transition:all .2s cubic-bezier(.4,0,.2,1)}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#6366f1}.form-group textarea{resize:vertical;min-height:80px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes skeletonShine{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes skeletonPulse{0%,to{opacity:1}50%{opacity:.55}}.skeleton-shine{position:relative;overflow:hidden}.skeleton-shine:after{content:"";pointer-events:none;background:linear-gradient(90deg,#fff0 0%,#ffffffa6 50%,#fff0 100%);animation:1.4s ease-in-out infinite skeletonShine;position:absolute;inset:0;transform:translate(-100%)}.skeleton-line{background-color:#f1f5f9;border-radius:6px;height:.75rem;animation:1.6s ease-in-out infinite skeletonPulse;display:block}.skeleton-fade-in{animation:.35s ease-out fadeIn}@media (prefers-reduced-motion:reduce){.skeleton-shine:after,.skeleton-line{animation:none}}.sidebar{z-index:50;background-color:#fff;border-right:1px solid #e2e8f0;flex-direction:column;width:260px;height:100vh;display:flex;position:sticky;top:0}@media (width<=768px){.sidebar{display:none}}.sidebar .sidebar-brand{letter-spacing:-.025em;color:#0f172a;border-bottom:1px solid #e2e8f0;align-items:center;gap:.75rem;padding:1.5rem;font-size:1.25rem;font-weight:700;display:flex}.sidebar .sidebar-brand .brand-icon{color:#6366f1}.sidebar .sidebar-menu{flex-direction:column;flex:1;gap:.25rem;padding:1.5rem .75rem;list-style:none;display:flex}.sidebar .sidebar-menu .menu-item a{color:#475569;border-radius:6px;align-items:center;gap:.75rem;padding:.75rem 1rem;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.sidebar .sidebar-menu .menu-item a:hover{color:#0f172a;background-color:#f1f5f9}.sidebar .sidebar-menu .menu-item a.active{color:#0f172a;background-color:#6366f11a;border-left:3px solid #6366f1}.sidebar .sidebar-footer{border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.sidebar .sidebar-footer .user-info{flex-direction:column;gap:.15rem;display:flex}.sidebar .sidebar-footer .user-info .user-name{color:#0f172a;font-size:.875rem;font-weight:600}.sidebar .sidebar-footer .user-info .user-role{color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;font-size:.75rem}.sidebar .sidebar-footer .logout-btn{color:#94a3b8;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.sidebar .sidebar-footer .logout-btn:hover{color:#ef4444}.dashboard-grid{grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:2rem;display:grid}@media (width<=1024px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.dashboard-grid{grid-template-columns:1fr}}.metric-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;justify-content:space-between;height:120px;padding:1.25rem;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.metric-card .metric-header{color:#475569;justify-content:space-between;align-items:center;font-size:.85rem;font-weight:500;display:flex}.metric-card .metric-header .metric-icon{color:#94a3b8}.metric-card .metric-value{color:#0f172a;letter-spacing:-.02em;margin-top:.5rem;font-size:1.75rem;font-weight:700}.metric-card .metric-footer{color:#94a3b8;margin-top:.25rem;font-size:.75rem}.dashboard-section{grid-template-columns:2fr 1fr;gap:1.5rem;margin-bottom:2rem;display:grid}@media (width<=1024px){.dashboard-section{grid-template-columns:1fr}}.chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:1rem;min-height:380px;padding:1.25rem;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.chart-card h3{color:#0f172a;font-size:1.1rem;font-weight:600}.alerts-panel{flex-direction:column;gap:1rem;display:flex}.alerts-panel h3{margin-bottom:.5rem;font-size:1.1rem;font-weight:600}.alert-item{border:1px solid #0000;border-radius:10px;gap:.75rem;padding:1rem;display:flex}.alert-item.danger{background-color:#ef444414;border-color:#ef444433}.alert-item.danger .alert-icon{color:#ef4444}.alert-item.warning{background-color:#f59e0b14;border-color:#f59e0b33}.alert-item.warning .alert-icon{color:#f59e0b}.alert-item .alert-content{flex-direction:column;gap:.15rem;display:flex}.alert-item .alert-content h4{color:#0f172a;font-size:.9rem;font-weight:600}.alert-item .alert-content p{color:#475569;font-size:.8rem;line-height:1.3}.kanban-board{gap:1rem;height:calc(100vh - 220px);padding-bottom:1rem;display:flex;overflow-x:auto}.kanban-board::-webkit-scrollbar{width:6px;height:6px}.kanban-board::-webkit-scrollbar-track{background:0 0}.kanban-board::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}.kanban-board::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.kanban-column{background-color:#ffffff80;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;min-width:300px;max-width:300px;height:100%;display:flex}.kanban-column .column-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1rem;display:flex}.kanban-column .column-header h3{text-transform:capitalize;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;display:flex}.kanban-column .column-header .card-count{color:#475569;background:#f1f5f9;border-radius:20px;padding:.1rem .5rem;font-size:.75rem;font-weight:600}.kanban-column .column-cards{flex-direction:column;flex:1;gap:.75rem;padding:.75rem;display:flex;overflow-y:auto}.kanban-column .column-cards::-webkit-scrollbar{width:6px;height:6px}.kanban-column .column-cards::-webkit-scrollbar-track{background:0 0}.kanban-column .column-cards::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}.kanban-column .column-cards::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.kanban-card{cursor:grab;background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;flex-direction:column;gap:.75rem;padding:1rem;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.kanban-card:hover{border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 1px 2px #0000000d}.kanban-card .card-project-title{color:#0f172a;font-size:.925rem;font-weight:600;line-height:1.3}.kanban-card .card-client{color:#94a3b8;font-size:.75rem;font-weight:500}.kanban-card .card-meta{justify-content:space-between;align-items:center;margin-top:.25rem;display:flex}.kanban-card .card-meta .card-badge{text-transform:uppercase;border-radius:4px;padding:.15rem .4rem;font-size:.7rem;font-weight:600}.kanban-card .card-meta .card-badge.prioridad-baja{color:#475569;background-color:#94a3b826}.kanban-card .card-meta .card-badge.prioridad-media{color:#6366f1;background-color:#6366f126}.kanban-card .card-meta .card-badge.prioridad-alta{color:#f59e0b;background-color:#f59e0b26}.kanban-card .card-meta .card-badge.prioridad-critica{color:#ef4444;background-color:#ef444426}.kanban-card .card-meta .card-date{color:#94a3b8;align-items:center;gap:.25rem;font-size:.75rem;display:flex}.project-detail-tabs{border-bottom:1px solid #e2e8f0;gap:1.5rem;margin-bottom:1.5rem;display:flex}.project-detail-tabs .tab-btn{color:#475569;cursor:pointer;border-bottom:2px solid #0000;padding:.75rem 0;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1)}.project-detail-tabs .tab-btn.active{color:#6366f1;border-bottom-color:#6366f1;font-weight:600}.project-detail-tabs .tab-btn:hover{color:#0f172a}.credential-section{grid-template-columns:1fr 1fr;gap:1.5rem;display:grid}@media (width<=1024px){.credential-section{grid-template-columns:1fr}}.credential-box{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:1rem;padding:1.25rem;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.credential-box .credential-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding-bottom:.5rem;display:flex}.credential-box .credential-header h3{text-transform:uppercase;letter-spacing:.05em;font-size:1rem;font-weight:600}.credential-box .credential-row{flex-direction:column;gap:.25rem;display:flex}.credential-box .credential-row label{color:#94a3b8;text-transform:uppercase;font-size:.75rem;font-weight:600}.credential-box .credential-row input,.credential-box .credential-row textarea{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.5rem;font-size:.85rem}.credential-box .credential-row input:focus,.credential-box .credential-row textarea:focus{border-color:#6366f1}.tabs-wrapper{width:100%;overflow-x:auto}.tabs-wrapper::-webkit-scrollbar{width:6px;height:6px}.tabs-wrapper::-webkit-scrollbar-track{background:0 0}.tabs-wrapper::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}.tabs-wrapper::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.tabs-wrapper{margin-bottom:1.5rem;display:flex}.tabs-wrapper .tabs-container{align-items:center;gap:1rem;min-width:max-content;display:flex}.tabs-wrapper.underline{border-bottom:1px solid #e2e8f0;padding-bottom:1px}.tabs-wrapper.underline .tabs-container{gap:1.75rem}.tabs-wrapper.underline .tab-item{color:#475569;cursor:pointer;background:0 0;border-bottom:2px solid #0000;align-items:center;gap:.5rem;padding:.65rem .25rem;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative}.tabs-wrapper.underline .tab-item .tab-icon{color:#94a3b8;transition:all .2s cubic-bezier(.4,0,.2,1)}.tabs-wrapper.underline .tab-item:hover{color:#0f172a}.tabs-wrapper.underline .tab-item:hover .tab-icon{color:#475569}.tabs-wrapper.underline .tab-item.active{color:#6366f1;border-bottom-color:#6366f1;font-weight:600}.tabs-wrapper.underline .tab-item.active .tab-icon{color:#6366f1}.tabs-wrapper.pill{background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:auto;margin-bottom:0;padding:.25rem;display:inline-flex}.tabs-wrapper.pill .tabs-container{gap:.25rem}.tabs-wrapper.pill .tab-item{color:#475569;cursor:pointer;background:0 0;border-radius:4px;align-items:center;gap:.4rem;padding:.45rem .9rem;font-size:.8rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.tabs-wrapper.pill .tab-item .tab-icon{color:#94a3b8;transition:all .2s cubic-bezier(.4,0,.2,1)}.tabs-wrapper.pill .tab-item:hover{color:#0f172a;background:#f1f5f966}.tabs-wrapper.pill .tab-item.active{color:#6366f1;background:#6366f11a}.tabs-wrapper.pill .tab-item.active .tab-icon{color:#6366f1}.table-container{background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;margin-top:1rem;overflow:hidden;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.app-table{border-collapse:collapse;text-align:left;width:100%;font-size:.875rem}.app-table th{color:#475569;text-transform:uppercase;letter-spacing:.05em;background-color:#f1f5f966;border-bottom:1px solid #e2e8f0;padding:.85rem 1.25rem;font-size:.75rem;font-weight:600}.app-table td{color:#0f172a;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:1rem 1.25rem}.app-table tr:last-child td{border-bottom:none}.app-table tr:hover td{background-color:#f1f5f940}.app-table .badge{text-transform:uppercase;border-radius:4px;padding:.2rem .5rem;font-size:.725rem;font-weight:600}.app-table .badge.status-pagada{color:#10b981;background-color:#10b98126}.app-table .badge.status-pendiente{color:#f59e0b;background-color:#f59e0b26}.app-table .badge.status-vencida{color:#ef4444;background-color:#ef444426}.app-table .badge.status-parcial{color:#6366f1;background-color:#6366f126}.app-table .badge.status-cancelada{color:#94a3b8;background-color:#94a3b826}.app-table .amount-ingreso{color:#10b981;font-weight:600}.app-table .amount-gasto{color:#ef4444;font-weight:600}.login-container{background-color:#0000;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex}.login-container .login-card{background-color:#fff;border:1px solid #e2e8f0;border-radius:16px;flex-direction:column;gap:1.5rem;width:100%;max-width:400px;padding:2.5rem;display:flex;box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #0000000d}.login-container .login-card .login-logo{text-align:center;color:#0f172a;justify-content:center;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:700;display:flex}.login-container .login-card .login-logo .brand-icon{color:#6366f1}.login-container .login-card p.login-subtitle{text-align:center;color:#475569;margin-top:-.75rem;font-size:.875rem}.mobile-header{z-index:90;background-color:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;height:56px;padding:.75rem 1.25rem;display:none;position:fixed;top:0;left:0;right:0}.mobile-header .mobile-brand{color:#0f172a;align-items:center;gap:.5rem;font-size:1.1rem;font-weight:700;display:flex}.mobile-header .mobile-brand .brand-icon{color:#6366f1}.mobile-header .menu-toggle-btn{color:#0f172a;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:.25rem;display:flex}.sidebar-overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:95;background-color:#0006;animation:.2s ease-out fadeIn;display:none;position:fixed;inset:0}@media (width<=768px){.mobile-header{display:flex}.sidebar-overlay{display:block}.sidebar{z-index:100;width:260px;height:100vh;transition:transform .3s cubic-bezier(.16,1,.3,1);position:fixed;top:0;left:0;transform:translate(-100%);box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #0000000d}.sidebar.open{transform:translate(0);display:flex!important}.app-container{flex-direction:column}.main-content{height:calc(100vh - 56px);margin-top:56px}.page-container{padding:1.25rem}.dashboard-grid,.dashboard-section{gap:1rem;grid-template-columns:1fr!important}.credential-section{grid-template-columns:1fr!important}.modal-content{border-radius:10px;margin:1.5rem;max-width:90%!important}.table-container{-webkit-overflow-scrolling:touch;overflow-x:auto}.app-table{min-width:600px}}
