/* ==========================================================================
   L.I.F.O. Corporate Design System (Inspired by Spoke.com)
   ========================================================================== */
:root {
  --brand: #1D63FF;
  --brand-hover: #1550D6;
  --brand-soft: #F0F5FF;
  --navy-deep: #051129;
  --navy-mid: #0A1E46;
  --ink: #0F172A;
  --ink-secondary: #334155;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --line: #E2E8F0;
  --line-subtle: #EEF2F6;
  --green: #059669;
  --green-soft: #ECFDF5;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px -10px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Single Clean Corporate Navbar (Spoke Style) ── */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-subtle);
  z-index: 1000;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-link-secondary {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link-secondary:hover {
  color: var(--ink);
}
.nav-link-dev {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}
.nav-link-dev:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ── Menu Hambúrguer & Drawer Mobile ── */
.menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.menu-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  padding: 14px 20px 20px;
}
.mobile-drawer.active {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: block;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.drawer-divider {
  height: 1px;
  background: var(--line-subtle);
  margin: 6px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-hover);
}
.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-outline {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}
.btn-dark-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.btn-dark-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Sections & Editorial Headers ── */
section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line-subtle);
}
.section-alt {
  background: var(--bg-subtle);
}
.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.meta-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.editorial-divider {
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.sub {
  color: var(--ink-secondary);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Split Hero (Clean Corporate SaaS) ── */
.hero-split {
  padding: 72px 0 84px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.hero-visual-card {
  background: radial-gradient(85% 120% at 50% 0%, #163B88 0%, #091B40 60%, #051129 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-phone-frame {
  width: 100%;
  max-width: 260px;
  background: #0B0F19;
  padding: 8px 8px 12px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 44px rgba(0,0,0,0.4);
}
.hero-phone-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: #000;
}

/* ── Spoke-style Dark Navy Showcase Box ── */
.spoke-dark-box {
  background: radial-gradient(80% 120% at 50% 0%, #163B88 0%, #091B40 58%, #051129 100%);
  border-radius: var(--radius-xl);
  padding: 44px;
  color: #FFFFFF;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}
.spoke-dark-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.spoke-dark-box h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.spoke-dark-box p {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.65;
}
.spoke-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.spoke-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
}
.spoke-stat .val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}
.spoke-stat .lbl {
  font-size: 12.5px;
  color: #94A3B8;
  margin-top: 6px;
}

/* ── Clean Cards & Grids ── */
.grid {
  display: grid;
  gap: 24px;
}
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.clean-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.clean-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.clean-card h3, .clean-card h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.clean-card p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover {
  text-decoration: underline;
}

/* ── City List Pills ── */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0;
}
.city-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.city-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ── Status Dots ── */
.status-pill-demo {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-pill-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-pill.blue { background: var(--brand-soft); color: var(--brand); }
.status-pill.blue .status-pill-indicator { background: var(--brand); }
.status-pill.green { background: var(--green-soft); color: var(--green); }
.status-pill.green .status-pill-indicator { background: var(--green); }
.status-pill.red { background: var(--red-soft); color: var(--red); }
.status-pill.red .status-pill-indicator { background: var(--red); }

/* ── App Screens Showcase ── */
.app-screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.screen-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.screen-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}
.screen-mockup-wrapper {
  max-width: 230px;
  margin: 0 auto 14px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-subtle);
}
.screen-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}
.screen-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.screen-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.screen-card p {
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.screen-zoom-hint {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-top: auto;
  cursor: pointer;
}

/* ── Comparison Table ── */
.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #FFFFFF;
}
.compare-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-subtle);
}
.compare-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th.lifo-col, .compare-table td.lifo-col {
  background: #F8FAFF;
  border-left: 1px solid #BFDBFE;
  border-right: 1px solid #BFDBFE;
}
.compare-table th.lifo-col {
  color: var(--brand);
}
.badge-check {
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  display: inline-block;
}
.badge-cross {
  color: var(--muted);
  font-size: 13px;
}

/* ── Pricing ── */
.price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.price small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.pricing-featured {
  border: 2px solid var(--brand);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 6px;
}

/* ── FAQ ── */
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
}
details[open] summary::after { content: "−"; }
details p {
  margin-top: 12px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Spoke-Inspired Corporate CTA + Footer Block ── */
.spoke-bottom-wrapper {
  background: radial-gradient(70% 90% at 15% 15%, #0D2962 0%, #071636 55%, #051129 100%);
  color: #FFFFFF;
}
.spoke-cta-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.spoke-cta-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.spoke-cta-left {
  max-width: 540px;
}
.spoke-cta-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60A5FA;
  margin-bottom: 12px;
  display: block;
}
.spoke-cta-left h2 {
  color: #FFFFFF;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.spoke-cta-left p {
  color: #94A3B8;
  font-size: 15.5px;
  line-height: 1.6;
}
.spoke-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  padding: 64px 0 44px;
  color: #94A3B8;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 52px;
}
.footer-brand-col .logo {
  color: #FFFFFF;
  margin-bottom: 8px;
}
.footer-brand-sub {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 14px;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Lightbox Modal ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 17, 41, 0.9);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-modal.active { display: flex; }
.lightbox-content {
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  text-align: center;
}
.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.16);
  border: none;
  color: #FFF;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

@media(max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .spoke-dark-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 720px) {
  .nav-links { display: none; }
  .nav-link-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right { gap: 10px; }
}
@media(max-width: 580px) {
  .nav-right { gap: 8px; }
  .nav-link-dev { display: none; }
  nav .btn { padding: 8px 14px; font-size: 13px; }
  section { padding: 64px 0; }
  .spoke-dark-box { padding: 28px 20px; }
  .spoke-metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ── Live Package Tracker Search Box (Hero) ── */
.hero-track-box {
  margin-top: 26px;
  padding: 16px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  box-shadow: 0 8px 24px -10px rgba(29, 99, 255, 0.16);
}
.hero-track-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E40AF;
  margin-bottom: 10px;
}
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: lifoDotPulse 1.8s infinite;
}
@keyframes lifoDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-track-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 5px 6px 5px 12px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hero-track-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 99, 255, 0.14);
}
.hero-track-icon {
  color: #64748B;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.hero-track-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-track-input-wrap input::placeholder {
  text-transform: none;
  font-weight: 400;
  color: #94A3B8;
  letter-spacing: 0;
}
.hero-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: var(--brand);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s, transform 0.12s;
}
.hero-track-btn:hover { background: var(--brand-hover); }
.hero-track-btn:active { transform: scale(0.98); }
.hero-track-btn:disabled { opacity: 0.65; cursor: wait; }
.hero-track-feedback {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red);
  min-height: 0;
}
.hero-track-feedback:empty { display: none; }
.hero-track-feedback.is-info { color: var(--ink-secondary); }

/* ── Live Package Tracking Modal ── */
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 17, 41, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.track-modal.active { display: flex; }
.track-modal-shell {
  width: 100%;
  max-width: 820px;
  height: min(88vh, 720px);
  background: #0B1220;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
  display: flex;
  flex-direction: column;
}
.track-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.track-top-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.track-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.track-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.track-status-pill.is-live {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.track-status-pill.is-live .track-pill-dot {
  animation: lifoDotPulse 1.6s infinite;
}
.track-status-pill.is-paused {
  background: rgba(29, 99, 255, 0.18);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.45);
}
.track-status-pill.is-delivered {
  background: rgba(34, 197, 94, 0.18);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.track-status-pill.is-failed {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.38);
}
.track-barcode-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.track-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.track-icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.track-map-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
  background: #F8FAFC;
}
.track-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.track-pause-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #F8FAFC;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.track-pause-banner[hidden] { display: none; }
.track-pause-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(29, 99, 255, 0.22);
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-pause-banner strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #93C5FD;
  margin-bottom: 2px;
}
.track-pause-banner p {
  font-size: 12.2px;
  line-height: 1.4;
  color: #CBD5E1;
}
.track-floating-meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.9);
  color: #F8FAFC;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.track-floating-meta[hidden] { display: none; }
.track-bottom-card {
  background: #FFFFFF;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.track-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.track-seq-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 9px;
  border-radius: 999px;
}
.track-recipient-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #F1F5F9;
  padding: 3px 9px;
  border-radius: 999px;
}
.track-stops-headline {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}
.track-stop-address {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}
.track-card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Markers customizados MapLibre */
.lifo-dest-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.lifo-dest-badge {
  background: #0F172A;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
}
.lifo-dest-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1D63FF;
  border: 2.5px solid #FFFFFF;
  margin-top: 3px;
  box-shadow: 0 0 0 6px rgba(29, 99, 255, 0.22);
}
.lifo-vehicle-marker {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lifo-vehicle-rotator {
  width: 58px;
  height: 58px;
  transform-origin: center center;
  will-change: transform;
}

@media(min-width: 921px) {
  .hero-split.is-tracking-mode {
    padding: 28px 0 48px;
  }
  .hero-split.is-tracking-mode .hero-intro-copy,
  .hero-split.is-tracking-mode .hero-cta-block {
    display: none;
  }
  .hero-split.is-tracking-mode .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-split.is-tracking-mode .hero-track-box {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 18px;
  }
  .hero-split.is-tracking-mode .hero-track-label {
    margin-bottom: 0;
    white-space: nowrap;
  }
  .hero-split.is-tracking-mode .hero-track-form {
    flex: 1;
    max-width: 560px;
  }
  .hero-split.is-tracking-mode .hero-visual-card.is-tracking {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
  }
  .hero-visual-card.is-tracking .hero-phone-frame {
    display: none;
  }
  .hero-visual-card.is-tracking .track-modal-shell {
    position: relative;
    max-width: 100%;
    height: 600px;
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto 1fr;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-md);
  }
  .hero-visual-card.is-tracking .track-modal-top {
    grid-column: 1;
    grid-row: 1;
    padding: 18px 20px;
    border-right: none;
  }
  .hero-visual-card.is-tracking .track-top-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
  }
  .hero-visual-card.is-tracking .track-icon-btn {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  }
  .hero-visual-card.is-tracking .track-icon-btn:hover {
    background: #0F172A;
  }
  .hero-visual-card.is-tracking .track-bottom-card {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 20px;
    border-top: none;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
  }
  .hero-visual-card.is-tracking .track-stops-headline {
    font-size: 21px;
    margin-bottom: 8px;
  }
  .hero-visual-card.is-tracking .track-stop-address {
    font-size: 14px;
    line-height: 1.55;
  }
  .hero-visual-card.is-tracking .track-map-wrap {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 0;
    background: #F8FAFC;
  }
  .hero-visual-card.is-tracking .track-pause-banner {
    max-width: min(460px, calc(100% - 116px));
    left: 16px;
    right: auto;
  }
}

@media(max-width: 640px) {
  .track-modal { padding: 0; }
  .track-modal-shell {
    max-width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .hero-track-btn span { display: none; }
  .hero-track-btn { padding: 10px 12px; }
}
