/* ---------- Design tokens ---------- */
:root {
  --orange: #f0641e;
  --orange-dark: #d3500f;
  --orange-light: #ff8a4c;
  --ink: #0b0c0f;
  --ink-soft: #16181d;
  --gray-900: #1c1f26;
  --gray-600: #5b6270;
  --gray-300: #d7dae0;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(11, 12, 15, 0.35);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

main > section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 800;
}

p { margin: 0 0 1em; color: var(--gray-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(240, 100, 30, 0.55);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--gray-300);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.topbar-sep { opacity: .4; }
.topbar-cta {
  margin-left: auto;
  color: var(--orange-light);
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-name em { color: var(--orange); font-style: normal; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.main-nav a {
  color: var(--gray-300);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero: scroll-scrubbed logo reveal ---------- */
.hero-pin {
  position: relative;
  height: 280vh;
  background: var(--ink);
}
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
}
.hero-media img,
.hero-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,15,0.92) 10%, rgba(11,12,15,0.6) 55%, rgba(11,12,15,0.35) 100%),
    linear-gradient(0deg, rgba(11,12,15,0.75), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 46px 0 0;
  color: var(--gray-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-hint span {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--orange-light), transparent);
  animation: hero-hint-drop 1.8s ease-in-out infinite;
}
@keyframes hero-hint-drop {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: 100vh; }
  .hero-scroll-hint { display: none; }
  .hero-scroll-hint span { animation: none; }
}
@media (max-width: 640px) {
  .hero-pin { height: 200vh; }
}
.eyebrow {
  display: inline-block;
  color: var(--orange-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-lead {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--orange);
}
.stat-label {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--orange-light); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 640px;
}
.section-title.light { color: var(--white); }
.section-lead { max-width: 640px; font-size: 1.05rem; }
.section-lead.light { color: var(--gray-300); }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-media { aspect-ratio: 4/3; overflow: hidden; }
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 22px; }
.service-icon { font-size: 1.6rem; }
.service-body h3 { font-size: 1.15rem; margin-top: 10px; }
.service-body p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about { padding: 100px 0; background: var(--gray-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 22px;
}
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 100, 30, 0.12);
  border-radius: 12px;
  font-size: 1.3rem;
}
.feature-list h4 { margin: 0 0 4px; font-size: 1rem; }
.feature-list p { margin: 0; font-size: 0.92rem; }

/* ---------- Process ---------- */
.process { padding: 100px 0; background: var(--ink); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.process-step {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.process-number {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 12px;
}
.process-step h3 { color: var(--white); font-size: 1.1rem; }
.process-step p { color: var(--gray-300); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Testimonials: cargo-tag dossier ---------- */
.testimonials {
  position: relative;
  padding: 110px 0 120px;
  background: var(--gray-900);
  overflow: hidden;
  --tag-bg: #faf8f4;
}
.testimonials-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(240, 100, 30, 0.16), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(240, 100, 30, 0.08), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: auto, auto, 28px 28px;
  pointer-events: none;
}
.testimonials .container { position: relative; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  margin-top: 56px;
  align-items: start;
}

.tt-card {
  --rotate: 0deg;
  position: relative;
  background: var(--tag-bg);
  border-radius: 6px;
  padding: 22px 24px 26px;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--rotate));
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.testimonials-grid .tt-card:nth-child(1) { --rotate: -1.6deg; }
.testimonials-grid .tt-card:nth-child(2) { --rotate: 1.1deg; }
.testimonials-grid .tt-card:nth-child(3) { --rotate: -0.8deg; }
.tt-card:hover {
  --rotate: 0deg;
  transform: translateY(-8px) rotate(var(--rotate));
  box-shadow: 0 32px 50px -18px rgba(240, 100, 30, 0.35);
}

.tt-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px dashed rgba(11, 12, 15, 0.18);
}
.tt-waybill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
}
.tt-mode { font-size: 1.15rem; line-height: 1; }

/* punch-hole notches over the perforation line */
.tt-stub::before,
.tt-stub::after {
  content: "";
  position: absolute;
  top: 68px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-900);
}
.tt-stub::before { left: -11px; }
.tt-stub::after { right: -11px; }

.tt-metric {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.tt-metric strong {
  font-size: 1.3rem;
  color: var(--orange-dark);
  font-weight: 800;
  margin-right: 4px;
}

.tt-quote { margin: 0 0 20px; }
.tt-quote p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}
.tt-quote p::before { content: "“"; color: var(--orange); font-style: normal; }
.tt-quote p::after { content: "”"; color: var(--orange); font-style: normal; }

.tt-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(11, 12, 15, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tt-person strong { display: block; font-size: 0.95rem; color: var(--ink); }
.tt-person span { font-size: 0.82rem; color: var(--gray-600); }
.tt-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.tt-route-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
}

@media (prefers-reduced-motion: reduce) {
  .tt-card { transition: none; }
}

/* ---------- CTA banner: autoplaying flight footage ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 80px 0;
}
.cta-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 8, 4, 0.96) 0%, rgba(30, 14, 5, 0.9) 45%, rgba(130, 55, 14, 0.84) 75%, rgba(180, 75, 18, 0.8) 100%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.cta-inner h2 { color: var(--orange-light); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-inner p { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 0; }

/* Floating "Enviar solicitud" button, pinned over the video */
.cta-fab {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: 40px;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.55);
  transition: transform .2s ease, background .2s ease;
}
.cta-fab:hover { background: var(--gray-900); transform: translateY(-3px); }

/* ---------- Quote modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 12, 15, 0.72);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.modal-box h3 { font-size: 1.4rem; margin-bottom: 16px; padding-right: 24px; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--gray-300); }
.modal-info {
  background: rgba(240, 100, 30, 0.08);
  border: 1px solid rgba(240, 100, 30, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.modal-info strong { display: block; font-size: 0.88rem; color: var(--orange-dark); margin-bottom: 4px; }
.modal-info p { margin: 0; font-size: 0.88rem; color: var(--gray-600); line-height: 1.45; }

.cta-form {
  display: grid;
  gap: 12px;
}
.cta-form input {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-family: var(--font);
  font-size: 0.95rem;
}
.cta-form input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.cta-form .btn { width: 100%; }
.form-note {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--orange-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  .cta-fab {
    position: relative;
    display: block;
    width: calc(100% - 48px);
    text-align: center;
    margin: 28px 24px 0;
    right: auto;
    bottom: auto;
  }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--gray-300); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: var(--gray-300); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--gray-300); transition: color .15s ease; }
.footer-col a:hover { color: var(--orange-light); }
.footer-col li { font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 24px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-cta { margin-left: 0; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- Mobile nav open state ---------- */
.site-header.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  padding: 20px 24px;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
