/* ==========================================================================
   Benefit Logistics — Design System
   Paleta y tipografía tomadas del sitio actual (benefitlog.com) para mantener
   identidad de marca. Sin frameworks: CSS puro para máxima velocidad.
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #122C45;   /* texto principal / overlay hero */
  --navy-800: #0B346A;   /* azul secundario / gradientes */
  --navy-700: #1E3A5F;
  --orange-500: #F39519; /* acento CTA */
  --orange-600: #D97F0C;
  --whatsapp: #25D366;

  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F2F5F7;
  --gray-200: #E7EBEF;
  --gray-400: #9AA5B1;
  --gray-600: #67768E;
  --gray-900: #1E293B;

  /* Tipografía */
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 10px 30px -12px rgba(18, 44, 69, 0.18);
  --shadow-elevated: 0 20px 50px -18px rgba(18, 44, 69, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 16px; color: var(--gray-600); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--gray-200); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--navy-900); }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { background: var(--gray-100); color: var(--orange-600); }
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  min-width: 240px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--navy-900); }
.dropdown-menu a:hover { background: var(--gray-100); color: var(--orange-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; height: calc(100vh - 72px); background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin-left: 12px; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 8px; }
  .header-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(120deg, rgba(18,44,69,0.92), rgba(11,52,106,0.82)), var(--navy-900) center/cover;
  overflow: hidden;
}
.hero.has-image { background-image: linear-gradient(120deg, rgba(18,44,69,0.93), rgba(11,52,106,0.75)), var(--hero-img, none); background-size: cover; background-position: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; width: 100%; }
.hero h1 { color: var(--white); }
.hero h1 strong { color: var(--orange-500); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.badge-strip { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border-radius: 50px; padding: 10px 20px; margin-top: 32px; box-shadow: var(--shadow-card); }
.badge-strip img { height: 26px; width: auto; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: auto; padding: 64px 0; } }

/* Card de formulario flotante sobre el hero */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-elevated);
  color: var(--navy-900);
}
.hero-form-card h3 { margin-bottom: 6px; }
.hero-form-card p { font-size: 0.92rem; }

/* ---------- Metodología ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.method-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.method-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.method-step {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; margin-bottom: 20px;
}
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }

/* ---------- Sección oscura (industrias / stats) ---------- */
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  font-weight: 600;
}
@media (max-width: 700px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--orange-500); }
.stat-item .label { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Servicios / cards genéricas ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  background: var(--gray-50);
}
.service-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-500); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem; }
.service-card-media { height: 160px; margin: -32px -32px 20px; border-radius: var(--radius-md) var(--radius-md) 0 0; background-size: cover; background-position: center; }
.warehouse-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; margin-top: 28px; display: flex; align-items: center; background-size: cover; background-position: center; }
.warehouse-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,44,69,0.92) 45%, rgba(18,44,69,0.35)); }
.warehouse-card .content { position: relative; z-index: 1; padding: 36px 40px; max-width: 520px; }
.warehouse-card .content p { color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.warehouse-card .content strong { color: var(--white); }
.card-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .services-grid, .card-3 { grid-template-columns: 1fr; } }

/* ---------- Carrusel de flota ---------- */
.fleet-carousel { position: relative; }
.fleet-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.fleet-track::-webkit-scrollbar { height: 6px; }
.fleet-track::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
.fleet-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.fleet-media { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fleet-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.fleet-card p { color: var(--navy-900); font-size: 0.92rem; margin-bottom: 6px; }
.fleet-card p strong { font-weight: 700; }
.fleet-divider { width: 34px; height: 3px; background: var(--orange-500); margin: 16px auto; }
.fleet-card h3 { text-align: center; font-size: 1.1rem; margin-bottom: 6px; }
.fleet-pallets { display: block; text-align: center; color: var(--gray-600); font-size: 0.85rem; }
.fleet-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: var(--white); box-shadow: var(--shadow-card); cursor: pointer;
  font-size: 1.3rem; color: var(--navy-900); display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fleet-nav:hover { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }
.fleet-nav.prev { left: -20px; }
.fleet-nav.next { right: -20px; }
@media (max-width: 700px) { .fleet-nav { display: none; } }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--gray-600); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange-500); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; font-family: var(--font-heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--orange-500); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 20px; }

/* ---------- Formularios (HubSpot embed wrapper) ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}
/* Ajustes ligeros al estilo por defecto de HubSpot para alinear con la marca */
.form-card .hs-form label { font-weight: 600 !important; color: var(--navy-900) !important; font-family: var(--font-body) !important; }
.form-card .hs-input {
  border: 1px solid var(--gray-200) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
  width: 100% !important;
}
.form-card .hs-button {
  background: var(--orange-500) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 30px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.form-card .hs-button:hover { background: var(--orange-600) !important; }
.form-card .hs-error-msgs label { color: #d33 !important; font-weight: 500 !important; }

/* ---------- Blog preview / cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.blog-card .thumb { height: 180px; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); }
.blog-card .body { padding: 22px; }
.blog-card .tag { color: var(--orange-500); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card .date { color: var(--gray-400); font-size: 0.82rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.8); padding: 72px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; color: var(--white); font-size: 1.15rem; margin-bottom: 14px; }
.footer-logo { filter: brightness(0) invert(1); }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.site-footer a:hover { color: var(--orange-500); }
.site-footer li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--orange-500); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* ---------- Utilidades ---------- */
.text-orange { color: var(--orange-500); }
.mt-0 { margin-top: 0; }
.bg-gray { background: var(--gray-50); }
.center { text-align: center; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.page-hero { padding: 120px 0 72px; background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: var(--white); }
.page-hero.has-image { background-image: linear-gradient(120deg, rgba(18,44,69,0.93), rgba(11,52,106,0.85)), var(--hero-img); background-size: cover; background-position: center; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.05rem; }

/* Imagen real dentro de un bloque con degradado de marca (usada en varias secciones) */
.photo-block { border-radius: var(--radius-lg); min-height: 320px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.photo-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,44,69,0) 40%, rgba(18,44,69,0.35)); }

/* ---------- Contenido de artículo (generado por el editor del blog) ---------- */
.post-content h2 { margin-top: 40px; }
.post-content h3 { margin-top: 32px; }
.post-content p { color: var(--navy-900); }
.post-content ul, .post-content ol { margin: 0 0 20px 22px; color: var(--navy-900); }
.post-content li { margin-bottom: 8px; }
.post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-content a { color: var(--orange-600); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--orange-500); margin: 24px 0; padding: 4px 24px; color: var(--gray-600); font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-content table th, .post-content table td { border: 1px solid var(--gray-200); padding: 10px 12px; }
