/* Vexia Chatbot — widget flotante (diseño Ukabi / Claude Design) */

:root {
	--vx-accent: #f9224b;          /* coral Viajes de Miel */
	--vx-accent-2: #d11c3f;        /* coral oscuro (fin del degradado) */
	--vx-navy: #022151;            /* navy Viajes de Miel (texto) */
	--vx-msg-bg: #F7F7FB;          /* fondo zona de mensajes */
	--vx-border: #ececf5;
	--vx-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--vx-font-head: 'Quicksand', var(--vx-font);
}

.vx-root {
	font-family: var(--vx-font);
	font-size: 15px;
	line-height: 1.45;
}

/* ---------- Lanzador (burbuja cerrada) ---------- */

.vx-launcher {
	/* Elevado para convivir con el boton de WhatsApp (abajo-derecha) */
	position: fixed;
	right: 24px;
	bottom: 104px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--vx-accent), var(--vx-accent-2));
	box-shadow: 0 16px 34px -12px rgba(253, 73, 92, 0.65);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.vx-launcher:hover { transform: scale(1.08); }

.vx-launcher img {
	width: 28px;
	height: 25px;
	object-fit: contain;
}

.vx-open .vx-launcher { display: none; }

/* ---------- Teaser (globo de saludo) ---------- */

.vx-teaser {
	position: fixed;
	right: 24px;
	bottom: 176px;
	z-index: 9998;
	max-width: 250px;
	display: none;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border-radius: 16px 16px 4px 16px;
	padding: 14px 16px 15px;
	box-shadow: 0 20px 44px -16px rgba(15, 32, 108, 0.35);
	cursor: pointer;
	animation: vxTeaserIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vx-teaser.vx-teaser-show { display: flex; }
.vx-open .vx-teaser { display: none; }

.vx-teaser-text {
	font-weight: 500;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--vx-navy);
}

.vx-teaser-close {
	flex: none;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: var(--vx-msg-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

@keyframes vxTeaserIn {
	from { opacity: 0; transform: translateY(8px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Panel ---------- */

.vx-panel {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	display: none;
	flex-direction: column;
	width: 370px;
	height: 540px;
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 34px 70px -20px rgba(15, 32, 108, 0.4);
	overflow: hidden;
}

.vx-open .vx-panel {
	display: flex;
	animation: vxPanelIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vxPanelIn {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Cabecera ---------- */

.vx-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 16px 18px;
	background: linear-gradient(135deg, var(--vx-accent), var(--vx-accent-2));
	flex: none;
}

.vx-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.vx-avatar img {
	width: 20px;
	height: 18px;
	object-fit: contain;
}

.vx-header-text { flex: 1; min-width: 0; }

.vx-header-line {
	display: flex;
	align-items: center;
	gap: 7px;
}

.vx-header-name {
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}

.vx-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4ade80;
	animation: vxPulse 2.2s ease-in-out infinite;
}

.vx-status-text {
	font-weight: 500;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.85);
}

.vx-header-sub {
	display: block;
	font-weight: 500;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 1px;
}

.vx-close,
.vx-restart {
	width: 30px;
	height: 30px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.vx-close:hover,
.vx-restart:hover { background: rgba(255, 255, 255, 0.3); }

@keyframes vxPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
	50%      { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

/* ---------- Mensajes ---------- */

.vx-messages {
	flex: 1;
	overflow-y: auto;
	background: var(--vx-msg-bg);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.vx-msg {
	max-width: 82%;
	font-weight: 500;
	font-size: 13.5px;
	line-height: 1.5;
	padding: 10px 13px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.vx-msg-assistant {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--vx-border);
	color: var(--vx-navy);
	border-radius: 14px 14px 14px 4px;
}

.vx-msg-user {
	align-self: flex-end;
	max-width: 78%;
	background: var(--vx-accent);
	color: #fff;
	border-radius: 14px 14px 4px 14px;
}

/* Indicador "escribiendo" */

.vx-typing {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--vx-border);
	border-radius: 14px 14px 14px 4px;
	padding: 12px 16px;
	display: flex;
	gap: 4px;
}

.vx-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #c7cbe0;
	animation: vxDot 1.2s ease-in-out infinite;
}

.vx-typing span:nth-child(2) { animation-delay: 0.15s; }
.vx-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes vxDot {
	0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
	40%           { opacity: 1;   transform: translateY(-3px); }
}

/* ---------- Opciones (chips) ---------- */

.vx-options {
	padding: 0 14px 14px;
	background: var(--vx-msg-bg);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: none;
}

.vx-options:empty { display: none; }

.vx-option {
	border: 1.5px solid var(--vx-accent);
	color: var(--vx-accent);
	background: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 12.5px;
	padding: 8px 15px;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.vx-option:hover {
	background: var(--vx-accent);
	color: #fff;
}

/* ---------- Formulario ---------- */

.vx-form {
	border-top: 1px solid var(--vx-border);
	padding: 12px;
	display: flex;
	align-items: flex-end;
	gap: 9px;
	background: #fff;
	flex: none;
}

.vx-input {
	flex: 1;
	resize: none;
	border: 1px solid #e5e7f0;
	border-radius: 14px;
	padding: 10px 13px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	color: var(--vx-navy);
	max-height: 100px;
	outline: none;
	background: #fff;
}

.vx-input::placeholder { color: #9aa0b8; }
.vx-input:focus { border-color: var(--vx-accent); }

.vx-send {
	width: 38px;
	height: 38px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--vx-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.vx-send:hover { transform: scale(1.08); }
.vx-send:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ---------- Móvil ---------- */

@media (max-width: 680px) {
	.vx-panel {
		right: 0;
		bottom: 0;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}
}

/* Marca Viajes de Miel: titulares en Quicksand */
.vx-header-name, .vx-teaser-text { font-family: var(--vx-font-head); }
