:root {
  --blue-50: #eff9ff;
  --blue-100: #dff3ff;
  --blue-200: #bce8ff;
  --blue-500: #00adef;
  --blue-600: #087fca;
  --blue-700: #176fc0;
  --blue-800: #14599a;
  --ink: #10233a;
  --muted: #64748b;
  --line: #e5edf5;
  --white: #ffffff;
  --success: #078c63;
  --warning: #f59e0b;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 35, 58, .10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(0,173,239,.08), transparent 35%),
    #f7fafc;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* HEADER */

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(229,237,245,.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  color: var(--blue-800);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  font-size: 1rem;
  letter-spacing: -.02em;
}

.header-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-size: .9rem;
  font-weight: 750;
}

.wa-dot {
  color: #16a36b;
  font-size: .8rem;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0a77c7 0%, #176fc0 46%, #0d5ca7 100%);
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -65% -10%;
  height: 420px;
  background: radial-gradient(
    ellipse,
    rgba(0,173,239,.32) 0%,
    rgba(0,173,239,0) 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 70px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.hero-glow-one {
  width: 380px;
  height: 380px;
  right: -150px;
  top: -180px;
  background: rgba(0,173,239,.28);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  left: -140px;
  bottom: -160px;
  background: rgba(255,255,255,.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.hero h1 {
  margin: 17px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,.88);
  font-size: 1.06rem;
}

.tracking-form {
  width: min(850px, 100%);
  margin: 0 auto;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(4,39,73,.22);
}

.search-icon {
  padding-left: 14px;
  color: var(--blue-600);
  font-size: 1.6rem;
  line-height: 1;
}

.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 15px 8px;
  font-size: 1rem;
  font-weight: 600;
}

.search-wrap input::placeholder {
  color: #9aa8b8;
  font-weight: 500;
}

.search-wrap button {
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  padding: 0 24px;
  background: var(--blue-700);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.search-wrap button:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}

.search-wrap button:disabled {
  opacity: .8;
  cursor: wait;
  transform: none;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.loading .button-loader {
  display: inline-block;
}

.loading .button-label {
  display: none;
}

.search-note {
  margin-top: 12px;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
}

.search-note span {
  color: #8df0ca;
  font-weight: 900;
}

.quick-help {
  margin-top: 24px;
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 650;
}

/* CONTENT */

.content-section {
  padding: 34px 0 70px;
}

.message {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  font-size: .93rem;
}

.message.error {
  border-color: #f5c9c4;
  background: #fff6f5;
  color: var(--danger);
}

.message.loading {
  border-color: var(--blue-200);
  background: var(--blue-50);
  color: var(--blue-800);
}

.message.success {
  border-color: #bfead9;
  background: #f1fcf7;
  color: #087653;
}

/* RESULT */

.result {
  margin-bottom: 30px;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.current-status {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(0,173,239,.10), rgba(23,111,192,.07)),
    white;
  border-bottom: 1px solid var(--line);
}

.status-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(23,111,192,.20);
}

.status-copy > span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-700);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.status-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -.03em;
}

.status-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.shipment-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.data-item {
  padding: 20px 22px;
  min-width: 0;
}

.data-item + .data-item {
  border-left: 1px solid var(--line);
}

.data-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.data-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .92rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.secondary-button,
.whatsapp-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: white;
  color: var(--blue-700);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.whatsapp-inline {
  border-color: #bce9d8;
  background: #f2fcf7;
  color: #078c63;
}

/* TIMELINE */

.timeline-section {
  padding: 28px 30px 34px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-700);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.timeline-heading h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -.025em;
}

.timeline {
  position: relative;
  margin-top: 26px;
  max-width: 720px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 15px;
  min-height: 68px;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -4px;
  width: 2px;
  background: #dce5ee;
}

.timeline-marker {
  z-index: 1;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f5;
  color: #9aa7b4;
  font-size: .82rem;
  font-weight: 900;
}

.timeline-item.completed .timeline-marker {
  background: var(--success);
  color: white;
}

.timeline-item.current .timeline-marker {
  background: var(--warning);
  color: white;
  box-shadow: 0 0 0 6px rgba(245,158,11,.13);
}

.timeline-content {
  padding-bottom: 22px;
}

.timeline-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title-row strong {
  font-size: .94rem;
}

.timeline-item.pending .timeline-title-row strong {
  color: #9aa7b4;
}

.timeline-item.current .timeline-title-row strong {
  color: var(--blue-800);
}

.timeline-content small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}

.timeline-content p {
  max-width: 600px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.timeline-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff5dc;
  color: #a86600;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.pending-badge {
  background: #f1f4f7;
  color: #8996a3;
}

/* HELP */

.help-card,
.how-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(16,35,58,.05);
}

.help-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.help-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 900;
}

.help-card h2 {
  margin: 0;
  font-size: 1rem;
}

.help-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.whatsapp-button {
  margin-left: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 10px;
  background: #0b9a69;
  color: white;
  font-size: .82rem;
  font-weight: 850;
}

.whatsapp-symbol {
  font-size: .7rem;
}

.how-card {
  padding: 28px 24px;
}

.how-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.step {
  display: flex;
  gap: 13px;
  padding: 17px;
  border-radius: 15px;
  background: #f8fafc;
}

.step-number {
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 900;
}

.step strong {
  font-size: .84rem;
}

.step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--line);
  background: white;
  color: #718096;
  font-size: .72rem;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-800);
  font-weight: 800;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ANIMATION */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE */

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1080px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-help {
    font-size: .75rem;
  }

  .hero-content {
    padding: 54px 0 55px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .search-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .search-icon {
    display: none;
  }

  .search-wrap input {
    padding: 15px 12px;
  }

  .search-wrap button {
    width: 100%;
  }

  .shipment-data {
    grid-template-columns: 1fr 1fr;
  }

  .data-item + .data-item {
    border-left: 0;
  }

  .data-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .data-item:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .current-status {
    padding: 23px 20px;
  }

  .timeline-section {
    padding: 25px 20px 30px;
  }

  .help-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .whatsapp-button {
    margin-left: 0;
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .header-help {
    font-size: .72rem;
  }

  .hero-copy {
    font-size: .94rem;
  }

  .shipment-data {
    grid-template-columns: 1fr;
  }

  .data-item:nth-child(n) {
    border-left: 0;
  }

  .data-item + .data-item {
    border-top: 1px solid var(--line);
  }

  .result-actions {
    flex-direction: column;
  }

  .secondary-button,
  .whatsapp-inline {
    width: 100%;
  }
}
