/* Heuristic — ilustraciones de la home, calcadas de los frames del Figma.
   Se hacen en CSS/HTML propio porque reconstruirlas con contenedores de Elementor
   quedaba pobre: posiciones, retículas y sombras necesitan control fino. */

/* ---------------------------------------------------------------- comunes */

.hx-mock {
	position: relative;
	overflow: hidden;
	font-family: 'Aeonik', sans-serif;
}

/* Retícula vertical de fondo, desvanecida hacia abajo */
.hx-mock-grid::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(to right, rgba(19, 122, 58, 0.07) 1px, transparent 1px);
	background-size: 40px 100%;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.hx-mock-card {
	position: absolute;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 26, 13, 0.1);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hx-mock-head {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	font-weight: 500;
	color: #2b2b2b;
	white-space: nowrap;
}

.hx-mock-bar {
	height: 7px;
	border-radius: 4px;
	background: #e7ece7;
}

.hx-mock-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ------------------------------------------------ migración a la nube */

/* Fondo plano, no degradado: el cliente vetó los degradados y en el comp es un
   plano verde muy claro con la retícula vertical visible de arriba abajo. */
.hx-migration-mock {
	height: 320px;
	background: #eef4ef;
}

/* La retícula del visual no se desvanece, a diferencia de la de los otros mocks. */
.hx-migration-mock.hx-mock-grid::before {
	background-image: linear-gradient(to right, rgba(19, 122, 58, 0.09) 1px, transparent 1px);
	-webkit-mask-image: none;
	mask-image: none;
}

.hx-migration-mock .hx-mock-card {
	width: 200px;
	top: 110px;
	box-shadow: 0 12px 28px rgba(0, 26, 13, 0.16), 0 2px 6px rgba(0, 26, 13, 0.08);
}

.hx-migration-mock .is-src { left: 56px; }
.hx-migration-mock .is-dst { right: 56px; }

/* Línea discontinua que une los dos paneles */
.hx-migration-mock .hx-mock-link {
	position: absolute;
	top: 164px;
	left: 256px;
	right: 256px;
	border-top: 1px dashed rgba(19, 122, 58, 0.35);
}

/* ------------------------------------------------ informe de auditoría */

/* Los tres visuales del paso miden lo mismo y llevan la tarjeta centrada, como en
   el comp: con alturas distintas los cuerpos de las tres tarjetas se desalineaban. */
.hx-audit-mock,
.hx-tickets-mock {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f6f2;
	padding: 0 42px;
}

.hx-audit-mock .hx-mock-grid-32::before {
	background-size: 32px 100%;
}

.hx-audit-mock .hx-mock-card,
.hx-tickets-mock .hx-mock-card {
	position: relative;
	width: 268px;
	max-width: 100%;
	padding: 12px;
	gap: 9px;
	border-radius: 6px;
}

.hx-audit-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hx-audit-count {
	font-size: 10px;
	font-weight: 500;
	color: #8a8f8a;
	white-space: nowrap;
}

.hx-audit-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	color: #5a605a;
}

.hx-audit-row > span:first-child {
	width: 34px;
	flex: 0 0 auto;
}

.hx-audit-track {
	flex: 1 1 auto;
	height: 7px;
	border-radius: 4px;
	background: #e7ece7;
	overflow: hidden;
}

.hx-audit-track > i {
	display: block;
	height: 7px;
	border-radius: 4px;
}

.hx-audit-pct {
	width: 30px;
	flex: 0 0 auto;
	text-align: right;
	font-weight: 500;
	color: #8a8f8a;
}

/* ------------------------------------------------ tickets */



.hx-tickets-mock .hx-mock-card {
	gap: 10px;
}

.hx-tickets-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 11px;
	font-weight: 500;
	color: #2b2b2b;
	white-space: nowrap;
}

.hx-tickets-sla {
	font-family: 'Akkurat Mono', ui-monospace, monospace;
	font-size: 9px;
	letter-spacing: 0.02em;
	color: #137a3a;
	text-transform: uppercase;
}

.hx-tickets-bars {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 56px;
}

.hx-tickets-bars > i {
	flex: 1 1 auto;
	border-radius: 3px;
	background: rgba(19, 122, 58, 0.75);
}

.hx-tickets-bars > i.is-lime {
	background: #a8ce3a;
}

.hx-tickets-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 10px;
	font-weight: 300;
	color: #8a8f8a;
}

.hx-tickets-av {
	display: flex;
}

.hx-tickets-av > i {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background: #137a3a;
	margin-left: -6px;
}

.hx-tickets-av > i:first-child { margin-left: 0; }
.hx-tickets-av > i:nth-child(2) { background: #2f9150; }
.hx-tickets-av > i:nth-child(3) { background: #a8ce3a; }

/* ------------------------------------------------ conector de pasos */

.hx-connector {
	position: relative;
	height: 18px;
	margin-inline: 200px;
}

.hx-connector::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	border-top: 1px dashed rgba(19, 122, 58, 0.35);
}

.hx-connector > i {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #137a3a;
}

.hx-connector > i:nth-child(1) { left: 0; }
.hx-connector > i:nth-child(2) { left: 50%; margin-left: -7px; }
.hx-connector > i:nth-child(3) { right: 0; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.hx-connector {
		margin-inline: 80px;
	}
}

@media (max-width: 767px) {
	.hx-connector {
		display: none;
	}

	.hx-migration-mock {
		height: 300px;
	}

	.hx-migration-mock .hx-mock-card {
		width: 168px;
		padding: 12px;
	}

	.hx-migration-mock .is-src { left: 16px; top: 40px; }
	.hx-migration-mock .is-dst { right: 16px; top: 150px; }

	.hx-migration-mock .hx-mock-link {
		top: 120px;
		left: 92px;
		right: 92px;
		height: 60px;
		border-top: 0;
		border-left: 1px dashed rgba(19, 122, 58, 0.35);
	}

	.hx-audit-mock,
	.hx-tickets-mock {
		padding: 16px;
	}

	.hx-audit-mock .hx-mock-card,
	.hx-tickets-mock .hx-mock-card {
		width: 100%;
	}
}
