body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
height: 100vh;
position: relative;
background:url(../img/logo.svg) center center no-repeat;
background-size:45%;
}

/* Botón flotante (baloon) */
#chatbot-toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background: #0084ff;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	z-index: 1000;
	transition: all 0.3s;
}
#chatbot-toggle:hover { transform: scale(1.1); }

/* Ventana del chat */
#chatbot-window {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 350px;
	height: 500px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	display: none;
	flex-direction: column;
	z-index: 999;
	overflow: hidden;
}

.chat-header {
	background: #0084ff;
	color: white;
	padding: 15px;
	text-align: center;
	font-weight: bold;
	border-radius: 15px 15px 0 0;
}

.chat-body {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
	background: #f9f9f9;
}

.message {
	margin-bottom: 15px;
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 18px;
	line-height: 1.4;
	word-wrap: break-word;
}
.message.user {
	background: #0084ff;
	color: white;
	margin-left: auto;
	border-bottom-right-radius: 4px;
}
.message.bot {
	background: #e5e5ea;
	color: #000;
	margin-right: auto;
	border-bottom-left-radius: 4px;
}

.typing {
	font-style: italic;
	color: #888;
}

.chat-footer {
	padding: 10px;
	background: white;
	border-top: 1px solid #ddd;
	display: flex;
}
#chat-input {
	flex: 1;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 25px;
	outline: none;
	font-size: 14px;
}
#chat-input:focus {
	border-color: #0084ff;
}
#send-btn {
	margin-left: 8px;
	padding: 0 15px;
	background: #0084ff;
	color: white;
	border: none;
	border-radius: 25px;
	cursor: pointer;
}
#send-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.typing {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-style: italic;
}

.typing .dots {
    width: 30px;
    position: relative;
}

.typing .dots::before {
    content: '●';
    animation: dots 1.4s infinite steps(3);
    display: inline-block;
	color:#AFBD4B;
}

@keyframes dots {
    0%   { content: '●    '; }
    33%  { content: '●●   '; }
    66%  { content: '●●●  '; }
    100% { content: '●●●'; }
}
