:root {
	/* Variables base alineadas con main.css */
	/*--main-font: 'Work Sans';*/
	--display-font: 'Caveat';
	/*--purple-1: #5b3a9e;*/
	--purple-2: #f0eafb;
	--green-1: #3aa66a;
	--green-2: #e6f6ec;
	--color-2-a: #2bb6c4;
	--color-2-b: #e9f8fa;
	--accent-orange: #ff7a3d;
	--accent-yellow: #ffc94a;
	--accent-pink: #ff6b9d;
	--black-1: #1a1a1a;
	--gray-1: #6b6b6b;
	--gray-2: #e8e8e8;
	--cream: #faf6ee;
	--paper: #fdfbf4;
	/*--soft: 14px;*/
	--primary-radius: 999px;
	/*--inside-space: 24px;*/
	--small: 15px;
	/*--white-img: brightness(0) invert(1);*/
}

* { box-sizing: border-box; }

main {
	font-family: var(--main-font), sans-serif;
	color: var(--black-1);
	background: var(--paper);
	font-size: var(--small);
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background-image:
		radial-gradient(circle at 18% 15%, rgba(43,182,196,0.06) 0%, transparent 50%),
		radial-gradient(circle at 85% 85%, rgba(91,58,158,0.04) 0%, transparent 50%);
}

/* ========== HERO ========== */
.hero {
	position: relative;
	padding: 64px var(--inside-space) 40px;
	overflow: hidden;
}
.hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 50px;
	align-items: center;
	position: relative;
	z-index: 3;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--color-2-b);
	color: var(--color-2-a);
	padding: 8px 18px;
	border-radius: var(--primary-radius);
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-bottom: 22px;
}
.hero-eyebrow .dot {
	width: 8px; height: 8px;
	background: var(--color-2-a);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.5); opacity: 0.55; }
}
.hero h1 {
	font-family: var(--main-font);
	font-size: clamp(38px, 5.6vw, 68px);
	font-weight: 800;
	line-height: 0.99;
	letter-spacing: -0.03em;
	margin: 0 0 22px;
	color: var(--black-1);
	text-align: left;
}
.hero h1 .script {
	font-family: var(--display-font);
	font-weight: 700;
	color: var(--color-2-a);
	font-style: italic;
	display: inline-block;
	transform: rotate(-2deg);
}
.hero-lead {
	font-size: 17px;
	line-height: 1.65;
	color: var(--gray-1);
	max-width: 520px;
	margin: 0 0 28px;
}
.hero-lead strong { color: var(--black-1); font-weight: 700; }

.virtue-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.virtue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: white;
	border: 1px solid var(--gray-2);
	padding: 8px 14px;
	border-radius: var(--primary-radius);
	font-size: 13px;
	font-weight: 600;
}
.virtue svg { width: 14px; height: 14px; color: var(--color-2-a); }

/* ===== HERO ART: paquete en tránsito ===== */
.hero-art {
	position: relative;
	height: 360px;
	display: grid;
	place-items: center;
}
.route-card {
	position: relative;
	width: 100%;
	background: white;
	border: 1px solid var(--gray-2);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.04);
	padding: 26px;
	transform: rotate(-1deg);
}
.route-card svg { width: 100%; height: auto; display: block; }
.float-tag {
	position: absolute;
	background: white;
	border: 1px solid var(--gray-2);
	border-radius: var(--primary-radius);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.tag-transit { top: -16px; right: 18px; color: var(--accent-orange); transform: rotate(3deg); }
.tag-deliver { bottom: -16px; left: 14px; color: var(--green-1); transform: rotate(-3deg); }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; }
.tag-transit .tag-dot { background: var(--accent-orange); animation: pulse 1.6s ease-in-out infinite; }
.tag-deliver .tag-dot { background: var(--green-1); }

/* ========== BUSCADOR / API ========== */
.track-section { position: relative; z-index: 2; padding: 8px var(--inside-space) 56px; }
.track-shell { max-width: 1280px; margin: 0 auto; }

.track-card {
	background: white;
	border: 1px solid var(--gray-2);
	border-radius: var(--soft);
	box-shadow: 0 20px 50px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
	overflow: hidden;
}
.track-card-head {
	background: linear-gradient(135deg, var(--color-2-b), #fff);
	padding: 28px var(--inside-space) 22px;
	border-bottom: 1px solid var(--gray-2);
}
.track-card-head h2 {
	text-align: left;
	font-size: 24px;
	font-weight: 800;
	color: var(--purple-1);
	margin: 0 0 6px;
	letter-spacing: -0.02em;
}
.track-card-head p { margin: 0; color: var(--gray-1); font-size: 14.5px; line-height: 1.5; }

.track-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	align-items: end;
	padding: 24px var(--inside-space);
}
.tf-field { display: flex; flex-direction: column; gap: 7px; }
.tf-label { font-weight: 700; font-size: 13px; color: var(--black-1); }
.tf-label .req { color: var(--accent-pink); }
.tf-input {
	font-family: var(--main-font);
	font-size: 15px;
	padding: 14px 16px;
	border: 1.5px solid var(--gray-2);
	border-radius: var(--soft);
	background: var(--paper);
	transition: border-color .2s, box-shadow .2s;
}
.tf-input:focus {
	outline: none;
	border-color: var(--color-2-a);
	box-shadow: 0 0 0 3px rgba(43,182,196,0.15);
}
.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--purple-1);
	color: white;
	border: none;
	padding: 15px 26px;
	border-radius: var(--soft);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(91,58,158,0.22);
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.tf-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91,58,158,0.3); }
.tf-btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.tf-btn svg { width: 17px; height: 17px; }

/* ----- Resultado / estados ----- */
.result-zone { padding: 0 var(--inside-space) 8px; }

.state-msg {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 var(--inside-space) 26px;
	padding: 18px 20px;
	border-radius: var(--soft);
	font-size: 14.5px;
	line-height: 1.55;
}
.state-msg svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.state-msg a { font-weight: 700; text-decoration: underline; color: inherit; }
.state-msg.error { background: #fdeef2; color: #b03257; }
.state-msg.error svg { color: var(--accent-pink); }
.state-msg.empty { background: var(--cream); color: var(--gray-1); border: 1px dashed var(--gray-2); }
.state-msg.empty svg { color: var(--accent-orange); }

.loading-box { text-align: center; padding: 40px 0 50px; }
.spinner {
	width: 42px; height: 42px;
	margin: 0 auto 16px;
	border: 4px solid var(--color-2-b);
	border-top-color: var(--color-2-a);
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box p { margin: 0; color: var(--gray-1); font-weight: 600; }

/* tarjeta de envío */
.shipment {
	margin: 4px var(--inside-space) 30px;
	border: 1px solid var(--gray-2);
	border-radius: var(--soft);
	overflow: hidden;
}
.ship-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 22px;
	background: var(--purple-2);
}
.ship-head .guide { font-size: 13px; color: var(--gray-1); font-weight: 600; }
.ship-head .guide strong { display: block; font-size: 19px; color: var(--black-1); font-weight: 800; letter-spacing: 0.3px; }
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 18px;
	border-radius: var(--primary-radius);
	font-weight: 800;
	font-size: 14px;
	color: white;
	background: var(--gray-1);
}
.status-badge .sb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.9); }

.ship-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--gray-2);
}
.ship-cell { background: white; padding: 18px 22px; }
.cell-label {
	font-size: 11.5px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--gray-1);
	font-weight: 700;
	margin-bottom: 5px;
}
.cell-value { font-size: 15px; font-weight: 600; color: var(--black-1); }
.cell-value.muted { color: var(--gray-1); font-weight: 500; }

.carrier-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 18px 22px 4px;
	background: var(--color-2-a);
	color: white;
	padding: 12px 20px;
	border-radius: var(--primary-radius);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: transform .2s;
}
.carrier-link:hover { transform: translateY(-2px); }
.carrier-link svg { width: 15px; height: 15px; }

/* timeline */
.timeline { padding: 8px 22px 24px; }
.tl-title { font-weight: 800; font-size: 15px; color: var(--purple-1); margin: 12px 0 16px; }
.tl-item {
	position: relative;
	padding: 0 0 20px 26px;
	border-left: 2px solid var(--gray-2);
}
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot {
	position: absolute;
	left: -7px; top: 2px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--gray-2);
	border: 2px solid white;
}
.tl-item:first-child .tl-dot { background: var(--color-2-a); }
.tl-status { font-weight: 700; font-size: 14.5px; color: var(--black-1); }
.tl-meta { font-size: 12.5px; color: var(--gray-1); margin-top: 3px; }

/* nota inferior */
.fallback-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 13px 18px;
	background: var(--cream);
	border: 1px dashed var(--gray-2);
	border-radius: var(--soft);
	font-size: 13.5px;
	color: var(--gray-1);
	line-height: 1.5;
}
.fallback-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-1); }
.fallback-note a { color: var(--purple-1); font-weight: 700; text-decoration: underline; }

/* ========== PASOS ========== */
.steps { padding: 20px var(--inside-space) 60px; }
.steps-inner { max-width: 1280px; margin: 0 auto; }
.steps-eyebrow {
	display: block; text-align: center;
	font-family: var(--display-font);
	font-size: 26px; color: var(--green-1);
	transform: rotate(-1.5deg); margin-bottom: 4px;
}
.steps h2 { font-size: 32px; font-weight: 800; color: var(--purple-1); margin: 0 0 38px; letter-spacing: -0.02em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
	background: white; border: 1px solid var(--gray-2);
	border-radius: var(--soft); padding: 28px 24px;
	position: relative; transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.step-num { font-family: var(--display-font); font-size: 44px; font-weight: 700; line-height: 1; color: var(--color-2-a); margin-bottom: 14px; }
.step:nth-child(2) .step-num { color: var(--accent-orange); }
.step:nth-child(3) .step-num { color: var(--green-1); }
.step h3 { text-align: left; font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--black-1); }
.step p { margin: 0; color: var(--gray-1); font-size: 14px; line-height: 1.6; }
.step-icon { position: absolute; top: 24px; right: 22px; width: 30px; height: 30px; opacity: 0.9; }

/* ========== AYUDA ========== */
.help { padding: 0 var(--inside-space) 70px; }
.help-card {
	max-width: 1280px; margin: 0 auto;
	background: var(--purple-1); color: white;
	border-radius: 24px; padding: 46px 44px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.help-card::after {
	content: ""; position: absolute; right: -60px; bottom: -60px;
	width: 240px; height: 240px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.help-text { position: relative; z-index: 2; max-width: 540px; }
.help-text h2 { text-align: left; color: white; font-size: 28px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.help-text h2 .script { font-family: var(--display-font); font-style: italic; color: var(--accent-yellow); transform: rotate(-2deg); display: inline-block; }
.help-text p { margin: 0; font-size: 15px; line-height: 1.6; opacity: 0.92; }
.help-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; min-width: 250px; }
.help-btn {
	display: inline-flex; align-items: center; gap: 12px;
	background: white; color: var(--purple-1);
	padding: 14px 22px; border-radius: var(--soft);
	font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform .2s;
}
.help-btn:hover { transform: translateY(-2px); }
.help-btn.wa { background: var(--green-1); color: white; }
.help-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.help-btn small { display: block; font-weight: 500; opacity: 0.75; font-size: 11.5px; }

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 38px; }
	.hero-art { height: 300px; order: -1; }
	.track-form { grid-template-columns: 1fr; }
	.steps-grid { grid-template-columns: 1fr; }
	.help-card { flex-direction: column; align-items: flex-start; }
	.help-actions { width: 100%; }
}
@media screen and (max-width: 595px) {
	.hero { padding: 44px var(--inside-space) 28px; }
	.ship-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
