/**
 * «Demostración del concepto» (efeoncepro/concept-demo, 0.26.0). Boards Def2 and Def2-movil of the canvas approved on
 * 2026-11-25. The accent (progress line, icons) is the line of the post; small text stays navy. Without the view
 * script the four heads stack and the tabs stay hidden.
 */

.eo-cdemo {
	--eo-d-ink: #023c70;
	--eo-d-soft: #6d6777;
	--eo-d-acc: var(--eo-line-on-light, #0375db);
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 32px;
	background: #f2f4f7;
	color: var(--eo-d-ink);
	font-family: "Poppins", system-ui, sans-serif !important;
	letter-spacing: 0;
	container: eo-cdemo / inline-size;
}

.eo-cdemo * {
	box-sizing: border-box;
}

.eo-cdemo.eo-cdemo :is(p, dl, dd, ul, li) {
	margin: 0 !important;
	padding: 0;
	letter-spacing: 0 !important;
	text-transform: none;
}

.eo-cdemo__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.eo-cdemo.eo-cdemo .eo-cdemo__title {
	color: var(--eo-d-ink) !important;
	font-family: "Poppins", system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.35 !important;
}

.eo-cdemo__status {
	flex: 0 0 auto;
	color: var(--eo-d-soft);
	font-size: 12px;
}

.eo-cdemo__tabs {
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	padding: 4px;
	border-radius: 16px;
	background: #e6eaf0;
}

.eo-cdemo.is-ready .eo-cdemo__tabs {
	display: grid;
}

.eo-cdemo .eo-cdemo__tab.eo-cdemo__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 10px !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--eo-d-ink) !important;
	font: 600 13px/1.2 "Poppins", system-ui, sans-serif !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	white-space: nowrap;
	cursor: pointer;
}

.eo-cdemo .eo-cdemo__tab.eo-cdemo__tab:hover {
	background: rgba(255, 255, 255, 0.55) !important;
}

.eo-cdemo .eo-cdemo__tab.eo-cdemo__tab[aria-selected="true"] {
	background: #ffffff !important;
	box-shadow: 0 1px 2px rgba(2, 60, 112, 0.12) !important;
}

.eo-cdemo .eo-cdemo__tab:focus-visible {
	outline: 2px solid var(--eo-d-acc);
	outline-offset: 2px;
}

.eo-cdemo__logo {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.eo-cdemo__progress {
	position: absolute;
	right: 10px;
	bottom: 5px;
	left: 10px;
	height: 2px;
	border-radius: 2px;
	background: var(--eo-d-acc);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left;
}

.eo-cdemo.is-running.is-tick .eo-cdemo__tab[aria-selected="true"] .eo-cdemo__progress {
	opacity: 1;
	animation: eo-cdemo-fill 3s linear forwards;
}

@keyframes eo-cdemo-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.eo-cdemo__panels {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 12px;
	margin-top: 14px;
}

.eo-cdemo:not(.is-ready) .eo-cdemo__panels {
	margin-top: 0;
}

.eo-cdemo__panel {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	overflow: hidden;
	border: 1px solid rgba(2, 60, 112, 0.1);
	border-radius: 20px;
	background: #ffffff;
}

.eo-cdemo.is-ready .eo-cdemo__panel {
	min-height: 260px;
}

.eo-cdemo .eo-cdemo__panel[hidden] {
	display: none !important;
}

.eo-cdemo__panel:focus-visible {
	outline: 2px solid var(--eo-d-acc);
	outline-offset: 2px;
}

.eo-cdemo__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(2, 60, 112, 0.08);
	background: #fbfbfc;
}

.eo-cdemo__bar .eo-cdemo__logo {
	width: 20px;
	height: 20px;
}

.eo-cdemo__head {
	font-size: 13px;
	font-weight: 600;
}

.eo-cdemo__where {
	margin-left: auto;
	color: var(--eo-d-soft);
	font-size: 12px;
	text-align: right;
}

.eo-cdemo__chat {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
}

.eo-cdemo.eo-cdemo .eo-cdemo__ask {
	align-self: flex-end;
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 16px 16px 4px 16px;
	background: #023c70;
	color: #ffffff !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
}

.eo-cdemo__answer {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	gap: 10px;
	max-width: 90%;
	padding: 12px 14px;
	border-radius: 16px 16px 16px 4px;
	background: #f2f4f7;
}

.eo-cdemo.eo-cdemo .eo-cdemo__answer p {
	color: var(--eo-d-ink) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.eo-cdemo.eo-cdemo .eo-cdemo__note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px !important;
}

.eo-cdemo__note svg {
	flex: 0 0 auto;
	color: var(--eo-d-acc);
}

.eo-cdemo__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 18px;
	font-size: 13px;
}

.eo-cdemo__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border: 1px solid rgba(2, 60, 112, 0.12);
	border-radius: 10px;
}

.eo-cdemo__field dt {
	color: var(--eo-d-soft);
	font-size: 12px;
	font-weight: 400;
}

.eo-cdemo__field dd {
	font-weight: 600;
}

.eo-cdemo__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #022f58;
}

.eo-cdemo.eo-cdemo .eo-cdemo__footer-label {
	display: inline-flex;
	flex-grow: 1;
	align-items: center;
	gap: 8px;
	color: #cfe4fa !important;
	font-size: 13px !important;
	font-weight: 600;
}

.eo-cdemo__footer-label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--eo-line-on-navy, var(--eo-line-on-dark, #6fb5ff));
}

.eo-cdemo.eo-cdemo .eo-cdemo__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.eo-cdemo.eo-cdemo .eo-cdemo__chips li {
	margin: 0;
	padding: 6px 12px !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 13px;
	line-height: 1.3;
}

.eo-cdemo .eo-cdemo__chips li::before,
.eo-cdemo .eo-cdemo__chips li::marker {
	content: none;
}

.eo-cdemo__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Phone: the tabs slide sideways. */
@container eo-cdemo (max-width: 440px) {
	.eo-cdemo.is-ready .eo-cdemo__tabs {
		display: flex;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.eo-cdemo__tabs::-webkit-scrollbar {
		display: none;
	}

	.eo-cdemo .eo-cdemo__tab.eo-cdemo__tab {
		flex: 0 0 auto;
		padding: 0 14px !important;
		scroll-snap-align: start;
	}

	.eo-cdemo__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.eo-cdemo__footer-label {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.eo-cdemo {
		padding: 20px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eo-cdemo__progress {
		display: none;
	}
}
