/* Estilos del Chatbot */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.chat-window {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.chat-window.active {
    display: flex;
}

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

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header h4::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('https://i.postimg.cc/TPYbPWyh/Imagen-de-Whats-App-2024-02-19-a-las-16-41-00-d4c03e21.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #F9FAFB;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

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

.chat-message.bot {
    margin-right: auto;
}

.chat-message.user {
    margin-left: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.chat-message.bot .message-content {
    background: white;
    color: #000000;
    border: 1px solid #E5E7EB;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    border: 2px solid #E5E7EB;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #F9FAFB;
}

.chat-input input:focus {
    outline: none;
    border-color: #6366F1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input button {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.typing-indicator {
    padding: 12px 16px;
    background: #F3F4F6;
    border-radius: 15px;
    margin-bottom: 15px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

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

@media (max-width: 480px) {
    .chat-widget {
        bottom: 90px;
        right: 20px;
    }

    .chat-window {
        width: calc(100% - 40px);
        height: calc(100% - 200px);
        bottom: 150px;
        right: 20px;
        border-radius: 15px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chat-input input {
        padding: 10px 15px;
    }

    .chat-input button {
        width: 40px;
        height: 40px;
    }
} 