/*
 * WMS — Workforce Management Solution
 * Estilos responsive dedicados (no alteran desktop > 1200px)
 */

/* ── Hero: módulos + monitor ──────────────────────────── */
.wms-page section.alto {
	overflow: hidden;
}

.wms-page section.alto .asistencia.wms-modulos {
	gap: 8px 4px;
}

/* ── Tablet (≤ 1199px) ───────────────────────────────── */
@media (max-width: 1199px) {
	.wms-page section.alto {
		min-height: 720px;
		padding-bottom: 32px;
	}

	.wms-page section.alto .screen {
		width: min(92vw, 880px);
		height: auto;
		margin-left: -44vw;
		left: 50%;
		max-height: 520px;
		object-fit: contain;
	}

	.wms-page .apple .box,
	.wms-page .apple .angosto {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		padding-bottom: 40px;
	}

	.wms-page .apple .box.height {
		height: auto;
		min-height: 0;
	}

	.wms-page .apple .box .half {
		float: none;
		width: 100%;
		height: auto;
		min-height: 520px;
		border-right: none;
		border-bottom: 12px solid #fff;
		padding-bottom: 24px;
	}

	.wms-page .apple .box .half.right {
		border-left: none;
		border-bottom: none;
		margin-top: 0;
	}

	.wms-page .apple .box .smallul {
		float: none;
		width: 100%;
		max-width: 520px;
		margin: 24px auto 0;
		padding: 0 24px;
		text-align: left;
	}

	.wms-page .apple .jobcosting {
		position: relative;
		left: auto;
		bottom: auto;
		display: block;
		margin: 24px auto 0;
		height: auto;
		max-height: 340px;
		max-width: 220px;
	}

	.wms-page .apple .desktop {
		position: relative;
		left: auto !important;
		bottom: auto;
		display: block;
		margin: 0 auto;
		height: auto;
		max-height: 420px;
		max-width: 90%;
	}

	.wms-page .apple .box .panel {
		position: relative;
		left: auto;
		margin-left: auto;
		margin-right: auto;
		bottom: auto;
		height: auto;
		max-height: 380px;
		max-width: 90%;
		display: block;
	}

	.wms-page .apple .box .combinado {
		position: relative;
		left: auto;
		margin-left: auto;
		margin-right: auto;
		bottom: auto;
		height: auto;
		max-height: 280px;
		max-width: 90%;
		display: block;
	}

	.wms-page .apple .box ul {
		float: none;
		width: 100%;
		max-width: 520px;
		margin: 24px auto 0;
		padding: 0 24px;
		line-height: 1.65;
		font-size: 14px;
		display: block !important;
	}

	.wms-page .apple .box ul li {
		margin-bottom: 10px;
		text-transform: none;
		font-weight: 600;
	}

	.wms-page .apple .box h2 {
		font-size: clamp(32px, 5vw, 52px);
		margin: 32px 0 16px;
	}

	.wms-page .apple p {
		padding: 0 6%;
		font-size: 17px;
		line-height: 1.55;
	}

	.wms-page .apple .sbm {
		float: none;
		display: inline-block;
		margin-top: 16px;
	}
}

/* ── Móvil (≤ 767px) ─────────────────────────────────── */
@media (max-width: 767px) {
	.wms-page section.alto {
		display: flex;
		flex-direction: column;
		align-items: center;
		min-height: 0 !important;
		padding: 56px 10px 24px;
	}

	.wms-page section.alto .asistencia.wms-modulos {
		position: relative;
		z-index: 3;
		order: 1;
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
		padding: 0;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px 6px;
		justify-items: center;
		float: none;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item {
		float: none !important;
		width: 100% !important;
		max-width: 82px;
		padding: 0 !important;
		line-height: 1.2 !important;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item .width {
		width: 100% !important;
		float: none !important;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item .width img {
		height: 28px;
		width: auto;
		max-width: 100%;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item span {
		float: none !important;
		width: 100% !important;
		margin: 4px 0 0 !important;
		text-align: center !important;
		font-size: 8px;
		line-height: 1.15;
		word-break: normal;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item.alt {
		background: transparent !important;
	}

	.wms-page section.alto .screen {
		position: relative !important;
		order: 2;
		display: block;
		width: min(100%, 340px) !important;
		height: auto !important;
		max-height: 240px;
		margin: 20px auto 0 !important;
		left: auto !important;
		bottom: auto !important;
		object-fit: contain;
	}
}

/* ── Móvil pequeño (≤ 479px) ─────────────────────────── */
@media (max-width: 479px) {
	.wms-page section.alto .asistencia.wms-modulos {
		max-width: 300px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px 8px;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item {
		max-width: 92px;
	}

	.wms-page section.alto .asistencia.wms-modulos .wms-modulo-item span {
		font-size: 8px;
	}

	.wms-page section.alto .screen {
		width: min(100%, 300px) !important;
		max-height: 200px;
	}

	.wms-page .apple .jobcosting {
		max-width: 150px;
		max-height: 220px;
	}
}

/* ── Contenido inferior WMS en móvil ─────────────────── */
@media (max-width: 767px) {
	.wms-page .apple .box .half {
		min-height: 0;
		padding: 24px 16px 32px;
	}

	.wms-page .apple .box h2 {
		font-size: clamp(26px, 7vw, 36px);
		margin: 20px 0 12px;
	}

	.wms-page .apple p {
		padding: 0 16px;
		font-size: 15px;
		line-height: 1.55;
	}

	.wms-page .apple .jobcosting {
		max-height: 260px;
		max-width: 180px;
	}

	.wms-page .apple .desktop {
		max-height: 300px;
	}

	.wms-page .apple .box .panel {
		max-height: 260px;
		margin-left: auto !important;
	}

	.wms-page .apple .box .combinado {
		max-height: 220px;
		margin-left: auto !important;
	}

	.wms-page .apple .box .smallul,
	.wms-page .apple .box ul {
		padding: 0 16px;
		font-size: 13px;
		line-height: 1.55;
	}

	.wms-page .apple .dark {
		padding-bottom: 24px;
	}
}
