
    /* Variables del Chatbot */
    :root {
        --chatbot-primary: #251e1d;
        --chatbot-accent: #d4a574;
        --chatbot-bg: #f8f9fa;
        --chatbot-white: #ffffff;
        --chatbot-shadow: 0 5px 30px rgba(0,0,0,0.15);
        --family-serif: 'Alice', serif;
    }

    /* Container Principal */
    .chatbot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        font-family: var(--family-serif);
    }

    /* Botón Flotante */
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--chatbot-primary), #4a3530);
        border: none;
        color: var(--chatbot-accent);
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--chatbot-shadow);
        transition: all 0.3s ease;
        position: relative;
        animation: pulse 2s infinite;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chatbot-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 40px rgba(54, 36, 32, 0.3);
    }

    @keyframes pulse {
        0%, 100% { box-shadow: 0 5px 30px rgba(212, 165, 116, 0.4); }
        50% { box-shadow: 0 5px 40px rgba(212, 165, 116, 0.7); }
    }

    .chatbot-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4444;
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        border: 2px solid white;
    }

    /* Ventana del Chat */
    .chatbot-window {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 380px;
        height: 500px;
        background: var(--chatbot-white);
        border-radius: 20px;
        box-shadow: var(--chatbot-shadow);
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: slideUp 0.3s ease;
    }

    .chatbot-window.active {
        display: flex;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Header */
    .chatbot-header {
        background: linear-gradient(135deg, var(--chatbot-primary), #4a3530);
        color: white;
        padding: 1.2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chatbot-header-info {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .chatbot-avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--chatbot-white);
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chatbot-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .chatbot-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
    }

    .chatbot-status {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        opacity: 0.9;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        animation: blink 2s infinite;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    .chatbot-close {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: transform 0.3s ease;
    }

    .chatbot-close:hover {
        transform: rotate(90deg);
    }

    /* Área de Mensajes */
    .chatbot-messages {
        flex: 1;
        padding: 1.5rem;
        overflow-y: auto;
        background: var(--chatbot-bg);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .chatbot-messages::-webkit-scrollbar {
        width: 6px;
    }

    .chatbot-messages::-webkit-scrollbar-thumb {
        background: var(--chatbot-accent);
        border-radius: 3px;
    }

    /* Mensajes */
    .message {
        display: flex;
        gap: 0.8rem;
        animation: messageSlide 0.3s ease;
    }

    @keyframes messageSlide {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: var(--chatbot-white);
        padding: 3px;
        flex-shrink: 0;
    }

    .message-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .message-content {
        background: var(--chatbot-white);
        padding: 0.8rem 1rem;
        border-radius: 12px;
        max-width: 70%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .message-content p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #333;
    }

    .message-content p + p {
        margin-top: 0.5rem;
    }

    .user-message {
        flex-direction: row-reverse;
    }

    .user-message .message-content {
        background: var(--chatbot-primary);
        color: white;
    }

    .user-message .message-avatar {
        background: var(--chatbot-accent);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Respuestas Rápidas */
    .quick-replies {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .quick-reply {
        background: var(--chatbot-white);
        border: 2px solid var(--chatbot-accent);
        color: var(--chatbot-primary);
        padding: 0.6rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
    }

    .quick-reply:hover {
        background: var(--chatbot-accent);
        color: var(--chatbot-white);
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3);
    }

    /* Input */
    .chatbot-input {
        padding: 1rem;
        background: var(--chatbot-white);
        border-top: 1px solid #e5e7eb;
        display: flex;
        gap: 0.8rem;
    }

    .chatbot-input input {
        flex: 1;
        padding: 0.8rem 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 25px;
        font-size: 0.95rem;
        outline: none;
        transition: all 0.3s ease;
    }

    .chatbot-input input:focus {
        border-color: var(--chatbot-accent);
    }

    .chatbot-send {
        width: 45px;
        height: 45px;
        background: var(--chatbot-accent);
        border: none;
        border-radius: 50%;
        color: var(--chatbot-primary);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chatbot-send:hover {
        background: var(--chatbot-primary);
        color: var(--chatbot-accent);
        transform: scale(1.1);
    }

    /* Typing Indicator */
    .typing-indicator {
        display: flex;
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: var(--chatbot-accent);
        border-radius: 50%;
        animation: typing 1.4s infinite;
    }

    .typing-dot:nth-child(2) { animation-delay: 0.2s; }
    .typing-dot:nth-child(3) { animation-delay: 0.4s; }

    @keyframes typing {
        0%, 60%, 100% { transform: translateY(0); }
        30% { transform: translateY(-10px); }
    }

    /* Responsive */
    @media (max-width: 480px) {
        .chatbot-window {
            width: calc(100vw - 40px);
            height: calc(100vh - 100px);
            bottom: 80px;
            right: 20px;
        }
    }
   