/* Estilo del botón flotante */
#talksy-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0054A6; /* Azul corporativo */
    color: white;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    background-image: url('icon-128x128.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

/* Contenedor del chat flotante */
#talksy-chatbox {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-height: 500px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
    flex-direction: column;
}

/* Cabecera del chat */
#talksy-header {
    background-color: #0054A6;
    color: white;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

/* Área de mensajes */
#talksy-messages {
    padding: 12px;
    height: 300px;
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 14px;
    background-color: #f8f9fa;
}

/* Mensajes del usuario */
.user-message {
    text-align: right;
    margin: 8px 0;
    padding: 8px 12px;
    background-color: #cce5ff;
    color: #004085;
    border-radius: 15px 0 15px 15px;
    display: inline-block;
    max-width: 80%;
}

/* Mensajes del bot */
.bot-message {
    text-align: left;
    margin: 8px 0;
    padding: 8px 12px;
    background-color: #e2e3e5;
    color: #333;
    border-radius: 0 15px 15px 15px;
    display: inline-block;
    max-width: 80%;
}

/* Estado de carga */
.bot-message.loading {
    font-style: italic;
    opacity: 0.6;
}

/* Campo de entrada */
#talksy-user-input {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

/* Estilo de preguntas frecuentes */
.faq-question {
    color: #0054A6;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    margin: 6px 0;
}

/* Área del mensaje legal */
#talksy-legal {
    padding: 10px;
    font-size: 13px;
    color: #333;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}

/* Botones de consentimiento */
#talksy-consent {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background-color: #f1f1f1;
}

#talksy-consent button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#talksy-consent .yes {
    background-color: #007bff;
    color: white;
}

#talksy-consent .no {
    background-color: #ccc;
    color: black;
}

/* Calendario embebido (opcional) */
.calendar-embed {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 400px) {
    #talksy-chatbox {
        width: 95%;
        right: 2.5%;
    }
}
