/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
  /* Colores */
  --cor-de-fondo: #F2F2F2;
  --cor-de-primario: #003E7E;
  --cor-de-link: #009DDC;
  --cor-de-gray: #A7A9AC;
  --cor-de-black: #000000;
  --cor-de-texto: #1a1a1a;
  --color-dark-text: #333;
  --color-light-bg: #f5f5f5;
  --color-overlay-dark: #333;
  
  /* Transiciones */
  --transition-base: 0.3s ease;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s ease;
  
  /* Espaciados */
  --spacing-xs: 3px;
  --spacing-sm: 4px;
  --spacing-md: 8px;
  --spacing-lg: 10px;
  --spacing-xl: 12px;
  --spacing-2xl: 20px;
  --spacing-3xl: 30px;
  --spacing-4xl: 40px;
  --spacing-5xl: 50px;
  --spacing-6xl: 60px;
  
  /* Z-index */
  --z-nav: 1000;
  --z-dropdown: 1001;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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


p {
  color: var(--cor-de-texto);
  font-weight: 450; 
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.hero {
  background-color: var(--cor-de-fondo);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 90px;
  z-index: var(--z-nav);
  position: relative;
}

.container {
  margin: 0 auto;
  width: 90%;
  max-width: 1280px;
  overflow: visible;
}

/* Homepage-specific container layout */
.home-page .container {
  max-width: 1440px;
}

.nav {
  --state-close: scale(0);
  --state-hamburguer: scale(1);
  --state-menu: translate(-100%);
  display: grid;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: repeat(2, max-content);
  z-index: var(--z-nav);
  position: relative;
}

.nav:target {
  --state-menu: translate(0);
  --state-close: scale(1);
  --state-hamburguer: scale(0);
}

.nav__logo {
  z-index: 1;
  padding: var(--spacing-xs);
}

.nav__hamburguer,
.nav__close {
  cursor: pointer;
  grid-column: -2/-1;
  grid-row: 1/2;
  transition: transform 0.4s;
}

.nav__hamburguer { transform: var(--state-hamburguer); }
.nav__close { transform: var(--state-close); }
.nav__icon { width: 40px; }

.nav__links {
  background-color: var(--cor-de-fondo);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  align-content: center;
  gap: 2em;
  padding-left: 5%;
  transform: var(--state-menu);
  transition: transform var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav__item {
  list-style: none;
  color: var(--color-dark-text);
}

a.nav__link {
  font-size: 1rem;
  letter-spacing: 0.8px;
  transition: color var(--transition-fast);
}

a.nav__link:hover { color: var(--cor-de-link); }

@media (min-width: 1024px) {
  .nav__links > .nav__item > .nav__link {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }
}

/* ============================================
   DROPDOWN MENU - CORREGIDO (evita que se salga de la pantalla)
   ============================================ */

/* Estilos base */
.dropdown-header {
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--cor-de-primario);
  background-color: #f0f7ff;
  border-bottom: 1px solid #dce4ec;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.5;
  cursor: default;
  border-radius: 8px 8px 0 0;
  white-space: normal;
  word-wrap: break-word;
}

.nav__item.dropdown {
  position: relative;
}

.nav__item.dropdown .nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav__item.dropdown .nav__link .material-symbols-outlined {
  font-size: 1rem;
  transition: transform var(--transition-base);
}

.nav__item.dropdown.open .nav__link .material-symbols-outlined {
  transform: rotate(180deg);
}

.nav__item.dropdown .dropdown-content {
  display: none;
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-content li a {
  padding: 12px 20px;
  display: block;
  color: var(--color-overlay-dark);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
}

.dropdown-content li a:hover {
  background-color: #f1f1f1;
  color: var(--cor-de-link);
  padding-left: 26px;
}

/* ============================================
   DROPDOWN DESKTOP - CORREGIDO (no se sale de la pantalla)
   ============================================ */
@media (min-width: 1024px) {
  /* Todos los dropdowns se alinean a la derecha por defecto */
  .nav__item.dropdown {
    position: relative;
  }

  .nav__item.dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;  /* ← Clave: alinear a la derecha del botón */
    left: auto; /* ← Clave: no usar left automático */
    min-width: 320px;
    max-width: 420px;
    width: max-content;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    z-index: var(--z-dropdown);
  }

  /* Para pantallas muy anchas (opcional: primer dropdown a la izquierda) */
  @media (min-width: 1600px) {
    .nav__item.dropdown:first-of-type .dropdown-content {
      right: auto;
      left: 0;
    }
  }

  /* Ajuste para pantallas de laptop (1366px - 1599px) */
  @media (min-width: 1024px) and (max-width: 1599px) {
    .nav__item.dropdown .dropdown-content {
      right: 0;
      left: auto;
      min-width: 300px;
      max-width: 380px;
    }
    
    /* Para el dropdown de Soluciones, un poco más de espacio */
    .nav__item.dropdown:nth-child(3) .dropdown-content,
    .nav__item.dropdown:nth-child(2) .dropdown-content {
      min-width: 320px;
      max-width: 400px;
    }
  }

  /* Header más legible */
  .nav__item.dropdown .dropdown-header {
    padding: 12px 18px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Enlaces más espaciosos pero compactos */
  .nav__item.dropdown .dropdown-content li a {
    padding: 10px 18px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ============================================
   DROPDOWN TABLET (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__item.dropdown .dropdown-content {
    min-width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    right: 0;
    left: auto;
  }

  .nav__item.dropdown .dropdown-header {
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  .nav__item.dropdown .dropdown-content li a {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

/* ============================================
   TEXTO MUY LARGO (wrap adecuado)
   ============================================ */
.dropdown-content li a[href*="formas-valoradas"],
.dropdown-content li a[href*="lenticulares"],
.dropdown-content li a[href*="valued-documents"],
.dropdown-content li a[href*="High-Tech"],
.dropdown-content li a[href*="lealtad"],
.dropdown-content li a[href*="loyalty"],
.dropdown-content li a[href*="security-documents"],
.dropdown-content li a[href*="vehicle-control"] {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* ============================================
   FIX: Dropdown en móvil
   ============================================ */
@media (max-width: 767px) {
  .dropdown-header {
    font-size: 0.75rem;
    padding: 10px 14px;
  }

  .dropdown-content li a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  /* En móvil el dropdown es full width */
  .nav__item.dropdown .dropdown-content {
    position: static;
    width: 100%;
  }
}
/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-es, .language-en {
  display: flex;
  align-items: center;
}

/* Contenedor del enlace de WhatsApp */
.nav__link.call {
    display: inline-flex;
    align-items: center;
    gap: 20px; /* Espacio entre el icono y el texto */
    text-decoration: none;
}

.language-es::before,
.language-en::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: var(--spacing-lg);
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.language-es::before { background-image: url('https://flagcdn.com/w20/mx.png'); }
.language-en::before { background-image: url('https://flagcdn.com/w20/us.png'); }

.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-selector a {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all var(--transition-base);
}

.language-selector a.active {
  font-weight: bold;
  background-color: var(--cor-de-primario);
  color: white;
}

.language-es.active { color: var(--cor-de-link); }
.language-en { color: var(--cor-de-gray); }

/* ============================================
   BOTÓN DE WAHATSAPP Y LLAMADO A LA ACCIÓN
     (REUTILIZABLES EN HERO Y FOOTER)
   ============================================ */
.call, .btn-submit { transition: all var(--transition-base);}

.call {
  background-color: var(--cor-de-primario);
  color: var(--cor-de-fondo);
  padding: var(--spacing-lg);
  border-radius: 20px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}


.call:hover, .btn-submit:hover { color: var(--cor-de-link); }


.nav__link.call {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.whatsapp-icon {
    display: inline-block;
    width: 20px;  
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
}

.call:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    color: white !important;
}

/* ============================================
   HERO
   ============================================ */
.hero-traceability,
.hero-identidad-segura,
.hero-trazabilidad,
.hero-formas-valoradas,
.hero-loyalty

{
  display: flex;
  flex-direction: column;
  height: 75vh;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cor-de-fondo);
  margin-bottom: 2rem;
 
}

.hero-subtitle-trazabilidad {
  font-size: 1.2rem;
  margin-top: 1rem;
  max-width: 800px;
  font-weight: bold;
  color: var(--cor-de-fondo);
}

.lead {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cor-de-fondo);
  font-size: clamp(1.6rem, 4vw, 4rem);
  font-weight: bold;
  min-height: 75vh;
  max-width: 38ch;
  margin: 0 auto;
  text-align: center;
  flex-wrap: wrap;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Contenedor del logo animado Lottie */
.hero-lottie-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Recorta el exceso del lienzo de 1080p */
    margin-top: -5rem; /* Sube la animación en pantallas de escritorio */
    /*margin-bottom: 10px; Espacio antes del título */
  }

#lottie-logo{
  opacity: 0.7 !important; /* Un ligero toque de transparencia para integrarse mejor con el fondo */
}

/* Evita deformaciones del logo animado o del fallback estatico.
   En movil el HTML usa logoWhite.svg en lugar de Lottie para prevenir artefactos de render en Android. */
#lottie-logo svg,
#lottie-logo canvas,
#lottie-logo .lottie-fallback {
  display: block;
  width: 100%;
  height: auto;
}


/* ============================================
   LISTAS Y WRAPPERS
   ============================================ */
.img-responsive,
.responsive-list {
  width: 100%;
  height: auto;
}

.responsive-list { max-width: 90%; }

.wrapper-list {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #0071bc 50%, #00a3e6 100%);
}

.list-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  margin: 0 auto;
}

.hero-formas-valoradas + .list-container {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.text-container-list {
  display: flex;
  flex-direction: column;
  color: var(--cor-de-fondo);
  font-size: 2rem;
  padding: var(--spacing-5xl);
  line-height: 1.5;
  text-shadow: var(--color-overlay-dark) 2px 2px 2px;
  font-weight: bold;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.text-container p {
  line-height: 25px;
  margin-bottom: var(--spacing-3xl);
  font-size: clamp(0.9rem, 2.5vw, 1.10rem);
}

.text-container li {
  font-size: 1rem;
  color: var(--cor-de-texto);
  line-height: 2;
  text-align: left;
  font-weight: 500;
  padding: var(--spacing-xs);
  list-style-type: disc;
  margin-left: var(--spacing-2xl);
}

.text-container li::marker {
  font-size: 1.35em;
  color: var(--cor-de-primario);
}

/* ============================================
   LISTAS HORIZONTALES
   ============================================ */
.horizontal-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.horizontal-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
   font-size: clamp(1.2rem, 4vw, 2rem);
    gap: clamp(0.4rem, 1.5vw, 0.75rem);
}


.center-list { justify-content: center; }

.horizontal-list img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.horizontal-list li:hover img {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.ul-soluciones {
  list-style: none;
  padding-left: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
}

.ul-soluciones li,
.mexico-list li {
  background: var(--color-light-bg);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cor-de-primario);
  display: inline-block;
  margin: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TARJETAS
   ============================================ */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #fafafa;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-2xl);
  text-align: center;
  transition: transform var(--transition-base);
}

.card:hover { transform: translateY(-5px); }

.card h3 {
  margin: var(--spacing-lg) 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-dark-text);
}

.card li {
  font-size: 1rem;
  padding: 5px;
  text-align: left;
  margin-left: var(--spacing-2xl);
  line-height: 1.5;
  color: var(--cor-de-texto);
}

.card ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  color: var(--color-overlay-dark);
  line-height: 1.6;
}

.card .sub-list {
  list-style-type: circle;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}
/* ============================================
   TARJETAS HOLOGRÁFICAS
   ============================================ */
@keyframes holoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.holo-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  
}

.holo-content {
  max-width: 980px;
  color: var(--cor-de-texto);
}

.holo-content h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
}

.holo-content h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.holo-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.holo-content li {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
}




.holo-content span.material-symbols-outlined {
  margin-right: 0.75rem;
  font-size: 1.3rem;
  color: #444;
}


.holo-content li:last-child {
  margin-bottom: 0;
}

/* ============================================
   EFECTO HOLOGRÁFICO PREMIUM
   ============================================ */
/* Clase contenedora. Debe tener position relative y overflow hidden */
.holo-efecto {
  position: relative;
  overflow: hidden;
  border-radius: inherit; /* Hereda el borde de tus tarjetas (ej. 12px o 20px) */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* El pseudo-elemento que crea el "papel holográfico" */
.holo-efecto::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Gradiente iridiscente simulando seguridad holográfica */
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 0, 0, 0.4) 30%,
    rgba(255, 165, 0, 0.4) 40%,
    rgba(255, 255, 0, 0.4) 50%,
    rgba(0, 128, 0, 0.4) 60%,
    rgba(0, 0, 255, 0.4) 70%,
    rgba(75, 0, 130, 0.4) 80%,
    transparent 100%
  );
  background-size: 300% 300%;
  mix-blend-mode: color-dodge; /* Esto hace que brille sobre los colores oscuros/medios */
  opacity: 0;
  pointer-events: none; /* Para que no interfiera con los clics en la tarjeta */
  z-index: 10;
  transition: opacity 0.4s ease;
}

/* Efecto de luz secundaria (brillo metálico) */
.holo-efecto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  background-size: 200% 200%;
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.4s ease;
}

/* La animación al hacer hover */
.holo-efecto:hover::after,
.holo-efecto:hover::before {
  opacity: 1;
  animation: brilloHolografico 3s ease infinite alternate;
}

/* Animación del movimiento de la luz */
@keyframes brilloHolografico {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   CORE GRID
   ============================================ */
.core-grid-section { padding: 4rem 0; }

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

.core-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-base);
}

.core-card:hover { transform: translateY(-10px); }

/* ============================================
   SERVICIOS
   ============================================ */
.title-services {
  font-size: 4rem;
  color: var(--color-dark-text);
  font-weight: bold;
  margin: 1rem 0;
  text-align: center;
}

.text-container-services h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); text-align: left; }

.responsive-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.responsive-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-list { background-color: var(--cor-de-fondo); }

.content li {
  font-size: 1rem;
  color: var(--cor-de-texto);
  line-height: 2;
  font-weight: 500;
  padding: var(--spacing-xs);
}

.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xs);
  color: var(--cor-de-texto);
  font-size: clamp(0.9rem, 2.5vw, 1.10rem);
  font-weight: 500;
}

/* Iconos Material dentro de listas */
.icon-list li .material-symbols-outlined {
  color: var(--cor-de-link);
  background: #eef5ff;
  border-radius: 50%;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  flex-shrink: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: clamp(0.2rem, 1.5vw, 0.3rem);
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--cor-de-texto);
}

/* Espaciado entre items (excepto el último) */
.icon-list li:not(:last-child) {
    margin-bottom: clamp(2px, 1vh, 6px);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.trazabilidad-sectores {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0b3042 10%, #071b26 81%);
  padding: 4rem 1rem;
  z-index: 1;
}

.trazabilidad-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.trazabilidad-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0b3042 10%, #071b26 81%);
  opacity: 0.85;
  z-index: 1;
}

.trazabilidad-sectores .container {
  position: relative;
  z-index: 2;
}

.services-grid-section { padding: 4rem 0; }

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  --x: 50%;
  --y: 50%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.service-card img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto var(--spacing-2xl);
  transition: transform var(--transition-base);
}

.service-card:hover img { transform: scale(1.05); }

.service-card h3 {
  margin: 1rem 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-dark-text);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--cor-de-texto);
}

.trazabilidad-sectores .service-card {
  padding: 1.25rem;
}

.trazabilidad-sectores .service-card img,
.trazabilidad-sectores .service-image-placeholder {
  width: 100%;
  max-width: 320px;
  height: 283px;
  margin: 0 auto;
}

.trazabilidad-sectores .service-card img {
  object-fit: contain;
}

.trazabilidad-sectores .service-image-placeholder {
  display: block;
  border: 1px dashed rgba(0, 113, 188, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.trazabilidad-sectores .service-card h3 {
  margin: 0 0 1rem;
}

.text-container-services {
place-items: flex-start;
  
}

/*EFECTO HOLOGRÁFICO EN LAS TARJETAS DE SERVICIOS*/

/* El contenedor debe tener posición relativa */
.service-card {
  position: relative;
  overflow: hidden; /* Importante para que el brillo no se salga */
  z-index: 1;
  isolation: isolate;
  --x: 50%;
  --y: 50%;
}

.holo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Permite que el mouse "atraviese" la capa */
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;

  /* Gradiente Arcoíris tipo Holograma */
  background:
    radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 0, 255, 0.32) 25%,
      rgba(0, 255, 255, 0.32) 50%,
      rgba(255, 255, 0, 0.28) 75%,
      rgba(255, 255, 255, 0) 100%
    );
  background-size: 200% 200%;
  background-position: var(--x, 50%) var(--y, 50%);
  mix-blend-mode: multiply;
}

/* Textura con la palabra ORIGINAL */
.holo-overlay::before {
  content: "ORIGINAL ORIGINAL ORIGINAL ORIGINAL ORIGINAL ORIGINAL ORIGINAL ORIGINAL";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  font-size: 10px;
  font-weight: 800;
  color: rgba(0, 62, 126, 0.08);
  transform: rotate(-25deg);
  display: flex;
  flex-wrap: wrap;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.holo-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 8px
  );
}

/* Solo se activa al pasar el mouse sobre la tarjeta */
.service-card:hover .holo-overlay {
  opacity: 0.9;
}

/* ============================================
   CLIENTES
   ============================================ */
.clientes-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
  background-color: transparent;
  z-index: 1;
}


.flag-icon {
    width: clamp(24px, 5vw, 48px);
    height: clamp(24px, 5vw, 48px);
    object-fit: contain;
}

.clientes-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cor-de-fondo);
  text-align: center;
  margin-bottom: 3rem;
}

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

.cliente-card {
  background: #fff;
  /* border-left: 5px solid var(--cor-de-link); */
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clientes-section .cliente-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}


.cliente-card h3 {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--cor-de-primario);
}

.cliente-card h3 img { margin-right: var(--spacing-xl); vertical-align: middle; }

.cliente-card li {
  padding: 0.25rem 0;
  list-style: disc;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cor-de-primario);
}

/* ============================================
   CLIENTES REGIONES
   ============================================ */
.clientes-region { margin-bottom: 3rem; }

.region-title {
  color: var(--cor-de-fondo);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.region-subtitle {
  color: var(--cor-de-fondo);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0.9;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.internacional-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.mexico-card-wrapper { max-width: 700px; margin: 0 auto; }
.mexico-card { text-align: center; max-width: 100%; }

.mexico-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
}

.divider {
  margin: 2.5rem 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
}


/* ============================================
   CLIENTES SECTION CON VIDEO FONDO
   ============================================ */


/* Video de fondo para clientes */
.clientes-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Overlay degradado animado para clientes - MISMO EFECTO QUE HERO */
.clientes-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0b3042 10%, #071b26 81%);
  opacity: 0.85;
  z-index: 1;
  animation: clientesGradient 15s ease infinite;
}

/* Animación suave del degradado */
@keyframes clientesGradient {
  0% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.92;
  }
  100% {
    opacity: 0.85;
  }
}

/* Asegurar que el contenido quede por encima del overlay */
.clientes-section .container {
  position: relative;
  z-index: 2;
}

/* Ajustar colores de títulos para que contrasten con el video */
.clientes-section .clientes-title,
.clientes-section .region-title,
.clientes-section .region-subtitle {
  color: var(--cor-de-fondo);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mantener el fondo de las tarjetas blancas pero semitransparente para mejor lectura */
.clientes-section .cliente-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(0px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ajuste del divider para que sea visible sobre el video */
.clientes-section .divider {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
}


@media (max-width: 768px) {
  .dropdown-header {
    font-size: 0.7rem;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
  }
}

/* ============================================
   HEADER CON VIDEO Y SLIDESHOW
   ============================================ */
.header-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: clamp(5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}


.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0b3042 10%, #071b26 81%);
  opacity: 0.90;
  z-index: 2;
  animation: gradient 15s ease infinite;
}

.header-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

  

.about-hero {
  position: relative;
  width: 100%;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1rem, 3vw, 2rem);
  text-align: left;
}

@media (min-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr 1.35fr;
  }
}

.about-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--cor-de-link),
    #00a3e6,
    var(--cor-de-link)
  );
  background-size: 100% 200%;
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 200%;
  }
}

.about-hero .text-container {
  color: var(--cor-de-fondo);
  text-shadow: none;
}

.about-hero .title-container {
  color: var(--cor-de-fondo);
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.about-hero .text-container p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.65;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  color:var(--cor-de-fondo);
}

.about-hero .slideshow-container {
  max-width: 720px;
  padding: var(--spacing-lg);
}

.about-hero .slides img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: auto;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-2xl);
  background: var(--color-light-bg);
  
}

.slides {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.slides img { width: 100%; border-radius: 10px; }

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  padding: 16px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color var(--transition-slow, 0.6s);
  border-radius: 0 3px 3px 0;
}

.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); }

.dots-container { text-align: center; margin-top: var(--spacing-lg); }

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 var(--spacing-sm);
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color var(--transition-slow, 0.6s);
}

.active, .dot:hover { background-color: #717171; }

.fade { animation: fade 1.5s ease-in-out; }

@keyframes fade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
  background-color: var(--color-light-bg);
  padding: var(--spacing-6xl, 60px) var(--spacing-2xl);
}

.contact-container {
  width: min(1200px, 90%);
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2em;
  margin-bottom: var(--spacing-lg);
  color: var(--color-dark-text);
  font-weight: bold;
}

.contact-subtitle {
  font-size: 1.1em;
  margin-bottom: var(--spacing-3xl);
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4xl);
  align-items: stretch;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    text-align: left;
  }
}

.contact-form-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-map-column {
  display: flex;
  flex-direction: column;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .map-container {
    min-height: 480px;
  }
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.optional-text {
  color: #999;
  font-size: 0.8rem;
  font-weight: normal;
  margin-left: 5px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: #444;
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-xl);
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
}

.btn-submit {
  padding: 14px;
  font-size: 1em;
  background-color: var(--cor-de-primario);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}



/* ============================================
   MÓDULO DE CONTACTO Y MAPA (RESPONSIVO)
   ============================================ */
/* Contenedor de la columna del mapa */
.contact-map-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Contenedor responsivo del mapa */
.map-container {
  position: relative;
  width: 100%;
  /* Altura fija para móviles para que no colapse si el formulario es corto */
  min-height: 350px; 
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Importante: obliga al contenedor a crecer si es necesario */
  flex-grow: 1; 
}

.map-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

/* El truco infalible para iframes: posición absoluta */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Elimina el espacio fantasma debajo del iframe */
  display: block; 
}

/* Ajustes para Escritorio (Tablet en adelante) */
@media (min-width: 768px) {
  .contact-grid {
    /* 1.15fr para el formulario, 0.85fr para el mapa */
    grid-template-columns: 1.15fr 0.85fr; 
    text-align: left;
    align-items: stretch; /* Obliga a ambas columnas a medir lo mismo de alto */
  }

  .map-container {
    /* En escritorio, el mapa toma la altura completa del formulario */
    min-height: 100%; 
  }
}

/* ============================================
   TÍTULOS
   ============================================ */
html[lang="en"] .product-item h3 {
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  html[lang="en"] .product-item h3 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  html[lang="en"] .product-item h3 { font-size: 0.85rem; }
}

h1.title-container,
h2.title-container {
   font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: bold;
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-5xl)
}

h2.title-container-list {
  font-size: 3rem;
  font-weight: bold;
  color: var(--cor-de-fondo);
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-5xl);
  line-height: 1;
  text-shadow: var(--color-overlay-dark) 2px 2px 2px;
  padding: var(--spacing-2xl);
}

h2.title-products {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: bold;
  color: var(--cor-de-fondo);
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-2xl);
}

/* ============================================
   SOLUCIONES - MÁS PRODUCTOS (CONTROL VEHICULAR, SOLUCIONES DE IDENTIDAD, ETC.)
     - Sección con fondo degradado y tarjetas de productos con efecto hover.
   ============================================ */

  .more-products {
  background: linear-gradient(90deg, #0071bc 50%, #00a3e6 100%);
  display: grid;
  justify-content: center;
  padding: var(--spacing-5xl);
}

hr {
  margin: var(--spacing-2xl) auto;
  width: 90%;
  border: none;
  height: 0.5px;
  background: linear-gradient(to right, white, gray, white);
}

.list-more-products {
  display: grid;
  gap: var(--spacing-2xl);
  grid-template-columns: repeat(3, 1fr);
}

.product-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  align-content: flex-end;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.product-item h3 {
  font-weight: bold;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--cor-de-fondo);
  width: 100%;
  min-height: 120px;
  word-wrap: normal;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
  max-width: 100%;
}

.product-item h3:hover {
  color: var(--cor-de-black);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}


/* Para textos muy largos que podrían desbordar el contenedor */
.description-more-products {
  width: 100%;
  overflow-x: auto;
  /* Permite scroll horizontal si es absolutamente necesario */
  overflow-y: hidden;
}

/* Opcional: Ajuste de texto consiste en reducir el tamaño de la fuente */
@media (max-width: 1200px) {
  .product-item h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-item h3 {
    font-size: 1.2rem;
  }
  
  .list-more-products {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  display: flex;
  padding: var(--spacing-3xl);
  background-color: var(--color-overlay-dark);
  align-items: center;
  justify-content: space-around;
}

.qr-image img { width: 114px; height: 114px; }
.iso-logo img { width: 90px; height: 42px; filter: grayscale(100%); }
.logo-footer img { filter: brightness(0) invert(1); opacity: 0.5; }

.footer-text { text-align: center; line-height: 1.5; }
.footer-text p {
  color: var(--cor-de-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.footer-text a {
  color: var(--cor-de-gray);
  font-weight: bold;
  transition: color var(--transition-base);
}
.footer-text a:hover {
  color: var(--cor-de-link);
  font-weight: bolder;
}

/* ============================================
   CONTROL VEHICULAR - PRODUCTOS
   ============================================ */
#infracciones-transito,
#verificacion-vehicular,
#control-fronterizo,
#radiofrecuencia,
#transporte-publico,
#registro-control-vehicular,
#impuestos-vehiculares,
#transporte-publico-nuevo,
#videovigilancia-radares,
#engomados-peaje {
  background-size: cover;
  background-repeat: no-repeat;
  height: 500px;
}

#infracciones-transito { background-image: url('../img/infraccion-bn.png'); }
#infracciones-transito:hover { background-image: url('../img/infraccion.png'); }

#verificacion-vehicular { background-image: url('../img/verificacion-vehicular-bn.png'); }
#verificacion-vehicular:hover { background-image: url('../img/verificacion-vehicular.png'); }

#control-fronterizo { background-image: url('../img/control-fronterizo-bn.png'); }
#control-fronterizo:hover { background-image: url('../img/control-fronterizo.png'); }

#radiofrecuencia { background-image: url('../img/dispositivosRadiofrecuencia-bn.png'); }
#radiofrecuencia:hover { background-image: url('../img/dispositivosRadiofrecuencia.png'); }

#transporte-publico { background-image: url('../img/diversos-documentos-bn.png'); }
#transporte-publico:hover { background-image: url('../img/diversos-documentos.png'); }

#registro-control-vehicular { background-image: url('../img/registro-control-vehicularbn.png'); }
#registro-control-vehicular:hover { background-image: url('../img/registro-control-vehicular.png'); }

#impuestos-vehiculares { background-image: url('../img/impuestos-vehicularesbn.png'); }
#impuestos-vehiculares:hover { background-image: url('../img/impuestos-vehiculares.png'); }

#transporte-publico-nuevo { background-image: url('../img/transporte-publico-bn.png'); }
#transporte-publico-nuevo:hover { background-image: url('../img/transporte-publico.png'); }

#videovigilancia-radares { background-image: url('../img/radaresbn.png'); }
#videovigilancia-radares:hover { background-image: url('../img/radares.png'); }

#engomados-peaje { background-image: url('../img/engomados-peajebn.png'); }
#engomados-peaje:hover { background-image: url('../img/engomados-peaje.png'); }

/* ============================================
   LISTA PREMIUM - PROGRAMAS DE LEALTAD
   ============================================ */
.loyalty-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaciado generoso entre items */
    margin-top: 2rem;
    width: 100%;
    max-width: 600px; /* Evita que se estiren demasiado en PC */
}

.loyalty-list li {
    background: #ffffff;
    border-left: 6px solid var(--cor-de-link); /* Detalle corporativo lateral */
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    font-size: 1.3rem; /* Tamaño de fuente más llamativo */
    font-weight: 600;
    color: var(--cor-de-primario);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
    
    /* Configuración de Animación CSS (Aparecen de izquierda a derecha) */
    opacity: 0;
    transform: translateX(-30px);
    /* La animación usa la variable --i del HTML para el retraso (delay) */
    animation: slideInLoyalty 0.6s forwards;
    animation-delay: calc(var(--i) * 0.15s); 
}

/* Efecto al pasar el mouse (Hover) */
.loyalty-list li:hover {
    transform: translateX(10px) translateY(-2px); /* Se mueve a la derecha y sube ligeramente */
    background: var(--cor-de-link);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 157, 220, 0.3);
    border-left-color: var(--cor-de-primario);
}

/* Estilo para los Iconos */
.loyalty-list li .material-symbols-outlined {
    font-size: 2rem;
    color: var(--cor-de-link);
    background: rgba(0, 157, 220, 0.1);
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* El icono cambia de color cuando se hace hover en la tarjeta */
.loyalty-list li:hover .material-symbols-outlined {
    color: var(--cor-de-link);
    background: #ffffff;
    transform: scale(1.1) rotate(-5deg); /* Pequeño salto juguetón */
}

/* Keyframes para la animación de entrada */
@keyframes slideInLoyalty {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ajuste Responsivo para Móviles */
@media (max-width: 768px) {
    .loyalty-list li {
        font-size: 1.1rem;
        padding: 1rem;
    }
    .loyalty-list li .material-symbols-outlined {
        font-size: 1.6rem;
        padding: 10px;
    }
}

/* ============================================
   SECCIÓN: SOLUCIÓN TECNOLÓGICA (Nuevo Diseño)
   ============================================ */
.tech-solution-section {
  padding: clamp(4rem, 8vw, 6rem) 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

/* Efecto de fondo abstracto */
.tech-solution-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 157, 220, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.tech-solution-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge (Etiqueta superior) */
.badge-tech {
  display: inline-block;
  background: rgba(0, 62, 126, 0.1);
  color: var(--cor-de-primario);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 62, 126, 0.2);
}

.tech-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--cor-de-texto);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.tech-subtitle {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* Lista de características con animación */
.tech-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-feature-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Animación en cascada */
  opacity: 0;
  transform: translateX(-20px);
  animation: slideFadeIn 0.5s forwards;
  animation-delay: calc(var(--i) * 0.15s + 0.3s);
}

.tech-feature-item:hover {
  transform: translateY(-3px) translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 157, 220, 0.1);
  border-color: rgba(0, 157, 220, 0.2);
}

.tech-feature-item p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cor-de-texto);
  line-height: 1.4;
}

.icon-glow-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cor-de-link);
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 157, 220, 0.4);
}

/* Lado Derecho: Tarjeta Glassmorphism */
.tech-visual-glass {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  border-radius: 24px;
  padding: 3px; /* Espacio para el borde brillante */
  background: linear-gradient(135deg, var(--cor-de-primario), #001a35);
  box-shadow: 0 20px 50px rgba(0, 62, 126, 0.3);
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform 0.5s ease;
}

.tech-visual-glass:hover .glass-card {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.glass-card-inner {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 21px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.giant-icon {
  font-size: 5rem !important;
  color: var(--cor-de-link);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(0, 157, 220, 0.6));
}

.glass-card-inner h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.glass-card-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 400;
}

@keyframes slideFadeIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive Tech Section */
@media (max-width: 1024px) {
  .tech-solution-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .glass-card {
    transform: none;
    max-width: 350px;
    aspect-ratio: 1/1;
  }
}

/* ============================================
   SECCIÓN: BENEFICIOS (Nuevo Diseño Grid)
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--cor-de-link);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 157, 220, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cor-de-link);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: var(--cor-de-link);
  color: #fff;
  transform: scale(1.1);
}

.benefit-icon .material-symbols-outlined {
  font-size: 2rem;
}

.benefit-card h3 {
  font-size: 1.4rem;
  color: var(--cor-de-primario);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ANIMACIONES GENERALES
   ============================================ */
@keyframes gradient {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.92; }
}

@keyframes clientesGradient {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.92; }
}

/* ============================================
   APPLE REVEAL ANIMATION
   ============================================ */
.apple-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.apple-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.list-container { overflow: visible; }

/* ============================================
   DEGRADADOS SUTILES
   ============================================ */
.soft-gradient-bg {
  background: linear-gradient(135deg,
    rgba(0, 62, 126, 0.05),
    rgba(0, 157, 220, 0.08),
    rgba(0, 174, 239, 0.05));
  border-radius: 12px;
}

.hover-glow {
  transition: all 0.3s ease;
  background: #fff;
}

.hover-glow:hover {
  background: linear-gradient(135deg, #fff, rgba(0, 157, 220, 0.1));
  box-shadow: 0 4px 15px rgba(0, 157, 220, 0.2);
}

.frosted-glow {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(0, 157, 220, 0.2);
  transition: all 0.3s ease;
}

.frosted-glow:hover {
  border-color: rgba(0, 157, 220, 0.6);
  box-shadow: 0 4px 20px rgba(0, 157, 220, 0.15);
}

.corporate-gradient {
  background: linear-gradient(120deg,
    rgba(0, 62, 126, 0.03),
    rgba(0, 157, 220, 0.06),
    rgba(0, 174, 239, 0.03));
  border-left: 3px solid #009DDC;
}


/* ============================================
   FIX: DESKTOP - EVITAR SUPERPOSICIÓN
   ============================================ */
@media (min-width: 1024px) {
  .nav {
    /* Cambiar de 2 columnas a auto */
    grid-template-columns: auto 1fr auto auto;
    /* Logo | espacio | menú | selector/CTA */
  }
  
  .nav__logo {
    grid-column: 1 / 2;
  }
  
  .nav__links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 0;
    transform: none !important;
    width: auto;
    height: auto;
  }
  
  .language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    order: 2;
  }
  
  .call {
    margin-left: 1rem;
    order: 3;
  }
  
  .nav__hamburguer,
  .nav__close {
    display: none !important; /* Ocultar en desktop */
  }
}

@media (min-width: 1024px) {
  /* Desktop - Ocultar hamburguesa y mostrar menú horizontal */
  .nav {
    --state-hamburguer: scale(0);
    --state-menu: translate(0);
  }
  
  .nav:target { --state-close: scale(0); }
  
  .nav__link { font-size: 0.95rem; letter-spacing: normal; }

  .nav__links {
    position: unset;
    background-color: unset;
    transform: unset;
    gap: 1em;
    grid-auto-flow: column;
    grid-column: -2/-1;
    grid-row: 1/2;
  }
  
  
  
  /* Dropdown hover en desktop */
  .nav__item.dropdown:hover .dropdown-content {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: var(--z-dropdown);
    padding: 8px 0;
    border-radius: 8px;
  }
  
  .nav__item.dropdown:hover .dropdown-content { left: auto; right: 0; }
  
  .footer { display: flex; text-align: center; }
  
  /* Fondos desktop */
  .hero-identidad-segura { background-image: url('../img/aeropuerto-xxl.png'); }
  .hero-traceability {
    background-image: url('../img/trazabilidad-productosxxl-2.png');
    margin-top: -30px;
  }
  .hero-formas-valoradas { background-image: url('../img/formas-valoradasxxl.png'); }
  .hero-nosotros { background-image: url('../img/us2.jpg'); }
  .control-vehicular {
    background-image: url(../img/autos-xxl.png);
    height: auto;
    margin-top: -30px;
  }
  
.hero-loyalty { 
  background-image: url('../img/mall-xxl.png'); 
    height: auto;
    margin-top: -30px;

}

  /* Services grid desktop */
  .services-grid { gap: 1.5rem; }
}
/*QUERIES - TABLET (768px - 1023px)*/
@media (min-width: 768px) and (max-width: 1023px) {

    .container {
    width: 95%;
    max-width: 100%;
  }

  .hero {
    height: 76px;
  }

  .nav {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .nav__logo img {
    height: 58px !important;
  }
  
  .nav__links {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    width: 100%;
    height: calc(100dvh - 76px);
    padding: 1rem 6%;
    overflow-y: auto;
    background: var(--cor-de-fondo);
    transform: var(--state-menu);
    z-index: var(--z-dropdown);
  }

    .nav__link {
    font-size: 1rem !important;
    letter-spacing: 0;
  }

  .nav__item {
    border-bottom: 1px solid rgba(0, 62, 126, 0.1);
  }

  .nav__item.dropdown.open .dropdown-content {
    display: flex !important;
    flex-direction: column;
    position: static;
    width: 100%;
    margin: 8px 0;
    background-color: #fff;
    border-radius: 8px;
  }

  .nav__hamburguer,
  .nav__close {
    display: block;
    z-index: 1003;
  }

  .header-hero {
    width: 100%;
    min-height: calc(100svh - 76px);
    height: auto;
    padding: 2rem 0 3rem;
  }

  .header-content {
    width: min(94%, 760px);
  }

  .hero-lottie-container {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  #lottie-logo {
    width: min(420px, 82vw);
    margin: 0 auto;
  }

  .core-grid-section {
    padding: 1.5rem 0 0;
  }

  .core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .core-card {
    min-width: 0;
    padding: 1.5rem;
  }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .internacional-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }


}

/* ============================================
   RESPONSIVE FINAL OVERRIDES
   ============================================ */
@media (max-width: 1023px) {
  body:has(.nav:target) {
    overflow: hidden;
  }

  .hero {
    height: 76px;
    position: relative;
  }

  .nav {
    width: 94%;
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .nav__logo img {
    height: 58px !important;
  }

  .nav__links {
    position: fixed !important;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    align-content: start;
    justify-content: stretch;
    gap: 0.90rem;
    width: 100%;
    height: calc(100dvh - 76px);
    padding: 1rem 6%;
    overflow-y: auto;
    background: var(--cor-de-fondo);
    transform: var(--state-menu) !important;
    z-index: var(--z-dropdown);
  }

  .nav:target .nav__links {
    transform: translate(0) !important;
  }

  .nav__hamburguer,
  .nav__close {
    display: block !important;
    z-index: 1003;
  }

  .nav__item {
    width: 100%;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 62, 126, 0.1);
  }

  .nav__link {
    font-size: 1rem !important;
  }

  .language-selector {
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }

  .nav__link.call {
    width: max-content;
    gap: 0.5rem;
  }

  .nav__item.dropdown.open .dropdown-content {
    display: flex !important;
    flex-direction: column;
    position: static;
    width: 100%;
    margin: 0.5rem 0 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .header-hero {
    width: 100%;
    min-height: calc(100svh - 76px);
    height: auto;
    padding: 2rem 0 3rem;
  }

  .background-video,
  .overlay-gradient {
    width: 100%;
    height: 100%;
  }

  .header-content {
    width: min(94%, 760px);
  }

  .hero-lottie-container {
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  #lottie-logo {
    width: min(430px, 82vw);
    max-width: 100%;
    margin: 0 auto;
  }

  .core-grid-section {
    padding: 1.5rem 0 0;
  }

  .core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .core-card {
    min-width: 0;
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 68px;
  }

  /*.nav {
    min-height: 68px;
  }*/

  .nav__logo img {
    height: 52px !important;
  }

  .nav__links {
    top: 68px;
    height: calc(100dvh - 68px);
  }

  .header-hero {
    min-height: calc(100svh - 68px);
    padding: 1.5rem 0 2rem;
  }

  #lottie-logo {
    width: min(310px, 78vw);
  }

  .core-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 360px;
    margin: 0 auto;
  }

  .core-card {
    padding: 2rem 1.5rem;
  }

  .core-card h3 {
    font-size: 1rem;
    line-height: 1.15;
  }

  .core-card p {
    font-size: 0.82rem;
    line-height: 1.3;
  }
}

/* Fondos hero para tablet: usar version -m */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-formas-valoradas {
    background-image: url('../img/formas-valoradasm.png') !important;
  }

  .hero-identidad-segura {
    background-image: url('../img/aeropuerto-m.png') !important;
  }

  .control-vehicular {
    background-image: url('../img/autos-m.png') !important;
  }

  .hero-traceability,
  .hero-trazabilidad {
    background-image: url('../img/trazabilidad-productosm.png') !important;
  }

  .hero-loyalty {
    background-image: url('../img/mall-m.png') !important;
  }

  .hero-formas-valoradas,
  .hero-identidad-segura,
  .control-vehicular,
  .hero-traceability,
  .hero-trazabilidad,
  .hero-loyalty {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 422px;
  }
}

/* ============================================
   MEDIA QUERIES UNIFICADAS
   ============================================ */

/* === DESKTOP GRANDE (1200px en adelante) === */
@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
}

/* === DESKTOP MEDIANO (1024px - 1199px) === */
@media (min-width: 1024px) and (max-width: 1199px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* === DESKTOP BASE (mínimo 1024px) === */
@media (min-width: 1024px) {
  .nav {
    --state-hamburguer: scale(0);
    --state-menu: translate(0);
    grid-template-columns: auto 1fr auto auto;
  }
  
  .nav:target { --state-close: scale(0); }
  
  .nav__logo { grid-column: 1 / 2; }
  
  .nav__links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 0;
    transform: none !important;
    width: auto;
    height: auto;
  }
  
  .nav__link { font-size: 0.95rem; letter-spacing: normal; }
  
  .language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    order: 2;
  }
  
  .call {
    margin-left: 1rem;
    order: 3;
  }
  
  .nav__hamburguer,
  .nav__close { display: none !important; }
  
  .nav__item.dropdown:hover .dropdown-content {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: var(--z-dropdown);
    padding: 8px 0;
    border-radius: 8px;
  }
  
  .nav__item.dropdown:hover .dropdown-content { left: auto; right: 0; }
  
  .footer { display: flex; text-align: center; }
  
  /* Fondos desktop */
  .hero-identidad-segura { background-image: url('../img/aeropuerto-xxl.png'); }
  .hero-traceability {
    background-image: url('../img/trazabilidad-productosxxl-2.png');
    margin-top: -30px;
  }
  .hero-formas-valoradas { background-image: url('../img/formas-valoradasxxl.png'); }
  .hero-loyalty { background-image: url('../img/mall-xxl.png'); }
  .hero-nosotros { background-image: url('../img/us2.jpg'); }
  .control-vehicular {
    background-image: url(../img/autos-xxl.png);
    height: auto;
    margin-top: -30px;
  }
  
  .services-grid { gap: 1.5rem; }
}

/* === TABLET (768px - 1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { width: 95%; max-width: 100%; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .internacional-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* === MÓVIL (hasta 767px) === */
@media (max-width: 767px) {
  /* Header */
  .hero { height: auto; position: relative; }
  
  /* Navegación móvil */
  .nav__links {
    position: fixed;
    top: 74px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--cor-de-fondo);
    transform: var(--state-menu);
    transition: transform var(--transition-base);
    z-index: var(--z-dropdown);
    overflow-y: auto;
    padding: 2rem 5%;
    height: calc(100% - 74px);
    gap: 3em;
  }
  
  .nav__hamburguer,
  .nav__close { z-index: 1003; }
  
  .nav__item.dropdown.open .dropdown-content {
    display: flex !important;
    flex-direction: column;
    position: static;
    width: 100%;
    background-color: #f9f9f9;
    margin: 8px 0;
    border-radius: 8px;
  }
  
  .dropdown-header {
    font-size: 0.7rem;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
  }
  
  /* Hero */
  .hero-lottie-container { padding: 20px; margin-top: 40px; }
  .lead { height: 400px; min-height: 0; }
  
  /* Títulos */
  h2.title-container-list {
    font-size: 1.6rem;
    text-align: left;
    line-height: 35px;
  }
  
  /* Listas */
  .list-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .list-container img { order: 1; }
  .list-container .responsive-video { order: 1; }
  .list-container .text-container { order: 2; }
  .text-container-services { order: 2; }
  #lenticulares .text-container img { order: 2; }

  .about-hero .text-container { order: 1; }
  .about-hero .slideshow-container { order: 2; }
  
  /* Productos */
  .list-more-products { grid-template-columns: 1fr !important; }
  .product-item h3 { font-size: 1.3rem; padding: 8px 12px; }
  
  /* Footer */
  .footer { flex-direction: column-reverse !important; }
  
  /* Clientes */
  .clientes-section { padding: 3rem 1rem; }
  .clientes-section .clientes-title { font-size: 2rem; }
  .clientes-section .region-title { font-size: 1.5rem; }
  .internacional-grid { grid-template-columns: 1fr; gap: 1rem; }
  .region-title { font-size: 1.6rem; }
  .region-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .mexico-list { flex-direction: column; align-items: center; gap: 0.6rem; }
  .mexico-list li { width: 80%; text-align: center; }
  
  /* Fondos tablet */
  .control-vehicular {
    background-image: url('../img/autos-m.png');
    background-size: contain;
    height: 422px;
  }
  .hero-identidad-segura {
    background-image: url('../img/aeropuerto-m.png');
    height: 422px;
  }
  .hero-traceability {
    background-image: url('../img/trazabilidad-productosm.png');
    background-size: contain;
    height: 422px;
  }
  .hero-formas-valoradas {
    background-image: url('../img/formas-valoradasm.png');
    background-size: contain;
    margin-bottom: 0;
    height: 422px;
  }
  .hero-loyalty {
    background-image: url('../img/mall-m.png');
    background-size: contain;
    height: 422px;
  } 
  /* Productos específicos */
  #radiofrecuencia,
  #verificacion-vehicular,
  #infracciones-transito,
  #transporte-publico,
  #control-fronterizo,
  #impuestos-vehiculares,
  #videovigilancia-radares,
  #engomados-peaje,
  #registro-control-vehicular { height: 400px; }
  
  /* Inglés */
  html[lang="en"] .product-item h3 { font-size: 1.1rem; }
}

/* === MÓVIL PEQUEÑO (hasta 480px) === */
@media (max-width: 480px) {
  h2.title-products { padding: var(--spacing-lg); }
  .lead { height: 300px; min-height: 0; padding: var(--spacing-lg); }
  .list-more-products { grid-template-columns: 1fr !important; }
  .product-item h3 { font-size: 1.1rem; padding: 6px 10px; }
  .logo-footer { margin-bottom: 1rem; }
  
  /* Fondos móvil pequeño */
  .hero-traceability {
    background-image: url('../img/trazabilidad-productoss.png');
    background-size: cover;
    margin-top: -30px;
    height: 264px;
  }
  .control-vehicular {
    background-image: url('../img/autos-s.png');
    background-size: cover;
    margin-top: -30px;
    height: 264px;
  }
  .hero-identidad-segura {
    background-image: url('../img/aeropuerto-s.png');
    background-size: cover;
    height: 264px;
  }
  .hero-formas-valoradas {
    background-image: url('../img/formas-valoradass.png');
    background-size: cover;
  }

  hero-loyalty {
    background-image: url('../img/mall-s.png');
    background-size: cover;
    height: 264px;
  } 
  .header-hero { height: auto; }
  
  #radiofrecuencia,
  #verificacion-vehicular,
  #infracciones-transito,
  #transporte-publico,
  #control-fronterizo,
  #impuestos-vehiculares,
  #videovigilancia-radares,
  #engomados-peaje,
  #registro-control-vehicular { height: 200px; }
  
 

  html[lang="en"] .product-item h3 { font-size: 0.85rem; }
}

/* Fondos hero para telefonos: usar version -s */
@media (max-width: 767px) {
  .hero-formas-valoradas {
    background-image: url('../img/formas-valoradass.png') !important;
  }

  .hero-identidad-segura {
    background-image: url('../img/aeropuerto-s.png') !important;
  }

  .control-vehicular {
    background-image: url('../img/autos-s.png') !important;
  }

  .hero-traceability,
  .hero-trazabilidad {
    background-image: url('../img/trazabilidad-productoss.png') !important;
  }

  .hero-loyalty {
    background-image: url('../img/mall-s.png') !important;
  } 
  .hero-formas-valoradas,
  .hero-identidad-segura,
  .control-vehicular,
  .hero-traceability,
  .hero-trazabilidad,
  .hero-loyalty {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 264px;
  }
}

@media (min-width: 1200px) {
  .trazabilidad-sectores .services-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .trazabilidad-sectores .service-card {
    grid-column: span 2;
  }

  .trazabilidad-sectores .service-card:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .trazabilidad-sectores .service-card:nth-child(6) {
    grid-column: 4 / span 2;
  }

  .trazabilidad-sectores .service-card:nth-child(7) {
    grid-column: 6 / span 2;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .trazabilidad-sectores .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
