/* ==========================================================================
   Heritage CN Group LLC — B2B Wholesale & Export Stylesheet
   Temas dinámicos (blue | navy | green) + Breakpoints Desktop / Tablet / Móvil
   ========================================================================== */

:root {
  /* Tema por defecto: 1. Azul & Plata (HG · Logística) */
  --brand-950: #061833;
  --brand-900: #092550;
  --brand-800: #0e3a7a;
  --brand-accent: #38bdf8;
  --brand-accent-soft: #93c5fd;
  --brand-accent-fg: #051833;
  --brand-icon-bg: #ebf4ff;
  --brand-icon-fg: #0a3a7e;
  --hero-gradient:
    radial-gradient(circle at 84% 18%, rgba(96, 165, 250, 0.20), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(56, 189, 248, 0.14), transparent 24%),
    linear-gradient(135deg, #061833 0%, #0a2b5c 56%, #082047 100%);
  --card-dark-gradient: linear-gradient(145deg, rgba(10, 44, 94, 0.94), rgba(20, 78, 150, 0.84));

  /* Tokens neutrales */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #334e68;
  --heading: #0f172a;
  --muted: #52667a;
  --line: #dbe3ec;
  --success: #0d9488;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 24, 51, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container-max: 1180px;
}

/* Tema 2: Marino & Oro (HCG · Corporativo Global) */
html[data-theme="navy"] {
  --brand-950: #081529;
  --brand-900: #0f2544;
  --brand-800: #183661;
  --brand-accent: #c89d42;
  --brand-accent-soft: #e8c778;
  --brand-accent-fg: #081529;
  --brand-icon-bg: #fbf5e6;
  --brand-icon-fg: #8c681f;
  --hero-gradient:
    radial-gradient(circle at 84% 18%, rgba(200, 157, 66, 0.20), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #081529 0%, #0f2544 56%, #0b1b34 100%);
  --card-dark-gradient: linear-gradient(145deg, rgba(12, 30, 58, 0.95), rgba(25, 55, 98, 0.86));
}

/* Tema 3: Verde & Oro (HC · Holding Institucional) */
html[data-theme="green"] {
  --brand-950: #072017;
  --brand-900: #0d3828;
  --brand-800: #14523b;
  --brand-accent: #c9a246;
  --brand-accent-soft: #e8ca7d;
  --brand-accent-fg: #072017;
  --brand-icon-bg: #f6f2e4;
  --brand-icon-fg: #0d3828;
  --hero-gradient:
    radial-gradient(circle at 84% 18%, rgba(201, 162, 70, 0.20), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(52, 211, 153, 0.10), transparent 24%),
    linear-gradient(135deg, #072017 0%, #0d3828 56%, #09291d 100%);
  --card-dark-gradient: linear-gradient(145deg, rgba(10, 48, 34, 0.95), rgba(22, 82, 58, 0.86));
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Barra de Vista Previa del Cliente (oculta en ?embed=1 o al finalizar)
   ========================================================================== */
.demo-bar {
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  z-index: 60;
}

.demo-bar.is-hidden {
  display: none;
}

.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.demo-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #e2e8f0;
}

.demo-badge {
  background: var(--brand-accent);
  color: var(--brand-accent-fg);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px;
  border-radius: 10px;
}

.demo-btn {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.demo-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.demo-btn.is-active {
  background: #ffffff;
  color: #0f172a;
}

.demo-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-link-btn:hover {
  background: rgba(56, 189, 248, 0.26);
}

/* ==========================================================================
   Header & Navegación Responsive
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 8px 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.nav-highlight {
  color: var(--brand-900);
}

.nav-links a.nav-highlight {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-alt);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button.is-active {
  background: var(--brand-900);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav-cta {
  background: var(--brand-900);
  color: #ffffff;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.btn-nav-cta:hover {
  background: var(--brand-800);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-900);
  cursor: pointer;
}

/* ==========================================================================
   Secciones Comunes y Tipografía
   ========================================================================== */
section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-icon-fg);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.section-heading.center .eyebrow::before {
  display: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   Hero B2B
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 72px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-company {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-company .dot {
  color: rgba(255, 255, 255, 0.4);
}

.hero-company .slogan {
  color: var(--brand-accent-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-accent-fg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Visual derecho del Hero */
.hero-visual {
  position: relative;
  padding-bottom: 34px;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card-dark-gradient);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000000, transparent 92%);
  pointer-events: none;
}

.logistics-scene {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
}

.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.visual-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.route-point {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(6px);
}

.route-point strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.route-point small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.route-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-accent-soft);
}

.cargo-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cargo-icon {
  min-height: 82px;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.cargo-icon svg {
  width: 24px;
  height: 24px;
}

.floating-note {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 280px;
  background: #ffffff;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.floating-emblem {
  width: 62px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.floating-note strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25;
  margin-bottom: 3px;
}

.floating-note p {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.about-showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hero-gradient);
  color: #ffffff;
  min-height: 440px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.about-illustration {
  width: 100%;
  max-width: 340px;
  margin: 12px auto;
}

.about-photo-badge {
  background: rgba(255, 255, 255, 0.96);
  color: var(--heading);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.about-photo-badge strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-photo-badge span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.about-copy p + p {
  margin-top: 14px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.about-fact {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.about-fact-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-icon-bg);
  color: var(--brand-icon-fg);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-fact strong {
  display: block;
  color: var(--heading);
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.about-fact span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ==========================================================================
   Stats Band
   ========================================================================== */
.stats-section {
  padding: 58px 0;
  background: var(--hero-gradient);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.stats-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-style: italic;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 850;
  line-height: 1.05;
  color: var(--brand-accent-soft);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   Operations Showcase / Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.gallery-visual {
  height: 220px;
  background: linear-gradient(135deg, var(--brand-950), var(--brand-800));
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.gallery-visual svg {
  width: 100%;
  max-width: 240px;
  height: 160px;
  color: #ffffff;
}

.gallery-content {
  padding: 24px;
}

.gallery-content h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.gallery-content p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-icon-bg);
  color: var(--brand-icon-fg);
  display: grid;
  place-items: center;
}

.cat-icon svg {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: 1.06rem;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   Services & Supplier Partnerships Grids
   ========================================================================== */
.cards-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-icon-bg);
  color: var(--brand-icon-fg);
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.suppliers-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compliance-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.btn-dark {
  background: var(--brand-900);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.btn-dark:hover {
  background: var(--brand-800);
}

/* ==========================================================================
   Why Us (8 Reasons) & Reviews
   ========================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reason-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
}

.reason-check {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-icon-bg);
  color: var(--brand-icon-fg);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 12px;
}

.reason-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.reason-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--brand-accent);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-900);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  color: var(--heading);
  font-size: 0.92rem;
}

.review-author span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   Vision Banner
   ========================================================================== */
.vision {
  background: var(--hero-gradient);
  color: #ffffff;
  text-align: center;
}

.vision-inner {
  max-width: 820px;
  margin: 0 auto;
}

.vision .eyebrow {
  color: var(--brand-accent-soft);
}

.vision .eyebrow::before {
  display: none;
}

.vision h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.vision p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.06rem;
}

/* ==========================================================================
   Contact & Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: var(--brand-950);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-panel h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.contact-panel > div > p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand-accent-soft);
}

.contact-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  word-break: break-word;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--heading);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
  color: var(--heading);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px rgba(14, 58, 122, 0.12);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-feedback.is-hidden {
  display: none;
}

.form-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Footer & Modales
   ========================================================================== */
.site-footer {
  background: #081322;
  color: rgba(255, 255, 255, 0.72);
  padding: 38px 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-legal-links {
  margin-top: 6px;
}

.footer-legal-links a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.54);
  font-style: italic;
}

.policy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 34, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.policy-overlay.open {
  display: flex;
}

.policy-box {
  position: relative;
  background: #ffffff;
  color: var(--text);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.policy-box h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.policy-box h4 {
  color: var(--heading);
  margin: 18px 0 6px;
  font-size: 0.98rem;
}

.policy-box p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.policy-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--heading);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   BREAKPOINT TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  section {
    padding: 68px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 4%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--bg-alt);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cards-4-grid,
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-showcase-card {
    min-height: 360px;
  }
}

/* ==========================================================================
   BREAKPOINT MÓVIL (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  section {
    padding: 54px 0;
  }

  .demo-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo-img {
    height: auto;
    max-height: 40px;
    max-width: 52vw;
  }

  .btn-nav-cta {
    display: none;
  }

  .hero {
    padding: 46px 0 58px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .visual-card {
    padding: 20px;
  }

  .route {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .cargo-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .about-facts,
  .stats-grid,
  .gallery-grid,
  .categories-grid,
  .cards-4-grid,
  .reasons-grid,
  .reviews-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .contact-panel,
  .contact-form-card {
    padding: 22px;
  }

  .policy-box {
    padding: 24px 20px;
  }
}
