/* =============================================
   ISSA - Integradora de Sistemas y Servicios Aduanales
   Estilos Globales
   ============================================= */

/* --- Variables --- */
:root {
  --navy:       #0d2a4e;
  --navy-dark:  #081d36;
  --navy-light: #1a3f6f;
  --gold:       #2a8fd4;
  --gold-dark:  #1a6fad;
  --gold-light: #5ab0e8;
  --white:      #ffffff;
  --gray-light: #f5f7fa;
  --gray:       #e0e4eb;
  --gray-mid:   #9aa3b0;
  --text:       #2c3547;
  --text-light: #3d4757;
  --shadow:     0 4px 20px rgba(13, 42, 78, 0.12);
  --shadow-hover: 0 8px 30px rgba(13, 42, 78, 0.2);
  --radius:     8px;
  --transition: 0.3s ease;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Tipografía --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utilidades --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__header p { max-width: 640px; margin: 12px auto 0; font-size: 1.05rem; }
.section__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--white {
  background: var(--white);
  color: var(--gold);
  border: 2px solid var(--white);
}
.btn--white:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(42,143,212,0.28);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--red {
  background: #dc2626;
  color: var(--white);
  border: 2px solid #dc2626;
}
.btn--red:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-right: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-left: 48px;
  transition: opacity 0.3s ease;
}
.logo:hover {
  opacity: 0.85;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  color: #ffffff;
  letter-spacing: 0.10em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: letter-spacing 0.3s ease;
}
.logo:hover .logo__name {
  letter-spacing: 0.15em;
}
.logo__tagline {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.logo:hover .logo__tagline {
  color: rgba(255,255,255,1);
}
.logo__img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.logo__img--md { height: 70px; }
.logo__img--footer {
  height: 42px;
  opacity: 0.7;
}
.footer__logo .logo:hover .logo__img--footer { opacity: 0.95; }
.logo:hover .logo__img { opacity: 0.85; }
@media (max-width: 768px) {
  .logo__img { height: 44px; }
  .logo__img--md { height: 52px; }
  .logo__img--footer { height: 36px; }
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 0;
}
.nav__link {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease, letter-spacing 0.25s ease;
  letter-spacing: 0.03em;
  position: relative;
}
.nav__link:hover, .nav__link.active {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
  letter-spacing: 0.07em;
}
.nav__link--cta {
  background: var(--gold);
  color: #ffffff !important;
  padding: 8px 18px;
  margin-left: 8px;
}
.nav__link--cta:hover {
  background: var(--gold-dark) !important;
  color: #ffffff !important;
}

/* Dropdown Servicios */
.nav__item { position: relative; }
/* Puente invisible para que el cursor no pierda el hover al cruzar el gap */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy-dark);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.nav__item:hover .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 11px 18px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav__dropdown a:last-child { border-bottom: none; }
.nav__dropdown a:hover { background: rgba(200,168,75,0.15); color: var(--gold); padding-left: 24px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  padding: 24px 1.5rem;
  overflow-y: auto;
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); padding-left: 8px; }
.mobile-nav__section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 20px 0 4px;
}
.mobile-nav .btn {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../img/CARGO.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 29, 54, 0.55) 0%,
    rgba(13, 42, 78, 0.35) 50%,
    rgba(13, 42, 78, 0.10) 100%
  );
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero__label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
}
.hero__title { color: var(--white); margin-bottom: 20px; }
.hero__title span { color: var(--gold); }
.hero__desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__card-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.hero__stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.hero__stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}
.hero__stat--wide { grid-column: span 2; }
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero__badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(42,143,212,0.35);
  border-radius: 16px;
  padding: 40px 36px;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.hero__badge:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(42,143,212,0.18);
  border-color: rgba(42,143,212,0.7);
  box-shadow: 0 12px 40px rgba(42,143,212,0.25);
}
.hero__badge-num {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.hero__badge-num span#heroCounter {
  font-size: 5.5rem;
  line-height: 1;
}
.hero__badge-plus {
  font-size: 3rem;
  margin-bottom: 6px;
  color: var(--gold);
}
.hero__badge-years {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badge-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto;
}
.hero__badge-text {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-head);
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* =============================================
   SERVICIOS CARDS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-card {
  position: relative;
  display: block;
  height: 310px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background: var(--navy-dark);
  isolation: isolate;
  transition: box-shadow 0.4s ease;
}
.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy-dark);
  transition: transform 0.5s ease;
  z-index: 1;
}
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.85));
  transition: background 0.4s ease;
  z-index: 2;
}
.service-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  z-index: 3;
  text-align: center;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s ease;
}
.service-card__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: rgba(15, 23, 42, 0.95);
  border-top: 2px solid #3b82f6;
  padding: 20px 22px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 4;
}
.service-card__panel p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0;
}
.service-card__more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.04em;
  margin-top: 10px;
  align-self: flex-start;
}
/* --- Hover --- */
.service-card:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
.service-card:hover .service-card__bg { transform: scale(1.05); }
.service-card:hover .service-card__overlay { background: rgba(15, 23, 42, 0.5); }
.service-card:hover .service-card__panel { transform: translateY(0); }
.service-card:hover .service-card__title { transform: translateY(-100%); }

/* Sección con fondo navy (para "Nuestros Servicios") */
.section--navy {
  background: var(--navy-light);
  color: white;
}
.section--navy h2 { color: white; }
.section--navy .section__header p { color: rgba(255, 255, 255, 0.72); }
.section--navy .section__label { color: #60a5fa; }
.section--navy .divider { background: #3b82f6; }

/* =============================================
   COBERTURA
   ============================================= */
.coverage { background: var(--navy); padding: 80px 0; }
.coverage .section__header h2,
.coverage .section__header .section__label { color: var(--white); }
.coverage .section__header p { color: rgba(255,255,255,0.7); }

/* Variante clara — usada en cobertura.html (fondo blanco) */
.coverage.coverage--light { background: #ffffff; }
.coverage.coverage--light .coverage-map {
  background: #2a558c;
  border-color: rgba(13, 42, 78, 0.10);
  box-shadow: 0 6px 28px rgba(13, 42, 78, 0.12);
  padding: 0 0 80px 0;
  min-height: 0;
  align-items: flex-start;
  overflow: hidden;
}
.coverage.coverage--light .coverage-map__inner {
  max-width: 100%;
}
.coverage.coverage--light .coverage-grid {
  grid-template-columns: 2.6fr 1fr;
  gap: 28px;
}
.coverage.coverage--light .coverage-map__bg {
  filter: none; /* PNG iluminado se muestra tal cual */
  mix-blend-mode: screen; /* el fondo negro del PNG se funde con el navy */
}
.coverage.coverage--light .coverage-point {
  background: #f8fafc;
  border-color: rgba(13, 42, 78, 0.10);
}
.coverage.coverage--light .coverage-point:hover,
.coverage.coverage--light .coverage-point.is-active {
  background: rgba(42, 143, 212, 0.10);
  border-color: rgba(42, 143, 212, 0.45);
  box-shadow:
    0 0 0 1px rgba(42, 143, 212, 0.20),
    0 0 18px rgba(42, 143, 212, 0.14);
}
.coverage.coverage--light .coverage-point__name { color: var(--navy); }
.coverage.coverage--light .coverage-point__country { color: var(--text-light); }

/* Variante XL — mapa de tamaño medio, sección con fondo blanco (cobertura.html) */
.coverage.coverage--xl {
  background: #ffffff;
  padding: 80px 0;
}
.coverage.coverage--xl .section__header h2,
.coverage.coverage--xl .section__header .section__label { color: var(--navy); }
.coverage.coverage--xl .section__header p { color: var(--text-light); }
.coverage.coverage--xl .coverage-grid {
  grid-template-columns: 1.9fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.coverage.coverage--xl .coverage-map {
  min-height: 520px;
  padding: 28px;
  /* El cuadro del mapa es navy oscuro con halo azul brillante mate */
  background: var(--navy);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.18),
    0 0 32px rgba(59, 130, 246, 0.35),
    0 0 80px rgba(59, 130, 246, 0.22),
    0 0 140px rgba(96, 165, 250, 0.15),
    0 14px 40px rgba(13, 42, 78, 0.20);
}
.coverage.coverage--xl .coverage-map__inner {
  max-width: 880px;
}
.coverage.coverage--xl .map-pin {
  width: 14px;
  height: 14px;
}
.coverage.coverage--xl .coverage-points {
  justify-content: center;
}
.coverage.coverage--xl .coverage-point {
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid rgba(13, 42, 78, 0.10);
}
.coverage.coverage--xl .coverage-point:hover,
.coverage.coverage--xl .coverage-point.is-active {
  background: rgba(42, 143, 212, 0.10);
  border-color: rgba(42, 143, 212, 0.45);
  box-shadow:
    0 0 0 1px rgba(42, 143, 212, 0.20),
    0 0 18px rgba(42, 143, 212, 0.14);
}
.coverage.coverage--xl .coverage-point__name { color: var(--navy); font-size: 0.98rem; }
.coverage.coverage--xl .coverage-point__country { color: var(--text-light); font-size: 0.8rem; }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.coverage-map {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.15),
    0 0 80px rgba(59, 130, 246, 0.08),
    inset 0 0 30px rgba(59, 130, 246, 0.05);
}

/* Mapa de México con PNG de fondo y pins absolutos */
.coverage-map__inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.coverage-map__bg {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.85);
  pointer-events: none;
  user-select: none;
}

/* Pin (círculo) */
.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-pin__dot {
  position: absolute;
  inset: 0;
  background: #3b82f6;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}
.map-pin__pulse {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.55);
  border-radius: 50%;
  animation: mapPinPulse 2s infinite;
  z-index: 1;
  pointer-events: none;
}
.map-pin:nth-child(2) .map-pin__pulse { animation-delay: 0.3s; }
.map-pin:nth-child(3) .map-pin__pulse { animation-delay: 0.6s; }
.map-pin:nth-child(4) .map-pin__pulse { animation-delay: 0.9s; }
.map-pin:nth-child(5) .map-pin__pulse { animation-delay: 1.2s; }
.map-pin:nth-child(6) .map-pin__pulse { animation-delay: 1.5s; }
.map-pin:nth-child(7) .map-pin__pulse { animation-delay: 1.8s; }
.map-pin.is-active .map-pin__dot,
.map-pin:hover .map-pin__dot {
  transform: scale(1.8);
  background: #fbbf24;
  box-shadow:
    0 0 15px #fbbf24,
    0 0 30px #f59e0b;
}

@keyframes mapPinPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin__pulse { animation: none; }
}
.coverage-points { display: flex; flex-direction: column; gap: 12px; }
.coverage-point {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.coverage-point:hover,
.coverage-point.is-active {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.25),
    0 0 18px rgba(96, 165, 250, 0.18);
  transform: translateY(-2px);
}
.coverage-point__dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.coverage-point__name {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.coverage-point__country {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.85;
}

/* =============================================
   CTA BANNER (tarjeta flotante moderna)
   ============================================= */
.cta-banner {
  background: transparent;
  padding: 64px 1.5rem;
  text-align: center;
}
.cta-banner .container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 64px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--gold-dark) 100%);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 24px 60px rgba(13, 42, 78, 0.28),
    0 10px 24px rgba(13, 42, 78, 0.12);
}
.cta-banner .container::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(90,176,232,0.35) 0%, transparent 65%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
}
.cta-banner .container::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(42,143,212,0.3) 0%, transparent 65%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.82);
  margin: 0 auto 36px;
  font-size: 1.05rem;
  max-width: 560px;
  position: relative;
}
.cta-banner .btn {
  background: var(--white);
  color: var(--navy-dark);
  padding: 16px 40px;
  border: 2px solid var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  position: relative;
}
.cta-banner .btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
/* Variante roja del CTA banner (override del blanco por defecto) */
.cta-banner .btn--red {
  background: #dc2626;
  color: var(--white);
  border: 2px solid #dc2626;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
  padding: 20px 52px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transform: none !important;
}
.cta-banner .btn--red:hover {
  background: #b91c1c;
  color: var(--white);
  border-color: #b91c1c;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.5);
  transform: none !important;
}
/* Variante compacta del CTA banner: contenido centrado verticalmente */
.cta-banner--compact .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 380px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (max-width: 768px) {
  .cta-banner { padding: 40px 1rem; }
  .cta-banner .container { padding: 56px 28px; border-radius: 18px; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--navy-dark); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__grid > div:first-child { align-self: center; }
.footer__logo { margin-bottom: 16px; }
.footer__about {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer__title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--gold); padding-left: 4px; }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer__contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer__contact-text { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer__contact-text a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer__legal { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer__legal a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer__legal a:hover { color: var(--gold); }

/* =============================================
   PAGE HERO (páginas internas)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(42,143,212,0.07) 0%, transparent 70%);
}
.page-hero--mapa {
  background: var(--navy-dark);
  min-height: 420px;
}
.page-hero--mapa::before {
  background: linear-gradient(135deg, rgba(8,29,54,0.55) 0%, rgba(13,42,78,0.40) 100%);
  z-index: 1;
}

.page-hero--photo {
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: var(--navy-dark);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero--photo::before {
  background: linear-gradient(135deg, rgba(8,29,54,0.55) 0%, rgba(13,42,78,0.40) 100%);
}
.page-hero--despacho {
  background-image: url('../img/DESPACHO%20ADUANAL.jpg');
}
.page-hero--servicios {
  background-image: url('../img/SERVICIOSS.jpg');
}
.page-hero--servicios::before {
  background: linear-gradient(135deg, rgba(8,29,54,0.70) 0%, rgba(13,42,78,0.58) 100%);
}
.page-hero--logistica {
  background-image: url('../img/logistica-internacional.jpg');
}
.page-hero--asesoria {
  background-image: url('../img/asesoria.jpg');
}
.page-hero--transporte {
  background-image: url('../img/transporte-multimodal.jpg');
}
.page-hero--cobertura {
  background-image: url('../img/COBEEERR.jpg');
}
.page-hero--contacto {
  background-image: url('../img/CONTACTANOS.jpg');
}
.page-hero__parallax {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  bottom: -80px;
  background: url('../img/NOSOTROS.jpg') center center / cover no-repeat;
  will-change: transform;
  z-index: 0;
}
.page-hero--mapa .container,
.page-hero--mapa .page-hero__inner,
.page-hero--mapa .breadcrumb {
  position: relative;
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-family: var(--font-head);
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* =============================================
   NOSOTROS
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 150px; height: 150px;
  background: rgba(200,168,75,0.1);
  border-radius: 50%;
}
.about-visual__year {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(200,168,75,0.15);
  line-height: 1;
}
.about-visual__text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* === Panel de años (Nosotros) =================================== */
.about-grid--years {
  grid-template-columns: 1fr 1.1fr;
}
.years-panel {
  background: #0d2a4e linear-gradient(135deg, #081d36, #1a3f6f);
  border-radius: 20px;
  padding: 72px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 42, 78, 0.25);
}
.years-panel::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  background: rgba(42, 143, 212, 0.14);
  border-radius: 50%;
}
.years-panel::after {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 180px; height: 180px;
  background: rgba(42, 143, 212, 0.08);
  border-radius: 50%;
}
.years-panel .hero__badge {
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(42,143,212,0.4);
  padding: 48px 40px;
}
.years-panel .hero__badge-num span#heroCounter {
  font-size: 6.5rem;
}
.years-panel .hero__badge-plus {
  font-size: 3.5rem;
}
.years-panel .hero__badge-years {
  color: #ffffff;
  font-size: 1.2rem;
}
.years-panel .hero__badge-text {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .about-grid--years { grid-template-columns: 1fr; }
  .years-panel { padding: 48px 28px; min-height: auto; }
  .years-panel .hero__badge-num span#heroCounter { font-size: 5rem; }
}

/* === Timeline (Nosotros) =================================== */
.timeline {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px;
  padding: 36px 24px;
  overflow: hidden;
}
.timeline__rail {
  position: absolute;
  left: 50%;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: #1e3a5f;
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 1;
  overflow: hidden;
}
.timeline__progress {
  width: 100%;
  height: 0;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.55);
  transition: height 0.12s linear;
}
.timeline__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.timeline__row.is-visible {
  opacity: 1;
  transform: none;
}
.timeline__year {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.timeline__row.is-passed .timeline__year {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}
.timeline__icon {
  display: inline-flex;
  align-items: center;
  color: #60a5fa;
}
.timeline__icon svg {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.timeline__icon svg:hover {
  filter: drop-shadow(0 0 12px #60a5fa);
  transform: scale(1.15);
}
.timeline__node {
  grid-column: 2;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-radius: 50%;
  background: #1e3a5f;
  box-shadow: 0 0 0 3px var(--navy-dark);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.timeline__node.is-active {
  background: #3b82f6;
  box-shadow: 0 0 0 3px var(--navy-dark), 0 0 14px #60a5fa;
  transform: scale(1.1);
}
/* Layout A: año a la izquierda, ícono a la derecha */
.timeline__row[data-layout="A"] .timeline__year { grid-column: 1; justify-self: end; text-align: right; }
.timeline__row[data-layout="A"] .timeline__icon { grid-column: 3; justify-self: start; text-align: left; }
/* Layout B: ícono a la izquierda, año a la derecha */
.timeline__row[data-layout="B"] .timeline__icon { grid-column: 1; justify-self: end; text-align: right; }
.timeline__row[data-layout="B"] .timeline__year { grid-column: 3; justify-self: start; text-align: left; }

@media (max-width: 768px) {
  .timeline { padding: 28px 18px; }
  .timeline__rail { left: 24px; transform: none; top: 28px; bottom: 28px; }
  .timeline__row {
    grid-template-columns: 32px auto 1fr !important;
    gap: 18px;
    padding: 14px 0;
  }
  .timeline__row[data-layout="A"] .timeline__year,
  .timeline__row[data-layout="B"] .timeline__year {
    grid-column: 2 !important; justify-self: start !important; text-align: left !important;
    font-size: 1.5rem;
  }
  .timeline__row[data-layout="A"] .timeline__icon,
  .timeline__row[data-layout="B"] .timeline__icon {
    grid-column: 3 !important; justify-self: start !important; text-align: left !important;
  }
  .timeline__node { grid-column: 1 !important; margin: 0; }
  .timeline__icon svg { width: 32px; height: 32px; }
}

/* Tarjetas Misión / Visión con hover azul claro */
.mv-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px var(--gold-light),
    0 12px 32px rgba(90, 176, 232, 0.28);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.value-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-left: 3px solid var(--gold);
  transition: border-left-color 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover {
  border-left-color: var(--gold-light);
  box-shadow:
    -3px 0 0 0 var(--gold-light),
    -4px 0 18px rgba(90, 176, 232, 0.55);
}
.value-card h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  transition: color 0.35s ease, transform 0.35s ease;
}
.value-card p {
  font-size: 0.85rem;
  margin: 0;
  transition: transform 0.35s ease, color 0.35s ease;
}
.value-card:hover h4 {
  color: var(--gold-dark);
  transform: translateX(5px);
}
.value-card:hover p {
  transform: translateX(5px);
  color: var(--text);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item__num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-item__label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* =============================================
   SERVICIOS DETALLE
   ============================================= */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.service-detail__visual {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.service-detail__icon-big {
  font-size: 6rem;
  text-align: center;
  opacity: 0.9;
}
.service-features { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.service-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.service-feature:hover {
  background: rgba(42,143,212,0.06);
  border-color: rgba(42,143,212,0.18);
  box-shadow: 0 4px 14px rgba(42,143,212,0.08);
}
.service-feature__check {
  width: 30px; height: 30px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  font-weight: 700;
}
.service-feature__text h4 { font-size: 1.08rem; margin-bottom: 6px; }
.service-feature__text p { font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* =============================================
   OFFICE CARDS (Nosotros + Cobertura)
   ============================================= */
.office-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 36px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 42, 78, 0.12);
  border-color: rgba(42, 143, 212, 0.25);
}
.office-card:hover::before {
  height: 100%;
}
.office-card__icon { font-size: 1.8rem; margin-bottom: 16px; }
.office-card h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--navy); }
.office-card p { margin-bottom: 8px; font-size: 0.9rem; }
.office-card p:last-child { margin-bottom: 0; }
.office-card strong { color: var(--navy); }
.office-card a { color: var(--navy); }

/* =============================================
   CERTIFICACIONES
   ============================================= */
.certifications {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 16px;
  align-items: center;
}
.cert-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(13,42,78,0.06);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,42,78,0.12);
  border-color: rgba(42,143,212,0.25);
}
.cert-card img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* =============================================
   COBERTURA PÁGINA
   ============================================= */
.coverage-full { background: var(--navy); padding: 64px 0; }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.location-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}
.location-card:hover {
  background: rgba(200,168,75,0.1);
  border-color: rgba(200,168,75,0.3);
  transform: translateY(-4px);
}
.location-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.location-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.location-card__state { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.location-card--intl .location-card__name { color: var(--gold); }

/* =============================================
   CONTACTO
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-info-card h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  font-family: var(--font-head);
}
.contact-info-card p { margin: 0; font-size: 0.9rem; line-height: 1.7; }
.contact-info-card a { color: var(--navy); }
.contact-info-card a:hover { color: var(--gold-dark); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,42,78,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--navy);
}
.form-success__icon { font-size: 3rem; margin-bottom: 12px; }
.form-success h3 { margin-bottom: 8px; }

/* =============================================
   AVISO DE PRIVACIDAD
   ============================================= */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-content h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--navy); }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p { font-size: 0.95rem; margin-bottom: 14px; }
.privacy-content ul { margin: 0 0 14px 20px; }
.privacy-content ul li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 6px;
  list-style: disc;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
  .certifications { grid-template-columns: repeat(2, 1fr); }
  .coverage.coverage--xl .coverage-map { min-height: 520px; padding: 24px; }
  .coverage.coverage--xl .coverage-grid { grid-template-columns: 1.8fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; padding: 120px 0 60px; }
  .hero__visual { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .about-grid,
  .service-detail-grid,
  .coverage-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { height: 280px; }
  .service-card__title { font-size: 1.5rem; }
  .coverage-grid .coverage-map { min-height: 280px; padding: 16px; }
  .mexico-map { max-height: 320px; }
  .map-point__label { font-size: 11px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero__card-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .certifications { grid-template-columns: 1fr; }
}

/* --- Regime cards (sub-tarjetas en páginas de servicio) --- */
.regime-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.regime-card:hover {
  border-color: rgba(42, 143, 212, 0.45);
  box-shadow:
    0 0 0 1px rgba(42, 143, 212, 0.25),
    0 0 22px rgba(42, 143, 212, 0.18),
    0 8px 24px rgba(13, 42, 78, 0.10);
  transform: translateY(-3px);
}
.regime-card__icon { font-size: 3rem; margin-bottom: 16px; }
.regime-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.regime-card p  { font-size: 0.88rem; }

/* --- Regime cards: variante con imagen de fondo oscurecida + overlay scroll-driven --- */
.regime-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .regime-cards-grid { grid-template-columns: 1fr; }
}
.regime-card--bg {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px 24px;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(13, 42, 78, 0.18);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(13, 42, 78, 0.18);
}
.regime-card--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 29, 54, 0.45);
  z-index: 0;
  pointer-events: none;
}
.regime-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.regime-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 26px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  transform: translateX(var(--overlay-x, 110%));
  will-change: transform;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}
.regime-card__overlay h3 {
  margin: 0 0 10px 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
}
.regime-card__overlay p {
  color: var(--white);
  text-align: center;
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.15px;
}
@media (prefers-reduced-motion: reduce) {
  .regime-card__overlay { transition: none; }
}

/* --- Tagline band (nosotros) con parallax --- */
.tagline-band {
  position: relative;
  overflow: hidden;
  padding: 44px 0;
  background: var(--navy-dark);
  isolation: isolate;
}
.tagline-band__bg {
  position: absolute;
  top: -120px; left: 0; right: 0; bottom: -120px;
  background-image: url('../img/BUQUE%20INDEX.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.65;
  will-change: transform;
  z-index: 0;
}
.tagline-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 42, 78, 0.55), rgba(8, 29, 54, 0.70));
  z-index: 1;
}
.tagline-band__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tagline-band__title {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}
.tagline-band__title span { color: var(--gold); }

/* --- Diagrama de proceso (despacho aduanal) --- */
.service-detail__visual--flow {
  background: transparent;
  padding: 24px 0;
  min-height: auto;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  box-shadow: none;
}
.process-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  background: var(--gray-light);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 24px;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.process-step__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 12px;
  transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease, color 0.3s ease, background 0.4s ease;
}
.process-step__circle svg {
  width: 38px;
  height: 38px;
}
.process-step.is-on .process-step__circle {
  background: linear-gradient(135deg, #3b82f6, #2a8fd4);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.5);
}
.process-step.is-pulse .process-step__circle {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: #1e40af;
  color: #ffffff;
  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.75),
    0 0 56px rgba(59, 130, 246, 0.3);
}
.process-step:hover .process-step__circle {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.55);
}
.process-step__title {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.process-connector {
  width: 4px;
  flex: 1 1 38px;
  min-height: 38px;
  margin: 2px 0;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.process-connector__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #3b82f6, #60a5fa);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  transition: height 0.7s ease-out;
}
.process-connector.is-on .process-connector__fill { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .process-step,
  .process-step__circle,
  .process-connector__fill { transition: none; }
}
@media (max-width: 768px) {
  .process-step__circle { width: 80px; height: 80px; }
  .process-step__circle svg { width: 34px; height: 34px; }
  .process-connector { height: 34px; }
  .process-step__title { font-size: 0.95rem; }
}

/* === Mapa logístico animado (servicios/logistica.html) === */
.service-detail__visual--map {
  position: relative;
  overflow: hidden;
  padding: 20px;
  align-items: stretch;
  justify-content: stretch;
  min-height: 420px;
}
.logistics-map {
  width: 100%;
  height: 100%;
  display: block;
}
.lm-mexico {
  fill: rgba(96, 165, 250, 0.04);
  stroke: rgba(96, 165, 250, 0.22);
  stroke-width: 1;
  stroke-linejoin: round;
}
.lm-route {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.85));
  opacity: 0.92;
}
.is-drawn .lm-route {
  animation: lm-draw 1.5s ease-out forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes lm-draw {
  to { stroke-dashoffset: 0; }
}

.lm-node {
  fill: #60a5fa;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.9));
}
.lm-node--ext {
  fill: #93c5fd;
  filter: drop-shadow(0 0 7px rgba(147, 197, 253, 1));
}
.is-drawn .lm-node {
  animation: lm-node-in 0.55s ease-out forwards, lm-node-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.55s);
}
@keyframes lm-node-in {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lm-node-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.9)); }
  50%      { filter: drop-shadow(0 0 12px rgba(147, 197, 253, 1)) drop-shadow(0 0 6px rgba(96, 165, 250, 0.7)); }
}

.lm-pulse {
  fill: #dbeafe;
  filter: drop-shadow(0 0 6px #93c5fd) drop-shadow(0 0 3px #fff);
  opacity: 0;
}
.is-drawn .lm-pulse { opacity: 1; }

.lm-label {
  fill: rgba(147, 197, 253, 0.75);
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  opacity: 0;
}
.is-drawn .lm-label {
  animation: lm-label-in 0.5s ease-out forwards;
  animation-delay: 1.5s;
}
@keyframes lm-label-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-route { stroke-dashoffset: 0; animation: none; }
  .lm-node { opacity: 1; transform: scale(1); animation: none; }
  .lm-pulse { display: none; }
  .lm-label { opacity: 1; animation: none; }
}
@media (max-width: 768px) {
  .service-detail__visual--map { min-height: 320px; padding: 12px; }
}

/* === Cobertura: chips + mapa neón (cobertura.html) === */
.coverage-map-section { padding-bottom: 60px; }

.cov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 36px;
  padding: 0 8px;
  max-width: 980px;
}
.cov-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(13, 42, 78, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cov-chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 8px #fbbf24, 0 0 4px #f59e0b;
  flex-shrink: 0;
}
.cov-chip:hover,
.cov-chip:focus-visible,
.cov-chip.is-active {
  transform: scale(1.05);
  border-color: rgba(147, 197, 253, 0.95);
  background: rgba(13, 42, 78, 0.78);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.55), 0 4px 18px rgba(0,0,0,0.25);
  outline: none;
}

.cov-map {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 1422 / 1000;
  background-color: #04091a;
  background-image: url('../img/MEX%20ILUMINADO%20(1).png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 0 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.cov-map.is-visible { opacity: 1; }
.cov-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cov-route {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px #3b82f6);
}
.cov-map.is-drawn .cov-route {
  animation: cov-draw 1.2s ease-out forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes cov-draw { to { stroke-dashoffset: 0; } }

.cov-point {
  fill: #fff;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px #93c5fd) drop-shadow(0 0 8px #60a5fa);
  cursor: default;
}
.cov-map.is-drawn .cov-point {
  animation: cov-point-in 0.55s ease-out forwards, cov-point-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.55s);
}
@keyframes cov-point-in {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes cov-point-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* Puntos decorativos blancos pequeños (otros lugares de la república) */
.cov-point--mini {
  fill: #fff;
  filter: drop-shadow(0 0 3px #93c5fd) drop-shadow(0 0 6px rgba(96, 165, 250, 0.7));
}

/* Puntos ISSA: amarillo brillante con glow intenso */
.cov-point--issa {
  fill: #fde047;
  filter: drop-shadow(0 0 8px #fbbf24) drop-shadow(0 0 16px #f59e0b);
  cursor: pointer;
}
.cov-map.is-drawn .cov-point--issa {
  animation: cov-point-in 0.55s ease-out forwards, cov-point-pulse-issa 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.55s);
}
@keyframes cov-point-pulse-issa {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

.cov-point--issa.is-active {
  filter: drop-shadow(0 0 14px #fde047) drop-shadow(0 0 28px #fbbf24) drop-shadow(0 0 10px #fff);
}
.cov-map.is-drawn .cov-point--issa.is-active {
  animation: cov-point-in 0.55s ease-out forwards, cov-point-pulse-strong 1.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.55s);
}
@keyframes cov-point-pulse-strong {
  0%, 100% { transform: scale(1.25); }
  50%      { transform: scale(1.75); }
}

.cov-pulse {
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(0 0 6px #60a5fa) drop-shadow(0 0 12px #3b82f6) drop-shadow(0 0 2px #fff);
}
.cov-map.is-drawn .cov-pulse { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cov-route { stroke-dashoffset: 0; animation: none; }
  .cov-point { opacity: 1; transform: scale(1); animation: none; }
  .cov-pulse { display: none; }
  .cov-map { opacity: 1; }
}
@media (max-width: 768px) {
  .cov-chip { padding: 8px 14px; font-size: 13px; }
}

/* === Logística internacional: foto interactiva con hotspots === */
.service-detail__visual--photo {
  padding: 0;
  background: transparent;
  border-radius: 16px;
  align-items: stretch;
  justify-content: stretch;
  min-height: 420px;
  box-shadow: none;
  overflow: visible;
}
.logistics-photo {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}
.logistics-photo__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--navy-dark);
}
.logistics-photo__image {
  position: absolute;
  inset: 0;
  background-image: var(--photo-bg, url('../img/SERVICIO%20LOGISTICA.jpg'));
  background-size: cover;
  background-position: var(--photo-pos, center);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(var(--zoom, 1.18));
  transition: opacity 1s ease, filter 0.5s ease;
  will-change: transform, filter;
  z-index: 0;
}
.logistics-photo.is-visible .logistics-photo__image { opacity: 1; }

.logistics-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.4));
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logistics-photo__image { transform: scale(1) !important; }
}

/* === Logística: timeline horizontal (Tu carga siempre en movimiento) === */
.flow-line {
  position: relative;
  margin-top: 36px;
  padding-bottom: 8px;
  background: transparent;
}
.flow-line__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}
.flow-line--4 .flow-line__steps {
  grid-template-columns: repeat(4, 1fr);
}
.flow-line__track {
  position: absolute;
  top: 76px;
  left: 10%;
  right: 10%;
  height: 4px;
  z-index: 1;
}
.flow-line--4 .flow-line__track {
  left: 12.5%;
  right: 12.5%;
}
.flow-line__bg {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.18);
  border-radius: 2px;
}
.flow-line__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: #3b82f6;
  border-radius: 2px;
  box-shadow: 0 0 8px #60a5fa;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.7));
  transition: width 3.5s ease-in-out;
}
.flow-line.is-visible .flow-line__fill { width: 100%; }

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.flow-step__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
  transition: transform 0.4s ease, filter 0.4s ease;
  color: var(--gold);
}
.flow-step__icon svg {
  width: 36px;
  height: 36px;
}
.flow-step__icon--rotating svg {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.flow-step__icon--rotating svg.is-current { opacity: 1; }

.flow-step__node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(59, 130, 246, 0.55);
  opacity: 0.5;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.flow-step__content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-step__content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.flow-step__content p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.45;
}

/* Estado activo (cuando se enciende cada etapa al hacer scroll inicial) */
.flow-step.is-active .flow-step__icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}
.flow-step.is-active .flow-step__node {
  opacity: 1;
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px #60a5fa, 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.flow-step.is-active .flow-step__content {
  opacity: 1;
  transform: translateY(0);
}

/* Flash al pasar el pulso por encima del nodo */
.flow-step.is-flashing .flow-step__icon {
  transform: scale(1.32);
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.85)) drop-shadow(0 0 28px rgba(96, 165, 250, 0.6));
}
.flow-step.is-flashing .flow-step__node {
  box-shadow: 0 0 22px #60a5fa, 0 0 0 10px rgba(59, 130, 246, 0.25), 0 0 36px #3b82f6;
}

/* Etapa central (Tránsito): glow base más fuerte */
.flow-step--featured.is-active .flow-step__icon {
  transform: scale(1.22);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.7));
}
.flow-step--featured.is-active .flow-step__node {
  box-shadow: 0 0 16px #60a5fa, 0 0 0 6px rgba(59, 130, 246, 0.20), 0 0 28px #3b82f6;
}

/* Hover: el ícono crece más */
.flow-step:hover .flow-step__icon {
  transform: scale(1.28);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .flow-line.is-visible .flow-line__fill { transition: none; width: 100%; }
  .flow-step.is-flashing .flow-step__icon { transform: scale(1); filter: none; }
}
@media (max-width: 768px) {
  .flow-line__steps { grid-template-columns: 1fr; gap: 28px; }
  .flow-line__track { display: none; }
  .flow-step__node { display: none; }
  .flow-step { padding: 0; }
  .flow-step__content h4 { font-size: 1.05rem; }
  .flow-step__content p { font-size: 0.9rem; }
}

