/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 26 2025 | 15:25:44 */

/* ========================================
ESTILOS DEL CHATBOT FLOTANTE
======================================== */

/* Botón flotante principal */
.chatbot-toggle {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #062951 0%, #1061a3 100%);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 8px 25px rgb(10 46 206 / 30%);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	border: none;
}

.chatbot-toggle:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgb(10 46 206 / 30%);
}

.chatbot-toggle svg:nth-child(1){
	width: 28px;
	height: 28px;
	fill: white;
	transition: transform 0.3s ease;
	position:absolute;
}

.chatbot-toggle.active svg:nth-child(2){
	width: 28px;
	height: 28px;
	fill: white;
	transition: transform 0.3s ease;
	opacity:1
}

.chatbot-toggle svg:nth-child(2){
	opacity:0
}

.chatbot-toggle svg path{
	fill:#fff
}

.chatbot-toggle.active svg:nth-child(1) {
	opacity:0 
}

/* Contenedor principal del chat */
.chatbot-container {
	position: fixed;
	bottom: 100px;
	right: 25px;
	width: 400px;
	max-width: calc(100vw - 50px);
	height: 600px;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.95);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.chatbot-container.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Encabezado del chat */
.chatbot-header {
	background: linear-gradient(135deg, #062951 0%, #1061a3 100%);
	color: white;
	padding: 20px;
	text-align: center;
	position: relative;
}

.chatbot-header h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.chatbot-header p {
	font-size: 12px;
	opacity: 0.9;
	margin: 5px 0 0 0;
}

/* Área de mensajes */
.chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	scroll-behavior: smooth;
	background: 
		url(/wp-content/uploads/2023/08/background.webp)
		center / 100% no-repeat padding-box #fff;
}

.chatbot-messages::-webkit-scrollbar {
	width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 2px;
}

/* Mensajes individuales */
.message {
	display: flex;
	margin-bottom: 15px;
	animation: fadeInUp 0.3s ease-out;
}

.message.user {
	justify-content: flex-end;
}

.message-content {
	max-width: 80%;
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.message.user .message-content {
	background: linear-gradient(135deg, #1061a3 0%, #062951 100%);
	color: white;
	border-bottom-right-radius: 8px;
}

.message.bot .message-content {
	background: white;
	color: #333;
	border: 1px solid #e5e5e5;
	border-bottom-left-radius: 8px;
}

/* Indicador de escritura */
.typing-indicator {
	display: none;
	padding: 12px 16px;
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 18px;
	border-bottom-left-radius: 8px;
	max-width: 80%;
	margin-bottom: 15px;
}

.typing-dots {
	display: flex;
	gap: 4px;
}

.typing-dot {
	width: 8px;
	height: 8px;
	background: #999;
	border-radius: 50%;
	animation: typingPulse 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
	animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
	animation-delay: 0.6s;
}

/* Botones de opciones rápidas */
.quick-options {
	padding: 15px 20px;
	background: #e0eef717;
	border-top: 1px solid #eee;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.quick-option {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	color: #495057;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.quick-option:hover {
	background: linear-gradient(135deg, #062951 0%, #1061a3 100%);
	color: white;
	transform: translateY(-1px);
}

/* Área de input */
.chatbot-input {
	padding: 15px 20px;
	background: white;
	border-top: 1px solid #eee;
	display: flex;
	gap: 10px;
	align-items: center;
}

.chatbot-input input {
	flex: 1;
	border: 1px solid #e5e5e5;
	border-radius: 25px;
	padding: 12px 16px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.2s ease;
	background: #ffffff;
}

.chatbot-input input:focus {
	border-color: #209ab4;
	background: white;
}

.send-button {
	background:#1061a3 
		url('/wp-content/uploads/2025/08/parte-superior-del-avion-de-papel.png')
		center/20px no-repeat;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.send-button:hover {
	transform: scale(1.05);
	background:#062951
		url('/wp-content/uploads/2025/08/parte-superior-del-avion-de-papel.png')
		center/20px no-repeat;
}

.send-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.send-button svg {
	width: 16px;
	height: 16px;
	fill: white;
}

/* ========================================
ANIMACIONES
======================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes typingPulse {
	0%, 60%, 100% {
		transform: scale(0.8);
		opacity: 0.5;
	}
	30% {
		transform: scale(1);
		opacity: 1;
	}
}

/* ========================================
RESPONSIVE DESIGN
======================================== */
@media (max-width: 480px) {
	.chatbot-container {
		bottom: 90px;
		right: 15px;
		left: 15px;
		width: auto;
		max-width: none;
		height: 450px;
	}

	.chatbot-toggle {
		bottom: 20px;
		right: 20px;
		width: 55px;
		height: 55px;
	}

	.chatbot-toggle svg {
		width: 24px;
		height: 24px;
	}

	.message-content {
		max-width: 90%;
		font-size: 13px;
	}

	.quick-option {
		font-size: 11px;
		padding: 6px 10px;
	}
}

@media (max-width: 320px) {
	.chatbot-container {
		height: 400px;
	}

	.chatbot-input {
		padding: 12px 15px;
	}

	.quick-options {
		padding: 12px 15px;
	}
}

