/* ==========================================
   ESTILOS ESPECÍFICOS DEL CHATBOT
   ========================================== */

.chat-preview-container {
    max-width: 850px;
    margin: 20px auto 40px auto;
    display: flex;
    flex-direction: column;
    height: 75vh;
    min-height: 500px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: var(--glass-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chat-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-profile img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
}

.system-status {
    background: rgba(11, 32, 70, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-dark);
    border: 1px solid rgba(11, 32, 70, 0.1);
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #FFB300; 
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #FFB300;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.chat-window::-webkit-scrollbar { width: 6px; }
.chat-window::-webkit-scrollbar-thumb { background: rgba(24, 119, 242, 0.3); border-radius: 10px; }

.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.suggestion-chip {
    background: var(--white);
    border: 1px dashed var(--text-light);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(24, 119, 242, 0.05);
}

.chat-input-preview {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50px;
    border: var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.chat-input-preview input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    width: 100%;
}

.chat-input-preview button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Burbujas del Chat */
.message-row {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}

.message-row.user { justify-content: flex-end; }
.message-row.bot { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.user-bubble {
    background: var(--primary-blue);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.2);
}

.chat-bubble.bot-bubble {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(24, 119, 242, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Animación Escribiendo */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    align-items: center;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
    opacity: 0.7;
}
.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; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 576px) {
    .chat-preview-container { padding: 20px 15px; margin-top: 0; height: 80vh; border-radius: 15px; }
    .suggestion-chip { font-size: 0.8rem; padding: 6px 12px; }
    .system-status { font-size: 0.75rem; width: 100%; }
    .chat-header { flex-direction: column; align-items: flex-start; }
    .chat-bubble { max-width: 90%; }
}