﻿/* ============= TOKENS ============= */
:root {
  --karida-blue: #29B6F6;
  --karida-blue-deep: #0098D6;
  --karida-blue-soft: #E6F6FE;
  --slate: #6B7B7E;
  --slate-dark: #4A5759;
  --carbon: #15191C;
  --ink: #1F262A;
  --paper: #FAFBFC;
  --paper-warm: #F4F5F6;
  --line: #E3E7E9;
  --line-soft: #EDF0F1;

  --font-display: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --max: 1280px;

  --shadow-sm: 0 1px 2px rgba(21, 25, 28, 0.05);
  --shadow-md: 0 8px 30px rgba(21, 25, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(21, 25, 28, 0.12);
}

/* ============= RESET ============= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============= TYPE ============= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--karida-blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--karida-blue);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--carbon);
  line-height: 0.98;
  text-transform: uppercase;
}
h1 { font-size: clamp(58px, 9vw, 148px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(40px, 5.5vw, 88px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: 0; }
h4 { font-size: 18px; letter-spacing: 0.02em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--slate-dark); line-height: 1.55; max-width: 56ch; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============= NAV ============= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.nav:not(.scrolled) .nav-brand { color: white; }

.nav:not(.scrolled) .nav-brand .brand-tagline { border-left-color: rgba(255,255,255,0.3); }
.nav:not(.scrolled) .nav-brand .brand-tagline small { color: rgba(255,255,255,0.7); }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.nav:not(.scrolled) .nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav:not(.scrolled) .nav-cta { background: white; color: var(--carbon); }
.nav:not(.scrolled) .nav-cta:hover { background: var(--karida-blue); color: white; }
.nav.scrolled .nav-brand { color: var(--carbon); }
.nav.scrolled {
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--carbon);
}
.nav-brand .brand-logo-svg {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-brand .brand-logo-svg { height: 40px; }
.nav-brand .brand-logo-footer { height: 56px; }
.nav-brand .bird { width: 34px; height: 34px; flex-shrink: 0; }
.nav-brand .bird path { stroke: var(--karida-blue); }
.nav-brand .label { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .brand-tagline {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-brand .brand-tagline small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--slate);
  text-transform: uppercase;
}
.nav-brand .label small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--slate);
  margin-top: 3px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-dark);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--carbon); background: var(--line-soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--carbon);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--karida-blue-deep); transform: translateY(-1px); }
.nav-cta .arrow { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-cta:hover .arrow { transform: translate(2px, -2px); }

.nav-toggle { display: none; }

/* ============= HERO ============= */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero h1 {
  position: relative;
  display: inline-block;
}
.hero h1 .word { display: inline-block; overflow-y: hidden; overflow-x: visible; vertical-align: top; padding: 0.08em 0.1em 0.16em 0; line-height: 1.05; }
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  padding: 0 0.04em;
}
.hero h1 .word:nth-child(1) > span { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) > span { animation-delay: 0.22s; }
.hero h1 .word:nth-child(3) > span { animation-delay: 0.34s; }
.hero h1 .accent { color: var(--karida-blue); font-style: italic; font-weight: 400; }

@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-meta .row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero-meta .row strong { color: var(--carbon); font-weight: 500; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--karida-blue);
  color: white;
  box-shadow: 0 12px 30px -10px rgba(41, 182, 246, 0.55);
}
.btn-primary:hover { background: var(--karida-blue-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--carbon);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--carbon); color: white; border-color: var(--carbon); }
.btn .arrow { width: 14px; height: 14px; }

/* speed-lines visual */
.speed-lines {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.speed-lines.tr {
  top: 12%;
  right: -8%;
  width: 65vw;
  max-width: 900px;
  opacity: 0.85;
}
.speed-lines path {
  stroke: var(--karida-blue);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 1.6s ease 0.3s forwards;
}
.speed-lines path:nth-child(2) { animation-delay: 0.5s; }
.speed-lines path:nth-child(3) { animation-delay: 0.7s; }
.speed-lines path:nth-child(4) { animation-delay: 0.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-tag {
  position: absolute;
  bottom: 40px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero-tag .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--karida-blue);
  position: relative;
}
.hero-tag .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--karida-blue);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============= MARQUEE ============= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--slate);
  align-items: center;
}
.marquee-track .dot { color: var(--karida-blue); }
.marquee-track strong { color: var(--carbon); font-weight: 600; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============= SECTION ============= */
section { position: relative; }
.section {
  padding: 130px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head .lead { margin-top: 20px; }
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.2em;
}

/* ============= SERVICES ============= */
#servicios { background: var(--paper-warm); }
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--paper-warm);
  padding: 48px 36px 56px;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
}
.service:hover { background: white; }
.service .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--slate);
}
.service .icon {
  width: 56px;
  height: 56px;
  margin: 28px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.service .icon svg { width: 28px; height: 28px; stroke: var(--carbon); transition: stroke 0.3s; }
.service:hover .icon { background: var(--karida-blue); border-color: var(--karida-blue); transform: rotate(-8deg); }
.service:hover .icon svg { stroke: white; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--slate-dark); font-size: 15px; }
.service .arrow-go {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--carbon);
}
.service .arrow-go svg { width: 12px; height: 12px; transition: transform 0.3s; }
.service:hover .arrow-go svg { transform: translate(3px, -3px); }

/* ============= RUTAS ============= */
.routes-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.route-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.route-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: padding 0.3s, background 0.3s;
}
.route-row:hover { padding-left: 12px; }
.route-row.active { background: linear-gradient(to right, var(--karida-blue-soft), transparent); padding-left: 12px; }
.route-row .code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate);
}
.route-row .pair {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--carbon);
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.route-row .pair .arrow {
  color: var(--karida-blue);
  font-size: 18px;
}
.route-row .km {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.08em;
}

.map {
  position: sticky;
  top: 110px;
  background: var(--carbon);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.map-header strong { color: var(--karida-blue); font-weight: 500; }
.map-svg { flex: 1; width: 100%; }
.map-svg .arg-outline { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.map-svg .city {
  fill: rgba(255,255,255,0.4);
  transition: fill 0.3s, r 0.3s;
}
.map-svg .city.active { fill: var(--karida-blue); }
.map-svg .city-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  fill: rgba(255,255,255,0.55);
  text-transform: uppercase;
  transition: fill 0.3s, font-weight 0.3s;
}
.map-svg .city-label.active { fill: white; font-weight: 600; }
.map-svg .hub { fill: var(--karida-blue); }
.map-svg .hub-pulse {
  fill: var(--karida-blue);
  opacity: 0.3;
  animation: hub-pulse 2.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes hub-pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}
.map-svg .route-line {
  stroke: var(--karida-blue);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 4;
  opacity: 0.25;
  transition: opacity 0.3s, stroke-width 0.3s;
}
.map-svg .route-line.active { opacity: 1; stroke-width: 2; stroke-dasharray: 0; }
.map-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.map-footer .stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.map-footer .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: white;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 4px;
}

/* ============= VALORES ============= */
#valores { background: var(--carbon); color: var(--paper); padding: 140px 0; }
#valores h2, #valores h3 { color: white; }
#valores .lead { color: rgba(255,255,255,0.7); }
#valores .eyebrow { color: var(--karida-blue); }
#valores .eyebrow::before { background: var(--karida-blue); }
#valores .num { color: rgba(255,255,255,0.4); }

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.value {
  background: var(--carbon);
  padding: 36px 28px 40px;
  transition: background 0.3s;
  cursor: pointer;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.value:hover { background: #1F262A; }
.value .glyph {
  width: 36px;
  height: 36px;
  margin-bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--karida-blue);
  border: 1px solid rgba(41, 182, 246, 0.4);
  border-radius: 50%;
}
.value h3 { font-size: 28px; margin-top: 60px; margin-bottom: 14px; }
.value p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.kicker {
  margin-top: 80px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.kicker-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  font-style: italic;
  color: white;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.kicker-quote::before { content: "“"; color: var(--karida-blue); font-style: normal; margin-right: 4px; }
.kicker-quote::after { content: "”"; color: var(--karida-blue); font-style: normal; }
.kicker-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ============= FLOTA ============= */
.fleet-wrap {
  display: flex;
  gap: 48px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 48px;
}
.fleet-img {
  background:
    repeating-linear-gradient(
      45deg,
      var(--paper-warm) 0,
      var(--paper-warm) 12px,
      #EDF0F1 12px,
      #EDF0F1 24px
    );
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fleet-img .placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--slate);
  text-transform: uppercase;
  background: white;
  padding: 12px 18px;
  border: 1px solid var(--line);
}
.fleet-img svg.truck-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fleet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.fleet-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fleet-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: center;
}
.fleet-list li:last-child { border-bottom: 1px solid var(--line); }
.fleet-list li .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.16em;
}
.fleet-list li .name { font-weight: 500; color: var(--carbon); }
.fleet-list li .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--karida-blue-deep);
  padding: 4px 10px;
  border: 1px solid var(--karida-blue);
  border-radius: 100px;
}

/* ============= CONTACTO ============= */
#contacto {
  background: var(--karida-blue);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
#contacto h2 { color: white; font-size: clamp(56px, 8vw, 132px); }
#contacto .eyebrow { color: white; }
#contacto .eyebrow::before { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-card {
  background: white;
  color: var(--carbon);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input, .field textarea, .field select {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font: inherit;
  font-size: 16px;
  color: var(--carbon);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--karida-blue); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card .btn-primary { align-self: flex-start; margin-top: 8px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: white;
}
.contact-info .info-block {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 22px;
}
.contact-info .info-block label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 6px;
}
.contact-info .info-block .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ============= FOOTER ============= */
.footer {
  background: var(--carbon);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-brand { color: white; font-size: 32px; }
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 16px; max-width: 32ch; font-size: 14px; }
.footer-col h4 {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--karida-blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============= REVEAL ============= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============= HERO BG (full-bleed photo) ============= */
.hero-bg {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,18,21,0.85) 0%, rgba(15,18,21,0.4) 35%, rgba(15,18,21,0.55) 70%, rgba(15,18,21,0.95) 100%),
    linear-gradient(90deg, rgba(15,18,21,0.6) 0%, rgba(15,18,21,0.15) 60%, transparent 100%);
  z-index: 1;
}
.hero-bg-lines {
  z-index: 2;
  opacity: 0.35;
}
.hero-bg-lines path { stroke: white !important; }

.hero-grid-bg {
  position: relative;
  z-index: 3;
  padding: 180px 28px 140px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-grid-bg .hero-text { max-width: 920px; }
.hero-bg h1 { color: white; }
.hero-bg h1 .accent { color: var(--karida-blue); }

.eyebrow-light { color: var(--karida-blue) !important; }
.eyebrow-light::before { background: var(--karida-blue) !important; }

.lead-light { color: rgba(255,255,255,0.85) !important; }

.hero-sub-bg {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero-meta-light .row {
  border-bottom-color: rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.7) !important;
}
.hero-meta-light .row strong { color: white !important; }

.btn-ghost-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost-light:hover {
  background: white;
  color: var(--carbon);
  border-color: white;
}

.hero-tag-light {
  position: absolute;
  bottom: 30px;
  left: 28px;
  z-index: 4;
  color: rgba(255,255,255,0.7);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  right: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 14px; height: 22px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 960px) {
  .hero-grid-bg { padding: 140px 24px 110px; }
  .hero-sub-bg { grid-template-columns: 1fr; gap: 28px; }
  .hero-scroll-hint { display: none; }
}

/* ============= HERO PHOTO ============= */
.hero-grid-photo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-grid-photo .hero-text { min-width: 0; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: fadeUp 1s ease 0.5s forwards;
  background: var(--paper-warm);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21,25,28,0.5) 100%);
  pointer-events: none;
}
.hero-photo-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(21,25,28,0.85);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 100px;
  color: white;
  z-index: 2;
}
.hero-photo-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--karida-blue);
  box-shadow: 0 0 0 4px rgba(41,182,246,0.25);
  animation: pulseDot 1.6s ease infinite;
}
@keyframes pulseDot {
  50% { box-shadow: 0 0 0 8px rgba(41,182,246,0.1); }
}
.hero-photo-tag small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.hero-photo-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ============= FLEET HERO PHOTO ============= */
.fleet-hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  flex-shrink: 0;
  max-width: 580px;
  width: 100%;
}
.fleet-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.fleet-hero-photo:hover img { transform: scale(1.03); }
.fleet-hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21,25,28,0.65) 100%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.fleet-photo-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  background: rgba(21,25,28,0.7);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: var(--radius);
  z-index: 2;
}

/* ============= GALLERY MARQUEE ============= */
.gallery-section {
  background: var(--carbon);
  padding: 32px 0;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 16px;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.gallery-item {
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1F262A;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: filter 0.3s, transform 0.5s;
}
.gallery-item:hover img { filter: saturate(1.1); transform: scale(1.03); }

@media (max-width: 960px) {
  .hero-grid-photo { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { aspect-ratio: 4/3; max-height: 480px; }
  .fleet-gallery { grid-template-columns: 1fr 1fr; min-height: 400px; }
  .fleet-gallery .fleet-photo-main { grid-row: 1; grid-column: 1 / 3; aspect-ratio: 16/9; }
  .gallery-item { width: 240px; height: 160px; }
}

/* ============= TRABAJÁ CON NOSOTROS ============= */
.join-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.join-roles {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.role {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, background 0.3s;
}
.role:hover { padding-left: 16px; background: linear-gradient(to right, var(--karida-blue-soft), transparent); }
.role-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--karida-blue-deep);
  padding-top: 6px;
}
.role-body h3 { margin-bottom: 10px; }
.role-body p { color: var(--slate-dark); font-size: 15px; max-width: 56ch; }
.role-tags {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.role-tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.join-form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-md);
}
.join-form-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.join-form { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 960px) {
  .join-wrap { grid-template-columns: 1fr; gap: 40px; }
  .join-form-card { position: relative; top: 0; }
  .role { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
}

/* ============= FILE UPLOAD ============= */
.file-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-upload:hover {
  border-color: var(--karida-blue);
  background: var(--karida-blue-soft);
}
.file-upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
  clip: rect(0,0,0,0);
}
.file-upload-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-dark);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.file-upload-icon svg { width: 18px; height: 18px; }
.file-upload-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-upload-text strong {
  font-size: 14px;
  color: var(--carbon);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-upload-text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.file-upload-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--karida-blue-deep);
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--karida-blue);
  border-radius: 100px;
  background: white;
  flex-shrink: 0;
}
.file-upload.has-file {
  border-style: solid;
  border-color: var(--karida-blue);
  background: var(--karida-blue-soft);
}
.file-upload.has-file .file-upload-icon {
  background: var(--karida-blue);
  color: white;
  border-color: var(--karida-blue);
}
.file-upload.has-file .file-upload-cta {
  color: white;
  background: var(--karida-blue);
}
.file-upload.has-file .file-upload-cta::before {
  content: "✓ ";
}

/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; padding: 8px; border-radius: var(--radius); }
  .hero-sub { grid-template-columns: 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .services { grid-template-columns: 1fr; }
  .routes-wrap { grid-template-columns: 1fr; gap: 40px; }
  .map { position: relative; top: 0; aspect-ratio: 1; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .fleet-wrap { flex-direction: column; padding: 28px; gap: 28px; }
  .fleet-hero-photo { max-width: 100%; aspect-ratio: 16/9; }
  .fleet-content { border-left: none; border-top: 1px solid var(--line); padding-top: 28px; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .kicker { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 90px 0; }
  .hero { padding: 130px 0 60px; min-height: auto; }
}
@media (max-width: 540px) {
  .values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav-cta span:not(.arrow) { display: none; }
}

/* ============= NAV HAMBURGER ============= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav:not(.scrolled) .nav-toggle { color: white; }
.nav.scrolled .nav-toggle { color: var(--carbon); }
.nav.scrolled .nav-toggle:hover { background: var(--paper-warm); border-color: var(--line); }

/* ============= MOBILE MENU ============= */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: var(--carbon);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 6px 20px;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: white; }
.nav-mobile-cta {
  margin-top: 20px;
  font-size: clamp(14px, 4vw, 18px);
  font-family: var(--font-body);
  background: var(--karida-blue);
  color: white !important;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}
.nav-mobile-cta:hover { background: var(--karida-blue-deep); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
}


/* ============= HERO VIDEO ============= */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-fallback {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-video + .hero-bg-fallback { opacity: 0; }

@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero-bg-fallback { opacity: 1 !important; }
}
