:root{--primary: #2E659A;--primary-glow: rgba(46, 101, 154, .2);--bg: #EEF2F6;--card-bg: #FFFFFF;--border: rgba(125, 140, 156, .15);--text: #1A2530;--text-muted: #7D8C9C;--success: #10B981;--warning: #F59E0B;--color-gold: #b8860b}body.dark-mode{--primary: #60A5FA;--primary-glow: rgba(96, 165, 250, .2);--bg: #0B0F19;--card-bg: #151D30;--border: rgba(255, 255, 255, .08);--text: #F8F9FA;--text-muted: #94A3B8;--color-gold: #d4af37}body{margin:0;font-family:Outfit,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;transition:background .3s ease,color .3s ease}.status-badge{padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase}.status-badge.nuevo{background:#3b82f633;color:#60a5fa;border:1px solid rgba(59,130,246,.3)}.status-badge.contactado{background:#10b98133;color:#34d399;border:1px solid rgba(16,185,129,.3)}.status-badge.cita_agendada{background:#8b5cf633;color:#a78bfa;border:1px solid rgba(139,92,246,.3)}.status-badge.cerrado{background:#f59e0b33;color:#fbbf24;border:1px solid rgba(245,158,11,.3)}.status-badge.descartado{background:#ef444433;color:#f87171;border:1px solid rgba(239,68,68,.3)}.fidelity-container{display:flex;align-items:center;gap:8px}.fidelity-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.fidelity-dot.green{background:#10b981;box-shadow:0 0 10px #10b981}.fidelity-dot.orange{background:#f59e0b;box-shadow:0 0 10px #f59e0b}.fidelity-dot.red{background:#ef4444;box-shadow:0 0 10px #ef4444}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal-content{background:var(--card-bg);border:1px solid var(--border);border-radius:24px;padding:40px;width:100%;max-width:500px;position:relative;box-shadow:0 20px 40px #1a253014}.modal-close{position:absolute;top:20px;right:20px;background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.5rem}.notes-indicator{cursor:pointer;opacity:.3;transition:opacity .2s}.notes-indicator.has-notes{opacity:1;color:var(--primary)}table{border-spacing:0;width:100%;background:var(--card-bg);border-radius:12px;overflow:hidden;border:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}th{background:#ffffff0d;color:var(--text-muted);font-weight:500;text-transform:uppercase;font-size:.7rem;letter-spacing:1px}td{padding:16px;border-bottom:1px solid var(--border)}tr:last-child td{border-bottom:none}.view-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.tab-buttons{display:flex;gap:10px;background:#ffffff0d;padding:5px;border-radius:12px}.tab-buttons button{padding:8px 20px;border-radius:8px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;transition:all .3s ease;font-weight:500}.tab-buttons button.active{background:var(--primary);color:#fff;box-shadow:0 4px 12px #2e659a33}.premium-form{background:var(--card-bg);padding:40px;border-radius:20px;border:1px solid var(--border);max-width:800px}.form-group{margin-bottom:25px}.form-group label{display:block;font-size:.7rem;font-weight:700;color:var(--text-muted);margin-bottom:10px;letter-spacing:1px}.form-group input[type=text],.form-group input[type=password],.form-group input[type=email],.form-group input[type=date],.form-group textarea,.form-group select{width:100%;padding:14px;background:var(--bg);border:1px solid var(--border);border-radius:10px;color:var(--text);font-size:.95rem;transition:border-color .3s ease,background .3s ease,color .3s ease;font-family:inherit}.form-group input:focus,.form-group textarea:focus{border-color:var(--primary);outline:none}.form-group.checkbox{display:flex;align-items:center;gap:12px}.form-group.checkbox input{width:22px;height:22px;accent-color:var(--primary)}.save-btn{background:linear-gradient(135deg,var(--primary),#1d4b75);color:#fff;border:none;padding:14px 40px;border-radius:10px;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.save-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px #2e659a59}tr:hover{background:#1a253005}.sidebar-item{display:flex;align-items:center;gap:15px;padding:14px 20px 14px 24px;margin-bottom:6px;border-radius:0 12px 12px 0;cursor:pointer;transition:all .25s ease-in-out;border-left:4px solid transparent;color:#fff9}.sidebar-item:hover{background:#2e659a0f;color:#fff}.sidebar-item.active{background:#2e659a26!important;border-left:4px solid var(--primary)!important;color:#fff!important}.sidebar-item span{transition:transform .2s ease}.sidebar-item:hover span{transform:scale(1.08)}.view-card,.premium-form,.report-card{box-shadow:0 8px 30px #1a25300a!important;border:1px solid var(--border)!important;background:var(--card-bg)!important;border-radius:20px!important;transition:box-shadow .3s ease,background .3s ease,border-color .3s ease}body.dark-mode .view-card,body.dark-mode .premium-form,body.dark-mode .report-card{box-shadow:0 10px 40px #0000004d!important}@media(min-width:1025px){.view-card table td:nth-child(3){max-width:180px!important;width:180px!important;min-width:120px!important;word-break:break-all!important}.view-card table td:nth-child(4){max-width:160px!important;width:160px!important;min-width:120px!important;word-break:break-word!important;white-space:normal!important}.view-card table td:nth-child(5){max-width:150px!important;width:150px!important;min-width:100px!important}.audit-container .premium-table td.col-agency{max-width:140px!important;width:140px!important;min-width:100px!important;word-break:break-word!important}.audit-container .premium-table td.col-lead{max-width:160px!important;width:160px!important;min-width:120px!important;word-break:break-word!important}.audit-container .premium-table td.col-description{max-width:220px!important;width:220px!important;min-width:160px!important;word-break:break-word!important;white-space:normal!important}.audit-container .premium-table td.col-scheduled{max-width:150px!important;width:150px!important;min-width:120px!important}}@media(max-width:1024px){.mobile-menu-toggle{display:block!important}aside.premium-scroll{position:fixed!important;left:-280px!important;top:0!important;bottom:0!important;width:280px!important;z-index:2500!important;transition:transform .4s cubic-bezier(.23,1,.32,1)!important;box-shadow:0 0 40px #00000080!important}body.sidebar-open aside.premium-scroll{transform:translate(280px)!important}.sidebar-mobile-overlay{display:none}body.sidebar-open .sidebar-mobile-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:2400;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:opacity .3s ease}main.premium-scroll{padding:16px!important;width:100%!important;min-width:100%!important;max-width:100%!important;box-sizing:border-box!important}header{flex-direction:column!important;align-items:flex-start!important;gap:20px!important;margin-bottom:30px!important}header h1{font-size:1.8rem!important}.client-selector,.client-selector select{width:100%!important}.table-responsive{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;margin-bottom:20px!important;width:100%!important;border-radius:12px}table{min-width:700px!important}.view-card,.premium-form,.report-card{padding:12px!important;border-radius:16px!important}.whatsapp-management-grid,.dashboard-grid,.health-grid,.stats-grid,.omnichannel-grid{grid-template-columns:1fr!important;gap:20px!important}div[style*="display: grid"][style*="grid-template-columns: repeat(3"],div[style*="display: grid"][style*="grid-template-columns: 1fr 1.2fr"]{grid-template-columns:1fr!important}div[style*="display: flex"][style*="flex-direction: row"]{flex-direction:column!important}.view-header{flex-direction:column!important;align-items:flex-start!important;gap:15px!important}.tab-buttons{width:100%!important;overflow-x:auto!important;white-space:nowrap!important;-webkit-overflow-scrolling:touch!important}.tab-buttons button{flex:1!important;text-align:center!important}.modal-content{width:92%!important;padding:25px!important;margin:0 auto!important}.view-card table{border:none!important;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;min-width:100%!important;width:100%!important;max-width:100%!important}.view-card>div[style*="display: flex"]{flex-direction:column!important;gap:12px!important;width:100%!important}.view-card>div[style*="display: flex"] input,.view-card>div[style*="display: flex"] select{width:100%!important;max-width:100%!important;margin:0!important}.view-card table thead{display:none!important}.view-card table tbody{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important}.view-card table tr{display:flex!important;flex-direction:column!important;background:var(--card-bg)!important;border:1px solid var(--border)!important;border-radius:20px!important;padding:16px!important;box-shadow:0 8px 30px #0003!important;margin-bottom:0!important;position:relative!important;box-sizing:border-box!important;width:auto!important}.view-card table td{display:block!important;width:100%!important;padding:0!important;border:none!important;margin-bottom:12px!important;text-align:left!important}.view-card table td:last-child{margin-bottom:0!important}.view-card table td:nth-child(1){font-size:.75rem!important;color:var(--text-muted)!important;order:1!important;display:flex!important;justify-content:space-between!important;align-items:center!important;border-bottom:1px dashed var(--border)!important;padding-bottom:8px!important}.view-card table td:nth-child(1):before{content:"FECHA DE INGRESO";font-size:.65rem!important;font-weight:800!important;letter-spacing:1px!important}.view-card table td:nth-child(2){font-size:1.25rem!important;font-weight:900!important;color:var(--color-gold)!important;order:2!important;margin-top:8px!important;letter-spacing:.5px!important}.view-card table td:nth-child(3){order:3!important}.view-card table td:nth-child(3) a{display:inline-block!important;margin-right:15px!important;font-size:.85rem!important}.view-card table td:nth-child(4){order:4!important;background:#ffffff05!important;border:1px solid var(--border)!important;border-radius:12px!important;padding:12px!important;font-size:.8rem!important;line-height:1.5!important}.view-card table td:nth-child(5){order:5!important}.view-card table td:nth-child(6){order:6!important;font-size:1.15rem!important;font-weight:900!important;color:var(--text)!important;display:flex!important;align-items:center!important;gap:8px!important}.view-card table td:nth-child(6):before{content:"Valor Estimado:";font-size:.8rem!important;font-weight:500!important;color:var(--text-muted)!important}.view-card table td:nth-child(7){order:7!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;background:#ffffff03!important;border:1px solid var(--border)!important;padding:8px 12px!important;border-radius:10px!important}.view-card table td:nth-child(7):before{content:"Estado de Lead:";font-size:.8rem!important;font-weight:700!important;color:var(--text-muted)!important}.view-card table td:nth-child(7) select{background:var(--bg)!important;font-size:.8rem!important;font-weight:700!important;max-width:55%!important;min-width:0!important}.view-card table td:nth-child(8){order:8!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:#ffffff03!important;border:1px solid var(--border)!important;padding:8px 12px!important;border-radius:10px!important}.view-card table td:nth-child(8) .fidelity-container{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}.view-card table td:nth-child(8):before{content:"Confianza IA:";font-size:.8rem!important;font-weight:700!important;color:var(--text-muted)!important}.view-card table td:nth-child(9){order:9!important;border-top:1px solid var(--border)!important;padding-top:16px!important;margin-top:8px!important;margin-bottom:0!important}.view-card table td:nth-child(9)>div{display:flex!important;width:100%!important;gap:12px!important}.view-card table td:nth-child(9) button{flex:1!important;height:48px!important;background:#ffffff08!important;border:1px solid var(--border)!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1.3rem!important;cursor:pointer!important;transition:all .2s!important}.view-card table td:nth-child(9) button:active{background:#ffffff1f!important;transform:scale(.98)!important}.view-card table td:nth-child(9) button[title="Eliminar Lead"]{background:#ef444414!important;border-color:#ef444433!important}.view-card table td:nth-child(9) button[title="Eliminar Lead"]:active{background:#ef444433!important}.audit-container .premium-table{border:none!important;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;min-width:100%!important;width:100%!important;max-width:100%!important}.audit-container .premium-table thead{display:none!important}.audit-container .premium-table tbody{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important}.audit-container .premium-table tr{display:flex!important;flex-direction:column!important;background:var(--card-bg)!important;border:1px solid var(--border)!important;border-radius:20px!important;padding:16px!important;box-shadow:0 8px 30px #0003!important;margin-bottom:0!important;position:relative!important;box-sizing:border-box!important;width:auto!important}.audit-container .premium-table td{display:block!important;width:100%!important;padding:0!important;border:none!important;margin-bottom:12px!important;text-align:left!important}.audit-container .premium-table td:last-child{margin-bottom:0!important}.audit-container .premium-table td.col-scheduled{font-size:.8rem!important;order:1!important;display:flex!important;justify-content:space-between!important;align-items:center!important;border-bottom:1px dashed var(--border)!important;padding-bottom:8px!important}.audit-container .premium-table td.col-scheduled:before{content:"📅 PROGRAMADO";font-size:.65rem!important;font-weight:800!important;letter-spacing:1px!important;color:var(--text-muted)!important}.audit-container .premium-table td.col-agency{font-size:.85rem!important;font-weight:800!important;order:2!important;margin-top:8px!important;color:var(--text-muted)!important;display:flex!important;align-items:center!important;gap:6px!important}.audit-container .premium-table td.col-agency:before{content:"🏢 Agencia:";font-size:.75rem!important;font-weight:600!important}.audit-container .premium-table td.col-lead{font-size:1.15rem!important;font-weight:900!important;color:var(--color-gold)!important;order:3!important;letter-spacing:.5px!important}.audit-container .premium-table td.col-description{order:4!important;background:#ffffff05!important;border:1px solid var(--border)!important;border-radius:12px!important;padding:12px!important;font-size:.8rem!important;line-height:1.5!important;white-space:normal!important;overflow:visible!important;max-width:100%!important}.audit-container .premium-table td.col-category{order:5!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:#ffffff03!important;border:1px solid var(--border)!important;padding:8px 12px!important;border-radius:10px!important}.audit-container .premium-table td.col-category:before{content:"Categoría:";font-size:.8rem!important;font-weight:700!important;color:var(--text-muted)!important}.audit-container .premium-table td.col-status{order:6!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:#ffffff03!important;border:1px solid var(--border)!important;padding:8px 12px!important;border-radius:10px!important}.audit-container .premium-table td.col-status:before{content:"Estado Tarea:";font-size:.8rem!important;font-weight:700!important;color:var(--text-muted)!important}.audit-container .premium-table td.col-actions{order:7!important;border-top:1px solid var(--border)!important;padding-top:16px!important;margin-top:8px!important;margin-bottom:0!important}.audit-container .premium-table td.col-actions>div{display:flex!important;flex-wrap:wrap!important;width:100%!important;gap:8px!important;justify-content:flex-start!important}.audit-container .premium-table td.col-actions button{flex:1 1 calc(50% - 8px)!important;height:48px!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:.7rem!important;font-weight:800!important;cursor:pointer!important;transition:all .2s!important;margin:0!important}.audit-container .premium-table td.col-actions button:active{transform:scale(.97)!important}.audit-container header{flex-direction:column!important;align-items:flex-start!important;gap:20px!important}.audit-container header .filter-group{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}.audit-container header .filter-group button{flex:1 1 auto!important;text-align:center!important;padding:12px!important;font-size:.75rem!important}}
