/*
	chatbot.css
	Mantiene a Cecatín en la esquina inferior derecha de la pantalla sin interferir con otros elementos
*/


/* ----------------------------
	Inserción del boot cecatin
   ---------------------------- */
   
/* Contenedor principal */
#cecatin-bot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050; /* Por encima de la mayoría de componentes de Bootstrap */
}


/* Estilo del botón flotante con la imagen de Cecatín */
#cecatin-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease-in-out;
}

#cecatin-btn:hover {
    transform: scale(1.1);
}


/* Atributos de la imagen cecatinBot.png */
.cecatin-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.cecatin-avatar-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.cecatin-avatar-btn:hover {
    transform: scale(1.1);
}


/* Ventana emergente del chat */
.cecatin-chat-card {
    width: 320px;
    height: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 115px; /* Eleva la ventana para no tapar a Cecatín */
    right: 0;
}


/* Encabezado */
.cecatin-chat-header {
    background-color: #800020; /* Color institucional */
    padding: 10px 15px;
}


/* Cuerpo de mensajes */
.cecatin-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
}


/* Globos de texto */
.msg {
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.3;
}

.bot-msg {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.user-msg {
    background: #800020;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}


/* Estilo para los botones de opciones */
.cecatin-opt-btn {
    font-size: 0.8rem;
    border-radius: 8px;
}

.cecatin-chat-footer {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}


/* -------------------------------------------------
	permite al bot que no se traslape con el footer 
   -------------------------------------------------*/
#cecatin-bot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    transition: bottom 0.3s ease; /* Permite una animación fluida al subir/bajar */
}

/* Clase que se activa cuando el footer es visible */
#cecatin-bot-container.subir-bot {
    bottom: 150px; /* Ajustar este valor en px según el alto del footer */
}