/* Ferremax Envíos — el color de marca se cambia en WooCommerce → Ajustes de envíos */
:root { --fx-color: #B00000; }
.fx-seg {
	--fx-text: #1f2328;
	--fx-muted: #6b7280;
	--fx-line: #e5e7eb;
	--fx-bg: #ffffff;
	--fx-soft: #f6f7f9;
	max-width: 960px;
	margin: 0 auto;
	color: var(--fx-text);
	font-size: 15px;
	line-height: 1.5;
}

.fx-seg *, .fx-seg *::before, .fx-seg *::after { box-sizing: border-box; }

.fx-seg__card {
	background: var(--fx-bg);
	border: 1px solid var(--fx-line);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.fx-seg__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; }
.fx-seg__sub { margin: 0; color: var(--fx-muted); }
.fx-seg__h3 { margin: 0 0 12px; font-size: 16px; }

/* Buscador */
.fx-seg__search { max-width: 520px; margin: 24px auto; text-align: left; }
.fx-seg__form { display: grid; gap: 14px; margin-top: 18px; }
.fx-seg__field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fx-seg__field input {
	width: 100%; padding: 12px 14px; font-size: 16px;
	border: 1px solid #cfd4dc; border-radius: 8px; background: #fff;
}
.fx-seg__field input:focus { outline: 2px solid var(--fx-color); outline-offset: 1px; border-color: var(--fx-color); }
.fx-seg__hint { margin: 16px 0 0; font-size: 14px; color: var(--fx-muted); }

/* Botones */
.fx-seg__btn {
	display: inline-block; text-align: center; cursor: pointer;
	background: var(--fx-color); color: #fff !important; border: 0;
	padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 15px;
	text-decoration: none !important; transition: filter .15s;
}
.fx-seg__btn:hover { filter: brightness(.92); }
.fx-seg__btn--ghost {
	background: transparent; color: var(--fx-color) !important;
	border: 1.5px solid var(--fx-color); padding: 10px 18px;
}
.fx-seg__btn--ghost:hover { background: var(--fx-color); color: #fff !important; filter: none; }

/* Avisos */
.fx-seg__alert { padding: 12px 14px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.fx-seg__alert--error { background: #fdecec; color: #9b1c1c; }
.fx-seg__alert--info  { background: #eef4ff; color: #1e429f; }
.fx-seg__alert--warn  { background: #fff6e5; color: #8a4b00; }

/* Cabecera del resultado */
.fx-seg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fx-seg__badge {
	padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
	background: var(--fx-soft); color: var(--fx-text);
}
.fx-seg__badge--enviado, .fx-seg__badge--transito, .fx-seg__badge--reparto, .fx-seg__badge--parcial { background: #eef4ff; color: #1e429f; }
.fx-seg__badge--reparto { background: #fff6e5; color: #8a4b00; }
.fx-seg__badge--entregado { background: #e7f6ec; color: #1a7f37; }
.fx-seg__badge--cancelado, .fx-seg__badge--devuelto { background: #fdecec; color: #9b1c1c; }
.fx-seg__badge--incidencia { background: #fff6e5; color: #8a4b00; }
.fx-seg__badge--pago { background: #f3f4f6; color: #374151; }
.fx-seg__badge--preparado, .fx-seg__badge--preparacion { background: #f3f4f6; color: #374151; }

/* Línea de tiempo — horizontal en escritorio */
.fx-seg__steps {
	list-style: none; margin: 28px 0 8px; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
}
.fx-seg__steps--5 { grid-template-columns: repeat(5, 1fr); }
.fx-seg__step { position: relative; text-align: center; padding: 0 6px; margin: 0; }
.fx-seg__step::before { /* línea */
	content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px;
	background: var(--fx-line); z-index: 0;
}
.fx-seg__step:first-child::before { display: none; }
.fx-seg__step.is-done::before, .fx-seg__step.is-current::before { background: var(--fx-color); }
.fx-seg__dot {
	position: relative; z-index: 1; display: block; margin: 0 auto 10px;
	width: 26px; height: 26px; border-radius: 50%;
	background: #fff; border: 4px solid var(--fx-line);
}
.fx-seg__step.is-done .fx-seg__dot { background: var(--fx-color); border-color: var(--fx-color); }
.fx-seg__step.is-done .fx-seg__dot::after { /* check */
	content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.fx-seg__step.is-current:not(.is-done) .fx-seg__dot {
	border-color: var(--fx-color);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--fx-color) 18%, transparent);
}
.fx-seg__label { display: block; font-weight: 700; font-size: 14px; }
.fx-seg__step.is-pending .fx-seg__label { color: var(--fx-muted); font-weight: 500; }
.fx-seg__date { display: block; font-size: 12px; color: var(--fx-muted); margin-top: 2px; }
.fx-seg__desc { display: block; font-size: 13px; color: var(--fx-text); margin-top: 6px; }

/* Paquetes */
.fx-seg__pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-seg__pkg-head .fx-seg__h3 { margin: 0; font-size: 18px; }
.fx-seg__pkg--pend { border-style: dashed; }
.fx-seg__h4 { margin: 20px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-muted); }
.fx-seg__muted { color: var(--fx-muted); margin: 8px 0 0; font-size: 14px; }
.fx-seg__note { margin-top: 12px; }
.fx-seg__events { margin-top: 16px; }
.fx-seg__events summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; }
.fx-seg__events ol { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--fx-line); }
.fx-seg__events li { position: relative; display: flex; gap: 14px; padding: 6px 0 6px 10px; margin: 0; font-size: 14px; }
.fx-seg__events li::before { content: ""; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--fx-line); }
.fx-seg__events li:first-child::before { background: var(--fx-color); }
.fx-seg__events li:first-child { font-weight: 700; }
.fx-seg__evdate { color: var(--fx-muted); min-width: 118px; font-variant-numeric: tabular-nums; font-weight: 400; }
.fx-seg__help { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fx-seg__help .fx-seg__h3 { margin: 0; }

/* Envío */
.fx-seg__ship { margin-top: 20px; display: grid; gap: 12px; }
.fx-seg__shipbox {
	margin-top: 18px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
	background: var(--fx-soft); border-radius: 10px; padding: 16px 18px;
}
.fx-seg__shipbox .fx-seg__btn { margin-left: auto; }
.fx-seg__k { display: block; font-size: 12px; color: var(--fx-muted); text-transform: uppercase; letter-spacing: .04em; }
.fx-seg__mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* Productos + entrega */
.fx-seg__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.fx-seg__grid .fx-seg__card { margin-bottom: 0; }
.fx-seg__items { list-style: none; margin: 0; padding: 0; }
.fx-seg__items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fx-line); margin: 0; }
.fx-seg__items li:last-child { border-bottom: 0; }
.fx-seg__thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--fx-line); display: block; }
.fx-seg__iname { flex: 1; font-size: 14px; }
.fx-seg__iqty { color: var(--fx-muted); font-size: 14px; white-space: nowrap; }
.fx-seg__total { margin: 12px 0 0; text-align: right; }
.fx-seg__back { text-align: center; margin: 20px 0 0; }

.fx-seg--account { margin-bottom: 24px; }

/* Móvil: línea de tiempo vertical */
@media (max-width: 640px) {
	.fx-seg__card { padding: 18px; }
	.fx-seg__grid { grid-template-columns: 1fr; gap: 16px; }
	.fx-seg__steps { grid-template-columns: 1fr; margin: 20px 0 4px; }
	.fx-seg__step { text-align: left; padding: 0 0 22px 42px; min-height: 26px; }
	.fx-seg__step:last-child { padding-bottom: 0; }
	.fx-seg__step::before { top: -22px; left: 11px; width: 4px; height: 100%; }
	.fx-seg__dot { position: absolute; left: 0; top: 0; margin: 0; }
	.fx-seg__shipbox .fx-seg__btn { margin-left: 0; width: 100%; }
	.fx-seg__events li { flex-direction: column; gap: 2px; }
	.fx-seg__help .fx-seg__btn { width: 100%; }
}

.fx-seg__muted a { color: var(--fx-color); }

/* ---------- Página de seguimiento: cabecera roja (2.3.2) ---------- */
body.fx-seg-page { overflow-x: clip; }
body.fx-seg-page .entry-hero { display: none !important; }
body.fx-seg-page .content-area { margin-top: 0 !important; }
body.fx-seg-page .content-bg, body.fx-seg-page .entry.single-entry { background: transparent !important; box-shadow: none !important; }
body.fx-seg-page .entry-content-wrap { padding-top: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.fx-seg-hero {
	background: linear-gradient(135deg, color-mix(in srgb, var(--fx-color) 82%, #000) 0%, var(--fx-color) 55%, color-mix(in srgb, var(--fx-color) 85%, #fff) 100%);
	color: #fff; text-align: center; padding: 46px 16px 96px;
	margin: 0 calc(50% - 50vw); position: relative; overflow: hidden;
}
.fx-seg-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }
.fx-seg-hero__ico { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fx-seg-hero__ico svg { width: 30px; height: 30px; color: #fff; }
.fx-seg-hero h1 { color: #fff !important; margin: 0 0 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.fx-seg-hero p { margin: 0 auto; max-width: 560px; color: rgba(255,255,255,.9); font-size: 17px; }
.fx-seg-hero--mini { padding: 30px 16px 70px; }
.fx-seg-hero--mini h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.fx-seg--hero { position: relative; z-index: 2; margin-top: -64px; }
.fx-seg--hero-mini { margin-top: -46px; }
.fx-seg--hero .fx-seg__search { max-width: 720px; margin: 0 auto; border: 0; box-shadow: 0 14px 40px rgba(0,0,0,.10); }
.fx-seg--hero .fx-seg__search .fx-seg__title, .fx-seg--hero .fx-seg__search .fx-seg__sub { display: none; }
.fx-seg--hero-mini > .fx-seg__card:first-child { box-shadow: 0 14px 40px rgba(0,0,0,.10); border: 0; }
.fx-seg__trust { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; margin: 22px auto 6px; max-width: 720px; color: #4a4d52; font-size: 14px; text-align: center; }
.fx-seg__trust b { color: #1a7f37; }
.fx-seg__trust a { color: inherit; }
@media (max-width: 640px) {
	.fx-seg-hero { padding: 34px 16px 86px; }
	.fx-seg-hero p { font-size: 16px; }
	.fx-seg__trust { flex-direction: column; align-items: center; }
}
