/* ═══════════════════════════════════════════════
   JAGOS CARGO — Design System
   Colores originales mantenidos
═══════════════════════════════════════════════ */
:root {
  --red:       #e52820;
  --red-dark:  #9f1712;
  --red-light: #ff4a40;
  --ink:       #101217;
  --steel:     #2f3742;
  --muted:     #66707c;
  --ice:       #e9f4f7;
  --paper:     #f7f8f9;
  --white:     #fff;
  --line:      rgba(16, 18, 23, 0.1);
  --line-w:    rgba(255, 255, 255, 0.15);
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 24px 70px rgba(16, 18, 23, 0.18);
  --shadow-sm: 0 4px 18px rgba(16, 18, 23, 0.1);
  --trans:     0.22s ease;

  --max-w: 1280px;
  --pad-x: clamp(18px, 5vw, 70px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: Archivo, Inter, sans-serif;
  line-height: 1;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════
   PROMO BANNER
════════════════════════════════════════════ */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid rgba(229, 40, 32, 0.15);
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--trans);
  position: relative;
  flex-wrap: wrap;
}

.promo-banner:hover { background: #fdf2f2; }

.promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 40, 32, 0.1);
  color: var(--red);
  flex-shrink: 0;
}

.promo-icon svg { width: 18px; height: 18px; }

.promo-text { color: var(--steel); }
.promo-text strong { color: var(--ink); font-weight: 700; }

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: background var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}

.promo-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.promo-banner:hover .promo-cta {
  background: var(--red-dark);
  box-shadow: 0 4px 12px rgba(229, 40, 32, 0.3);
}

.promo-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background var(--trans), color var(--trans);
}

.promo-close:hover {
  background: rgba(16,18,23,0.08);
  color: var(--ink);
}

@media (max-width: 640px) {
  /* En móvil el banner estorba — se oculta */
  .promo-banner { display: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
  /* Tablet: compacto, sin texto largo */
  .promo-banner { gap: 8px; padding: 8px 16px; flex-wrap: nowrap; }
  .promo-icon { display: none; }
  .promo-text { display: none; }
  .promo-close { position: static; transform: none; margin-left: 4px; flex-shrink: 0; }
}


/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
.top-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 40px;
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}

.top-bar-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.top-bar-link.active {
  color: var(--white);
  background: var(--red);
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 var(--pad-x);
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  flex-shrink: 0;
}
.brand img { width: 88px; }
.brand span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--red);
  font-size: 1.05rem;
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
}

.header-search-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.header-ot-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
  padding: 0;
  height: 36px;
}

.header-ot-input::placeholder { color: #aab0b8; }

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
}

.header-search-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-search-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 16px rgba(229, 40, 32, 0.35);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--steel);
}

.header-nav a {
  transition: color var(--trans);
  white-space: nowrap;
}

.header-nav a:hover { color: var(--red); }

.login-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--red);
  background: var(--white);
  transition: background var(--trans), border-color var(--trans);
}

.login-nav-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.login-nav-link:hover { background: var(--paper); }

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  background: var(--red);
  border: 0;
  white-space: nowrap;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 8px 24px rgba(229, 40, 32, 0.28);
}

.header-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229, 40, 32, 0.38);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--trans);
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 112px; /* top-bar + header */
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(16,18,23,0.12);
  padding: 20px var(--pad-x);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mobile-drawer-search input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  font: inherit;
  font-size: 0.9rem;
}

.mobile-drawer-search button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-search button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-drawer-nav {
  display: grid;
  gap: 2px;
}

.mobile-drawer-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--steel);
}

.mobile-drawer-nav a:last-child { border-bottom: 0; }

.mobile-drawer-nav .mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  border-bottom: 0;
  margin-top: 8px;
}

/* ════════════════════════════════════════════
   HERO SLIDER
════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: clamp(480px, 70vh, 760px);
  background: var(--ink);
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.slide-1 {
  background-image:
    url("upload_2026/cargo-jagos.jpg");
}

.slide-2 {
  background-image:
    url("upload_2026/cargo-jagos.jpg");
}

.slide-3 {
  background-image:
    url("upload_2026/cargo-jagos.jpg");
}

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-1 .slide-overlay {
  background: linear-gradient(105deg, rgba(10,12,17,0.92) 38%, rgba(10,12,17,0.55) 100%);
}

.slide-2 .slide-overlay {
  background: linear-gradient(105deg, rgba(149,17,18,0.88) 0%, rgba(10,12,17,0.8) 55%, rgba(10,12,17,0.55) 100%);
}

.slide-3 .slide-overlay {
  background: linear-gradient(105deg, rgba(10,12,17,0.94) 38%, rgba(229,40,32,0.35) 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) var(--pad-x);
  color: var(--white);
}

.slide-content h1 {
  margin: 0 0 20px;
  max-width: 820px;
  line-height: 1.0;
}

.slide-desc {
  max-width: 580px;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  white-space: nowrap;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(229, 40, 32, 0.35);
}

.btn.primary:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 34px rgba(229, 40, 32, 0.48);
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background var(--trans), border-color var(--trans);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.4);
  padding: 0;
  transition: background var(--trans), width var(--trans);
  cursor: pointer;
}

.dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--white);
}

/* ════════════════════════════════════════════
   QUICK ACCESS — "¿Qué quieres enviar?"
════════════════════════════════════════════ */
.quick-access {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.quick-access-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.quick-access-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.quick-cards {
  display: flex;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quick-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--white);
  color: var(--steel);
  text-align: center;
  transition: background var(--trans), color var(--trans);
}

.quick-card:hover {
  background: var(--paper);
  color: var(--red);
}

.quick-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  transition: background var(--trans);
}

.quick-card:hover .quick-card-icon {
  background: rgba(229, 40, 32, 0.08);
}

.quick-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.quick-card-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-extras {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-extra-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.84rem;
  line-height: 1.3;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  white-space: nowrap;
}

.quick-extra-link:hover {
  background: rgba(229, 40, 32, 0.06);
  border-color: rgba(229, 40, 32, 0.2);
  color: var(--red);
}

.quick-extra-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.quick-extra-icon svg {
  width: 18px;
  height: 18px;
}

.quick-extra-link strong { display: block; }

/* ════════════════════════════════════════════
   TRACKING SECTION
════════════════════════════════════════════ */
.tracking-section {
  padding: clamp(60px, 9vw, 110px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 24px 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.section-head.centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head.centered .eyebrow { text-align: center; }

.track-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  max-width: 780px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

label {
  display: grid;
  gap: 6px;
  color: #4f5965;
  font-size: 0.84rem;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}

input, select { min-height: 46px; }

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 40, 32, 0.1);
}

textarea {
  padding: 12px 14px;
  resize: vertical;
}

.track-form button,
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 8px 22px rgba(229, 40, 32, 0.28);
  white-space: nowrap;
}

.track-form button:hover,
.contact-form button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229, 40, 32, 0.38);
}

button:disabled { cursor: wait; opacity: 0.7; }

.track-result {
  max-width: 780px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.track-result[hidden] { display: none; }
.track-result h3 { margin-bottom: 8px; }
.track-result p { margin: 5px 0; color: var(--muted); }

/* ════════════════════════════════════════════
   FEATURED SECTION — Destacados
════════════════════════════════════════════ */
.featured-section {
  background: var(--paper);
  padding: clamp(60px, 9vw, 110px) var(--pad-x);
}

.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 24px;
  background: var(--white);
  color: var(--ink);
  transition: background var(--trans), color var(--trans);
}

.featured-card:hover {
  background: var(--red);
  color: var(--white);
}

.featured-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(229, 40, 32, 0.08);
  color: var(--red);
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}

.featured-card:hover .featured-icon {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.featured-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.featured-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.featured-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.featured-card:hover p {
  color: rgba(255,255,255,0.82);
}

.featured-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--red);
  transition: color var(--trans);
}

.featured-card:hover .featured-link {
  color: var(--white);
}

/* ════════════════════════════════════════════
   SERVICES SECTION
════════════════════════════════════════════ */
.section.services {
  padding: clamp(60px, 9vw, 110px) var(--pad-x);
}

.section.services .section-head,
.section.services .service-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-grid article {
  min-height: 280px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background var(--trans);
}

.service-grid article:hover { background: var(--paper); }

.service-grid span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--red);
  font-family: Archivo, Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.service-grid h3 { margin-bottom: 12px; }
.service-grid p { color: var(--muted); font-size: 0.92rem; }

/* ════════════════════════════════════════════
   CONTACT SECTION
════════════════════════════════════════════ */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 48px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad-x);
}

.contact-band h2 { margin-bottom: 14px; }

.contact-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--steel);
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.contact-form .two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form button[type="submit"] { width: 100%; }

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.form-status[data-state="error"] { color: var(--red-dark); }
.form-status[data-state="success"] { color: #166534; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 60px var(--pad-x) 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-col { display: flex; flex-direction: column; gap: 14px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  color: var(--white);
}

.footer-brand img {
  width: 80px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand span {
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.2);
  color: var(--red-light);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-address {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.footer-col ul { display: grid; gap: 8px; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-up {
  color: rgba(255,255,255,0.5);
  transition: color var(--trans);
  white-space: nowrap;
}

.footer-up:hover { color: var(--white); }

/* ════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid rgba(229, 40, 32, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════
   RESPONSIVE — 1160px
════════════════════════════════════════════ */
@media (max-width: 1160px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — 1040px
════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
  }

  .header-search-label { display: none; }

  .header-search {
    padding: 6px 6px 6px 12px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .quick-access-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-access-title { white-space: normal; }

  .quick-extras {
    flex-direction: row;
    gap: 10px;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — 860px
════════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Hide desktop search + nav, show hamburger */
  .header-search,
  .header-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
    top: 112px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-bar-right { display: none; }

  .section-head {
    grid-template-columns: 1fr;
  }

  .track-form {
    grid-template-columns: 1fr;
  }

  .track-form button {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — 600px
════════════════════════════════════════════ */
@media (max-width: 600px) {
  .top-bar { display: none; }

  .mobile-drawer { top: 72px; }

  h1 { font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.05; }

  .slide-content { padding: 48px 20px; }
  .slide-desc { font-size: 0.97rem; }
  .slide-actions { flex-direction: column; }
  .btn { width: 100%; height: 48px; }

  .quick-access-inner {
    padding: 28px 20px;
  }

  .quick-cards {
    border-radius: var(--radius);
  }

  .quick-extras {
    flex-direction: column;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .two-cols {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ════════════════════════════════════════════
   LOGIN PAGE (existing login.html support)
════════════════════════════════════════════ */
.login-page, .office-page {
  min-height: 100vh;
  background:
    linear-gradient(110deg, rgba(16,18,23,0.96), rgba(16,18,23,0.78)),
    url("upload_2026/contacto-logistica.jpg") center/cover fixed;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: clamp(24px,5vw,70px);
}

.login-brand { width: fit-content; color: var(--white); }

.login-panel {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(320px,0.55fr);
  gap: clamp(32px,7vw,92px);
  align-items: center;
  max-width: 1180px;
  color: var(--white);
}

.login-panel h1 { font-size: clamp(2.6rem,6vw,5.4rem); }
.login-panel p:not(.eyebrow) { max-width: 640px; color: rgba(255,255,255,0.78); }

.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.admin-form label { color: rgba(255,255,255,0.78); }

.password-field { position: relative; display: block; width: 100%; }
.password-field input { padding-right: 48px; }

.password-toggle {
  position: absolute; top: 50%; right: 8px;
  width: 36px; height: 36px; min-height: 36px;
  padding: 0; border: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
}

.password-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.password-toggle .eye-closed { display: none; }
.password-toggle[data-visible="true"] .eye-open { display: none; }
.password-toggle[data-visible="true"] .eye-closed { display: block; }

.session-bar {
  grid-column: 1/-1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
}

.session-bar span { color: rgba(255,255,255,0.82); font-weight: 900; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.office-grid { display: grid; grid-template-columns: minmax(280px,0.62fr) minmax(360px,1fr); gap: 16px; }
.office-private { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.office-private[hidden] { display: none; }

.office-dashboard {
  padding: clamp(58px,8vw,108px) clamp(20px,5vw,70px);
  color: var(--white);
}

.dashboard-head { margin-bottom: 36px; }
.dashboard-head h1 { font-size: clamp(2.6rem,6vw,5.4rem); }
.dashboard-head p { max-width: 640px; color: rgba(255,255,255,0.78); }

/* ════════════════════════════════════════════
   SHIPMENTS PANEL — Lista y filtros
════════════════════════════════════════════ */

/* Sección crear envío: formulario horizontal */
.office-create-section {
  margin-bottom: 20px;
}

.admin-form--inline {
  display: grid;
  gap: 16px;
}

.create-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.create-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.create-footer button[type="submit"] {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sección tabla: ancho completo */
.office-table-section {
  width: 100%;
}


.shipments-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.shipments-panel h3 {
  color: var(--white);
  margin-bottom: 4px;
}

/* Filtros */
.shipments-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  flex: 1 1 140px;
}

.filter-label input {
  min-width: 0;
}

.btn-filter-clear {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  align-self: flex-end;
  white-space: nowrap;
}

.btn-filter-clear:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* Tabla */
.shipments-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}


.shipments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.shipments-table thead {
  background: transparent;
}

.shipments-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  background: rgba(16,18,23,0.95);
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12);
  white-space: nowrap;
}

.shipments-table td {
  padding: 9px 12px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
  white-space: nowrap;
  /* border-left en primera columna se maneja con border-radius del wrap */
}

.shipments-table tr[data-row]:hover td {
  background: rgba(255,255,255,0.06);
}

.shipments-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}

.td-tracking {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white) !important;
}

.shipments-empty-row td {
  text-align: center;
  padding: 28px 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-bodega {
  background: rgba(249,115,22,0.18);
  color: #fb923c;
  border: 1px solid rgba(249,115,22,0.35);
}

.badge-transito {
  background: rgba(59,130,246,0.18);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.35);
}

.badge-destino {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.35);
}

/* Barra de acción en lote */
.bulk-action-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(229,40,32,0.15);
  border: 1px solid rgba(229,40,32,0.3);
  animation: slideDown 0.2s ease;
}

.bulk-action-bar.active {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bulk-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.bulk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.bulk-label select {
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(16,18,23,0.6);
  color: var(--white);
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-bulk-update {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
  white-space: nowrap;
}

.btn-bulk-update:hover { background: var(--red-dark); }
.btn-bulk-update:disabled { opacity: 0.55; cursor: not-allowed; }

.bulk-action-bar .form-status {
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 660px) {
  .login-panel { grid-template-columns: 1fr; gap: 22px; }
  .login-panel h1 { font-size: clamp(2.1rem,11vw,3rem); line-height: 1; }
  .office-grid { grid-template-columns: 1fr; }
  .shipments-filters { flex-direction: column; }
  .create-fields { grid-template-columns: 1fr 1fr; }
}


/* ════════════════════════════════════════════
   PAGINATION BAR
════════════════════════════════════════════ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 4px 2px;
}

.pag-info {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  white-space: nowrap;
}

.pag-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pag-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}

.pag-btn svg {
  width: 14px;
  height: 14px;
}

.pag-btn:hover:not(:disabled):not(.pag-btn--active) {
  background: rgba(255,255,255,0.13);
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}

.pag-btn--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  cursor: default;
}

.pag-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.pag-ellipsis {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  padding: 0 4px;
  line-height: 32px;
}

/* ════════════════════════════════════════════
   ROW ACTION BUTTONS (Editar / Eliminar)
════════════════════════════════════════════ */
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-row-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--trans), opacity var(--trans);
  white-space: nowrap;
  line-height: 1;
}

.btn-row-edit {
  background: rgba(59,130,246,0.18);
  color: #60a5fa;
  border-color: rgba(59,130,246,0.35);
}
.btn-row-edit:hover {
  background: rgba(59,130,246,0.32);
}

.btn-row-delete {
  background: rgba(229,40,32,0.15);
  color: #f87171;
  border-color: rgba(229,40,32,0.32);
}
.btn-row-delete:hover {
  background: rgba(229,40,32,0.3);
}

/* Fila en modo confirmar-eliminar */
tr.row-confirming td {
  background: rgba(229,40,32,0.08) !important;
}

.delete-confirm-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.delete-confirm-inline span {
  font-size: 0.75rem;
  color: #f87171;
  font-weight: 600;
}
.btn-confirm-yes {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-confirm-yes:hover { background: var(--red-dark); }
.btn-confirm-no {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-confirm-no:hover { background: rgba(255,255,255,0.18); }

/* ════════════════════════════════════════════
   EDIT MODAL
════════════════════════════════════════════ */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,12,18,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.edit-modal-overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.edit-modal {
  width: 100%;
  max-width: 520px;
  background: #161b24;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  padding: 28px;
  animation: slideUp 0.22s ease;
  display: grid;
  gap: 16px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edit-modal-header h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--trans);
}
.btn-modal-close:hover { color: var(--white); }

.edit-modal form {
  display: grid;
  gap: 12px;
}

.edit-modal label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
}

.edit-modal .two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.edit-modal input,
.edit-modal select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  color: var(--white);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
  transition: border-color var(--trans);
}
.edit-modal input:focus,
.edit-modal select:focus {
  outline: none;
  border-color: rgba(59,130,246,0.6);
}
.edit-modal select option { background: #161b24; }

.edit-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.btn-modal-save {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-modal-save:hover:not(:disabled) { background: var(--red-dark); }
.btn-modal-save:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-modal-cancel {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-modal-cancel:hover { background: rgba(255,255,255,0.14); }

.modal-status {
  font-size: 0.82rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.modal-status[data-state="error"]   { color: #f87171; }
.modal-status[data-state="success"] { color: #4ade80; }

@media (max-width: 540px) {
  .edit-modal .two-cols { grid-template-columns: 1fr; }
}

