/* ============================================================
   LOGÍSTICA M — Estilos del sitio (páginas internas)
   La base (variables, reset, tipografía, botones, eyebrow,
   toggle y foco accesible) vive en tokens.css — IMPORTARLO
   ANTES que este archivo. Acá solo van componentes propios
   del sitio, todos derivados de los tokens.
   ============================================================ */

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  background: rgba(15, 37, 69, 0.35);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur), background var(--dur);
}
.navbar.scrolled { padding: 11px var(--pad-x); background: rgba(10, 18, 35, 0.88); }

.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--white); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 7px; flex-shrink: 0;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: contain; }
/* Wordmark vectorizado (no se re-tipea): navy -> blanco sobre fondo oscuro */
.brand-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  color: var(--white); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  opacity: 0.85; transition: opacity var(--dur); letter-spacing: var(--track-snug);
}
.nav-link:hover { opacity: 1; }
.nav-link.current { opacity: 1; color: var(--coral); }

/* CTA del navbar — coral lleno, texto OSCURO (AAA), compacto */
.btn-nav-cta {
  background: var(--coral); color: var(--on-coral);
  border: none; padding: 11px 22px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-semi); cursor: pointer;
  transition: all var(--dur) var(--ease); letter-spacing: var(--track-snug);
  font-family: inherit; display: inline-block;
}
.btn-nav-cta:hover { background: var(--coral-hover); transform: translateY(-1px); }

/* Hamburguesa (mobile) */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; z-index: 95;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== EYEBROW (ajuste de layout sobre tokens) ==================== */
.eyebrow { margin-bottom: var(--space-5); }

/* ==================== SECCIONES (páginas internas) ==================== */
.page-wrap { padding-top: 70px; }  /* espacio bajo el navbar fijo */

.page-hero {
  position: relative;
  padding: 120px var(--pad-x) 80px;
  background: radial-gradient(120% 90% at 80% 0%, rgba(27,61,110,0.6), var(--navy-deep) 60%);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--coral), transparent);
  opacity: 0.5;
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

h1.page-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold); line-height: 1.04; letter-spacing: var(--track-tight);
  margin-bottom: 22px; max-width: 14ch;
}
.page-lead {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular); line-height: 1.5; color: var(--text-muted); max-width: 56ch;
}

.section { padding: var(--space-9) var(--pad-x); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--ink); }
h2.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold); line-height: 1.1; letter-spacing: var(--track-tight);
  margin-bottom: 18px; max-width: 20ch;
}
.section-sub { font-size: var(--fs-lead); color: var(--text-muted); max-width: 60ch; margin-bottom: var(--space-7); line-height: 1.55; }

/* Split 2 columnas (features + form) — responsive */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }

/* Grid de cards */
.cards { display: grid; gap: var(--space-5); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur), background var(--dur);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,99,64,0.4); background: var(--surface-hover); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--coral-tint); color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-bottom: 12px; letter-spacing: var(--track-snug); }
.card p { color: var(--text-muted); line-height: 1.55; font-size: 0.98rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--coral); font-weight: var(--fw-semi);
  font-size: 0.95rem;
}
.card-link .arrow { transition: transform var(--dur) var(--ease); }
.card-link:hover .arrow { transform: translateX(4px); }

/* Lista de features */
.feature-row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: none; }
.feature-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-tint); color: var(--active-green);
  display: flex; align-items: center; justify-content: center;
}
.feature-check svg { width: 15px; height: 15px; }
.feature-text h4 { font-size: 1.05rem; font-weight: var(--fw-semi); margin-bottom: 5px; }
.feature-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stat { text-align: center; padding: 28px; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: var(--fw-black); color: var(--coral); letter-spacing: var(--track-tight); line-height: 1; }
.stat-label { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }

/* ==================== FORM ==================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: var(--space-6); backdrop-filter: blur(8px);
}
.form-q { font-size: 15px; font-weight: var(--fw-semi); margin-bottom: var(--space-4); }
.form-toggle { display: flex; gap: 10px; margin-bottom: 22px; }
.toggle-opt .ic { width: 18px; height: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.form-field input, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--white); font-size: 15px; font-family: inherit; transition: border-color var(--dur);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--coral); }
.form-field input::placeholder { color: var(--text-faint); }
.dyn-field { display: none; }
.dyn-field.show { display: block; }
/* Submit — coral lleno, texto OSCURO (AAA) */
.btn-submit {
  width: 100%; padding: 16px; background: var(--coral); color: var(--on-coral);
  border: none; border-radius: var(--r-md); font-size: 1rem; font-weight: var(--fw-semi);
  cursor: pointer; transition: all var(--dur) var(--ease); font-family: inherit;
  box-shadow: var(--shadow-coral);
}
.btn-submit:hover { background: var(--coral-hover); transform: translateY(-2px); box-shadow: var(--shadow-coral-h); }
.btn-submit:disabled { transform: none; cursor: default; }
.form-note { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }

/* ==================== FOOTER ==================== */
.footer { background: var(--navy-darkest); padding: var(--space-8) var(--pad-x) 40px; border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-7); }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-tagline { font-size: 14px; color: var(--text-faint); line-height: 1.5; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: var(--space-4); font-weight: var(--fw-semi); }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color var(--dur); }
.footer-col a:hover { color: var(--white); }
.footer-driver { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 260px; }
.footer-driver p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }
.footer-driver a { color: var(--coral); font-weight: var(--fw-semi); font-size: 13.5px; }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Redes sociales en el footer (Instagram / LinkedIn / WhatsApp) */
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--text-muted); font-size: 13.5px; font-weight: var(--fw-medium); transition: color var(--dur); }
.social-link:hover { color: var(--white); }
.social-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--white); flex-shrink: 0; transition: background var(--dur) var(--ease), border-color var(--dur), color var(--dur); }
.social-link:hover .social-ic { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.social-ic svg { width: 18px; height: 18px; display: block; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .cards.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Sin backdrop-filter en mobile: permite que el menú fixed cubra el viewport completo */
  .navbar { padding: 14px var(--pad-x-mobile); backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 18, 35, 0.96); }
  .navbar.scrolled { padding: 11px var(--pad-x-mobile); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; align-items: center;
    gap: var(--space-6);
    background: rgba(10, 18, 35, 0.98);
    transform: translateX(100%); transition: transform 0.35s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 22px; }
  .nav-links .btn-nav-cta { font-size: 18px; padding: 14px 28px; }

  .page-hero { padding: 110px var(--pad-x-mobile) 60px; }
  .section { padding: var(--space-9) var(--pad-x-mobile); }
  .cards.cols-3, .cards.cols-2 { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .footer { padding: 44px var(--pad-x-mobile) 30px; }
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 32px; }
  .brand-mark { width: 33px; height: 33px; }
}
