/* Estilos principales para el Chatbot Interdym */

.chatbot-section {
    padding-top: 100px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050f1e;
    box-sizing: border-box;
}

.chatbot-container {
    width: 90%;
    max-width: 900px;
    height: 85%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, rgba(10, 18, 28, 0.98), rgba(5, 10, 15, 0.98));
    border: 1px solid rgba(255, 234, 0, 0.28);
    border-radius: 14px;
    box-shadow: 0 0 55px rgba(255, 234, 0, 0.12), 0 0 100px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffea00, transparent);
}

.chatbot-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6d200, #ffea00);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #0a121c;
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.4);
}

.bot-status h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 2px;
}

.status-indicator {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.clear-chat-btn {
    background: rgba(255, 30, 30, 0.1);
    border: 1px solid rgba(255, 30, 30, 0.3);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-chat-btn:hover {
    background: rgba(255, 30, 30, 0.2);
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.2);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 234, 0, 0.3);
    border-radius: 3px;
}

.message {
    display: flex;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.msg-content {
    padding: 15px 20px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    word-break: break-word;
}

.bot-message .msg-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-top-left-radius: 2px;
}

.bot-message .msg-content strong {
    color: var(--neon-yellow);
}

.user-message .msg-content {
    background: rgba(0, 85, 164, 0.2);
    border: 1px solid rgba(0, 85, 164, 0.5);
    color: white;
    border-top-right-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 85, 164, 0.2);
}

.chatbot-input-area {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
}

#chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    resize: none;
    outline: none;
    transition: all 0.3s;
}

#chat-input:focus {
    border-color: rgba(255, 234, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.1);
}

.send-btn {
    background: linear-gradient(135deg, #e6d200, #ffea00);
    color: #0a121c;
    border: none;
    border-radius: 8px;
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.5);
}

.send-btn:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.chatbot-footer-note {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: #666;
    padding-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
}

/* Typing indicator */
.chatbot-typing-indicator {
    align-self: flex-start;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-top-left-radius: 2px;
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ffea00;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .chatbot-container { margin: 20px 10px; }
    .chatbot-header { padding: 15px 20px; }
    .chatbot-messages { padding: 20px 15px; }
    .chat-input-wrapper { padding: 15px 15px; }
    .chatbot-footer-note { padding-bottom: 30px; padding-right: 70px; }
    .user-input { padding: 12px 15px; font-size: 14px; }
    .send-btn { width: 50px; height: 50px; }
    .bot-icon { width: 35px; height: 35px; font-size: 1rem; }
    .message-text { font-size: 0.95rem; padding: 12px 15px; }
}
