/**
 * Home — Showcase interactivo de workflows (extiende iqdc-tech-infrastructure).
 */

/* Más espacio al texto; columna de nodos más estrecha */
.iqdc-workflows-showcase .iqdc-tech-infrastructure__layout {
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.iqdc-workflows-showcase .iqdc-tech-infrastructure__content {
	min-width: 0;
}

.iqdc-workflows-showcase .iqdc-tech-infrastructure__visual {
	margin-top: clamp(2rem, 4.5vw, 3.5rem);
	max-width: 100%;
	justify-self: stretch;
	width: 100%;
	overflow: hidden;
}

.iqdc-workflows-showcase .iqdc-tech-infrastructure__blueprint {
	overflow: hidden;
}

.iqdc-workflows-showcase__topology {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(4, auto);
	gap: 0.65rem;
	min-height: 0;
	padding: 1.15rem 1.25rem;
}

.iqdc-workflows-showcase__topology .iqdc-workflows-showcase__node {
	padding: 0.75rem 0.9rem;
}

.iqdc-workflows-showcase__topology .iqdc-workflows-showcase__node:not(:last-child)::after {
	content: "";
	display: block;
	position: absolute;
	left: 50%;
	bottom: -0.4rem;
	width: 1px;
	height: 0.35rem;
	transform: translateX(-50%);
	background: linear-gradient(180deg, rgba(0, 139, 255, 0.45), transparent);
	pointer-events: none;
}

.iqdc-workflows-showcase__detail {
	margin-top: 0.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 139, 255, 0.2);
	min-height: clamp(12rem, 28vw, 16rem);
	transition: opacity 0.28s ease;
}

.iqdc-workflows-showcase__detail.is-updating {
	opacity: 0.55;
}

.iqdc-workflows-showcase__detail-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.1rem, 1.8vw, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--iqdc-text, #ffffff);
	overflow-wrap: break-word;
}

.iqdc-workflows-showcase__detail-text {
	margin: 0 0 1rem;
	font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
	line-height: 1.65;
	color: var(--iqdc-text-muted, #9ca3af);
	overflow-wrap: break-word;
}

.iqdc-workflows-showcase__detail-outcome {
	margin: 0;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 139, 255, 0.15);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--iqdc-text-muted, #9ca3af);
	overflow-wrap: break-word;
}

.iqdc-workflows-showcase__detail-outcome-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--iqdc-brand, #008bff);
}

.iqdc-workflows-showcase__node {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	appearance: none;
}

.iqdc-workflows-showcase .iqdc-tech-infrastructure__node-title,
.iqdc-workflows-showcase .iqdc-tech-infrastructure__node-desc {
	overflow-wrap: break-word;
}

.iqdc-workflows-showcase__node:focus-visible {
	outline: 2px solid var(--iqdc-brand, #008bff);
	outline-offset: 2px;
}

.iqdc-workflows-showcase .iqdc-tech-infrastructure__node:hover {
	box-shadow: inset 0 0 12px rgba(0, 139, 255, 0.12);
}

.iqdc-workflows-showcase__node.is-active {
	border-color: rgba(0, 139, 255, 0.65);
	box-shadow: inset 0 0 14px rgba(0, 139, 255, 0.08);
}

.iqdc-workflows-showcase__node.is-active .iqdc-tech-infrastructure__node-title {
	color: var(--iqdc-brand, #008bff);
}

@media (max-width: 767px) {
	.iqdc-workflows-showcase .iqdc-tech-infrastructure__layout {
		grid-template-columns: 1fr;
	}

	.iqdc-workflows-showcase .iqdc-tech-infrastructure__visual {
		margin-top: 0;
		max-width: none;
		justify-self: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iqdc-workflows-showcase__detail {
		transition: none;
	}

	.iqdc-workflows-showcase__detail.is-updating {
		opacity: 1;
		transform: none;
	}
}
