* { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --primary: #2563eb;
            --green: #25D366;
            --dark: #0f172a;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-600: #475569;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        header {
            text-align: center;
            padding: 20px 0 40px;
            color: white;
        }
        header h1 { font-size: 1.8rem; margin-bottom: 8px; }
        header p { opacity: 0.8; }
        
        .demo-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
        @media (max-width: 900px) {
            .demo-layout { grid-template-columns: 1fr; }
        }
        
        .panel {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
        .panel-header {
            background: var(--gray-100);
            padding: 16px 20px;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .panel-header .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ef4444;
        }
        .panel-header .dot:nth-child(2) { background: #fbbf24; }
        .panel-header .dot:nth-child(3) { background: #22c55e; }
        .panel-header h2 {
            margin-left: 12px;
            font-size: 1rem;
            color: var(--dark);
        }
        
        /* CHAT */
        .chat-container {
            height: 500px;
            display: flex;
            flex-direction: column;
        }
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #e5ddd5;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        .message {
            max-width: 85%;
            margin-bottom: 12px;
            animation: fadeIn 0.3s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .message.user {
            margin-left: auto;
        }
        .message-content {
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        .message.bot .message-content {
            background: white;
            border-bottom-left-radius: 4px;
        }
        .message.user .message-content {
            background: #dcf8c6;
            border-bottom-right-radius: 4px;
        }
        .message-time {
            font-size: 0.7rem;
            color: var(--gray-600);
            margin-top: 4px;
            text-align: right;
        }
        .typing {
            display: flex;
            gap: 4px;
            padding: 12px 16px;
            background: white;
            border-radius: 12px;
            width: fit-content;
        }
        .typing span {
            width: 8px;
            height: 8px;
            background: #94a3b8;
            border-radius: 50%;
            animation: typing 1s infinite;
        }
        .typing span:nth-child(2) { animation-delay: 0.2s; }
        .typing span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typing {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        
        .chat-input {
            padding: 12px;
            background: var(--gray-100);
            display: flex;
            gap: 8px;
        }
        .chat-input input {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 24px;
            font-size: 0.95rem;
        }
        .chat-input button {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: var(--green);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px;
            background: var(--gray-100);
            border-top: 1px solid var(--gray-200);
        }
        .quick-reply {
            padding: 8px 14px;
            background: white;
            border: 1px solid var(--primary);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .quick-reply:hover {
            background: var(--primary);
            color: white;
        }
        
        /* PANEL ADMIN */
        .admin-container { padding: 20px; }
        .admin-section {
            margin-bottom: 24px;
        }
        .admin-section h3 {
            font-size: 0.85rem;
            color: var(--gray-600);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        .lead-card {
            background: var(--gray-100);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }
        .lead-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 8px;
        }
        .lead-name { font-weight: 600; }
        .lead-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .badge-new { background: #dbeafe; color: #2563eb; }
        .badge-hot { background: #fee2e2; color: #dc2626; }
        .badge-qualified { background: #d1fae5; color: #059669; }
        .lead-details {
            font-size: 0.85rem;
            color: var(--gray-600);
        }
        .lead-details p { margin: 4px 0; }
        .lead-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .lead-actions button {
            flex: 1;
            padding: 8px;
            border-radius: 6px;
            border: none;
            font-size: 0.8rem;
            cursor: pointer;
        }
        .btn-call { background: var(--primary); color: white; }
        .btn-msg { background: var(--green); color: white; }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .stat-card {
            background: var(--gray-100);
            padding: 16px;
            border-radius: 12px;
            text-align: center;
        }
        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
        }
        .stat-label {
            font-size: 0.8rem;
            color: var(--gray-600);
        }
        
        .activity-list {
            max-height: 200px;
            overflow-y: auto;
        }
        .activity-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid var(--gray-200);
            font-size: 0.85rem;
        }
        .activity-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .activity-icon.msg { background: #dbeafe; }
        .activity-icon.lead { background: #d1fae5; }
        .activity-icon.alert { background: #fee2e2; }
        
        .cta-section {
            text-align: center;
            padding: 40px 20px;
            color: white;
        }
        .cta-section h2 { margin-bottom: 16px; }
        .cta-section p { opacity: 0.8; margin-bottom: 24px; }
        .cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            font-size: 1rem;
        }
        .btn-primary { background: var(--primary); color: white; }
        .btn-whatsapp { background: var(--green); color: white; }
