/* =========================
   BASE GLOBAL
========================= */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  color: #003c69;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-anchor: none;
  padding-top: 90px;
}

/* =========================
   OVERLAY (MENÚ / MODAL)
========================= */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.overlay.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================
   HEADER Y NAVBAR (UNIFICADO)
========================= */
/* Combinamos header y .navbar ya que comparten el mismo fondo y sombra */
header, 
.navbar {
  background: linear-gradient(135deg, #003c69 0%, #002a4a 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

header {
  color: white;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.navbar { padding: 10px 25px; }

/* Logo y Brand */
.logo, 
.navbar-brand img {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover, 
.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Navegación y Links */
nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #fcd900 !important;
  border-bottom-color: #fcd900;
}

/* Redes Sociales */
.social-icons a {
  color: white;
  font-size: 18px;
  transition: 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #fcd900;
  transform: translateY(-2px);
}

/* Dropdown */
.navbar .dropdown-menu {
  background: linear-gradient(135deg, #003c69 0%, #002a4a 100%);
  border: none;
}

.navbar .dropdown-item {
  color: white !important;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background-color: rgba(252, 217, 0, 0.15);
  color: #fcd900 !important;
}

/* Toggler (Hamburguesa) */
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { filter: invert(100%); }

.navbar .container-fluid {
  padding-left: 40px;
  padding-right: 40px;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  top: 22%;
  left: 85%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 70vw;
  z-index: -1;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}

.hero-logo.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
}

/* Capa de imagen hover (Pseudo-elemento) */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: 0;
  bottom: 0;
  width: 720px;
  background: var(--hero-image) no-repeat right center / contain;
  opacity: 0;
  transform: translateX(80px) scale(.95);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  z-index: -1;
}

.hero.show-bg::before {
  opacity: 1;
  transform: scale(1);
}

/* Contenedor del Título */
.hero-text-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  padding: 10px;
}

.hero-text-container h1 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  line-height: 1.2;
}

/* =========================
   BUSCADOR
========================= */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
  z-index: 50;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  background-color: #fff;
  color: #003c69;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(252, 217, 0, 0.3);
  transform: translateY(-2px);
}

.search-input::placeholder { color: #999; }

/* =========================
   DROPDOWN DE CATEGORÍAS
========================= */
.categories-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 10000;
  animation: slideDown .25s ease;
}

.categories-dropdown.active { display: block; }

.categories-header {
  padding: 12px 20px;
  background-color: #f0f0f0;
  font-weight: 600;
  color: #003c69;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e0e0;
}

.categories-header:last-of-type {
  padding: 8px 20px;
  font-size: 11px;
}

.search-in-dropdown {
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #003c69;
  display: none;
}

.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.categories-list li { border-bottom: 1px solid #f0f0f0; }
.categories-list li:last-child { border-bottom: none; }

.category-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  color: #003c69;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.category-item:hover {
  background-color: #e8f4ff;
  color: #00add0;
  padding-left: 25px;
}

.category-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* =========================
   RESPONSIVE HERO (AGRUPADO)
========================= */
@media (min-width: 1024px) {
  .hero-text-container {
    margin-left: 5%;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero-logo {
    width: 300px;
    left: 50%;
    top: 55%;
  }
}

@media (max-width: 480px) {
  .hero-logo { width: 220px; top: 50%; }
  .hero-text-container { padding: 5px; text-align: center; }
}


/* =========================
   PREVIEW DE PRODUCTOS
========================= */
.products-preview {
  display: flex;
  gap: 18px; /* Mantengo tus 18px */
  margin-top: 200px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Franja azul continua */
.products-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 230px;
  z-index: 0;
  border-radius: 0;
}

.product-card {
  position: relative;
  width: 170px;
  height: 200px;
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Imagen del producto (RESTAURADO SEGURO) */
.product-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 120px;
  background-image: inherit; /* Clave para que funcione tu HTML */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  background-color: #f7fbff;
}

/* Unificación de Hovers para evitar saltos */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.product-name {
  background: linear-gradient(to right, #003c69, #005b9f);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  transition: transform 0.25s ease;
}

.product-card:hover .product-name {
  transform: scale(1.05);
}

/* =========================
   BOTONES (UNIFICADOS)
========================= */
.search-btn,
.btn {
  background-color: #fcd900;
  color: #003c69;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(252, 217, 0, 0.3);
  transition: all 0.3s ease;
}

.search-btn {
  padding: 14px 30px;
}

.btn {
  padding: 14px 40px;
  position: relative;
  z-index: 1;
}

.search-btn:hover,
.btn:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(252, 217, 0, 0.4);
}

.search-btn:active {
  transform: translateY(-1px);
}

/* =========================
   FEATURES
========================= */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  border-top: 4px solid #00add0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-top-color: #fcd900;
}

.feature h3 {
  color: #003c69;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature p {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}
/* =========================
   FOOTER
========================= */
footer {
  background: linear-gradient(135deg, #003c69 0%, #002a4a 100%);
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* =========================
   RESPONSIVE - LÓGICA UNIFICADA
========================= */

/* --- MÓVIL (Hasta 480px) --- */
@media (max-width: 480px) {
  .hamburger { display: block; }
  header { padding: 10px 15px; gap: 10px; }
  .logo { width: 40px; height: 40px; }
  nav { display: none; }
  #navbar.active { display: flex; }
  .header-actions { gap: 8px; }
  .login-btn { padding: 8px 12px; font-size: 11px; }
  
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }
  .search-input, .search-btn { font-size: 12px; }
  
  .product-card { width: 120px; height: 120px; }
  .product-name { font-size: 13px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 12px; }

  /* Mobile Landscape */
  @media (orientation: landscape) {
    #navbar { overflow-x: hidden; }
    .hero { padding: 30px 20px; }
    .hero h1 { font-size: 20px; margin-bottom: 10px; }
    .hero p { font-size: 12px; margin-bottom: 15px; }
    .search-container { gap: 6px; }
    .categories-dropdown { max-width: 90vw; }
  }
}

/* --- TABLET (481px a 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .hamburger { display: block; }
  header { padding: 12px 18px; gap: 12px; }
  .logo { width: 45px; height: 45px; }
  nav { display: none; }
  #navbar.active { display: flex; }
  .header-actions { gap: 10px; }
  .login-btn { padding: 9px 14px; font-size: 12px; }

  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .product-card { width: 130px; height: 130px; }
  .product-name { font-size: 13px; }
  
  .features { padding: 50px 20px; grid-template-columns: repeat(2, 1fr); }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 13px; }

  /* Tablet Landscape */
  @media (orientation: landscape) {
    #navbar { overflow-x: hidden; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 26px; margin-bottom: 10px; }
    .hero p { font-size: 14px; margin-bottom: 20px; }
    .categories-dropdown { max-width: 90vw; }
    .features { padding: 30px 20px; gap: 15px; }
    .feature { padding: 20px 15px; }
    .feature h3 { font-size: 15px; margin-bottom: 8px; }
    .feature p { font-size: 12px; }
  }
}

/* --- DESKTOP (769px en adelante) --- */
@media (min-width: 769px) {
  .hamburger { display: none; }
  header { padding: 15px 40px; gap: 30px; }
  nav { display: flex; }
  #navbar { position: static; display: flex; flex-direction: row; background: transparent; box-shadow: none; }
  nav ul { flex-direction: row; padding: 0; gap: 30px; }
  .header-actions { gap: 20px; }
  .login-btn { padding: 10px 20px; font-size: 13px; }

  .hero { padding: 120px 40px; }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 20px; }

  .search-container { flex-direction: row; max-width: 700px; margin: 0 0 0 80px; padding: 0; justify-content: flex-start; }
  .search-input, .search-btn { font-size: 14px; }
  .search-btn { padding: 14px 30px; }

  .product-card { width: 150px; height: 150px; }
  .product-name { font-size: 14px; }
  .categories-dropdown { left: 0; right: auto; }

  .features { padding: 80px 40px; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .feature { padding: 40px 30px; }
  .feature h3 { font-size: 20px; }
  .feature p { font-size: 14px; }

  /* Submenú desktop */
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    margin-top: 10px;
    padding: 15px 0;
    background: linear-gradient(135deg, #003c69 0%, #002a4a 100%);
    border-radius: 8px;
  }
  .submenu li a { padding: 8px 20px; }
}
/* =========================
   VARIABLES GLOBALES (Mantenidas y consolidadas)
========================= */
:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --accent: #003c69;
  --cta: #fcd900;
  --muted: #55606a;
  --radius: 14px;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 10px 30px rgba(2, 18, 36, 0.08);
  --gap: 20px;
  --max-width: 1100px;
}

/* =========================
   ABOUT SECTION (Unificada)
========================= */
.about-us {
  background: linear-gradient(180deg, var(--bg), #eef7ff);
  padding: 48px 20px;
  display: block;
  text-align: center;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  gap: var(--gap);
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
  text-align: left; /* Alineación base para el contenido interno */
}

.about-us h2 {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-us p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Contenedor de Imagen */
.about-media {
  flex: 1 1 300px; /* Permite que crezca y encoja con base de 300px */
  display: flex;
  justify-content: center;
}

.about-media img {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

/* Botón (Consolidado con estilos base) */
.learn-more-btn {
  background-color: var(--cta);
  color: var(--accent);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(252, 217, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.learn-more-btn:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(252, 217, 0, 0.4);
}

/* =========================
   CAROUSEL (IMEX CUSTOM)
========================= */
#aboutCarousel.imex-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius); /* Añadido para consistencia */
}

#aboutCarousel .carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

#aboutCarousel .imex-carousel-item {
  min-width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Navegación del Carrusel */
#aboutCarousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%; /* Mejora estética */
  transition: background 0.3s ease;
}

#aboutCarousel .carousel-btn:hover {
  background: var(--accent);
}

#aboutCarousel .carousel-btn.prev { left: 10px; }
#aboutCarousel .carousel-btn.next { right: 10px; }

/* =========================
   ABOUT CONTENT
========================= */
.about-content {
  flex: 1 1 420px;
  min-width: 260px;
  padding: 8px 6px;
}

.about-content h2 {
  color: var(--accent);
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.about-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* CTA (Unificado con variables y transiciones) */
.learn-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--cta), #f6d400);
  color: var(--accent);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(252, 217, 0, .18);
  transition: transform .22s ease, box-shadow .22s ease, background 0.22s ease;
}

.learn-more-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(2, 18, 36, .12);
  background: #fff; /* Mantengo tu hover anterior para consistencia */
}

/* =========================
   IMAGE GRID
========================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.image-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 18, 36, 0.06);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}
/* =========================
   ABOUT RESPONSIVE
========================= */
@media (max-width: 880px) {
  .about-inner { 
    padding: 18px; 
    gap: 18px; 
  }
  .carousel { 
    height: 200px; 
    max-width: 360px; 
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .about-inner { 
    flex-direction: column; 
    padding: 14px; 
    text-align: center;
  }
  .carousel { 
    width: 100%; 
    max-width: 100%; 
    height: 180px; 
  }
  .about-content {
    padding: 0;
  }
}

/* =========================
   TESTIMONIALS (Consolidado)
========================= */
.testimonials {
  background: linear-gradient(180deg, var(--bg), #eef7ff);
  padding: 48px 20px;
}

.testimonials .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonials h2 {
  color: var(--accent);
  font-size: 28px;
  margin: 0 0 18px;
  font-weight: 800;
  text-align: center;
}

/* Grid de Testimonios - Unificada */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columnas */
  gap: 24px;
  align-items: stretch;
  margin-top: 12px;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  outline: none;
}

.testimonial-card:focus,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 18, 36, .12);
}

.quote {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.author {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
}

/* Controles de Navegación */
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.control {
  background: rgba(0, 60, 105, .06);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
}

.control:hover {
  transform: translateY(-3px);
  background: rgba(0, 60, 105, .09);
}

/* === RESPONSIVE TESTIMONIOS === */
@media (max-width: 1024px) {
  .testimonial-cards {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
  }
}

@media (max-width: 640px) {
  .testimonial-cards {
    grid-template-columns: 1fr; /* Mobile: 1 columna */
  }
}
/* =========================
   PROVEEDORES (MARQUEE)
========================= */
:root {
  --logo-height: 72px;
  --marquee-speed: 20s;
}

.proveedores {
  background: linear-gradient(180deg, var(--bg), #eef7ff);
  padding: 44px 18px;
}

.proveedores h2 {
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  font-size: clamp(20px, 3vw, 26px); /* Fluido */
}

.proveedor-marquee {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: var(--gap);
  align-items: center;
  will-change: transform;
  animation: marquee linear infinite var(--marquee-speed);
}

.marquee-track img {
  height: var(--logo-height);
  width: auto;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: .95;
  transition: all .18s ease;
  padding: 6px;
  border-radius: 8px;
}

.marquee-track img:hover {
  transform: scale(1.06);
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(2,18,36,.08);
}

.proveedor-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   SISTEMA DE ESCALA FLUIDA (CSS Moderno)
========================= */
* { box-sizing: border-box; }

body { font-size: clamp(14px, 1.2vw, 16px); }

.hero h1 { font-size: clamp(26px, 5vw, 56px); }
.hero p { font-size: clamp(14px, 2vw, 20px); }
section h2 { font-size: clamp(22px, 3vw, 32px); }

/* Contenedores Universales */
.container,
.about-inner,
.testimonials .container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* Grillas Auto-ajustables (Sin necesidad de Media Queries) */
.features, 
.testimonial-cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Dimensiones Fluidas */
.hero { padding: clamp(40px, 8vw, 140px) 20px; }

.product-card {
  width: clamp(110px, 18vw, 160px);
  height: clamp(110px, 18vw, 160px);
}

.carousel { height: clamp(180px, 30vw, 280px); }

.social-icons a img {
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
}

/* =========================
   AJUSTES RESPONSIVOS FINALES
========================= */
@media (max-width: 880px) {
  :root { --logo-height: 60px; }
  .proveedores { padding: 34px 12px; }
}

@media (max-width: 600px) {
  .contact-form { padding: 16px; gap: 12px; }
  .contact-us { padding: 32px 14px; }
}

@media (max-width: 520px) {
  :root { 
    --logo-height: 52px; 
    --marquee-speed: 14s; 
  }
  .marquee-track { gap: 12px; }
}
/* =========================
   CASOS DE ÉXITO / PROJECTS
========================= */
.projects {
  background: #eef7ff;
  padding: clamp(40px, 8vw, 80px) 20px;
}

.projects h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: clamp(30px, 5vw, 50px);
}

.projects-grid {
  display: grid;
  /* El uso de auto-fit hace que sea responsive automáticamente */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.2s ease;
  box-shadow: var(--shadow);
  border-left: 0px solid transparent; /* Preparado para el hover */
}

.project-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.project-card h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 15px;
  color: #002a4a;
  line-height: 1.6;
}

/* Efecto Hover */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 60, 105, 0.15);
  border-left: 5px solid var(--cta);
}

.project-card:hover img {
  transform: scale(1.05);
}

/* =========================
   RESULTADOS CASOS DE EXITO
========================= */

.solution{
  font-weight:500;
  margin-bottom:10px;
}

.results{
  list-style:none;
  padding:0;
  margin-top:10px;
}

.results li{
  background:#f4faff;
  border-left:4px solid var(--cta);
  padding:8px 12px;
  margin-bottom:8px;
  border-radius:6px;
  font-size:14px;
  text-align:left;
  position:relative;
}

.results li::before{
  content:"✔";
  color:var(--cta);
  font-weight:bold;
  margin-right:6px;
}

/* =========================
   PREGUNTAS FRECUENTES
========================= */
.faq {
  background: var(--card);
  padding: clamp(40px, 8vw, 80px) 20px;
}

.faq h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: clamp(30px, 5vw, 50px);
}

.faq-item {
  max-width: 900px;
  margin: 0 auto 25px;
  padding: 20px 25px;
  border-radius: 12px;
  background: #f4faff;
  border-left: 5px solid #00add0;
  box-shadow: 0 6px 18px rgba(0, 60, 105, 0.06);
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 15px;
  color: #002a4a;
  line-height: 1.7;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-left: 5px solid var(--cta);
  box-shadow: 0 12px 24px rgba(0, 60, 105, 0.1);
}

/* Acordeón (para componentes de Bootstrap o Custom) */
.accordion-body {
  font-size: 15px;
  color: var(--accent);
  line-height: 1.6;
}

.accordion-button {
  font-weight: 600;
  color: #002a4a;
}

/* Ajustes finales de espaciado */
@media (min-width: 1200px) {
  .search-container,
  .about-content {
    padding: 0 40px;
  }
}

/* =========================
   GLOBAL BACKGROUND SHAPES
========================= */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1; /* Cambia 0 por -1 */
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

/* Azul  */
.shape-1 {
  width: 420px;
  height: 420px;
  background: #1a73e8;
  top: -120px;
  left: -120px;
}

/* Amarillo*/
.shape-2 {
  width: 360px;
  height: 360px;
  background: #1a73e8;
  top: 20%;
  right: -120px;
}

/*Azul*/
.shape-3 {
  width: 500px;
  height: 500px;
  background: #7bb6ff;
  bottom: -150px;
  left: 20%;
}


.reveal {
  opacity: 1;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(.2,.9,.3,1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.novedades-card img {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.novedades-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.novedades-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Redes sociales dentro del navbar */
.header-social img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-social a:hover img {
  transform: scale(1.15);
  opacity: 0.85;
}

/*Redes sociales para Telefonos etc */
.mobile-social img {
  transition: transform 0.3s ease;
}

.mobile-social img:hover {
  transform: scale(1.2);
}

/* =========================
   BOTÓN DE CONTACTO (RESTAURADO)
========================= */
.read-more-btn {
  display: inline-flex !important; /* Asegura visibilidad */
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fcd900, #ffea70) !important;
  color: #003c69 !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 18px rgba(252, 217, 0, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 10001; /* Por encima de todo */
  cursor: pointer;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(252, 217, 0, 0.45);
  filter: brightness(1.05);
}

/* =========================
   TICKER HORIZONTAL (UNIFICADO)
========================= */
.header-ticker-horizontal {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin: 0 20px;
  /* Máscara suave en los bordes */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  pointer-events: none; /* No estorba a los clics del logo o menú */
}

.marquee-content {
  display: inline-block;
  animation: marqueeHorizontal 30s linear infinite;
  pointer-events: auto; /* Permite pausar al poner el mouse */
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content span {
  color: #ffffff; /* Color blanco solicitado */
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding-right: 100px;
  letter-spacing: 1px;
}

@keyframes marqueeHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   HEADER & NAVBAR FIXES
========================= */
header.navbar {
  min-height: 90px;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

/* =========================
   RESPONSIVE (HAMBURGUESA Y MOBILE)
========================= */
@media (max-width: 991px) {
  /* Ocultamos ticker en móvil para que no tape el botón hamburguesa */
  .header-ticker-horizontal {
    display: none !important;
  }

  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    margin-right: 10px;
  }

  .navbar-collapse {
    background: #003c69; /*  */
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .navbar-brand {
    margin: 0;
  }
}
/* =========================
   FOOTER (ESTRUCTURA Y DISEÑO)
========================= */
.footer {
  
  background: var(--accent); /* #003c69 */
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  color: #fff;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--cta); /* amarillo */
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 14px;
  text-align: center;
}

.footer-bottom img {
  display: block;
  margin-bottom: 15px;
  width: 150px;
  height: auto;
}

/* =========================
   HEADER DYNAMICS (SCROLL & Z-INDEX)
========================= */
header {
  z-index: 1050;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

/* Clases para JS: Ocultar al bajar, mostrar al subir */
header.hide-header, 
header.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
}


/* =========================
   BUSCADOR EN VIVO (LIVE RESULTS)
========================= */
.live-results {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 10px;
  border-top: 1px solid #eee;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}

.live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s ease;
}

.live-item:last-child {
  border-bottom: none;
}

.live-item:hover {
  background: #f8fbff;
  color: var(--accent);
}

.overlay {
  pointer-events: none;
}
/* =========================
   RESULTADOS DE BÚSQUEDA EN VIVO
========================= */
.live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s ease;
}

.live-item:hover {
  background: #f8fbff; /* Un azul sutil  */
}

.live-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}

.live-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--accent); /* #003c69 */
}

.live-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #0d3b66;
  margin-top: 2px;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* Scrollbar personalizada para los resultados */
.live-results::-webkit-scrollbar {
  width: 6px;
}

.live-results::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.live-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* =========================
   COOKIES IMEX - COMPLETO
========================= */

/* Capa gris de fondo */
.cookie-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); 
  backdrop-filter: grayscale(100%) blur(4px);
  -webkit-backdrop-filter: grayscale(100%) blur(4px);
  z-index: 9998;
  animation: fadeInOverlay 0.5s ease forwards;
}

/* Contenedor del Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  z-index: 9999;
}

/* Caja de diseño  */
.cookie-box {
  background: rgba(17, 57, 187, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  animation: cookieFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
}

.cookie-box a {
  color: #fcd900;
  font-weight: 700;
  text-decoration: underline;
}

/* Botones */
.cookie-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-actions button {
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  text-transform: uppercase;
}

#acceptCookies {
  background: #fcd900;
  color: #003c69;
}

#acceptCookies:hover {
  background: #ffffff;
  transform: translateY(-3px);
}

#rejectCookies {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Animaciones */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cookieFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 850px) {
  .cookie-box { flex-direction: column; text-align: center; padding: 25px; }
  .cookie-actions { width: 100%; flex-direction: column; }
  .cookie-actions button { width: 100%; }
}

/*//////////////para el menu con logos //////////////////////////////*/

/* Configuración General del Mega Menu */
@media all and (min-width: 992px) {
  .navbar .has-megamenu { position: static; }
  .navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%;
    background-color: #002b49; /* El azul oscuro de tu imagen */
    padding: 30px 0;
    border: none;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.4);
  }

  /* Línea vertical divisoria */
  .divider-left {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* Estilo de los encabezados (CATEGORÍAS / NUESTRAS MARCAS) */
.menu-header-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

/* Estilo de los enlaces de categoría */
.category-link {
  color: #ffffff !important;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 5px 0 !important;
  background: transparent !important;
}

.category-link:hover {
  color: #ffee00 !important; /* Amarillo de IMEX al pasar el mouse */
  text-decoration: underline;
}

/* Control de Logos para que no se vean gigantes */
.brand-logo {
  max-height: 35px;     /* Altura máxima para que se vean uniformes */
  max-width: 110px;    /* Ancho máximo */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Los hace blancos como en tu foto */
  transition: all 0.3s ease;
  opacity: 0.8;
}

.brand-logo:hover {
  filter: none; /* Recuperan color original al pasar mouse */
  transform: scale(1.1);
  opacity: 1;
}

/* Línea horizontal del título */
.border-bottom-custom {
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Control de Logos - COLOR ORIGINAL SIEMPRE */
.brand-logo {
  max-height: 40px;      /* Un poco más grandes para mejor visibilidad */
  max-width: 120px;     
  width: auto;
  height: auto;
  object-fit: contain;
  
  /* ELIMINAMOS FILTROS Y OPACIDAD */
  filter: none !important;    /* Forzamos que no haya filtros de color */
  opacity: 1 !important;       /* Totalmente sólido desde el inicio */
  
  transition: transform 0.3s ease;
  display: block;
}

.brand-logo:hover {
  transform: scale(1.1);       /* Solo mantenemos el pequeño zoom al pasar el mouse */
}

/* Ajuste de la línea divisoria vertical para que se vea mejor con logos a color */
@media all and (min-width: 992px) {
  .divider-left {
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* Línea más sutil */
    padding-left: 2rem; /* Espacio para que el logo no pegue a la línea */
  }
}

/* Tarjeta de Llamada a la Acción en el menú */
.menu-cta-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.btn-cta-menu {
    background-color: #ffee00;
    color: #002b49;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    text-align: center;
    transition: 0.3s;
}

.btn-cta-menu:hover {
    background-color: #ffffff;
    color: #002b49;
    transform: translateY(-2px);
}

/* Ajuste de logos para que no se amontonen */
.brand-logo {
    max-height: 38px;
    width: auto;
    filter: none !important; /* Mantiene color original */
    opacity: 1 !important;    /* Sin transparencia */
    transition: transform 0.3s ease;
}

.btn-contacto-imex {
    display: inline-flex;
    align-items: center;
    background-color: #ffda2a; /* El amarillo vibrante de tu imagen */
    color: #002b49 !important; /* Azul oscuro para el texto */
    padding: 10px 28px;
    border-radius: 50px; /* Forma de píldora */
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    /* Efecto de resplandor (glow) */
    box-shadow: 0 0 15px rgba(255, 218, 42, 0.4);
    white-space: nowrap;
}

.btn-contacto-imex .arrow-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Efectos al pasar el mouse */
.btn-contacto-imex:hover {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-contacto-imex:hover .arrow-icon {
    transform: translateX(5px); /* La flechita se mueve a la derecha */
}

/* Ajuste para que en móvil no ocupe todo el ancho si no quieres */
@media (max-width: 991px) {
    .btn-contacto-imex {
        margin-bottom: 20px;
    }
}

/* =========================
   MEGA MENÚ RESPONSIVO IMEX
   ========================= */

/* ====== ESTILOS GENERALES ====== */

.menu-header-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.category-link {
  color: #ffffff !important;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 6px 0 !important;
  background: transparent !important;
  display: block;
  transition: all 0.2s ease;
}

.category-link:hover {
  color: #ffee00 !important;
  text-decoration: underline;
}

/* ====== LOGOS ====== */

.brand-logo {
  max-height: 38px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.brand-logo:hover {
  transform: scale(1.1);
}

/* ====== TARJETA CTA ====== */

.menu-cta-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.btn-cta-menu {
  background-color: #ffee00;
  color: #002b49;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  display: block;
  text-align: center;
  transition: 0.3s;
}

.btn-cta-menu:hover {
  background-color: #ffffff;
  color: #002b49;
  transform: translateY(-2px);
}

/* ====== BOTÓN CONTACTO ====== */

.btn-contacto-imex {
  display: inline-flex;
  align-items: center;
  background-color: #ffda2a;
  color: #002b49 !important;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 218, 42, 0.4);
  white-space: nowrap;
}

.btn-contacto-imex .arrow-icon {
  margin-left: 10px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-contacto-imex:hover {
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-contacto-imex:hover .arrow-icon {
  transform: translateX(5px);
}

/* ====== DESKTOP (>= 992px) ====== */

@media (min-width: 992px) {

  .navbar .has-megamenu {
    position: static;
  }

  .navbar .megamenu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #002b49;
    padding: 30px 0;
    border: none;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.4);
  }

  .divider-left {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 2rem;
  }

}

/* ====== MÓVIL Y TABLET (< 992px) ====== */

@media (max-width: 991px) {

  .navbar .megamenu {
    position: static;
    width: 100%;
    background-color: #002b49;
    padding: 15px;
    box-shadow: none;
  }

  .menu-header-title {
    font-size: 0.8rem;
    margin-top: 15px;
  }

  .category-link {
    font-size: 0.9rem;
    padding: 8px 0 !important;
  }

  .divider-left {
    border-left: none;
    padding-left: 0;
  }

  .brand-logo {
    max-height: 30px;
  }

  .menu-cta-card {
    margin-top: 20px;
  }

  .btn-contacto-imex {
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
  }

}


/* ===== REDES SOLO CUANDO EL MENÚ ESTÁ ABIERTO ===== */

@media (max-width: 991px) {

  .mobile-social {
    display: none;
  }

  /* Bootstrap agrega .show cuando el menú está abierto */
  .navbar-collapse.show + .mobile-social {
    display: flex;
  }

}

/* ============================================================
   AJUSTE FINAL PARA MÓVIL: SOLO NAVEGACIÓN (SIN LOGOS)
   ============================================================ */

@media (max-width: 991px) {
    
    /* 1. Fondo y contenedor del menú desplegable */
    .navbar-collapse {
        background-color: #002b49 !important; /* Azul IMEX */
        padding: 10px 20px 30px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* 2. Reset del Mega Menú */
    .navbar .megamenu {
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 3. 🚫 OCULTAR LOGOS Y COLUMNAS INNECESARIAS 🚫 */
    /* Aquí eliminamos la columna de logos, los fabricantes y el soporte */
    .megamenu .divider-left, 
    .megamenu .brand-logo, 
    .megamenu .menu-cta-card,
    .megamenu .col-lg-6, 
    .megamenu .col-lg-9,
    .megamenu .col-lg-3:has(.menu-cta-card) {
        display: none !important;
    }

    /* Ocultar específicamente los títulos que estorban en móvil */
    .menu-header-title {
        display: none !important;
    }

    /* 4. Mostrar solo la columna de categorías (Columna 1) */
    .megamenu .col-lg-3:first-child {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* 5. Estilo de los enlaces (Opciones del Navbar) */
    .category-link {
        color: #ffffff !important;
        font-size: 1.1rem !important; /* Tamaño legible */
        padding: 15px 0 !important;   /* Espacio para el dedo */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block !important;
        text-decoration: none !important;
    }

    .category-link:hover {
        color: #ffda2a !important;
        padding-left: 10px !important; /* Pequeño efecto al tocar */
        transition: 0.3s;
    }

    /* 6. Botón de contacto al final */
    .btn-contacto-imex {
        display: flex !important;
        width: 100% !important;
        justify-content: center;
        margin-top: 25px;
        background-color: #ffda2a !important;
        color: #002b49 !important;
    }

    /* 7. Redes sociales compactas */
    .mobile-social {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}



/* Configuración Base Navbar */
.navbar {
    background-color: #002b49 !important;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: white !important;
    font-weight: 500;
}

/* Mega Menú Desktop */
@media (min-width: 992px) {
    .has-megamenu { position: static; }
    .megamenu {
        width: 100%;
        left: 0;
        right: 0;
        background-color: #002b49 !important;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 30px 0;
    }
    .divider-left {
        border-left: 1px solid rgba(255,255,255,0.1);
    }
}

/* Estilos de Contenido del Menú */
.menu-header-title {
    color: #ffda2a;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
}

.category-link {
    color: white !important;
    background: transparent !important;
    font-size: 0.95rem;
    transition: 0.3s;
}

.category-link:hover {
    color: #ffda2a !important;
    transform: translateX(5px);
}

.brand-logo {
    max-height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Botón de Contacto IMEX */
.btn-contacto-imex {
    background-color: #ffda2a;
    color: #002b49 !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

/* Ajustes para Móvil */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #002b49;
        margin-top: 10px;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .megamenu {
        background-color: rgba(255,255,255,0.05) !important;
        border: none;
        padding-left: 15px;
    }

    .category-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* 1. Reset para el Megamenu en Móviles (Por defecto) */
.megamenu {
    background-color: #002b49 !important;
    border: none;
    width: 100%; /* En móvil ocupa el ancho del contenedor, no de la pantalla */
    padding: 15px; /* Espacio interno para que no toque los bordes */
    margin: 0;
}

/* Estilo de los enlaces para que sean legibles en móvil */
.megamenu .dropdown-item {
    color: #ffffffd0 !important;
    font-size: 1rem;
    padding: 10px 0 !important; /* Más espacio para poder tocar con el dedo */
    white-space: normal; /* Permite que el texto largo salte de línea en lugar de cortarse */
}

/* 2. Estilos SOLO para Desktop (Pantallas mayores a 992px) */
@media (min-width: 992px) {
    .megamenu {
        width: 100vw; /* Ancho total de pantalla solo en desktop */
        left: 0;
        right: 0;
        position: absolute;
        padding: 2rem 0;
    }

    .border-start-lg {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 1.5rem;
    }
}

/* 3. Corrección del Título del Menú Móvil */
.menu-header-title {
    display: block;
    color: #ffcc00;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}





.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}

.welcome-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto; /* Permite scroll si la pantalla es muy pequeña */
}

.welcome-cards-grid {
    display: grid;
    /* 4 columnas en desktop, 2 en tablets, 1 en móviles */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.flyer-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column;
}

.flyer-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Para que los logos de marcas no se corten */
    background: #fff; /* Fondo blanco para que resalten los logos */
    padding: 20px;
}

.brand-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    color: white;
}

/* Colores de marca */
.banner { background: #ed1c24; }
.wago { background: #009639; }
.ckd { background: #0054a6; }
.helu { background: #000000; border: 1px solid #fff; }

.flyer-info {
    padding: 15px;
    text-align: center;
    background: #1a1a1a;
    color: white;
}

.flyer-info span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffc107;
    font-size: 35px;
    cursor: pointer;
}

/* Responsividad para móviles */
@media (max-width: 992px) {
    .welcome-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .welcome-cards-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .flyer-card img {
        height: 150px;
    }
}









.welcome-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.788);
    z-index: 100000;
    
    /* --- CAMBIO DE ALINEACIÓN --- */
    display: flex;
    justify-content: center; /* Mantenemos centrado horizontal */
    align-items: flex-start; /* CAMBIAR 'center' por 'flex-start' para subirlo */
    
    /* --- COLCHÓN SUPERIOR --- */
    padding-top: 40px; /* Esto define qué tan arriba queda respecto al techo */
    overflow-y: auto;  /* Por seguridad, si es muy alto en móvil, permite scroll */
}
/* Sección de centrado */
.flyer-section {
    width: 100%;
    height: 100%;
    padding: 40px 0; /* Espacio de seguridad arriba y abajo */
}

/* El marco ahora permite un ancho mucho mayor */
.welcome-frame {
    position: relative;
    width: 95%;
    max-width: 900px; /* Mantenemos tu ancho expandido */
    margin: 0; /* QUITAMOS margin: auto; ya que el padding del overlay manda */
}
/* La Imagen: Aquí es donde controlas qué tanto espacio vertical ocupa */
.img-render {
    width: 100%;
    height: auto;
    max-height: 85vh; /* Mantenemos tu alto expandido */
    object-fit: contain;
    border-radius: 15px 15px 0 0;
    display: block;
}

.close-flyer-btn {
    position: absolute;
    /* Al subir todo, aseguramos que la X no se pegue al techo */
    top: -20px; 
    right: -10px;
    background: #ffc107;
    /* ... resto de tus estilos del botón ... */
}

/* El pie del flyer (donde está el botón amarillo) */
.flyer-btns {
    padding: 10px 20px; /* Reducimos el padding para que no robe tanto espacio vertical */
    background: #111;
}

/* Botón de Cerrar (X) */
.close-flyer-btn {
    position: absolute;
    top: -20px;
    right: -15px;
    background: #ffc107;
    color: #000;
    border: 2px solid #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.close-flyer-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Flechas laterales */
.carousel-control-prev, .carousel-control-next {
    width: 10%;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.9));
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 576px) {
    .welcome-frame {
        max-width: 90%;
    }
    .img-render {
        max-height: 90vh;
    }
    .close-flyer-btn {
        right: 0;
    }
}