/*
  NKARGO Website Stylesheet
  Colores, tipografía y layout basados en el brand book.
*/

/* Logo en header */
.logo img {
  height: 40px;        /* Ajusta el tamaño del logo */
  width: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 3rem; /* separa el logo del menú */
}

/* Variables de tema */
:root {
  --primary-color: #F45A20; /* Naranja primario del brand book */
  --dark-bg: #1A1A1A;       /* Fondos oscuros (header, secciones dark) */
  --text-dark: #000000;
  --text-light: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-dark-bg: #222222;
  --border-radius: 8px;
  --transition: 0.3s ease;
  font-size: 16px;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--card-bg);
  overflow-x: hidden;
  scroll-behavior: smooth; /* scroll suave a las secciones */
}

main {
  padding-top: 90px; /* evita que el contenido quede oculto bajo el header sticky */
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Compensa la altura del header sticky cuando se hace clic en el menú */
main section[id] {
  scroll-margin-top: 90px;
}

/* =========================
   NAVBAR / HEADER
   ========================= */

.header {
  background-color: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 1.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Botón hamburguesa (oculto en desktop, visible en móvil) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 999px;
  transition: var(--transition);
  transform-origin: center;
}

/* Espaciado entre líneas del icono */
.nav-toggle span + span {
  margin-top: 4px;
}

/* Animación a "X" cuando está abierto */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menú principal */
.nav-menu {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.25s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* CTA del header */
.nav-cta {
  margin-left: 2.5rem;
}

/* =========================
   BOTONES
   ========================= */

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
}

.btn {
  border-radius: 999px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 40px; /* añade respiro visual superior */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62); /* oscurece la imagen para contraste */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: left;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-cta .btn {
  margin-right: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.9rem;
  font-size: 0.98rem;
}

/* =========================
   ABOUT / QUIÉNES SOMOS
   ========================= */
.about {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3.2rem 3.4rem;
  border-radius: 22px;
  margin-top: 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about h2 {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.about p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
  font-size: 1rem;
}

/* =========================
   SERVICIOS
   ========================= */

.services {
  padding: 5rem 0;
  text-align: center;
}

.services h2 {
  font-size: 2.1rem;
  margin-bottom: 2.8rem;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 50px;
}

.services-group {
  margin-bottom: 3rem;
  text-align: left;
}

.services-group h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
  text-align: left;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 2.1rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: left;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.service-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* =========================
   SECCIÓN "WHY" (OSCURA)
   ========================= */

.section-dark {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.why h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.why-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.98rem;
  color: #dddddd;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card {
  background-color: var(--card-dark-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.why-card .service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.why-card p {
  font-size: 0.95rem;
  color: #cccccc;
}

/* =========================
   CIFRAS / STATS
   ========================= */
.stats {
  padding: 5rem 0 4rem;
  text-align: center;
}

.stats h2 {
  font-size: 2.1rem;
  margin-bottom: 2.4rem;
  color: var(--dark-bg);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #555555;
}

/* =========================
   PROCESO
   ========================= */

.process {
  padding: 5rem 0;
  text-align: center;
}

.process h2 {
  font-size: 2.05rem;
  margin-bottom: 2rem;
  color: var(--dark-bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--dark-bg);
}

.step p {
  font-size: 0.93rem;
  color: #555;
}

/* =========================
   INDUSTRIAS
   ========================= */
.industries {
  padding: 5rem 0;
}

.industries .container {
  max-width: 900px;
  margin: 0 auto;
}

.industries h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.industries p {
  text-align: center;
  margin-bottom: 2rem;
  color: #dddddd;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.industry-tags span {
  background-color: var(--card-dark-bg);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #2a2a2a, #383838);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================
   CTA / CONTACTO
   ========================= */

.cta {
  text-align: center;
  padding: 5rem 0;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #dddddd;
}

.cta .btn {
  margin-top: 1rem;
}

/* =========================
   TESTIMONIOS
   ========================= */
.testimonials {
  padding: 5rem 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-bg);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  color: #444;
  position: relative;
}

.testimonial-card p {
  margin-bottom: 1rem;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.05);
}

.testimonial-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* =========================
   FAQ
   ========================= */
.faq {
  padding: 5rem 0;
}

.faq h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark-bg);
}

.faq-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.faq-item p {
  font-size: 0.92rem;
  color: #555555;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background: #111111;
  color: #ffffff;
  padding: 32px 0 18px;
  margin-top: 80px;
}

.footer-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo-img {
  height: 50px;      /* tamaño del logo en el footer */
  width: auto;
  display: block;
}

/* Links centro */
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Redes derecha */
.footer-social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.footer-social a {
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
}

/* Copy */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #aaaaaa;
}

/* ============================================================
   🔥 ANIMACIONES NIVEL ÉLITE – NKARGO GLOBAL LOGISTICS
   Fade-in + Slide-up + Blur-in + Parallax Reveal + Stagger
   ============================================================ */

/* Títulos con línea animada (line reveal) */
.line-title {
  position: relative;
  display: inline-block;
}

.line-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0;
  background-color: var(--primary-color);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-title.visible::after {
  width: 64px;
}

/* Estado inicial para elementos revelables */
.reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.75s ease-out,
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s ease-out;
}

/* Estado visible */
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Variación slide-left */
.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  filter: blur(6px);
  transition: opacity 0.9s ease-out,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease-out;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Variación slide-right */
.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  filter: blur(6px);
  transition: opacity 0.9s ease-out,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease-out;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Stagger automático para tarjetas (hasta 10 elementos) */
.reveal-stagger:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger:nth-child(9) { transition-delay: 0.85s; }
.reveal-stagger:nth-child(10) { transition-delay: 0.95s; }

/* Parallax sutil para elementos grandes (títulos + hero) */
.parallax {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.parallax.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover animate upscale para tarjetas premium */
.card-premium {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}
.card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* ============================================================
   PRELOADER PREMIUM — NKARGO • Nivel Multinacional
   ============================================================ */

#preloader {
  position: fixed;
  inset: 0;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.preloader-logo {
  width: 90px;
  height: auto;
  animation: fadeInLogo 1s ease forwards;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

.preloader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  width: 45%;
  height: 100%;
  background: var(--primary-color);
  border-radius: inherit;
  animation: preloaderSlide 1.1s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(40%); }
  100% { transform: translateX(160%); }
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  /* Ajustes globales mobile */
  body {
    font-size: 15px;
    padding-bottom: 90px; /* deja espacio para la barra inferior de iOS */
  }
  /* Navbar */
  .navbar {
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    height: 64px;
  }

  /* Mostrar botón hamburguesa en móvil */
  .nav-toggle {
    display: block;
  }

  /* Menú desplegable móvil */
  .nav-right {
    position: fixed;
    top: 64px; /* altura aproximada del header */
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
  }

  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .about {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 18px;
  }

  .services-group h3 {
    text-align: center;
  }

  .industries h2,
  .industries p {
    text-align: center;
  }

  .testimonial-cards,
  .faq-items,
  .stats-cards {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
    padding-top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  /* Tarjetas */
  .service-card,
  .why-card,
  .step {
    padding: 1.5rem 1rem;
  }

  /* Footer */
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  /* =========================
     OPTIMIZACIÓN MÓVIL ÉLITE – NKARGO
     ========================= */

  /* Header más compacto */
  /* (navbar block removed to avoid duplicate/override) */

  .logo img {
    height: 32px;
  }

  .nav-menu {
    gap: 0.6rem;
  }

  /* Hero más balanceado */
  .hero {
    min-height: 68vh;
    padding-top: 40px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    max-width: 90%;
  }

  .hero-content p {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .hero-cta .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
  }

  /* About */
  .about {
    padding: 1.8rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.4rem 1rem;
  }

  .service-card .service-icon {
    font-size: 2rem;
  }

  /* Why cards */
  .why-card {
    padding: 1.4rem 1rem;
  }

  .why-card .service-icon {
    font-size: 2rem;
  }

  /* Stats */
  .stat-number {
    font-size: 1.9rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Process */
  .step {
    padding: 1.4rem 1rem;
  }

  /* Industries */
  .industry-tags span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    width: 100%;
    text-align: center;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem 1.2rem;
    font-size: 0.9rem;
  }

  /* FAQ */
  .faq-item {
    padding: 1.5rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Preloader mobile */
  #preloader {
    gap: 1rem;
  }

  .preloader-logo {
    width: 65px;
  }

  .preloader-bar {
    width: 130px;
  }

  /* Animaciones más ligeras */
  .reveal {
    transform: translateY(30px) scale(0.99);
    filter: blur(3px);
    transition: 0.7s ease-out;
  }
}/* ==========================
   HEADER & NAVBAR (OVERRIDE)
   ========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Contenedor derecha: menú + CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Menú principal */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  position: relative;
}

/* Subrayado suave en hover */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: var(--primary-color, #F45A20);
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

/* ==========================
   CTA HEADER – COTIZA TU ENVÍO
   ========================== */

.nav-cta {
  background-color: var(--primary-color, #F45A20);
  color: #ffffff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;          /* pill elegante */
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transition:
    background-color 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.25s ease;
  width: auto;                   /* evita formas raras/círculos */
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: #d94f1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================
   NAV MÓVIL & HAMBURGUESA
   ========================== */

.nav-toggle {
  display: none;                 /* oculto en desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Estado hover */
.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Animación cuando está abierto (clase .open la pone el JS) */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ====== BREAKPOINT PARA MÓVIL / TABLET ====== */

@media (max-width: 900px) {
  .navbar {
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: flex;               /* hamburguesa visible */
    z-index: 1100;
  }

  /* Contenedor menú + CTA */
  .nav-right {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    padding: 0.9rem 1.2rem 1.2rem;
    background: #222222;
    border-radius: 0 0 0 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;

    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.26s ease,
      opacity 0.22s ease;
  }

  /* Cuando el JS agrega .open */
  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.35rem;
  }

  .nav-menu a {
    width: 100%;
    padding: 0.55rem 0;
  }

  .nav-menu a::after {
    bottom: 0;
  }

  /* CTA en el menú desplegable */
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.6rem;
    border-radius: 14px;          /* más rectangular en móvil */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  }
}

/* Un poco más compacto en pantallas muy pequeñas */
@media (max-width: 480px) {
  .logo img {
    height: 34px;
  }

  .nav-right {
    max-width: 100%;
    border-radius: 0 0 12px 12px;
  }

  .nav-cta {
    padding: 0.7rem 1.2rem;
  }
}