/* Seguimiento público — Fullarg WMS 3PL */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
	--pt-navy: #0b2a4a;
	--pt-navy-deep: #061828;
	--pt-cyan: #00aeef;
	--pt-cyan-soft: #7fd6f5;
	--pt-ink: #1a3348;
	--pt-muted: #5b738b;
	--pt-line: #c5d6e4;
	--pt-surface: #f2f7fb;
	--pt-ok: #0d8a5b;
	--pt-font-display: "Archivo", "Segoe UI", sans-serif;
	--pt-font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

/* Quitar chrome Frappe / botón Inicio (comprador final, no desk) */
body:has(.wms-pt) .navbar,
body:has(.wms-pt) .web-footer,
body:has(.wms-pt) footer.web-footer,
body:has(.wms-pt) .page-header-actions-block,
body:has(.wms-pt) .breadcrumb,
body:has(.wms-pt) .page-header h1,
body:has(.wms-pt) .page-head,
body:has(.wms-pt) .indicator-pill,
body:has(.wms-pt) .page-card-head,
body:has(.wms-pt) .error-page > div > h4,
body:has(.wms-pt) .error-page .btn-primary,
body:has(.wms-pt) .error-page a.btn,
body.wms-public-track .navbar,
body.wms-public-track .web-footer,
body.wms-public-track .page-card-head,
body.wms-public-track .error-page .btn-primary,
body.wms-public-track .error-page a.btn {
	display: none !important;
}

/* Romper el “marco móvil” del template message (.error-page / .details) */
body:has(.wms-pt) .error-page,
body.wms-public-track .error-page {
	height: auto !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
	width: 100% !important;
	max-width: none !important;
	display: block !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.wms-pt) .error-page > div,
body:has(.wms-pt) .error-page .details,
body:has(.wms-pt) .error-page .details > p,
body.wms-public-track .error-page > div,
body.wms-public-track .error-page .details,
body.wms-public-track .error-page .details > p {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	text-align: initial !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
}

body:has(.wms-pt),
body:has(.wms-pt) .page-content-wrapper,
body:has(.wms-pt) .page_content,
body:has(.wms-pt) main.container,
body:has(.wms-pt) .page-content,
body.wms-public-track,
body.wms-public-track .page-content-wrapper,
body.wms-public-track .page_content,
body.wms-public-track main.container {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

html:has(body.wms-public-track),
html:has(.wms-pt) {
	height: 100%;
	background: var(--pt-surface);
}

body:has(.wms-pt),
body.wms-public-track {
	font-family: var(--pt-font-body);
	color: var(--pt-ink);
	background: var(--pt-surface) !important;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	margin: 0 !important;
	overflow-x: hidden;
}

/* Atmósfera a viewport completa (desktop + mobile), no solo el ancho del card */
.wms-pt-atmosphere {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 10% -10%, rgba(0, 174, 239, 0.18), transparent 55%),
		radial-gradient(90% 70% at 100% 0%, rgba(11, 42, 74, 0.12), transparent 50%),
		linear-gradient(165deg, #e8f4fa 0%, var(--pt-surface) 42%, #eef3f7 100%);
	animation: wms-pt-drift 18s ease-in-out infinite alternate;
}

.wms-pt-atmosphere::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230b2a4a' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 80px 80px;
	pointer-events: none;
}

.wms-pt {
	position: relative;
	isolation: isolate;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 1.5rem;
	box-sizing: border-box;
}

@keyframes wms-pt-drift {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to { transform: scale(1.04) translate3d(0, -1.5%, 0); }
}

.wms-pt-main {
	width: min(34rem, 100%);
	margin: 0 auto;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 4vh, 2.75rem);
	justify-content: center;
}

.wms-pt-hero {
	animation: wms-pt-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wms-pt-rise {
	from { opacity: 0.35; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.wms-pt-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.85rem;
}

.wms-pt-logo {
	width: 3.25rem;
	height: 3.25rem;
	object-fit: contain;
	flex: 0 0 auto;
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.72);
	padding: 0.2rem;
}

.wms-pt-logo--mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pt-font-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--pt-navy);
	background: linear-gradient(145deg, #fff, #d9eef8);
	border: 1px solid rgba(11, 42, 74, 0.08);
}

.wms-pt-merchant {
	font-family: var(--pt-font-display);
	font-weight: 700;
	font-size: clamp(1.85rem, 5vw, 2.45rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--pt-navy);
	margin: 0;
}

.wms-pt-order {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	color: var(--pt-muted);
}

.wms-pt-order strong {
	color: var(--pt-ink);
	font-weight: 600;
}

.wms-pt-status {
	margin: 0;
}

.wms-pt-status-pill {
	display: inline-block;
	font-family: var(--pt-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: var(--pt-navy);
	border-bottom: 2px solid var(--pt-cyan);
	padding-bottom: 0.15rem;
}

.wms-pt-section {
	animation: wms-pt-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.wms-pt-section-title {
	font-family: var(--pt-font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pt-muted);
	margin: 0 0 1.1rem;
}

.wms-pt-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.wms-pt-timeline::before {
	content: "";
	position: absolute;
	left: 0.7rem;
	top: 0.35rem;
	bottom: 0.35rem;
	width: 2px;
	background: linear-gradient(180deg, var(--pt-cyan), var(--pt-line));
	opacity: 0.55;
}

.wms-pt-step {
	display: grid;
	grid-template-columns: 1.55rem 1fr;
	gap: 0.85rem;
	align-items: start;
	padding: 0.65rem 0;
	position: relative;
	animation: wms-pt-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wms-pt-step:nth-child(1) { animation-delay: 0.18s; }
.wms-pt-step:nth-child(2) { animation-delay: 0.26s; }
.wms-pt-step:nth-child(3) { animation-delay: 0.34s; }
.wms-pt-step:nth-child(4) { animation-delay: 0.42s; }
.wms-pt-step:nth-child(5) { animation-delay: 0.5s; }

.wms-pt-node {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
	margin-left: 0.2rem;
	border-radius: 50%;
	border: 2px solid var(--pt-line);
	background: #fff;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.wms-pt-step--done .wms-pt-node {
	border-color: var(--pt-cyan);
	background: var(--pt-cyan);
	box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}

.wms-pt-step--current .wms-pt-node {
	border-color: var(--pt-navy);
	background: #fff;
	animation: wms-pt-pulse 1.8s ease-in-out infinite;
}

.wms-pt-step--skipped .wms-pt-node {
	border-style: dashed;
	opacity: 0.55;
}

.wms-pt-step--pending .wms-pt-node {
	opacity: 0.7;
}

@keyframes wms-pt-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(11, 42, 74, 0.25); }
	50% { box-shadow: 0 0 0 8px rgba(11, 42, 74, 0); }
}

.wms-pt-step-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.wms-pt-step-label {
	font-family: var(--pt-font-display);
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--pt-navy);
}

.wms-pt-step--pending .wms-pt-step-label,
.wms-pt-step--skipped .wms-pt-step-label {
	color: var(--pt-muted);
	font-weight: 500;
}

.wms-pt-step time,
.wms-pt-when {
	font-size: 0.88rem;
	color: var(--pt-muted);
	font-variant-numeric: tabular-nums;
}

.wms-pt-when--soft {
	opacity: 0.9;
}

.wms-pt-missing {
	font-family: var(--pt-font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--pt-navy);
	margin: 0 0 0.5rem;
	animation: wms-pt-rise 0.6s ease both;
}

.wms-pt-missing-hint {
	margin: 0;
	color: var(--pt-muted);
}

.wms-pt-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pt-muted);
	opacity: 0.85;
}

.wms-pt-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
}

.wms-pt-footer-link:hover,
.wms-pt-footer-link:focus-visible {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wms-pt-footer img {
	opacity: 0.75;
}

@media (max-width: 480px) {
	.wms-pt-merchant {
		font-size: 1.65rem;
	}
	.wms-pt-logo {
		width: 2.75rem;
		height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wms-pt-atmosphere,
	.wms-pt-hero,
	.wms-pt-section,
	.wms-pt-step,
	.wms-pt-step--current .wms-pt-node {
		animation: none !important;
	}
}
