:root {
    --primary-color: #B8840F;
    --dark-blue: #143A6D;
    --light-gray: #f6f6f6;
    --font-main: 'Open Sans', sans-serif;
}

/* BOTONES FLOTANTES */
#chatbot-button, #whatsapp-button {
    position: fixed;
    right: 20px;
    width: 55px; /* Tamaño ligeramente más compacto */
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 1000;
}

#whatsapp-button { bottom: 20px; background: #25D366; }
#chatbot-button { bottom: 85px; background: var(--primary-color); }

/* Ajuste de imagen para que no se salga */
#chatbot-button img, #whatsapp-button img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

/* VENTANA PEQUEÑA UNIVERSAL */
#chatbot-window {
    position: fixed;
    right: 20px;
    bottom: 155px; 
    /* Ancho y alto fijos pero responsivos */
    width: 320px; 
    height: 450px;
    /* max-height basado en el visor para que no se corte en laptops */
    max-height: calc(100vh - 180px); 
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    font-family: var(--font-main);
    visibility: hidden; 
    overflow: hidden;
}

/* ESTRUCTURA INTERNA */
.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; 
}

#chat-display {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #ffffff;
}

.options {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.options button {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* --- AJUSTES DE RESPONSIVIDAD (SIN OCUPAR TODA LA PANTALLA) --- */

/* Para laptops o pantallas bajas */
@media (max-height: 650px) {
    #chatbot-window {
        height: 380px;
        bottom: 20px; 
        right: 85px; 
    }
}

/* Para celulares (mantiene la ventana pequeña en el centro o esquina) */
@media (max-width: 480px) {
    #chatbot-window {
        width: 280px; 
        height: 400px;
        right: 15px;
        bottom: 145px;
        border-radius: 12px; 
    }
}