@charset "utf-8";
/* CSS Document */
.chatbot {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    display: none;
	z-index: 99; /* Asegura que esté por encima de otros elementos */
    transition: 0.3s ease-in-out;
}

/* Ajuste para dispositivos móviles */
@media screen and (max-width: 768px) {
    .chatbot {
        width: 90%;
        bottom: 10px;
        right: 5%;
    }
}

@media screen and (max-width: 480px) {
    .chatbot {
        width: 95%;
        bottom: 5px;
        right: 2.5%;
    }

    .chat-body {
        max-height: 180px;
    }
}

/* Encabezado */
.chat-header {
    background: #f5a425;
    color: black;
    padding: 10px;
    text-align: center;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Botón minimizar */
.minimize-btn {
    position: absolute;
    right: 10px;
    /*top: 5px;*/
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Cuerpo del chatbot */
.chat-body {
    padding: 10px;
    max-height: 450px;
    overflow-y: auto;
}

/* Preguntas y respuestas */
.message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    word-wrap: break-word;
}

.question {
    background-color: #F6F1E2 !important;
    border-color: #bbe3ea !important;
    /*font-family: 'Poppins', sans-serif;*/
	font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 15px;
}

.answer {
    background-color: #e2f3f6 !important;
    border-color: #bbe3ea !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 15px;
}

/* Área de entrada de texto */
.chat-footer {
    padding: 10px;
    border-top: 1px solid #ccc;
}

.chat-input {
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
	font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.chat-input button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
	
}

/* Botón limpiar */
.clear-chat {
    background: #ABABAB;
    color: black;
    border: none;
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
    text-align: center;
    width: 30%;
}
/* Botón enviar formato */
.enviar-chat {
    background: #f5a425;
    color: black;
    border: none;
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
    text-align: center;
    width: 30%;
	font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

/* Botón flotante */
.chat-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background: #f5a425;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Ajuste responsivo para el botón flotante */
@media screen and (max-width: 768px) {
    .chat-button {
        bottom: 10px;
        right: 10px;
        padding: 12px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .chat-button {
        padding: 10px;
        font-size: 16px;
    }
}

/* Mensaje flotante */
.chat-floating-message {
    position: fixed;
    bottom: 110px;
    right: 120px;
    background: #f5a425;
    color: black;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

/* Ocultar el mensaje cuando el chatbot esté abierto */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animaciones */
.slide-right {
    animation: slide-right 0.5s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}


.wobble-ver-left {
    animation: wobble-ver-left 0.8s both;
}

@keyframes wobble-ver-left {
    0%, 100% {
        transform: translateY(0) rotate(0);
        transform-origin: 50% 50%;
    }
    15% {
        transform: translateY(-30px) rotate(-6deg);
    }
    30% {
        transform: translateY(15px) rotate(6deg);
    }
    45% {
        transform: translateY(-15px) rotate(-3.6deg);
    }
    60% {
        transform: translateY(9px) rotate(2.4deg);
    }
    75% {
        transform: translateY(-6px) rotate(-1.2deg);
    }
}

/* Burbuja de mensaje */
.burbuja {
    background-color: #e2f3f6 !important;
    border-color: #bbe3ea !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

/* Estilos para el contenedor de sugerencias */
.suggestions {
    position: absolute;
    background-color: #F6F1E2;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 20px); /* Ajustar al ancho del input */
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 38px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

/* Estilos para cada sugerencia */
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
/* Estilos para la sugerencia seleccionada */
.suggestion-item.selected {
    background-color: #f5a425; /* Color naranja */
    color: #000000; /* Texto blanco */
}

/* Estilos para el globo de búsquedas más consultadas */
.popular-searches {
    position: absolute;
    /*bottom: 100%;  Colocar el globo encima del campo de entrada */
	bottom: calc(100% + 10px); /* Añade 30px de separación */
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none; /* Ocultar por defecto */
    z-index: 1000;
	font-family: 'Poppins', sans-serif;
	
}

.popular-searches-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #1D4B1D; /* Color verde oscuro */
    font-size: 0.8rem; /* Tamaño de fuente más pequeño */
}

.popular-searches ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Mostrar elementos en línea horizontal */
    gap: 10px; /* Espacio entre elementos */
}

.popular-searches li {
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
    background-color: #f0f0f0; /* Fondo gris claro */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 0.8rem; /* Tamaño de fuente más pequeño */
    white-space: nowrap; /* Evitar saltos de línea */
}

.popular-searches li:hover {
    background-color: #e0e0e0; /* Cambiar color al pasar el mouse */
}