/* ==========================================================================
   TechTrucking — Global Styles
   Real-time logistics visibility. High-tech, organized, trustworthy.
   ========================================================================== */

:root {
  /* Brand palette — Fork & Join corporate identity
     Azul tecnológico #065471 · Rojo publicitario #8a242b
     Fondos navy #0d1c28 / #0f2333 · Vino #4b242f */
  --navy-900: #0d1c28;
  --navy-800: #0f2333;
  --navy-700: #123a4d;
  --navy-600: #065471;
  --blue-500: #065471;   /* tech blue — primary brand */
  --blue-400: #0a7ba3;
  --cyan-400: #2ba0c4;
  --cyan-300: #5cc1dd;
  --green-400: #22c98a;   /* "on track / delivered" status */
  --amber-400: #ffb020;
  --red-500: #8a242b;    /* Fork & Join accent (publicidad) */
  --red-400: #a52d35;
  --wine-500: #4b242f;

  --ink-900: #0b1220;
  --ink-700: #33415c;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --paper: #ffffff;
  --mist: #f4f7fa;
  --mist-2: #e9eff5;
  --line: #dde5ec;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(13, 28, 40, .06);
  --shadow: 0 12px 34px rgba(13, 28, 40, .10);
  --shadow-lg: 0 30px 70px rgba(13, 28, 40, .24);

  --maxw: 1180px;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --grad-brand: linear-gradient(120deg, var(--blue-500), var(--cyan-400));
  --grad-deep: linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-700); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--mist { background: var(--mist); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-500);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--red-500);
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(6,84,113,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(6,84,113,.42); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-500); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--navy-900); }
.brand .mark {
  height: 30px; width: 84px; flex: none; display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("../assets/logo.svg") left center / contain no-repeat;
  mask: url("../assets/logo.svg") left center / contain no-repeat;
}
.brand-logo { height: 46px; width: auto; display: block; }
.site-footer .brand-logo { height: 44px; }
@media (max-width: 960px) { .brand-logo { height: 38px; } }
.brand b { color: var(--blue-500); }
.brand-txt { display: inline-flex; flex-direction: column; line-height: 1.02; }
.brand-dba { font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); margin-top: 3px; }
.site-footer .brand-dba { color: #8ea6c8; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .96rem; color: var(--ink-700);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--navy-900); background: var(--mist-2); }
.nav-links a.active { color: var(--blue-500); background: rgba(6,84,113,.08); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 20px; height: 2px; background: var(--navy-900); margin: 0 auto; border-radius: 2px; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 18px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 82% 8%, rgba(43,160,196,.20), transparent 60%),
    radial-gradient(520px 320px at 10% 90%, rgba(6,84,113,.28), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 92px 0 100px;
}
.hero h1 { color: #fff; }
.hero .lede { color: #c7d6ee; font-size: 1.18rem; margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: #9fb4d6; font-size: .9rem; }
.hero-trust b { color: #fff; font-size: 1.5rem; display: block; letter-spacing: -.02em; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .86rem; font-weight: 600; color: #dbe7fb;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(34,201,138,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(34,201,138,.30);} 50% { box-shadow: 0 0 0 8px rgba(34,201,138,0);} }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
}

/* ---------- Tracking card (hero visual) ---------- */
.track-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.track-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.track-head .id { font-weight: 700; color: #fff; letter-spacing: .02em; }
.badge-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: #072; background: rgba(34,201,138,.16); border: 1px solid rgba(34,201,138,.4); color: #7ff0c3; padding: 5px 11px; border-radius: 999px; }
.map {
  position: relative; height: 210px; border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(10,22,40,.5), rgba(10,22,40,.5)),
    conic-gradient(from 200deg at 60% 40%, #123a4d, #0d1c28, #123a4d);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .truck {
  position: absolute; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(6,84,113,.5);
  offset-path: path('M 20 170 C 90 120, 150 150, 210 90 S 330 40, 360 60'); offset-rotate: 0deg;
  animation: run 7s ease-in-out infinite alternate;
}
@keyframes run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.steps-mini { display: grid; gap: 10px; margin-top: 16px; }
.step-mini { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: #cdddf5; }
.step-mini .ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.step-mini.done .ic { background: rgba(34,201,138,.18); }
.step-mini small { color: #90a6c8; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcdce8; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(6,84,113,.12), rgba(43,160,196,.14)); color: var(--blue-500);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .97rem; }

.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.step .num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--grad-brand); margin-bottom: 16px;
}
.step .num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { font-size: .93rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checklist { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(34,201,138,.14); color: var(--green-400); display: grid; place-items: center; margin-top: 2px; }
.checklist b { display: block; color: var(--ink-900); }
.checklist span { font-size: .95rem; }

.visual-panel {
  background: var(--grad-deep); border-radius: var(--radius-lg); padding: 30px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.visual-panel::after { content:""; position:absolute; inset:0; background: radial-gradient(400px 220px at 80% 10%, rgba(43,160,196,.18), transparent 60%); }

/* POD proof mock */
.pod {
  position: relative; z-index: 2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 18px;
}
.pod .photo { height: 150px; border-radius: 12px; background: linear-gradient(135deg, #123a4d, #0d1c28); position: relative; overflow: hidden; display:grid; place-items:center; }
.pod .photo span { font-size:.8rem; color:#8ea6c8; }
.pod .row { display:flex; align-items:center; justify-content:space-between; margin-top:14px; font-size:.85rem; color:#c7d6ee; }
.pod .sig { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.05); }
.pod .sig svg { width: 100%; height: 46px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 700px){ .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; padding: 8px; }
.stat b { display:block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing:-.03em; }
.stat span { color: var(--ink-500); font-weight: 600; font-size: .92rem; }

/* ---------- Audience columns ---------- */
.audience { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px){ .audience { grid-template-columns: 1fr; } }
.aud-card { border:1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; background:#fff; box-shadow: var(--shadow-sm); }
.aud-card h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.aud-card ul { list-style:none; margin-top:18px; display:grid; gap:12px; }
.aud-card li { display:flex; gap:11px; font-size:.96rem; color: var(--ink-700); }
.aud-card li svg { color: var(--blue-500); flex:none; }
.tag { font-size:.74rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--red-500); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-deep); color:#fff; border-radius: var(--radius-lg); padding: 60px; text-align:center; position:relative; overflow:hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 280px at 50% -10%, rgba(43,160,196,.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c7d6ee; max-width: 560px; margin: 14px auto 30px; }
@media (max-width: 620px){ .cta-band { padding: 40px 24px; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--grad-deep); color:#fff; position:relative; overflow:hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 260px at 85% 0%, rgba(43,160,196,.18), transparent 60%); }
.page-hero .inner { position:relative; z-index:2; padding: 74px 0; max-width: 720px; }
.page-hero h1 { color:#fff; }
.page-hero p { color:#c7d6ee; font-size: 1.12rem; margin-top: 16px; }
.crumbs { font-size:.85rem; color:#9fb4d6; margin-bottom: 16px; }
.crumbs a:hover { color:#fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:7px; color: var(--ink-900); }
.field input, .field select, .field textarea {
  width:100%; padding: 13px 15px; border:1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink-900);
  background:#fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(6,84,113,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size:.82rem; color: var(--ink-500); margin-top:6px; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }

.card-form { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }

.note {
  display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:12px;
  background: rgba(255,176,32,.10); border:1px solid rgba(255,176,32,.3); font-size:.88rem; color:#7a5600; margin-top: 18px;
}
.note svg { flex:none; color: var(--amber-400); }

/* ---------- Contact info ---------- */
.info-list { display:grid; gap: 20px; }
.info-item { display:flex; gap:15px; }
.info-item .ic { width:46px; height:46px; border-radius:12px; background: linear-gradient(135deg, rgba(6,84,113,.12), rgba(43,160,196,.14)); color: var(--blue-500); display:grid; place-items:center; flex:none; }
.info-item b { display:block; }
.info-item a, .info-item p { color: var(--ink-700); font-size:.96rem; }

/* ---------- Job listings ---------- */
.jobs { display:grid; gap:16px; }
.job {
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.job:hover { border-color:#bcdce8; transform: translateX(3px); }
.job h3 { font-size:1.15rem; }
.job .meta { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; font-size:.86rem; color: var(--ink-500); }
.job .meta span { display:inline-flex; align-items:center; gap:6px; }
.chip { display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color: var(--green-400); background: rgba(34,201,138,.12); padding:5px 10px; border-radius:999px; }

/* ---------- Values ---------- */
.value { display:flex; gap:16px; }
.value .ic { width:46px; height:46px; border-radius:12px; background: linear-gradient(135deg, rgba(6,84,113,.12), rgba(43,160,196,.14)); color: var(--blue-500); display:grid; place-items:center; flex:none; }
.value h3 { font-size:1.1rem; margin-bottom:4px; }
.value p { font-size:.94rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color:#c7d6ee; padding: 66px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap:32px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color:#fff; margin-bottom:16px; }
.site-footer p { color:#8ea6c8; font-size:.92rem; }
.footer-col h4 { color:#fff; font-size:.86rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px; }
.footer-col a { display:block; color:#9fb4d6; font-size:.94rem; padding:5px 0; transition: color .15s ease; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:44px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; color:#7f96b8; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
