:root {
  --green: #16834a;
  --green-dark: #126d3f;
  --green-soft: #eaf7ef;
  --ink: #171717;
  --muted: #6f6f73;
  --line: #e8e8ea;
  --surface: #ffffff;
  --canvas: #f2f7f3;
  --success: #198754;
  --danger: #c83e32;
  --warning: #b86a00;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(18, 104, 58, .13);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.auth-security-note {
  background: var(--green-soft);
  border: 1px solid #c7e9d2;
  border-radius: 11px;
  color: #285b3d;
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0 0;
  padding: 11px 13px;
  text-align: center;
}

.primary-admin-badge {
  background: #171717;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 13px;
}

.access-panel { overflow: hidden; }
.access-list { display: grid; }
.access-device-card {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 24px;
}
.access-device-card:first-child { border-top: 0; }
.access-device-card--current { background: linear-gradient(90deg, var(--green-soft), #fff 35%); }
.access-device-icon {
  align-items: center;
  background: #171717;
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-size: 24px;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.access-device-main { min-width: 0; }
.access-device-title { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.access-device-title strong { display: block; font-size: 16px; }
.access-device-title span { color: var(--muted); display: block; font-size: 13px; margin-top: 4px; }
.access-badges { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.access-badges span { margin: 0; }
.access-status, .access-current, .access-live-dot {
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
}
.access-status--approved { background: #e7f7ee; color: #146c43 !important; }
.access-status--pending { background: #fff3cd; color: #8a6200 !important; }
.access-status--denied, .access-status--revoked { background: #fbe9e7; color: #a52f28 !important; }
.access-current { background: var(--green); color: #fff !important; }
.access-live-dot { background: #e7f7ee; color: #146c43 !important; }
.access-live-dot::before { background: #20a464; border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-right: 6px; width: 7px; }
.access-device-details {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin: 20px 0 0;
}
.access-device-details div { min-width: 0; }
.access-device-details dt { color: var(--muted); font-size: 11px; font-weight: 750; margin-bottom: 5px; text-transform: uppercase; }
.access-device-details dd { font-size: 13px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.access-device-details small { color: var(--muted); display: block; font-size: 11px; font-weight: 500; margin-top: 3px; }
.access-user-agent { margin-top: 15px; }
.access-user-agent summary { color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.access-user-agent p { background: var(--canvas); border-radius: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 9px 0 0; overflow-wrap: anywhere; padding: 10px; }
.access-device-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; min-width: 132px; }
.access-device-actions form, .access-device-actions button { width: 100%; }
.current-session-label { color: var(--muted); font-size: 11px; font-weight: 700; max-width: 130px; text-align: right; }
.security-explanation {
  background: #f0f9f3;
  border: 1px solid #c9ead5;
  border-radius: 14px;
  color: #315b3d;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 18px;
  padding: 16px 18px;
}

.worker-management { margin-bottom: 20px; }
.worker-management-grid { display: grid; gap: 24px; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); padding: 0 24px 24px; }
.worker-create-form { background: var(--canvas); border-radius: 14px; padding: 18px; }
.worker-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.worker-list article { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding: 15px 17px; }
.worker-list article:first-child { border-top: 0; }
.worker-list strong, .worker-list span, .worker-list small, .worker-list time { display: block; }
.worker-list span, .worker-list small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.worker-list time { font-size: 13px; font-weight: 700; margin-top: 4px; }
.worker-list-meta { align-items: center; display: flex; gap: 18px; }
.worker-list-meta form { margin: 0; }
.worker-portal-url { background: var(--green-soft); border-radius: 0 0 14px 14px; color: #285b3d; font-size: 13px; overflow-wrap: anywhere; padding: 14px 24px; }
.creator-cell strong, .creator-cell small, .creator-email { display: block; }
.creator-cell small, .creator-email { color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .worker-management-grid { grid-template-columns: 1fr; }
  .access-device-card { grid-template-columns: 44px minmax(0, 1fr); }
  .access-device-icon { border-radius: 12px; font-size: 21px; height: 44px; width: 44px; }
  .access-device-actions { align-items: stretch; flex-direction: row; grid-column: 2; min-width: 0; }
  .access-device-actions form { flex: 1; }
  .current-session-label { max-width: none; text-align: left; }
  .access-device-details { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (max-width: 620px) {
  .worker-management-grid { padding: 0 14px 18px; }
  .worker-list article { align-items: flex-start; flex-direction: column; }
  .worker-list-meta { align-items: flex-start; flex-direction: column; width: 100%; }
  .access-device-card { gap: 12px; grid-template-columns: 38px minmax(0, 1fr); padding: 18px 14px; }
  .access-device-icon { border-radius: 10px; font-size: 18px; height: 38px; width: 38px; }
  .access-device-title { display: block; }
  .access-badges { justify-content: flex-start; margin-top: 10px; }
  .access-device-details { grid-template-columns: 1fr 1fr; }
  .access-device-actions { flex-direction: column; }
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #2a9a5a, var(--green));
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(22, 131, 74, .28);
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 27px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  transform: rotate(-4deg);
  width: 54px;
}
.brand-mark span { transform: rotate(4deg); }
.brand-mark--small { border-radius: 12px; font-size: 19px; height: 40px; width: 40px; }
.brand-image { display: block; height: 54px; max-width: 180px; object-fit: contain; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 720;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--green); box-shadow: 0 10px 24px rgba(22, 131, 74, .27); color: #fff; }
.button--primary:hover { background: var(--green-dark); }
.button--dark { background: var(--ink); color: white; }
.button--light { background: white; border-color: var(--line); color: var(--ink); }
.button--block { width: 100%; }
.button--small { min-height: 38px; padding: 0 14px; }

.eyebrow {
  color: var(--green-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.public-page { background: #fff; min-height: 100vh; }
.public-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 28px;
}
.brand, .auth-brand, .sidebar-brand { align-items: center; display: flex; gap: 13px; }
.brand strong, .auth-brand strong { display: block; font-size: 16px; }
.brand small, .auth-brand small { color: var(--muted); display: block; font-size: 12px; margin-top: 3px; }
.admin-link { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 6px 0; }

.public-page main { margin: 0 auto; max-width: 1180px; padding: 0 28px 60px; }
.tracking-hero {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(255,255,255,.35), transparent 35%),
    linear-gradient(130deg, #eef8f1 0%, #d8f0e0 55%, #9ad4ae 100%);
  border-radius: 32px;
  display: grid;
  gap: 50px;
  grid-template-columns: 1.05fr .95fr;
  min-height: 430px;
  overflow: hidden;
  padding: 64px;
  position: relative;
}
.tracking-hero::after {
  border: 45px solid rgba(255,255,255,.22);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -95px;
  top: -100px;
  width: 240px;
}
.tracking-copy { position: relative; z-index: 1; }
.tracking-copy h1 { font-size: clamp(42px, 5.2vw, 70px); letter-spacing: -.055em; line-height: .98; margin: 0; max-width: 650px; }
.tracking-copy p { color: #46544a; font-size: 17px; line-height: 1.65; margin: 24px 0 0; max-width: 510px; }
.tracking-form {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(18, 104, 58, .16);
  padding: 28px;
  position: relative;
  z-index: 1;
}
.tracking-form label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.tracking-input-row { display: flex; gap: 9px; }
.tracking-input-row input { min-width: 0; text-transform: uppercase; }
.tracking-form small { color: var(--muted); display: block; font-size: 11px; margin-top: 11px; }

input, select, textarea {
  background: #fff;
  border: 1px solid #dcdcdf;
  border-radius: 11px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 131, 74, .14); }
input[readonly] { background: #f4f4f5; color: #444; }

.tracking-result, .not-found-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin: -34px 34px 0;
  padding: 38px;
  position: relative;
  z-index: 2;
}
.not-found-card { margin-top: 32px; text-align: center; }
.not-found-icon { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green); display: inline-flex; font-size: 24px; font-weight: 800; height: 58px; justify-content: center; width: 58px; }
.not-found-card h2 { margin: 16px 0 8px; }
.not-found-card p { color: var(--muted); margin: 0 auto; max-width: 580px; }
.result-header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 25px; }
.result-header h2 { font-size: 34px; letter-spacing: -.04em; margin: 0; }
.status-pill { background: #f0f0f1; border-radius: 999px; color: #555; display: inline-block; font-size: 11px; font-weight: 800; padding: 7px 10px; white-space: nowrap; }
.status-registered { background: #eef3ff; color: #365fba; }
.status-warehouse { background: #fff4d9; color: #9b6300; }
.status-in_transit { background: var(--green-soft); color: var(--green-dark); }
.status-destination { background: #eeeaff; color: #6348bd; }
.status-delivered { background: #e5f6ed; color: #157448; }
.status-cancelled { background: #fdeaea; color: #b33838; }
.result-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); padding: 28px 0; }
.result-grid div, .shipment-summary { display: flex; flex-direction: column; gap: 6px; }
.result-grid span, .shipment-summary span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.result-grid strong { font-size: 14px; }
.shipment-summary { background: #fafafa; border-radius: 15px; padding: 18px; }
.shipment-summary small { color: var(--muted); }
.current-status-card { background: linear-gradient(135deg, #edf8f1, #fff); border: 1px solid #c9ead5; border-radius: 16px; display: grid; gap: 15px; grid-template-columns: 18px 1fr; margin-top: 24px; padding: 19px; }
.current-status-dot { background: var(--green); border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--green), 0 0 0 7px var(--green-soft); height: 15px; margin: 5px 0 0 2px; width: 15px; }
.current-status-card strong { color: var(--green-dark); font-size: 17px; }
.current-status-card p { color: #46544a; font-size: 14px; line-height: 1.55; margin: 6px 0 8px; }
.current-status-card time { color: var(--muted); font-size: 11px; }
.public-products { background: #fafafa; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.public-products-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 16px 18px; }
.public-products-heading > div { display: flex; flex-direction: column; gap: 4px; }
.public-products-heading span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.public-products-heading strong { font-size: 13px; }
.public-product-list article { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 1fr auto auto; padding: 14px 18px; }
.public-product-list article:last-child { border: 0; }
.public-product-list article > div { display: flex; flex-direction: column; gap: 4px; }
.public-product-list article strong { font-size: 12px; }
.public-product-list article small, .public-product-list article span { color: var(--muted); font-size: 10px; }
.timeline-section { margin-top: 32px; }
.timeline-section h3 { font-size: 18px; margin: 0 0 20px; }
.timeline { margin-left: 7px; }
.timeline-item { display: grid; gap: 18px; grid-template-columns: 16px 1fr; padding-bottom: 25px; position: relative; }
.timeline-item:not(:last-child)::before { background: var(--line); content: ""; height: 100%; left: 7px; position: absolute; top: 13px; width: 2px; }
.timeline-dot { background: #c7c7c9; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #c7c7c9; height: 14px; margin-top: 3px; position: relative; width: 14px; z-index: 1; }
.current .timeline-dot { background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 0 6px var(--green-soft); }
.timeline-title { align-items: center; display: flex; gap: 15px; justify-content: space-between; }
.timeline-title time { color: var(--muted); font-size: 12px; }
.timeline-item p { color: #4d4d50; font-size: 14px; margin: 7px 0 4px; }
.timeline-item small { color: var(--muted); }
.trust-row { border-top: 1px solid var(--line); display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); margin-top: 70px; padding-top: 38px; }
.trust-row div > span { color: var(--green); display: block; font-size: 11px; font-weight: 800; margin-bottom: 15px; }
.trust-row strong { display: block; font-size: 17px; }
.trust-row p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.public-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 12px; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 25px 28px 40px; }

/* Portada pública 2.0 */
.public-page .public-main { margin: 0; max-width: none; padding: 0; }
.public-header { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(20,20,20,.08); margin: 0; max-width: none; padding: 0; position: sticky; top: 0; z-index: 80; }
.public-header-inner { align-items: center; display: flex; height: 78px; justify-content: space-between; margin: 0 auto; max-width: 1500px; padding: 0 32px; width: 100%; }
.public-header .brand-image--compact { height: 44px; max-width: 215px; width: auto; }
.public-nav { align-items: center; display: flex; gap: 30px; }
.public-nav a { color: #55545a; font-size: 12px; font-weight: 780; letter-spacing: .055em; text-transform: uppercase; }
.public-nav a:hover { color: var(--green-dark); }
.public-nav .public-nav-cta { background: var(--green); border-radius: 10px; color: #fff; padding: 13px 18px; }
.public-menu-button { background: transparent; border: 0; color: var(--ink); display: none; font-size: 25px; padding: 8px; }

.home-hero { min-height: 720px; overflow: hidden; position: relative; }
.home-hero-media { height: 100%; inset: 0; object-fit: cover; object-position: center; position: absolute; width: 100%; }
.home-hero-shade { background: linear-gradient(90deg, rgba(9,9,10,.96) 0%, rgba(9,9,10,.83) 37%, rgba(9,9,10,.32) 68%, rgba(9,9,10,.2) 100%); inset: 0; position: absolute; }
.home-hero-shade::after { background: linear-gradient(120deg, transparent 49%, rgba(22,131,74,.88) 49.1%, rgba(12,83,45,.96) 100%); content: ""; inset: 0; opacity: .32; position: absolute; }
.home-hero-content { align-items: center; display: grid; gap: 80px; grid-template-columns: 1.08fr .92fr; margin: 0 auto; max-width: 1280px; min-height: 720px; padding: 80px 42px; position: relative; z-index: 2; }
.home-hero-copy { color: #fff; max-width: 660px; }
.hero-kicker, .card-kicker { color: #50ad76; display: block; font-size: 11px; font-weight: 850; letter-spacing: .18em; margin-bottom: 17px; text-transform: uppercase; }
.home-hero-copy h1 { font-size: clamp(56px, 6.7vw, 100px); letter-spacing: -.065em; line-height: .9; margin: 0; max-width: 720px; }
.home-hero-copy p { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.7; margin: 28px 0 32px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--glass { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.38); color: #fff; }
.button--glass:hover { background: rgba(255,255,255,.15); }
.hero-tracking-card { background: rgba(255,255,255,.97); border-radius: 26px; box-shadow: 0 30px 80px rgba(18,104,58,.24); justify-self: end; max-width: 475px; padding: 38px; scroll-margin-top: 105px; width: 100%; }
.hero-tracking-card .card-kicker { color: var(--green-dark); margin-bottom: 10px; }
.hero-tracking-card h2 { font-size: 33px; letter-spacing: -.045em; margin: 0; }
.hero-tracking-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 9px 0 25px; }
.hero-tracking-card label { margin-bottom: 8px; }
.hero-tracking-card .tracking-input-row { align-items: stretch; }
.hero-tracking-card .tracking-input-row input { font-size: 12px; }
.hero-tracking-card .tracking-input-row .button { padding: 0 16px; }
.hero-mini-stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); margin-top: 27px; padding-top: 22px; text-align: center; }
.hero-mini-stats div { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.hero-mini-stats div:last-child { border: 0; }
.hero-mini-stats strong { color: var(--green-dark); font-size: 25px; }
.hero-mini-stats span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.public-page .tracking-result, .public-page .not-found-card { margin: -48px auto 0; max-width: 1120px; scroll-margin-top: 100px; }
.home-section { margin: 0 auto; max-width: 1240px; padding: 105px 32px; }
.section-heading { align-items: end; display: flex; gap: 60px; justify-content: space-between; margin-bottom: 46px; }
.section-heading > div { max-width: 650px; }
.section-heading h2, .about-copy h2, .video-copy h2, .coverage-copy h2, .contact-section h2 { font-size: clamp(40px, 5vw, 70px); letter-spacing: -.06em; line-height: .98; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; max-width: 430px; }

.service-grid { display: grid; gap: 18px; grid-template-columns: repeat(3,1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 15px 40px rgba(18,104,58,.06); display: flex; flex-direction: column; min-height: 360px; padding: 32px; position: relative; transition: transform .22s ease, box-shadow .22s ease; }
.service-card:hover { box-shadow: 0 26px 65px rgba(18,104,58,.12); transform: translateY(-5px); }
.service-card > small { color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.service-icon { align-items: center; background: var(--green-soft); border-radius: 14px; color: var(--green-dark); display: flex; font-size: 25px; height: 54px; justify-content: center; margin-bottom: 48px; width: 54px; }
.service-card h3 { font-size: 24px; letter-spacing: -.035em; margin: 15px 0 11px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.service-card a { color: var(--green-dark); font-size: 12px; font-weight: 800; margin-top: auto; }
.service-card--orange,.service-card--green { background: linear-gradient(145deg,#208c4e,#126d3f); border-color: transparent; color: #fff; }
.service-card--orange .service-icon,.service-card--green .service-icon { background: rgba(255,255,255,.18); color: #fff; }
.service-card--orange > small,.service-card--orange p,.service-card--orange a,.service-card--green > small, .service-card--green p, .service-card--green a { color: rgba(255,255,255,.82); }

.about-section { align-items: center; display: grid; gap: 75px; grid-template-columns: 1fr 1fr; }
.about-media { border-radius: 30px; min-height: 590px; overflow: hidden; position: relative; }
.about-media::after { background: linear-gradient(0deg,rgba(0,0,0,.45),transparent 55%); content: ""; inset: 0; position: absolute; }
.about-media img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.about-badge { align-items: center; background: rgba(255,255,255,.93); border-radius: 16px; bottom: 24px; display: flex; font-size: 11px; font-weight: 800; gap: 11px; left: 24px; padding: 13px 17px; position: absolute; z-index: 2; }
.about-badge strong { align-items: center; background: var(--green); border-radius: 10px; color: #fff; display: flex; height: 36px; justify-content: center; width: 36px; }
.about-copy > p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 29px 0 38px; }
.about-values { border-top: 1px solid var(--line); display: grid; gap: 15px; grid-template-columns: repeat(3,1fr); padding-top: 25px; }
.about-values div { display: flex; flex-direction: column; gap: 7px; }
.about-values strong { color: var(--green-dark); font-size: 12px; }
.about-values span { font-size: 11px; font-weight: 750; line-height: 1.4; }

.video-section { align-items: center; background: #151515; border-radius: 34px; color: #fff; display: grid; gap: 60px; grid-template-columns: .8fr 1.2fr; max-width: 1320px; padding: 65px; }
.video-copy h2 { font-size: clamp(42px,4.3vw,64px); }
.video-copy p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.75; margin: 25px 0 30px; }
.video-frame { aspect-ratio: 16/9; background: #090909; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; box-shadow: 0 25px 65px rgba(18,104,58,.22); overflow: hidden; }
.video-frame iframe, .video-frame video { border: 0; height: 100%; object-fit: cover; width: 100%; }
.video-placeholder { align-items: center; background-position: center; background-size: cover; display: flex; flex-direction: column; height: 100%; justify-content: center; padding: 30px; text-align: center; }
.video-placeholder .video-play { align-items: center; background: var(--green); border-radius: 50%; display: flex; font-size: 20px; height: 68px; justify-content: center; margin-bottom: 18px; padding-left: 4px; width: 68px; }
.video-placeholder strong { font-size: 18px; }
.video-placeholder small { color: rgba(255,255,255,.65); margin-top: 7px; }

.process-section { padding-bottom: 120px; }
.process-grid { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
.process-grid article { border-right: 1px solid var(--line); min-height: 245px; padding: 34px 27px; }
.process-grid article:last-child { border: 0; }
.process-grid span { color: var(--green-dark); font-size: 11px; font-weight: 850; }
.process-grid h3 { font-size: 23px; margin: 45px 0 10px; }
.process-grid p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }

.coverage-section { background: radial-gradient(circle at 15% 15%,rgba(123,255,174,.30),transparent 32%),linear-gradient(135deg,#0b4d2d,#147a43 60%,#0b6137); border-radius: 34px; box-shadow: 0 24px 70px rgba(15,105,55,.26); color: #fff; display: grid; gap: 70px; grid-template-columns: .8fr 1.2fr; max-width: 1320px; padding: 70px; }
.coverage-copy p { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.75; margin: 25px 0 30px; }
.department-grid { display: grid; gap: 9px; grid-template-columns: repeat(2,1fr); }
.department-grid div { align-items: center; background: rgba(255,255,255,.10); border: 1px solid rgba(225,255,236,.20); border-radius: 11px; display: flex; gap: 12px; padding: 13px 15px; }
.department-grid span { color: #8df0b2; font-size: 9px; font-weight: 850; }
.department-grid strong { font-size: 11px; }

.faq-section { padding-bottom: 110px; }
.faq-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); }
.faq-grid details { border: 1px solid var(--line); border-radius: 15px; padding: 19px 21px; }
.faq-grid summary { cursor: pointer; font-size: 14px; font-weight: 780; list-style: none; padding-right: 25px; position: relative; }
.faq-grid summary::after { color: var(--green-dark); content: "+"; font-size: 20px; position: absolute; right: 0; top: -5px; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 14px 0 0; }

.contact-section { align-items: center; background: linear-gradient(125deg,#16834a,#2a9a5a); color: #fff; display: flex; gap: 50px; justify-content: space-between; padding: 80px max(32px,calc((100vw - 1180px)/2)); }
.contact-section h2 { font-size: clamp(38px,4.5vw,64px); }
.contact-section p { color: rgba(255,255,255,.78); margin: 17px 0 0; }
.contact-section .hero-kicker { color: rgba(255,255,255,.72); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.contact-actions .button--primary { background: #145c35; box-shadow: none; }

.public-footer-v2 { background: #111; color: #fff; display: grid; gap: 60px; grid-template-columns: 1.3fr .7fr 1fr; padding: 70px max(32px,calc((100vw - 1180px)/2)) 30px; }
.public-footer-v2 .footer-brand .brand-image { filter: brightness(0) invert(1); height: 48px; max-width: 235px; }
.footer-brand p { color: #8e8e92; font-size: 12px; line-height: 1.65; max-width: 330px; }
.public-footer-v2 > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.public-footer-v2 > div > strong { color: #fff; font-size: 11px; letter-spacing: .08em; margin-bottom: 7px; text-transform: uppercase; }
.public-footer-v2 a, .public-footer-v2 span { color: #8e8e92; font-size: 11px; line-height: 1.5; }
.public-footer-v2 > small { border-top: 1px solid #2b2b2b; color: #69696d; font-size: 9px; grid-column: 1/-1; padding-top: 22px; }

.auth-page { align-items: center; background: linear-gradient(145deg, #f7f7f8 0%, #eef8f1 100%); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-page::before { background: var(--green); border-radius: 50%; content: ""; filter: blur(85px); height: 220px; opacity: .09; position: fixed; right: 10%; top: 5%; width: 220px; }
.auth-card, .install-card { background: white; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: var(--shadow); padding: 34px; position: relative; width: min(100%, 430px); }
.install-card { margin: 40px 0; width: min(100%, 650px); }
.auth-card h1, .install-card h1 { font-size: 32px; letter-spacing: -.04em; margin: 34px 0 8px; }
.auth-card > p, .install-card > p { font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
label { color: #3f3f42; display: block; font-size: 12px; font-weight: 750; }
label input, label select, label textarea { display: block; margin-top: 7px; }
label small { color: var(--muted); display: block; font-size: 10px; font-weight: 500; margin-top: 5px; }
.back-link { color: var(--muted); display: block; font-size: 12px; margin-top: 24px; text-align: center; }
.form-section-title { border-top: 1px solid var(--line); color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .09em; margin-top: 7px; padding-top: 19px; text-transform: uppercase; }
.success-panel { padding: 25px 0 5px; text-align: center; }
.success-panel h1 { margin-top: 20px; }
.success-panel p { color: var(--muted); line-height: 1.6; margin: 0 auto 24px; max-width: 440px; }
.success-icon { align-items: center; background: #e5f6ed; border-radius: 50%; color: var(--success); display: inline-flex; font-size: 31px; font-weight: 800; height: 72px; justify-content: center; width: 72px; }
.alert { border: 1px solid; border-radius: 12px; font-size: 13px; margin-bottom: 18px; padding: 13px 15px; transition: opacity .5s ease; }
.alert--error { background: #fff0ef; border-color: #f2c7c3; color: #9f3027; }
.alert--success { background: #ebf8f1; border-color: #bfe5d1; color: #13673e; }
.alert--fade { opacity: .72; }

.admin-page { background: var(--canvas); min-height: 100vh; }
.sidebar { background: #151515; bottom: 0; color: #fff; display: flex; flex-direction: column; left: 0; padding: 24px 18px; position: fixed; top: 0; width: 240px; z-index: 30; }
.sidebar-brand { border-bottom: 1px solid #303030; font-size: 13px; font-weight: 800; line-height: 1.2; margin: 0 2px 28px; padding: 0 0 22px; }
.sidebar-brand .brand-image { filter: brightness(0) invert(1); height: 40px; max-width: 150px; }
.sidebar nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.sidebar nav a { align-items: center; border-radius: 10px; color: #aaa; display: flex; font-size: 13px; font-weight: 680; gap: 11px; padding: 12px 14px; }
.sidebar nav a:hover { background: #202020; color: #fff; }
.sidebar nav a.active { background: var(--green); color: white; }
.sidebar-icon { align-items: center; display: inline-flex; flex: 0 0 20px; font-size: 15px; justify-content: center; width: 20px; }
.sidebar-footer { border-top: 1px solid #303030; display: flex; flex-direction: column; font-size: 11px; gap: 9px; padding: 18px 10px 0; }
.sidebar-footer span { font-weight: 750; }
.sidebar-footer a { align-items: center; color: #999; display: flex; gap: 8px; }
.admin-shell { margin-left: 240px; min-height: 100vh; }
.admin-topbar { align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; height: 70px; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 20; }
.admin-topbar > div { display: flex; flex-direction: column; gap: 3px; }
.admin-topbar strong { font-size: 13px; }
.admin-topbar span { color: var(--muted); font-size: 10px; }
.menu-button { background: none; border: 0; cursor: pointer; display: none; font-size: 24px; }
.sidebar-collapse-button { background: #f2f2f3; border: 0; border-radius: 9px; color: #555; cursor: pointer; font-size: 16px; height: 36px; margin-right: 14px; width: 36px; }
.admin-topbar-title { flex: 1; }
.sidebar, .admin-shell { transition: margin .22s ease, width .22s ease; }
.sidebar-collapsed .sidebar { padding-left: 13px; padding-right: 13px; width: 82px; }
.sidebar-collapsed .admin-shell { margin-left: 82px; }
.sidebar-collapsed .sidebar-brand { justify-content: center; margin-left: 0; margin-right: 0; }
.sidebar-collapsed .sidebar-brand .brand-image { height: 38px; max-width: 48px; object-fit: cover; object-position: left; width: 48px; }
.sidebar-collapsed .sidebar-brand-name, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-user { display: none; }
.sidebar-collapsed .sidebar nav a, .sidebar-collapsed .sidebar-footer a { justify-content: center; padding-left: 9px; padding-right: 9px; }
.admin-content { margin: 0 auto; max-width: 1380px; padding: 38px; }
.page-heading { margin-bottom: 28px; }
.page-heading--row { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; }
.page-heading h1 { font-size: 38px; letter-spacing: -.045em; margin: 0 0 6px; }
.page-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 155px; padding: 23px; }
.stat-card > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.stat-card > strong { font-size: 42px; letter-spacing: -.05em; line-height: 1; margin: 20px 0 9px; }
.stat-card > small { color: var(--muted); font-size: 10px; }
.stat-card--orange,.stat-card--green { background: linear-gradient(145deg, #208c4e, var(--green-dark)); border-color: transparent; color: white; }
.stat-card--green > span, .stat-card--green > small { color: rgba(255,255,255,.75); }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.panel-header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 21px 23px; }
.panel-header h2 { font-size: 16px; letter-spacing: -.02em; margin: 0; }
.panel-header p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.panel-header > a { color: var(--green-dark); font-size: 11px; font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { color: var(--muted); font-size: 10px; letter-spacing: .04em; padding: 14px 18px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #ededee; font-size: 12px; padding: 16px 18px; white-space: nowrap; }
tbody tr:hover { background: #fcfcfc; }
.table-action { color: var(--green-dark); font-weight: 800; }
.empty-state { padding: 55px 25px; text-align: center; }
.empty-state h1, .empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }
.filter-bar { background: white; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; grid-template-columns: 1fr 220px auto; margin-bottom: 18px; padding: 14px; }
.form-panel { overflow: visible; }
.form-panel .form-grid { padding: 23px; }
.product-editor { padding: 22px 23px 24px; }
.product-editor-head, .product-row { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(180px, 1.5fr) minmax(110px, .8fr) 90px 125px 115px 34px; }
.product-editor-head { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 0 0 8px; text-transform: uppercase; }
.product-row { border-top: 1px solid var(--line); padding: 13px 0; }
.product-row label { min-width: 0; }
.product-row label > input { font-size: 12px; margin-top: 0; }
.product-row label { font-size: 0; }
.remove-product { align-items: center; background: #fff0ef; border: 0; border-radius: 9px; color: var(--danger); cursor: pointer; display: flex; font-size: 20px; height: 34px; justify-content: center; margin-bottom: 6px; width: 34px; }
.form-grid { display: grid; gap: 17px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.step-number { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green-dark); display: flex; font-size: 11px; font-weight: 850; height: 32px; justify-content: center; width: 32px; }
.form-actions { align-items: center; display: flex; gap: 9px; justify-content: flex-end; padding: 0 0 22px; }
.form-panel > .form-actions { padding: 0 23px 23px; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; }
.detail-card dl { margin: 0; padding: 8px 23px 19px; }
.detail-card dl div { border-bottom: 1px solid #eee; display: grid; gap: 18px; grid-template-columns: 135px 1fr; padding: 14px 0; }
.detail-card dl div:last-child { border: 0; }
.detail-card dt { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.detail-card dd { font-size: 12px; font-weight: 650; margin: 0; overflow-wrap: anywhere; text-align: right; }
.privacy-label { background: #f1f1f2; border-radius: 999px; color: var(--muted); font-size: 10px; padding: 6px 9px; }
.event-panel { overflow: visible; }
.event-form { align-items: end; display: grid; gap: 13px; grid-template-columns: 180px 1fr 1fr auto auto; padding: 20px 23px 24px; }
.checkbox-label { align-items: center; display: flex; gap: 7px; min-height: 46px; white-space: nowrap; }
.checkbox-label input { height: 17px; margin: 0; min-height: auto; width: 17px; }
.admin-timeline { padding: 22px 24px 8px; }
.admin-timeline article { display: grid; gap: 16px; grid-template-columns: 15px 1fr; padding-bottom: 24px; position: relative; }
.admin-timeline article:not(:last-child)::before { background: var(--line); content: ""; height: 100%; left: 6px; position: absolute; top: 12px; width: 2px; }
.admin-timeline article > div > div { display: flex; justify-content: space-between; }
.admin-timeline time { color: var(--muted); font-size: 10px; }
.admin-timeline p { font-size: 12px; margin: 5px 0; }
.admin-timeline small { color: var(--muted); font-size: 10px; }
.settings-grid { align-items: start; display: grid; gap: 20px; grid-template-columns: 1fr 320px; }
.settings-subtitle { border-top: 1px solid var(--line); color: var(--green-dark); font-size: 11px; letter-spacing: .09em; margin: 13px 0 0; padding-top: 24px; text-transform: uppercase; }
.settings-subtitle:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.media-preview { align-items: center; background: #f7f7f8; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 18px; padding: 18px; }
.media-preview .brand-image { height: 58px; max-width: 230px; }
.media-preview > div { display: flex; flex-direction: column; gap: 4px; }
.media-preview strong { font-size: 12px; }
.media-preview small { color: var(--muted); font-size: 10px; }
.company-settings-panel input[type="file"] { background: #fafafa; font-size: 11px; padding: 9px; }
.password-panel .form-stack { padding: 23px; }
.email-panel { scroll-margin-top: 90px; }
.mail-status { border-radius: 999px; font-size: 10px; font-weight: 800; padding: 7px 10px; white-space: nowrap; }
.mail-status--ready { background: #e5f6ed; color: var(--success); }
.mail-status--pending { background: #eaf7ef; color: var(--green-dark); }
.inline-notice, .microsoft-note { background: #edf8f1; border-bottom: 1px solid #d3ecdc; color: #285b3d; font-size: 11px; line-height: 1.55; padding: 13px 23px; }
.inline-notice a { color: var(--green-dark); font-weight: 800; text-decoration: underline; }
.email-form { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 23px; }
.email-form .form-actions { padding: 0; }
.attachment-options { align-items: center; display: flex; flex-wrap: wrap; gap: 24px; }
.attachment-options .checkbox-label { min-height: auto; }
.email-history { border-top: 1px solid var(--line); padding: 20px 23px 7px; }
.email-history h3 { font-size: 12px; margin: 0 0 9px; }
.email-history article { align-items: start; border-top: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: auto 1fr auto; padding: 14px 0; }
.email-history article div { min-width: 0; }
.email-history article strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.email-history article p { color: var(--muted); font-size: 10px; margin: 3px 0; }
.email-history article small { color: var(--danger); display: block; font-size: 9px; overflow-wrap: anywhere; }
.email-history time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.mail-result { border-radius: 999px; font-size: 9px; font-weight: 800; padding: 5px 8px; }
.mail-result--sent { background: #e5f6ed; color: var(--success); }
.mail-result--failed { background: #fff0ef; color: var(--danger); }
.email-settings-panel { scroll-margin-top: 90px; }
.button:disabled { cursor: not-allowed; opacity: .48; }

.print-page { background: #ececef; padding: 88px 20px 50px; }
.print-toolbar { align-items: center; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; left: 0; padding: 13px 24px; position: fixed; right: 0; top: 0; z-index: 20; }
.print-toolbar > div { display: flex; flex: 1; flex-direction: column; }
.print-toolbar strong { font-size: 13px; }
.print-toolbar span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.document-sheet { background: white; box-shadow: 0 20px 60px rgba(18,104,58,.18); margin: 0 auto; min-height: 980px; padding: 52px; width: 816px; }
.document-header, .guide-header { align-items: flex-start; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; padding-bottom: 28px; }
.document-brand { align-items: center; display: flex; gap: 15px; }
.document-brand > div { display: flex; flex-direction: column; gap: 3px; }
.document-brand strong { font-size: 18px; }
.document-brand span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.document-number { align-items: flex-end; display: flex; flex-direction: column; }
.document-number > span { color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.document-number strong { font-size: 23px; letter-spacing: -.03em; margin: 7px 0; }
.document-number small { color: var(--muted); }
.document-customer { background: #f7f7f8; border-radius: 14px; display: grid; gap: 18px; grid-template-columns: 1fr .85fr 1.2fr; margin: 28px 0 17px; padding: 19px; }
.document-customer div, .document-reference div { display: flex; flex-direction: column; gap: 5px; }
.document-customer span, .document-reference span, .invoice-note span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-customer strong, .document-reference strong { font-size: 11px; }
.document-customer small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.document-reference { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; grid-template-columns: 1.2fr 1fr 1fr; margin-bottom: 26px; padding: 15px 18px; }
.invoice-table th { background: var(--ink); color: white; font-size: 8px; padding: 12px; }
.invoice-table td { font-size: 10px; padding: 15px 12px; white-space: normal; }
.invoice-table td:first-child { width: 60%; }
.invoice-table td:not(:first-child), .invoice-table th:not(:first-child) { text-align: right; }
.invoice-table td small { color: var(--muted); display: block; font-size: 8px; margin-top: 5px; }
.invoice-summary { display: grid; gap: 40px; grid-template-columns: 1fr 260px; margin-top: 30px; }
.invoice-note strong { display: block; font-size: 14px; margin: 7px 0 20px; }
.invoice-note p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.invoice-summary dl { margin: 0; }
.invoice-summary dl div { display: flex; font-size: 10px; justify-content: space-between; padding: 7px 0; }
.invoice-summary dt { color: var(--muted); }
.invoice-summary dd { font-weight: 700; margin: 0; }
.invoice-summary .total-row { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); font-size: 16px; margin: 5px 0; padding: 12px 0; }
.invoice-summary .total-row dt { color: var(--ink); font-weight: 800; }
.invoice-summary .balance-row { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.document-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 8px; justify-content: space-between; margin-top: 65px; padding-top: 15px; }
.guide-service { align-items: flex-end; display: flex; flex-direction: column; }
.guide-service span { background: var(--green); color: white; font-size: 9px; font-weight: 850; letter-spacing: .12em; padding: 7px 10px; }
.guide-service strong { font-size: 12px; margin-top: 8px; }
.guide-route { border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 1fr auto 1fr; padding: 28px 0; }
.guide-route > div { display: flex; flex-direction: column; gap: 6px; }
.guide-route span, .recipient-box > span, .guide-details span, .tracking-code-box > span, .guide-notes span { color: var(--green-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.guide-route strong { font-size: 17px; }
.guide-route small { color: var(--muted); font-size: 9px; }
.route-arrow { align-self: center; color: var(--green) !important; font-size: 25px !important; }
.recipient-box { background: #f7f7f8; border-left: 6px solid var(--green); margin-top: 26px; padding: 22px; }
.recipient-box h1 { font-size: 28px; letter-spacing: -.04em; margin: 9px 0 7px; }
.recipient-box p { font-size: 13px; line-height: 1.5; margin: 0 0 7px; }
.recipient-box strong { font-size: 12px; }
.guide-details { border: 1px solid var(--line); display: grid; grid-template-columns: 2fr .6fr .7fr 1fr; margin-top: 18px; }
.guide-details div { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; padding: 15px; }
.guide-details div:last-child { border: 0; }
.guide-details strong { font-size: 10px; }
.guide-product-table { border: 1px solid var(--line); margin-top: 16px; }
.guide-product-table th { background: #f5f5f6; color: var(--muted); font-size: 7px; padding: 8px; }
.guide-product-table td { font-size: 8px; padding: 9px 8px; white-space: normal; }
.guide-product-table th:not(:first-child), .guide-product-table td:not(:first-child) { text-align: right; }
.tracking-code-box { align-items: center; border-bottom: 2px solid var(--ink); border-top: 2px solid var(--ink); display: flex; flex-direction: column; margin: 30px 0; padding: 24px 0 20px; }
.tracking-code-box strong { font-size: 30px; letter-spacing: .16em; margin: 10px 0 12px; }
.tracking-code-box small { color: var(--muted); font-size: 8px; margin-top: 9px; }
.barcode { background: repeating-linear-gradient(90deg, #111 0, #111 2px, transparent 2px, transparent 4px, #111 4px, #111 5px, transparent 5px, transparent 9px, #111 9px, #111 12px, transparent 12px, transparent 14px); height: 48px; width: 72%; }
.guide-notes { display: grid; gap: 40px; grid-template-columns: 1fr 220px; }
.guide-notes p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.signature { display: flex; flex-direction: column; }
.signature i { border-bottom: 1px solid var(--ink); display: block; height: 42px; }
.signature small { color: var(--muted); font-size: 8px; margin-top: 5px; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .product-editor-head { display: none; }
  .product-row { align-items: end; grid-template-columns: 1.4fr 1fr 90px; }
  .product-row label { font-size: 10px; }
  .product-row label > input { margin-top: 6px; }
  .event-form { grid-template-columns: 1fr 1fr; }
  .event-form .checkbox-label, .event-form .button { align-self: end; }
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .public-header { padding: 18px; }
  .admin-link { font-size: 0; }
  .admin-link::after { content: "Acceso"; font-size: 12px; }
  .public-page main { padding: 0 14px 40px; }
  .tracking-hero { gap: 30px; grid-template-columns: 1fr; min-height: auto; padding: 38px 24px; }
  .tracking-copy h1 { font-size: 43px; }
  .tracking-result, .not-found-card { margin: 16px 0 0; padding: 24px 19px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { gap: 25px; grid-template-columns: 1fr; margin-top: 45px; }
  .public-footer { padding: 20px 18px 30px; }

  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 260px; }
  .sidebar-collapsed .sidebar { padding: 24px 18px; width: 260px; }
  .sidebar-collapsed .sidebar-brand-name, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-user { display: inline; }
  .sidebar-collapsed .sidebar nav a, .sidebar-collapsed .sidebar-footer a { justify-content: flex-start; padding: 12px 14px; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open::after { background: rgba(18,104,58,.22); bottom: 0; content: ""; left: 260px; position: fixed; right: 0; top: 0; z-index: 29; }
  .admin-shell, .sidebar-collapsed .admin-shell { margin-left: 0; }
  .admin-topbar { height: 64px; padding: 0 16px; }
  .admin-topbar > div { display: none; }
  .menu-button { display: block; }
  .sidebar-collapse-button { display: none; }
  .admin-content { padding: 25px 16px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading--row { align-items: flex-start; flex-direction: column; }
  .heading-actions { justify-content: flex-start; }
  .filter-bar { grid-template-columns: 1fr; }
  .form-grid--2, .form-grid--4 { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr 1fr; }
  .remove-product { width: 100%; }
  .span-2 { grid-column: span 1; }
  .event-form { grid-template-columns: 1fr; }
  .email-form { grid-template-columns: 1fr; }
  .email-form .span-2 { grid-column: span 1; }
  .email-history article { grid-template-columns: auto 1fr; }
  .email-history time { grid-column: 2; }
  .detail-card dl div { grid-template-columns: 105px 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .print-page { overflow-x: auto; padding-left: 10px; padding-right: 10px; }
  .print-toolbar > div { display: none; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 13px; }
  .tracking-copy h1 { font-size: 38px; }
  .tracking-input-row { flex-direction: column; }
  .tracking-input-row .button { width: 100%; }
  .result-header { gap: 15px; }
  .result-header h2 { font-size: 28px; }
  .result-grid, .stat-grid { grid-template-columns: 1fr; }
  .public-product-list article { align-items: flex-start; grid-template-columns: 1fr auto; }
  .public-product-list article > strong { grid-column: 2; }
  .timeline-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .auth-page { padding: 12px; }
  .auth-card, .install-card { border-radius: 19px; padding: 24px 19px; }
  .public-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (max-width: 1180px) {
  .public-nav { gap: 19px; }
  .public-nav a { font-size: 10px; }
  .home-hero-content { gap: 45px; }
  .home-hero-copy h1 { font-size: clamp(55px, 7vw, 82px); }
}

@media (max-width: 900px) {
  .public-header { padding: 0; }
  .public-header-inner { height: 68px; padding: 0 18px; }
  .public-header .brand-image--compact { height: 38px; max-width: 190px; }
  .public-menu-button { display: block; }
  .public-nav { align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(18,104,58,.11); display: none; flex-direction: column; gap: 0; left: 0; padding: 10px 18px 18px; position: absolute; right: 0; top: 68px; }
  .public-nav.public-nav--open { display: flex; }
  .public-nav a { border-bottom: 1px solid var(--line); font-size: 11px; padding: 14px 4px; }
  .public-nav .public-nav-cta { border: 0; margin-top: 10px; text-align: center; }
  .public-page .public-main { padding: 0; }
  .home-hero, .home-hero-content { min-height: auto; }
  .home-hero-content { gap: 42px; grid-template-columns: 1fr; padding: 78px 24px 66px; }
  .home-hero-shade { background: linear-gradient(180deg,rgba(9,9,10,.84),rgba(9,9,10,.66)); }
  .home-hero-shade::after { display: none; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-copy h1 { font-size: clamp(50px,11vw,80px); }
  .hero-tracking-card { justify-self: stretch; max-width: 680px; }
  .public-page .tracking-result, .public-page .not-found-card { margin: 18px 16px 0; padding: 25px 20px; }
  .home-section { padding: 78px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .about-section, .video-section, .coverage-section { gap: 42px; grid-template-columns: 1fr; }
  .about-media { min-height: 480px; }
  .video-section, .coverage-section { border-radius: 0; padding: 65px 24px; }
  .video-copy { max-width: 680px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-section { align-items: flex-start; flex-direction: column; padding: 65px 24px; }
  .contact-actions { justify-content: flex-start; }
  .public-footer-v2 { gap: 40px; grid-template-columns: 1fr 1fr; padding: 55px 24px 30px; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 560px) {
  .home-hero-content { padding-top: 58px; }
  .home-hero-copy h1 { font-size: 48px; }
  .home-hero-copy p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-tracking-card { border-radius: 20px; padding: 25px 19px; }
  .hero-tracking-card h2 { font-size: 27px; }
  .hero-tracking-card .tracking-input-row { flex-direction: column; }
  .hero-mini-stats strong { font-size: 20px; }
  .hero-mini-stats span { font-size: 7px; }
  .section-heading h2, .about-copy h2, .coverage-copy h2, .contact-section h2 { font-size: 39px; }
  .about-media { min-height: 390px; }
  .about-values { grid-template-columns: 1fr; }
  .video-copy h2 { font-size: 39px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-bottom: 1px solid var(--line) !important; border-right: 0; min-height: 210px; }
  .process-grid article:last-child { border-bottom: 0 !important; }
  .department-grid { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .button { width: 100%; }
  .public-footer-v2 { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .public-footer-v2 > small { grid-column: auto; }
}

@media print {
  @page { margin: 0; size: letter portrait; }
  body.print-page { background: white; padding: 0; }
  .print-toolbar { display: none !important; }
  .document-sheet { box-shadow: none; margin: 0; min-height: 0; padding: .55in; width: 100%; }
  .button { display: none; }
}

/* Gestión y documentos 3.0 */
.status-preparing { background: #eaf7ef; color: #126d3f; }
.status-dispatched { background: #e0f2e5; color: #126d3f; }
.smart-paste-panel { background: linear-gradient(135deg,#171717,#2c241f); border: 0; color: #fff; padding: 24px; }
.smart-paste-panel .panel-header { align-items: flex-start; }
.smart-paste-panel .panel-header h2 { color: #fff; font-size: 21px; margin-top: 7px; }
.smart-paste-panel .panel-header p { color: #c9c3bf; }
.smart-paste-panel textarea { background: #fff; border: 0; color: #171717; font: 500 13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; min-height: 165px; resize: vertical; }
.feature-badge { background: var(--green); border-radius: 999px; color: #fff; display: inline-block; font-size: 9px; font-weight: 850; letter-spacing: .08em; padding: 5px 9px; text-transform: uppercase; }
.smart-paste-actions { align-items: center; display: flex; gap: 15px; justify-content: space-between; margin-top: 14px; }
.smart-paste-actions span { color: #bdb7b3; font-size: 11px; }
.smart-paste-panel .button--dark { background: var(--green); }
.smart-paste-panel .button--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.product-editor-head,.product-row { grid-template-columns: minmax(185px,1.35fr) 110px minmax(100px,.7fr) 78px 115px 105px 34px; }
.product-row label > select { font-size: 12px; margin-top: 0; }
.automation-toggle { align-items: center; background: #edf8f1; border: 1px solid #c9ead5; border-radius: 12px; display: flex !important; flex-direction: row !important; gap: 12px; padding: 13px 15px; }
.automation-toggle input { height: 19px; margin: 0; width: 19px; }
.automation-toggle span { display: flex; flex-direction: column; gap: 3px; }
.automation-toggle strong { font-size: 12px; }
.automation-toggle small { margin: 0; }
.copy-value { align-items: center; display: flex; gap: 9px; }
.copy-value button,[data-copy-text] { background: #eaf7ef; border: 0; border-radius: 7px; color: var(--green-dark); cursor: pointer; font-size: 9px; font-weight: 800; padding: 6px 8px; }
.result-header-actions { align-items: center; display: flex; gap: 10px; }
.inline-form { margin: 0; }
.button--danger { background: #b92d2d; border-color: #b92d2d; color: #fff; }
.button--danger:hover { background: #982222; }
.danger-zone { align-items: center; border-color: #f1caca; display: flex; justify-content: space-between; }
.danger-zone h2 { color: #a32626; margin: 0 0 5px; }
.danger-zone p { color: var(--muted); font-size: 12px; margin: 0; }
.bulk-actions { padding: 18px; }
.bulk-table-form { overflow: hidden; padding: 0; }
.table-buttons { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.table-buttons form { margin: 0; }
.table-action { background: transparent; border: 0; cursor: pointer; font: inherit; }
.table-action--danger { color: #b52b2b; }
.audit-list { display: grid; }
.audit-list article { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 150px 1fr 180px 170px; padding: 13px 18px; }
.audit-list span,.audit-list time { color: var(--muted); font-size: 11px; }
.audit-list em { font-size: 10px; font-style: normal; font-weight: 800; }
.document-settings-panel { margin-top: 18px; }
.document-settings-grid { display: grid; gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.document-settings-grid > section { background: #fafafa; border: 1px solid var(--line); border-radius: 16px; padding: 21px; }
.document-settings-grid h3 { font-size: 20px; margin: 7px 0 20px; }
.document-settings-label { color: var(--green-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.document-defaults { align-items: end; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; margin-top: 22px; padding-top: 20px; }
.document-defaults label { max-width: 380px; width: 100%; }
.document-defaults p { color: var(--muted); font-size: 11px; }
.tracking-code-box strong { letter-spacing: 0; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.document-logo { max-height: 58px; max-width: 190px; object-fit: contain; }
.document-sheet .document-number > span,.document-sheet .guide-route span,.document-sheet .recipient-box > span,.document-sheet .guide-details span,.document-sheet .tracking-code-box > span,.document-sheet .guide-notes span { color: var(--document-accent,var(--green-dark)); }
.document-sheet .guide-service span { background: var(--document-accent,var(--green)); }
.guide-sheet .guide-details { grid-template-columns: 1.2fr .55fr .65fr 1.15fr 1fr; }
.document-signature { align-items: center; display: flex; flex-direction: column; margin: 35px 0 0 auto; width: 190px; }
.document-signature img,.signature img { max-height: 72px; max-width: 170px; object-fit: contain; }
.document-signature span { color: var(--muted); font-size: 8px; margin-top: 5px; }

@media (max-width: 1100px) {
  .product-editor-head { display: none; }
  .product-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-row label { font-size: 10px; }
  .product-row label > input,.product-row label > select { margin-top: 6px; }
  .document-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .smart-paste-panel { padding: 18px; }
  .smart-paste-panel .panel-header,.smart-paste-actions,.danger-zone,.document-defaults { align-items: stretch; flex-direction: column; }
  .product-row { grid-template-columns: 1fr 1fr; }
  .audit-list article { grid-template-columns: 1fr; }
  .bulk-actions { align-items: stretch; flex-direction: column; }
}

/* Experiencia visual 4.0 */
:root {
  --green: #16834a;
  --green-dark: #126d3f;
  --ink: #121212;
  --canvas: #f1f6f2;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(18,104,58,.14);
}
.public-header { background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(20,20,20,.07); max-width: none; padding: 0; position: sticky; top: 0; z-index: 50; }
.public-header-inner { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1240px; padding: 15px 28px; width: 100%; }
.public-header .brand-image { height: 50px; max-width: 190px; }
.home-hero { border-radius: 0 0 34px 34px; box-shadow: 0 20px 70px rgba(18,104,58,.22); min-height: 680px; }
.home-hero-content { max-width: 1240px; }
.hero-tracking-card { border: 1px solid rgba(255,255,255,.36); box-shadow: 0 28px 80px rgba(18,104,58,.25); }
.hero-tracking-card input { border-color: #d7d7d7; }
.button, input, select, textarea, .panel { border-radius: 14px; }
.button.is-loading { cursor: wait; opacity: .8; }
.button.is-loading::before { animation: search-spin .8s linear infinite; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; content: ''; height: 14px; width: 14px; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.tracking-result, .not-found-card { scroll-margin-top: 94px; }
.tracking-result:focus, .not-found-card:focus { outline: none; }
.tracking-result { border: 0; box-shadow: 0 28px 90px rgba(18,104,58,.16); margin-top: -46px; }
.not-found-card { border: 0; padding: 54px; }
.not-found-card .button { margin-top: 22px; }
.result-header-actions { flex-wrap: wrap; justify-content: flex-end; }
.result-header-actions a { color: var(--muted); font-size: 10px; font-weight: 800; padding: 6px 8px; }
.status-out_for_delivery { background: #e0f2e5; color: #126d3f; }
.payment-status-card { border: 1px solid var(--line); border-radius: 14px; justify-content: center; padding: 15px; }
.payment-status--paid { background: #eaf8f0; border-color: #bde6cf; }
.payment-status--paid strong { color: #157448; }
.payment-status--partial { background: #fff7e4; border-color: #f0d99e; }
.payment-status--partial strong { color: #8d6000; }
.payment-status--pending { background: #fff0ed; border-color: #f1c8c0; }
.payment-status--pending strong { color: #ad3d2e; }
.payment-policy-notice { align-items: flex-start; background: linear-gradient(135deg,#e7f7ec,#fff); border: 1px solid #b8dec4; border-radius: 18px; display: flex; gap: 16px; margin: 0 0 28px; padding: 20px; }
.payment-policy-notice > span { background: var(--green); border-radius: 999px; color: #fff; flex: 0 0 auto; font-size: 9px; font-weight: 850; letter-spacing: .08em; padding: 7px 10px; text-transform: uppercase; }
.payment-policy-notice strong { display: block; font-size: 15px; }
.payment-policy-notice p { color: #315b3d; font-size: 12px; line-height: 1.65; margin: 6px 0 0; }
.route-map-panel { background: #161616; border-radius: 22px; color: #fff; margin: 0 0 28px; overflow: hidden; padding: 24px; }
.route-map-heading { align-items: flex-end; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 18px; }
.route-map-heading h3 { font-size: 25px; letter-spacing: -.03em; margin: 0; }
.route-map-heading p { color: #bcbcbc; font-size: 12px; margin: 7px 0 0; }
.route-map-heading > strong { background: rgba(22,131,74,.15); border: 1px solid rgba(22,131,74,.35); border-radius: 999px; color: #50ad76; font-size: 11px; padding: 9px 12px; white-space: nowrap; }
#route-map { background: #e7e4de; border-radius: 16px; height: 360px; overflow: hidden; position: relative; }
.route-map-fallback { background: linear-gradient(145deg,#e7f2e9,#d8e9dc); inset: 0; overflow: hidden; position: absolute; transition: opacity .35s ease; z-index: 0; }
.fallback-route-art { height: 100%; inset: 0; position: absolute; width: 100%; }
.fallback-secondary-road { fill: none; stroke: rgba(255,255,255,.9); stroke-linecap: round; stroke-width: 8; }
.fallback-route-shadow { fill: none; stroke: rgba(255,255,255,.98); stroke-linecap: round; stroke-width: 14; }
.fallback-route-line { fill: none; stroke: var(--green); stroke-dasharray: 10 8; stroke-linecap: round; stroke-width: 6; }
.fallback-pin { background: #fff; border: 5px solid #171717; border-radius: 50% 50% 50% 0; box-shadow: 0 8px 22px rgba(18,104,58,.20); height: 25px; position: absolute; transform: rotate(-45deg); width: 25px; z-index: 2; }
.fallback-pin::after { background: #171717; border-radius: 50%; content: ''; height: 7px; left: 4px; position: absolute; top: 4px; width: 7px; }
.fallback-pin--origin { left: 8.9%; top: 68.7%; }
.fallback-pin--destination { border-color: var(--green); left: 89%; top: 27.7%; }
.fallback-pin--destination::after { background: var(--green); }
.fallback-truck { align-items: center; background: #fff; border: 3px solid var(--green); border-radius: 50%; box-shadow: 0 7px 20px rgba(18,104,58,.22); display: flex; font-size: 19px; height: 39px; justify-content: center; left: 10.75%; position: absolute; top: 72%; transform: translate(-50%,-50%); transition: left .8s ease,top .8s ease; width: 39px; z-index: 4; }
.fallback-place { background: rgba(23,23,23,.9); border-radius: 999px; color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .02em; max-width: 42%; overflow: hidden; padding: 7px 10px; position: absolute; text-overflow: ellipsis; white-space: nowrap; z-index: 3; }
.fallback-place--origin { bottom: 8%; left: 5%; }
.fallback-place--destination { right: 4%; top: 8%; }
.fallback-reference { bottom: 10px; color: rgba(23,23,23,.55); font-size: 8px; font-weight: 800; letter-spacing: .08em; position: absolute; right: 13px; text-transform: uppercase; z-index: 2; }
#route-map.route-map--tiles-ready .route-map-fallback { opacity: 0; pointer-events: none; }
#route-map .leaflet-map-pane { z-index: 2; }
#route-map .leaflet-control-container { position: relative; z-index: 5; }
.route-map-legend { align-items: center; color: #c9c9c9; display: flex; flex-wrap: wrap; font-size: 10px; gap: 22px; padding-top: 14px; }
.route-map-legend span { align-items: center; display: inline-flex; gap: 7px; }
.route-dot { background: #fff; border: 3px solid var(--green); border-radius: 50%; height: 12px; width: 12px; }
.route-dot--origin { border-color: #fff; }
.route-truck { color: var(--green); font-style: normal; }
.map-truck-icon { align-items: center; background: #fff; border: 3px solid var(--green); border-radius: 50%; box-shadow: 0 7px 20px rgba(18,104,58,.22); display: flex; font-size: 20px; justify-content: center; }

.admin-body { background: #f0f6f1; }
.admin-content { max-width: 1500px; }
.panel { border-color: rgba(20,20,20,.075); box-shadow: 0 12px 40px rgba(18,104,58,.07); }
.sidebar { background: linear-gradient(180deg,#101010,#1d1b1a); }
.page-heading h1 { letter-spacing: -.045em; }
.form-panel .panel-header { background: linear-gradient(180deg,#fff,#fbfbfa); }
.dispatch-panel { align-items: center; background: linear-gradient(135deg,#171717,#2a211b); border: 0; color: #fff; display: flex; gap: 25px; justify-content: space-between; padding: 24px; }
.dispatch-panel h2 { margin: 3px 0 7px; }
.dispatch-panel p { color: #cfc7c1; font-size: 12px; line-height: 1.6; margin: 0; max-width: 760px; }
.dispatch-panel form { flex: 0 0 auto; }
.order-created-card { background: linear-gradient(135deg,#e7f7ec,#fff); border: 1px solid #b8dec4; margin-bottom: 22px; overflow: hidden; padding: 26px; }
.order-created-heading { align-items: flex-start; display: flex; gap: 16px; }
.order-created-icon { align-items: center; background: var(--green); border-radius: 50%; box-shadow: 0 10px 25px rgba(22,131,74,.24); color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 20px; font-weight: 900; height: 48px; justify-content: center; width: 48px; }
.order-created-card h2 { font-size: 26px; letter-spacing: -.035em; margin: 0 0 7px; }
.order-created-card textarea { background: #fff; border-color: #efd8c6; font-size: 12px; line-height: 1.65; margin-top: 20px; min-height: 190px; resize: none; }
.order-created-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.email-delivery-status { border-radius: 9px; display: inline-block; font-size: 11px; line-height: 1.5; margin: 0; padding: 7px 10px; }
.email-delivery-status--sent { background: #e5f6ed; color: #157448; }
.email-delivery-status--failed, .email-delivery-status--not_configured, .email-delivery-status--not_available { background: #edf8f1; color: #9b4a13; }
.delete-all-zone { align-items: flex-start; background: linear-gradient(135deg,#fff7f6,#fff); border: 1px solid #efc3be; display: grid; gap: 30px; grid-template-columns: minmax(0,1fr) minmax(300px,.7fr); margin-top: 20px; padding: 26px; scroll-margin-top: 90px; }
.delete-all-zone h2 { color: #9e2828; font-size: 24px; margin: 3px 0 8px; }
.delete-all-zone p { color: #6f5552; font-size: 12px; line-height: 1.65; margin: 0; max-width: 760px; }
.delete-all-zone form { display: grid; gap: 13px; width: 100%; }
.delete-all-zone label { color: #6d2d2d; font-size: 10px; font-weight: 800; }
.delete-all-zone input { border-color: #e0b2ae; margin-top: 6px; }
.location-search-label { position: relative; }
.destination-search-results { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(18,104,58,.15); left: 0; max-height: 300px; overflow: auto; padding: 6px; position: absolute; right: 0; top: 74px; z-index: 30; }
.location-search-option { background: transparent; border: 0; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 10px 11px; text-align: left; width: 100%; }
.location-search-option:hover, .location-search-option:focus { background: var(--green-soft); outline: none; }
.location-search-option strong { font-size: 12px; }
.location-search-option small, .location-search-message { color: var(--muted); font-size: 10px; line-height: 1.4; }
.location-search-message { display: block; padding: 12px; }

.document-sheet { border-top: 8px solid var(--document-accent,var(--green)); min-height: 1123px; padding: 44px 48px; width: 794px; }
.document-header, .guide-header { padding-bottom: 20px; }
.document-customer { margin: 20px 0 12px; padding: 15px; }
.document-reference { margin-bottom: 18px; padding: 12px 15px; }
.invoice-table td { padding: 10px 12px; }
.invoice-summary--simple { align-items: start; gap: 30px; grid-template-columns: 1fr 220px; margin-top: 20px; }
.invoice-summary--simple .invoice-note span { color: var(--document-accent,var(--green-dark)); }
.invoice-summary--simple .invoice-note p { color: #303034; font-size: 8px; margin: 7px 0 0; }
.invoice-qr { align-items: center; background: #edf8f1; border: 1px solid #c9ead5; border-radius: 14px; display: flex; gap: 15px; margin-top: 18px; padding: 12px; width: 330px; }
.invoice-qr img { height: 72px; object-fit: contain; width: 72px; }
.invoice-qr div { display: flex; flex-direction: column; gap: 4px; }
.invoice-qr strong { color: var(--document-accent,var(--green-dark)); font-size: 9px; text-transform: uppercase; }
.invoice-qr span { font-size: 14px; font-weight: 850; }
.invoice-qr small { color: var(--muted); font-size: 7px; }
.document-footer { margin-top: 18px; }
.guide-route { padding: 19px 0; }
.recipient-box { margin-top: 18px; padding: 17px; }
.recipient-box h1 { font-size: 24px; }
.guide-details { margin-top: 13px; }
.guide-details div { padding: 11px; }
.guide-product-table { margin-top: 12px; }
.guide-product-table td { padding: 7px 8px; }
.tracking-code-box--qr { align-items: center; background: #edf8f1; border: 1px solid #c9ead5; border-radius: 15px; flex-direction: row; gap: 20px; margin: 18px 0 12px; padding: 13px 18px; }
.tracking-code-box--qr img { height: 90px; object-fit: contain; width: 90px; }
.tracking-code-box--qr > div { display: flex; flex-direction: column; }
.tracking-code-box--qr span { color: var(--document-accent,var(--green-dark)); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.tracking-code-box--qr strong { font-size: 22px; margin: 7px 0 1px; }
.tracking-code-box--qr small { margin-top: 4px; }
.guide-notes { display: block; }
.guide-notes p { margin-bottom: 0; }
.invoice-table tr, .guide-product-table tr, .tracking-code-box--qr, .invoice-qr { break-inside: avoid; page-break-inside: avoid; }
.document-sheet--compact .invoice-table td { padding: 7px 10px; }
.document-sheet--compact .guide-product-table td { padding: 5px 7px; }
.document-sheet--compact .recipient-box { padding: 13px 16px; }
.document-sheet--compact .recipient-box h1 { font-size: 21px; margin: 5px 0; }
.document-sheet--compact .tracking-code-box--qr { margin-top: 12px; padding: 9px 13px; }
.document-sheet--compact .tracking-code-box--qr img { height: 72px; width: 72px; }
.document-sheet--dense .invoice-table td, .document-sheet--dense .guide-product-table td { font-size: 7px; padding: 4px 7px; }
.document-sheet--dense .document-customer, .document-sheet--dense .document-reference { margin-bottom: 8px; margin-top: 8px; padding: 9px 12px; }
.document-sheet--dense .guide-route { padding: 10px 0; }
.document-sheet--dense .guide-details div { padding: 7px; }

/* Guía tipo etiqueta 4.1 */
.shipping-label-sheet { border-top: 0; padding: 28px; }
.shipping-label { border: 3px solid var(--document-accent,var(--green-dark)); border-radius: 30px; color: #145c35; min-height: 1045px; overflow: hidden; }
.shipping-label-header { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 158px; }
.shipping-label-header > div { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: 25px 28px; }
.shipping-label-header > div + div { border-left: 2px solid var(--document-accent,var(--green-dark)); }
.shipping-label-logo { align-items: center !important; }
.shipping-label-logo img { max-height: 90px; max-width: 260px; object-fit: contain; }
.shipping-label-header h1 { font-size: 27px; letter-spacing: -.03em; margin: 0 0 8px; }
.shipping-label-header strong { font-size: 15px; }
.shipping-label-header span { color: #5c626d; font-size: 12px; margin-top: 7px; }
.shipping-label-recipient { align-items: center; border-top: 2px solid var(--document-accent,var(--green-dark)); display: grid; gap: 30px; grid-template-columns: 145px 1fr; min-height: 205px; padding: 25px 32px; }
.shipping-label-recipient svg { fill: none; height: 110px; margin: auto; stroke: var(--document-accent,var(--green-dark)); stroke-linecap: round; stroke-linejoin: round; stroke-width: 7px; width: 110px; }
.shipping-label-recipient p { font-size: 18px; margin: 0 0 8px; }
.shipping-label-recipient address { font-size: 16px; font-style: normal; line-height: 1.45; margin-bottom: 11px; }
.shipping-label-recipient b { font-size: 13px; }
.shipping-label-row { border-top: 2px solid var(--document-accent,var(--green-dark)); min-height: 86px; padding: 18px 24px; }
.shipping-label-row strong { font-size: 15px; }
.shipping-label-row p { font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.shipping-label-notes { min-height: 86px; }
.shipping-label-destination { align-items: center; border-top: 2px solid var(--document-accent,var(--green-dark)); display: flex; font-size: 25px; font-weight: 900; justify-content: center; min-height: 82px; padding: 15px 24px; text-align: center; }
.shipping-label-bottom { border-top: 2px solid var(--document-accent,var(--green-dark)); display: grid; grid-template-columns: 1fr 235px; min-height: 330px; padding: 42px 28px 28px; }
.shipping-label-header h1,.shipping-label-bottom h2,.shipping-label-bottom b { color: var(--document-accent,var(--green-dark)); }
.invoice-table th { background: var(--document-accent,var(--green-dark)); }
.document-text-settings details { background: #fff; border: 1px solid rgba(22,131,74,.18); border-radius: 12px; padding: 14px; }
.document-text-settings summary { color: var(--green-dark); cursor: pointer; font-weight: 800; }
.shipping-label-bottom > div:first-child { align-items: flex-start; display: flex; flex-direction: column; padding-top: 26px; }
.shipping-label-bottom strong { font-size: 16px; }
.shipping-label-bottom span { font-size: 14px; margin-top: 9px; }
.shipping-label-bottom b { font-size: 19px; margin-top: 15px; }
.shipping-label-bottom h2 { font-size: 30px; margin: 42px 0 6px; }
.shipping-label-bottom small { color: #5c626d; font-size: 10px; line-height: 1.45; max-width: 210px; }
.shipping-label-qr { align-items: center; display: flex; flex-direction: column; }
.shipping-label-qr img { height: 210px; object-fit: contain; width: 210px; }
.shipping-label-qr span { color: #666; font-size: 10px; margin-top: 4px; }

@media (max-width: 760px) {
  .result-header, .route-map-heading, .dispatch-panel { align-items: stretch; flex-direction: column; }
  .delete-all-zone { grid-template-columns: 1fr; }
  .result-header-actions { justify-content: flex-start; }
  #route-map { height: 300px; }
  .route-map-heading > strong { align-self: flex-start; }
  .payment-policy-notice { flex-direction: column; }
  .dispatch-panel form, .dispatch-panel .button { width: 100%; }
}

@media print {
  @page { margin: 0; size: A4 portrait; }
  html, body.print-page { height: 297mm; width: 210mm; }
  .document-sheet { border-top-width: 5px; height: 297mm; max-height: 297mm; min-height: 297mm; overflow: hidden; padding: 10mm 12mm; width: 210mm; }
  .shipping-label-sheet { border-top: 0; padding: 7mm; }
  .shipping-label { min-height: 276mm; }
}
