* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: #f8fafc;
    min-height: 100vh; 
    color: #334155;
    margin: 0;
    padding: 0;
}

/* Clean background - no animations */
body::before {
    display: none;
}

.container { 
    max-width: 1600px; margin: 0 auto; padding: 25px; 
    position: relative;
}

/* Remove floating particles - clean professional look */
.floating-particles {
    display: none;
}

.header { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 32px; 
    text-align: center; 
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #db0032;
    border-radius: 12px 12px 0 0;
}

.header h1 { 
    color: #1e293b;
    font-size: 2.25rem; 
    margin-bottom: 12px; 
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header .subtitle { 
    color: #64748b; 
    font-size: 1.125rem; 
    margin-bottom: 20px; 
    font-weight: 500;
}

.tech-stack { 
    background: #f1f5f9; 
    border: 1px solid #e2e8f0;
    padding: 12px 20px; 
    border-radius: 8px; 
    display: inline-block; 
    font-size: 0.875rem; 
    font-weight: 500;
    color: #475569;
}

.nav-tabs {
    display: flex; gap: 10px; margin-bottom: 30px; justify-content: center;
    flex-wrap: wrap;
}
.nav-tab {
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    padding: 12px 20px;
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 500; 
    font-size: 0.875rem;
    transition: all 0.2s ease; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #64748b;
}

.nav-tab::before {
    display: none;
}

.nav-tab.active {
    background: #db0032;
    color: white; 
    box-shadow: 0 2px 4px rgba(219, 0, 50, 0.2);
    border-color: #db0032;
}

.nav-tab:hover { 
    background: #f8fafc;
    border-color: #db0032;
    color: #db0032;
}

.nav-tab.active:hover {
    background: #dc143c;
    color: white;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.test-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 25px; 
    margin-bottom: 30px;
}

.test-card { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 24px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease; 
    border: 1px solid #e2e8f0;
    position: relative;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #db0032;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 12px 12px 0 0;
}

.test-card:hover::before {
    opacity: 1;
}

.test-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: #db0032;
}

.card-header { display: flex; align-items: center; margin-bottom: 20px; }
.card-icon { 
    font-size: 1.5rem; 
    margin-right: 12px; 
    color: #db0032;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 8px;
}
.card-title { 
    font-size: 1.125rem; 
    font-weight: 600; 
    color: #1e293b;
    line-height: 1.5;
}
.card-description { 
    color: #64748b; 
    margin-bottom: 20px; 
    line-height: 1.6; 
    font-size: 0.875rem;
}

.test-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { 
    font-weight: 500; 
    color: #374151;
    font-size: 0.875rem; 
    margin-bottom: 4px;
}

input[type="text"], textarea, select { 
    padding: 12px 14px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 0.875rem; 
    transition: all 0.2s ease; 
    background: #ffffff;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: #db0032; 
    box-shadow: 0 0 0 3px rgba(219, 0, 50, 0.1);
    background: white;
}

textarea { resize: vertical; min-height: 100px; }

.btn { 
    background: #db0032; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 500; 
    font-size: 0.875rem;
    transition: all 0.2s ease; 
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn::before {
    display: none;
}

.btn:hover { 
    background: #c5002d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:active {
    background: #b50029;
    transform: translateY(1px);
}

.btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    background: #94a3b8;
    box-shadow: none;
}

.btn-danger { 
    background: #dc2626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-success { 
    background: #059669;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-success:hover {
    background: #047857;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-warning { 
    background: #d97706;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-warning:hover {
    background: #b45309;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.result-area { 
    margin-top: 20px; 
    padding: 20px; 
    background: #f8fafc; 
    border-radius: 8px; 
    border-left: 4px solid #db0032;
    display: none; 
    max-height: 500px; 
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
}

.result-area::before {
    display: none;
}
.result-header { font-weight: 600; color: #1e293b; margin-bottom: 12px; font-size: 1rem; }
.result-content { font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-size: 0.875rem; color: #334155; }
.result-metadata { 
    background: #f1f5f9; 
    padding: 12px; 
    border-radius: 6px; 
    margin-top: 12px; 
    font-size: 0.8125rem;
    color: #64748b;
}

.status-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; margin-bottom: 40px;
}
.status-card { 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 8px;
    text-align: center; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.status-card::before {
    display: none;
}

.status-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.status-indicator { 
    width: 14px; height: 14px; border-radius: 50%; 
    display: inline-block; margin-right: 10px;
}
.status-online { 
    background: #10b981; 
}

.status-offline { 
    background: #ef4444; 
}

.status-loading { 
    background: #f59e0b; 
    animation: statusLoadingPulse 2s infinite;
}

@keyframes statusLoadingPulse {
    0%, 100% { 
        opacity: 1;
    } 
    50% { 
        opacity: 0.5;
    } 
}

@keyframes pulse { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.6; } 
}


.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    background: #db0032;
    transition: width 0.3s;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    display: none;
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading { opacity: 0.7; }
.error { color: #e53e3e; background: #fed7d7; padding: 15px; border-radius: 8px; }
.success { color: #38a169; background: #c6f6d5; padding: 15px; border-radius: 8px; }
.warning { color: #d69e2e; background: #fef5e7; padding: 15px; border-radius: 8px; }

.bulk-test-area {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(219, 0, 50, 0.08), 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid rgba(219, 0, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.bulk-test-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #db0032 0%, #8B0022 50%, #2d1b69 100%);
}

/* Vector Database Stats Styling */
.stats-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #db0032;
}

.stats-section h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stats-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-section li {
    padding: 5px 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.stats-section li:last-child {
    border-bottom: none;
}

.search-result {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #db0032;
}


/* Chat Styles - Clean Professional Design */
.chat-container {
    background: #ffffff;
    border-radius: 12px;
    height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #db0032;
    border-radius: 12px 12px 0 0;
}

.chat-header {
    background: #db0032;
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.chat-header::before {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.chat-title h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-icon {
    font-size: 2em;
    animation: bounce 2s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.chat-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.chat-controls select {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 15px;
    border-radius: 12px;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-controls select:hover {
    background: white;
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-clear {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-clear:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    min-height: 0;
    position: relative;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4facfe, #00f2fe);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #667eea, #764ba2);
    background-clip: content-box;
}

.message {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    animation: messageSlideIn 0.4s ease-out;
    transition: transform 0.2s ease;
}

.message:hover {
    transform: translateX(5px);
}

/* Animación más suave para mensajes */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación para typing indicator mejorada */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 10px 0;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #db0032, #8B0022);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
    box-shadow: 0 2px 4px rgba(219, 0, 50, 0.3);
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.user-message {
    align-self: flex-end;
    max-width: 75%;
}

.user-message .message-content {
    background: linear-gradient(135deg, #db0032 0%, #8B0022 50%, #2d1b69 100%);
    color: white;
    padding: 20px 26px;
    border-radius: 25px 25px 8px 25px;
    margin-bottom: 8px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(219, 0, 50, 0.3), 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Efecto de brillo mejorado */
.user-message .message-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.user-message:hover .message-content::after {
    opacity: 1;
}

.user-message .message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.assistant-message {
    align-self: flex-start;
    max-width: 88%;
}

.assistant-message .message-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #2d3748;
    padding: 20px 25px;
    border-radius: 25px 25px 25px 8px;
    margin-bottom: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 4px 15px rgba(0,0,0,0.04);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #4facfe, #00f2fe, #667eea) 1;
    position: relative;
    font-weight: 500;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.assistant-message:hover .message-content {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}


.message-content a {
    color: #4facfe;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s;
}

.message-content a:hover {
    border-bottom-color: #4facfe;
}

/* Markdown formatting styles - Simple & Clean */
.message-content h1, .message-content h2, .message-content h3 {
    margin: 15px 0 10px 0;
    color: #2d3748;
    font-weight: 600;
}

.message-content h1 {
    font-size: 1.4em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.message-content h2 {
    font-size: 1.2em;
    color: #4a5568;
}

.message-content h3 {
    font-size: 1.1em;
    color: #4a5568;
}

.message-content ul, .message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content ul ul, .message-content ol ol, 
.message-content ul ol, .message-content ol ul {
    margin: 5px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 3px 0;
    line-height: 1.5;
}

.message-content li > ul, .message-content li > ol {
    margin-top: 5px;
    margin-bottom: 5px;
}

.message-content code {
    background: #f7fafc;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.message-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    overflow-x: auto;
}

.message-content pre code {
    background: none;
    padding: 0;
    color: #212529;
}

.message-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

/* Avatar del robot eliminado - ahora se usa el logo de Wiener Lab */

.system-message {
    align-self: center;
    max-width: 90%;
}

.system-message .message-content {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
    padding: 15px 22px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.message-time {
    font-size: 0.8em;
    color: #718096;
    text-align: right;
    margin-top: 5px;
}

.user-message .message-time {
    text-align: right;
}

.assistant-message .message-time {
    text-align: left;
}

.message-metadata {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #64748b;
}

/* Mejoras en la Metadata */
.message-metadata-elegant {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.85em;
    color: #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9em;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.metadata-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.metadata-item .icon {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.message-metadata-elegant .metadata-item .icon {
    font-size: 1.1em;
    font-style: normal;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.chat-input-area {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 3px solid rgba(79, 172, 254, 0.1);
    position: relative;
}

.chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4facfe, transparent);
}

/* Sugerencias con mejor diseño */
.suggested-questions {
    margin-bottom: 15px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(79, 172, 254, 0.15);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 4px 15px rgba(0,0,0,0.05);
}

/* Indicador de scroll mejorado */
.suggested-questions::before,
.suggested-questions::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 1;
}

.suggested-questions::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248,250,252,1) 0%, transparent 100%);
}

.suggested-questions::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(248,250,252,1) 100%);
}

.suggested-questions::-webkit-scrollbar {
    display: none;
}

.suggested-questions::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4facfe;
    font-weight: bold;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.suggestions-title {
    min-width: fit-content;
    font-size: 0.85em;
    color: #4a5568;
    margin: 0 15px 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Botones de sugerencia mejorados */
.suggestion-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #4facfe;
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
    z-index: 1;
}

.suggestion-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #db0032, #8B0022, #2d1b69);
    opacity: 0;
    transition: opacity 0.3s;
}

.suggestion-btn:hover::before {
    opacity: 1;
}

.suggestion-btn:hover {
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(219, 0, 50, 0.25);
}

.suggestion-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.chat-input-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    position: relative;
}

/* Input Area Mejorada */
.chat-input-container textarea {
    flex: 1;
    min-height: 55px;
    max-height: 120px;
    resize: vertical;
    border-radius: 20px;
    border: 3px solid #e2e8f0;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

/* Efecto de focus mejorado */
.chat-input-container textarea:focus {
    background: white;
    border-color: transparent;
    box-shadow: 
        0 0 0 3px rgba(219, 0, 50, 0.2),
        0 0 0 6px rgba(139, 0, 34, 0.1),
        0 12px 35px rgba(0,0,0,0.08);
    outline: none;
    transform: translateY(-3px);
}

/* Botón de enviar con microinteracciones */
.chat-input-container .btn {
    margin-top: 0;
    padding: 18px 35px;
    height: fit-content;
    background: linear-gradient(135deg, #db0032 0%, #8B0022 50%, #2d1b69 100%);
    border: none;
    border-radius: 22px;
    color: white;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(219, 0, 50, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-container .btn::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.6s ease;
}

.chat-input-container .btn:active::after {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Efecto de onda al hacer clic */
.chat-input-container .btn:active {
    transform: scale(0.95);
}

.chat-input-container .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.chat-input-container .btn:hover::before {
    left: 100%;
}

.chat-input-container .btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 15px 40px rgba(219, 0, 50, 0.5);
}

.chat-input-container .btn:active {
    transform: translateY(-1px) scale(0.98);
}

.chat-status {
    margin-top: 10px;
    font-size: 0.9em;
    color: #64748b;
    min-height: 20px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4facfe;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #4facfe;
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8) translateY(0);
    }
    40% {
        opacity: 1;
        transform: scale(1.2) translateY(-5px);
    }
}

/* Loading state para mensajes */
.message-loading {
    position: relative;
    min-height: 60px;
}

.message-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 172, 254, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mejores transiciones en móvil */
@media (max-width: 768px) {
    .test-grid { grid-template-columns: 1fr; }
    .container { padding: 15px; }
    .nav-tabs { flex-direction: column; align-items: center; }
    .chat-container { 
        height: 92vh; 
        border-radius: 20px;
        margin: 10px;
    }
    .chat-header { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center;
        padding: 20px;
    }
    .chat-controls { 
        justify-content: center;
        flex-wrap: wrap;
    }
    .chat-messages {
        padding: 20px 15px;
    }
    .user-message, .assistant-message { 
        max-width: 95%; 
    }
    .suggestion-btn {
        font-size: 0.8em;
        padding: 8px 12px;
        scroll-snap-align: center;
    }
    .suggested-questions {
        padding: 15px;
        gap: 8px;
        scroll-snap-type: x mandatory;
    }
    .chat-input-container {
        flex-direction: column;
        gap: 12px;
    }
    .chat-input-container .btn {
        width: 100%;
        padding: 15px;
    }
    .message {
        animation-duration: 0.3s;
    }
    
    /* Touch feedback */
    .suggestion-btn:active,
    .chat-input-container .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 90vh;
        margin: 5px;
        border-radius: 15px;
    }
    .chat-title h2 {
        font-size: 1.2em;
    }
    .chat-icon {
        font-size: 1.5em;
    }
    .suggested-questions {
        padding: 12px;
    }
    .suggestion-btn {
        font-size: 0.75em;
        padding: 6px 10px;
    }
}