/* Página de seguimiento Phone Master — mobile-first */

.pm-seg {
	--pm-primary: #0e6ff2;
	--pm-ok: #16a34a;
	--pm-warn: #d97706;
	--pm-fail: #dc2626;
	--pm-ink: #1f2937;
	--pm-muted: #6b7280;
	--pm-line: #e5e7eb;
	--pm-bg: #f8fafc;
	max-width: 480px;
	margin: 0 auto;
	padding: 16px;
	color: var(--pm-ink);
	font-size: 16px;
	line-height: 1.5;
}

.pm-seg__title { margin: 0 0 4px; font-size: 1.4em; }
.pm-seg__subtitle { margin: 0 0 20px; color: var(--pm-muted); font-size: .95em; }

.pm-seg__label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .9em; }

.pm-seg__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--pm-line);
	border-radius: 10px;
	font-size: 1em;
	box-sizing: border-box;
}
.pm-seg__input:focus { outline: 2px solid var(--pm-primary); border-color: transparent; }

.pm-seg__btn {
	width: 100%;
	margin-top: 20px;
	padding: 14px;
	border: 0;
	border-radius: 10px;
	background: var(--pm-primary);
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
}
.pm-seg__btn:disabled { opacity: .6; cursor: wait; }

.pm-seg__error {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
	color: var(--pm-fail);
	font-size: .95em;
}

/* ── Resultado ── */

.pm-seg__banner {
	padding: 18px 16px;
	border-radius: 14px;
	background: var(--pm-bg);
	border: 1px solid var(--pm-line);
	margin-bottom: 20px;
}
.pm-seg__banner--ok { background: #f0fdf4; border-color: #bbf7d0; }
.pm-seg__banner-estado { font-size: 1.25em; font-weight: 800; margin: 0 0 2px; }
.pm-seg__banner-equipo { color: var(--pm-muted); margin: 0; }
.pm-seg__banner-fecha { color: var(--pm-muted); font-size: .85em; margin: 6px 0 0; }

.pm-seg__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pm-seg__chip {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--pm-bg);
	border: 1px solid var(--pm-line);
	font-size: .82em;
	color: var(--pm-ink);
}

/* Timeline vertical */
.pm-seg__timeline { list-style: none; margin: 0 0 24px; padding: 0; }
.pm-seg__step { position: relative; padding: 0 0 26px 34px; }
.pm-seg__step:last-child { padding-bottom: 0; }
.pm-seg__step::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 22px;
	bottom: 0;
	width: 2px;
	background: var(--pm-line);
}
.pm-seg__step:last-child::before { display: none; }
.pm-seg__dot {
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--pm-line);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #fff;
}
.pm-seg__step--done .pm-seg__dot { background: var(--pm-ok); border-color: var(--pm-ok); }
.pm-seg__step--current .pm-seg__dot { background: var(--pm-primary); border-color: var(--pm-primary); }
.pm-seg__step--done .pm-seg__step-name,
.pm-seg__step--current .pm-seg__step-name { color: var(--pm-ink); font-weight: 700; }
.pm-seg__step-name { color: var(--pm-muted); }
.pm-seg__substate {
	display: inline-block;
	margin-top: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: var(--pm-warn);
	font-size: .8em;
	font-weight: 600;
}

/* Tarjetas de evaluación */
.pm-seg__card {
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 16px;
	background: #fff;
}
.pm-seg__card-title { margin: 0 0 2px; font-size: 1em; font-weight: 800; }
.pm-seg__card-fecha { margin: 0 0 12px; color: var(--pm-muted); font-size: .82em; }
.pm-seg__check { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--pm-bg); font-size: .95em; }
.pm-seg__check:first-of-type { border-top: 0; }
.pm-seg__check-tag { font-weight: 600; white-space: nowrap; }
.pm-seg__check-tag--ok { color: var(--pm-ok); }
.pm-seg__check-tag--fail { color: var(--pm-fail); }
.pm-seg__check-tag--pending { color: var(--pm-muted); }

.pm-seg__wsp {
	display: block;
	text-align: center;
	margin-top: 8px;
	padding: 14px;
	border-radius: 10px;
	background: #25d366;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.pm-seg__again {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--pm-line);
	border-radius: 10px;
	background: #fff;
	color: var(--pm-ink);
	font-size: .95em;
	cursor: pointer;
}
