/* Worldprom Chatbot · Fase 1. Cambia los colores aquí. */
#wpcb {
	--wpcb-brand: #14336b;
	--wpcb-brand-ink: #ffffff;
	--wpcb-accent: #f28c28;
	--wpcb-bg: #ffffff;
	--wpcb-bot: #f1f4f9;
	--wpcb-ink: #1c2430;
	--wpcb-muted: #5c6878;
	--wpcb-line: #d7dde7;
	position: fixed; left: 20px; bottom: 20px; z-index: 99990;
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--wpcb-ink);
}
#wpcb *, #wpcb *::before, #wpcb *::after { box-sizing: border-box; }
#wpcb .wpcb-launcher {
	display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px;
	border: 0; border-radius: 26px; background: var(--wpcb-brand); color: var(--wpcb-brand-ink);
	font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 51, 107, .3);
}
#wpcb .wpcb-launcher:hover { filter: brightness(1.1); }
#wpcb.wpcb-open .wpcb-launcher-text { display: none; }
#wpcb .wpcb-panel {
	position: absolute; left: 0; bottom: 64px; width: 370px; max-height: min(620px, calc(100vh - 110px));
	display: flex; flex-direction: column; background: var(--wpcb-bg); border: 1px solid var(--wpcb-line);
	border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(16, 24, 40, .22);
}
#wpcb .wpcb-panel[hidden] { display: none; }
#wpcb .wpcb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--wpcb-brand); color: var(--wpcb-brand-ink); }
#wpcb .wpcb-title { display: flex; flex-direction: column; }
#wpcb .wpcb-title strong { font-size: 16px; }
#wpcb .wpcb-title span { font-size: 12.5px; opacity: .85; }
#wpcb .wpcb-close {
	/* Botón redondo y la X centrada: el tema le ponía relleno y lo deformaba. */
	flex: 0 0 36px; display: inline-flex !important; align-items: center; justify-content: center;
	width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .14) !important; color: #fff !important;
	font-size: 22px !important; font-weight: 400 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer;
}
#wpcb .wpcb-close:hover, #wpcb .wpcb-close:focus-visible { background: rgba(255, 255, 255, .26) !important; }
#wpcb .wpcb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--wpcb-bg); }
#wpcb .wpcb-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; overflow-wrap: anywhere; }
#wpcb .wpcb-bot { align-self: flex-start; background: var(--wpcb-bot); border-bottom-left-radius: 4px; }
#wpcb .wpcb-user { align-self: flex-end; background: var(--wpcb-brand); color: var(--wpcb-brand-ink); border-bottom-right-radius: 4px; }
#wpcb .wpcb-link { color: var(--wpcb-brand); font-weight: 600; text-decoration: underline; }
#wpcb .wpcb-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
#wpcb .wpcb-choice {
	padding: 8px 12px; border: 1.5px solid var(--wpcb-brand); border-radius: 18px; background: var(--wpcb-bg);
	color: var(--wpcb-brand); font: 600 14px/1.25 inherit; font-family: inherit; cursor: pointer; text-align: left;
}
#wpcb .wpcb-choice:hover { background: var(--wpcb-brand); color: var(--wpcb-brand-ink); }
#wpcb .wpcb-choice.wpcb-quiet { border-color: var(--wpcb-line); color: var(--wpcb-muted); font-weight: 500; }
#wpcb .wpcb-choice.wpcb-quiet:hover { background: var(--wpcb-bot); color: var(--wpcb-ink); }
#wpcb .wpcb-choice.wpcb-primary { background: var(--wpcb-accent); border-color: var(--wpcb-accent); color: #1c1205; }
#wpcb .wpcb-form, #wpcb .wpcb-contact { flex-direction: column; flex-wrap: nowrap; width: 100%; }
#wpcb .wpcb-form { flex-direction: row; }
#wpcb .wpcb-input { width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--wpcb-line); border-radius: 10px; font: 14.5px/1.3 inherit; font-family: inherit; color: var(--wpcb-ink); background: #fff; }
#wpcb .wpcb-input:focus { outline: none; border-color: var(--wpcb-brand); }
#wpcb .wpcb-check { font-size: 13px; color: var(--wpcb-muted); }
#wpcb .wpcb-check a { color: var(--wpcb-brand); }
#wpcb .wpcb-error { margin: 0; min-height: 0; font-size: 13px; color: #b42318; }
#wpcb .wpcb-error:empty { display: none; }
#wpcb .wpcb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#wpcb .wpcb-foot { padding: 8px 16px; font-size: 11.5px; color: var(--wpcb-muted); border-top: 1px solid var(--wpcb-line); background: var(--wpcb-bg); }
#wpcb button:focus-visible, #wpcb a:focus-visible { outline: 3px solid var(--wpcb-accent); outline-offset: 2px; }
@media (max-width: 520px) {
	#wpcb { left: 12px; bottom: 12px; }
	#wpcb.wpcb-open { left: 0; right: 0; bottom: 0; top: 0; }
	#wpcb.wpcb-open .wpcb-panel { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; }
	#wpcb.wpcb-open .wpcb-launcher { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	#wpcb .wpcb-msg { animation: wpcb-in .18s ease-out; }
	@keyframes wpcb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
