/* Estilos para el chatbot de El Imperio Mofongo - Versión con colores suaves */

/* Contenedor principal del chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Botón del chatbot */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f9e8e8;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.chatbot-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ventana del chat */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: #fefefe;
    border-radius: 10px;
    border: 3px double #000; /* Borde negro exterior */
    box-shadow: 0 0 0 2px #dc3545; /* Borde rojo interior */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

/* Encabezado del chat */
.chatbot-header {
    background-color: #f9e8e8; /* Rosa muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio, más suave que el marrón */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 2px solid #fff5d7; /* Borde amarillo muy suave */
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title img {
    width: 24px;
    height: 24px;
}

.chatbot-close {
    cursor: pointer;
    font-size: 20px;
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fefefe; /* Fondo blanco puro */
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.bot-message {
    background-color: #f9e8e8; /* Rosa muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio */
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid #fff5d7; /* Borde amarillo muy suave */
}

.user-message {
    background-color: #f0f7fa; /* Fondo azul muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio */
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Opciones de respuesta rápida */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.quick-reply {
    background-color: #f9e8e8; /* Rosa muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio */
    padding: 8px 12px;
    border-radius: 15px;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #fff5d7; /* Borde amarillo muy suave */
}

.quick-reply:hover {
    background-color: #f0f7fa; /* Azul muy suave al hacer hover */
    color: #6c757d; /* Texto gris medio */
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Área de entrada de texto */
.chatbot-input-area {
    padding: 10px 15px;
    border-top: 2px solid #fff5d7; /* Borde amarillo muy suave */
    display: flex;
    align-items: center;
    background-color: #f9e8e8; /* Rosa muy suave, casi blanco */
}

.chatbot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e9ecef; /* Borde gris muy suave */
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: #ffffff; /* Fondo blanco */
    color: #6c757d; /* Texto gris medio */
}

.chatbot-send {
    background-color: #f0f7fa; /* Fondo azul muy suave */
    color: #6c757d; /* Texto gris medio */
    border: 1px solid #e9ecef; /* Borde gris muy suave */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.chatbot-send:hover {
    background-color: #f9e8e8; /* Fondo rosa muy suave al hover */
    color: #6c757d; /* Texto gris medio al hover */
    transform: scale(1.05);
}

.talk-to-human-btn {
    background-color: #f9e8e8; /* Rosa muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio */
    border: 1px solid #e9ecef; /* Borde gris muy suave */
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.talk-to-human-btn:hover {
    background-color: #e2f0e5; /* Verde muy suave, casi blanco */
    color: #6c757d; /* Texto gris medio */
    transform: translateY(-2px);
}

/* Estilos responsivos */
@media (max-width: 576px) {
    .chatbot-window {
        width: 300px;
        height: 400px;
        bottom: 70px;
    }
    
    .chatbot-button {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 400px) {
    .chatbot-window {
        width: 280px;
        height: 380px;
        right: 10px;
        bottom: 70px;
    }
    
    .message {
        max-width: 85%;
        padding: 8px 12px;
    }
    
    .chatbot-input {
        padding: 8px;
    }
    
    .chatbot-send {
        width: 35px;
        height: 35px;
    }
}