:root {
  --turquesa: #00b8a9;
  --turquesa-2: #08d4c3;
  --turquesa-soft: #e9fffc;
  --oscuro: #102a43;
  --oscuro-2: #071d33;
  --amarillo: #f9c80e;
  --rojo: #f86624;
  --gris: #607083;
  --borde: #d9e5ee;
  --fondo: #f4f8fb;
  --blanco: #ffffff;
  --sombra: 0 16px 38px rgba(16, 42, 67, .11);
  --radio: 18px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--oscuro);
  line-height: 1.55;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 184, 169, .18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(249, 200, 14, .14), transparent 24rem),
    linear-gradient(180deg, #f9fcfd 0%, var(--fondo) 100%);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 28px rgba(0, 184, 169, .16);
  z-index: 20;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: var(--oscuro);
  border-bottom: 6px solid var(--turquesa);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(16, 42, 67, .18);
}

.header-inner,
.main-wrap,
.site-footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: min(310px, 60vw);
  max-height: 76px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  padding: 10px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a,
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: var(--turquesa);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 184, 169, .22);
  transition: transform .16s ease, background .16s ease;
}

.nav a {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.nav a:hover,
.btn:hover {
  transform: translateY(-1px);
  background: var(--turquesa-2);
}

.btn.secondary {
  background: var(--oscuro);
  box-shadow: 0 10px 22px rgba(16, 42, 67, .18);
}

.main-wrap {
  padding: 30px 0 38px;
}

.tracking-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(310px, .62fr);
  gap: 20px;
  align-items: start;
}

.tracking-copy,
.panel,
.order-card {
  min-width: 0;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.tracking-copy,
.panel {
  padding: 24px;
}

.tracking-copy {
  border-left: 6px solid var(--turquesa);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--turquesa);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

p {
  color: #344f67;
  font-size: 16px;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.trust-list > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid #e2ecf3;
  border-radius: 14px;
}

.trust-list strong,
.trust-list span:not(.trust-icon) {
  display: block;
}

.trust-list span:not(.trust-icon) {
  color: #52677b;
  font-size: 13px;
  line-height: 1.35;
}

.trust-list strong {
  font-size: 14px;
  line-height: 1.25;
}

.trust-icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--turquesa-soft);
  color: var(--turquesa);
  border: 1px solid rgba(0, 184, 169, .28);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracking-panel {
  position: sticky;
  top: 20px;
  border-color: rgba(0, 184, 169, .32);
  box-shadow: var(--sombra), 0 0 34px rgba(0, 184, 169, .14);
}

label {
  display: block;
  margin: 0 0 8px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cad9e5;
  border-radius: 16px;
  background: #fff;
  color: var(--oscuro);
  font: inherit;
  font-size: 17px;
  outline: none;
}

input:focus {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 4px rgba(0, 184, 169, .12);
}

form .btn {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
}

.tracking-help {
  margin: 14px 0 0;
  color: var(--gris);
  font-size: 13px;
}

.tracking-result {
  margin-top: 26px;
}

.notice {
  padding: 18px 20px;
  border-radius: 16px;
  border-left: 5px solid var(--turquesa);
  background: #ecfffc;
  color: var(--oscuro);
  box-shadow: 0 12px 24px rgba(16, 42, 67, .08);
}

.notice.error {
  border-left-color: var(--rojo);
  background: #fff0e9;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.order-card {
  overflow: hidden;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: var(--oscuro);
  color: #fff;
}

.order-card-head span {
  display: block;
  margin-bottom: 6px;
  color: #bfeee9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.order-card-head strong {
  font-size: clamp(20px, 4vw, 30px);
}

.order-card-head mark {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--oscuro);
  font-weight: 900;
  white-space: nowrap;
}

.order-card-body {
  padding: 26px 28px 30px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-grid > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2ecf3;
  border-radius: 14px;
  background: #f8fbfd;
}

.metric-grid span {
  display: block;
  color: var(--gris);
  font-size: 14px;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.panel.compact {
  margin-top: 18px;
  padding: 20px;
  box-shadow: none;
  border-radius: 16px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c7d8f;
}

.timeline-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #cbdbe8;
  background: #fff;
  flex: 0 0 22px;
}

.timeline-step.is-done {
  color: var(--oscuro);
}

.timeline-step.is-done span {
  border-color: rgba(0, 184, 169, .2);
  background: var(--turquesa);
}

.timeline-step.is-cancelled span {
  background: var(--rojo);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e2ecf3;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #e8f0f5;
  vertical-align: top;
}

.data-table th {
  background: #f0fffd;
  color: var(--oscuro);
  font-size: 13px;
  text-transform: uppercase;
}

.order-item-cell {
  width: 86px;
}

.order-item-thumb {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef5f8;
  border: 1px solid #dce8ef;
  box-shadow: 0 8px 16px rgba(16, 42, 67, .08);
}

.order-item-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f8fb;
  color: var(--gris);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  padding: 16px;
  background: #f8fbfd;
  border: 1px solid #e2ecf3;
  border-radius: 14px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 0 40px;
  color: #52677b;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer a {
  color: var(--oscuro);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .site-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .tracking-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tracking-panel {
    position: static;
    order: -1;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 10px;
  }

  .header-inner,
  .main-wrap,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .brand img {
    width: min(100%, 310px);
    max-height: 74px;
  }

  .main-wrap {
    padding: 16px 0 26px;
  }

  .tracking-copy,
  .panel,
  .order-card-body {
    padding: 18px;
  }

  .tracking-copy {
    border-left-width: 4px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(31px, 11vw, 46px);
  }

  .trust-list > div {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 10px;
  }

  .trust-icon {
    width: 38px;
    height: 38px;
  }

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

  .order-card-head {
    display: grid;
    padding: 20px;
  }

  .order-card-head mark {
    justify-self: start;
  }

  input {
    min-height: 50px;
    font-size: 16px;
  }

  .nav a,
  .btn {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 16px;
  }
}
