body {
    font-family: 'Roboto', sans-serif;
}

.logo-img {
    height: auto;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 576px) {
    .logo-img {
        max-height: 30px;
    }
}


/* Asegura que no se muevan y solo cambien de color */
.mini-nav a {
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}


/* Hover sin movimiento, solo color azul claro */
.mini-nav a:hover {
    color: #cdcdcd !important;
    transform: none !important;
    text-decoration: none !important;
}

/* Animaciones del navbar principal */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd; /* Azul Bootstrap */
    transform: translateY(-2px);
}

/* Línea animada debajo del item */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Quita bordes y sombras */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent;
    padding: 0.25rem 0.5rem;
}

/* Cuando está abierto el menú (ya no tiene .collapsed) */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    filter: invert(33%) sepia(99%) saturate(7499%) hue-rotate(204deg) brightness(92%) contrast(101%);
}



/* Suavidad en hover si quieres */
.navbar-toggler:hover .navbar-toggler-icon {
    opacity: 0.8;
}

.navbar-nav .nav-item {
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Loading Screen */
#loading-screen {
    background-color: #e6e6e6; /* Gris suave formal */
    transition: opacity 0.5s ease;
}

/* Dots */
.spinner-container .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #0d6efd;
    animation: bounce 1.4s infinite ease-in-out both;
}

/* Animación alternada para cada dot */
.spinner-container .dot1 { animation-delay: -0.32s; }
.spinner-container .dot2 { animation-delay: -0.16s; }
.spinner-container .dot3 { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}




/* Cookie banner estilo flotante */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px; /* más ancho para que quepa todo horizontal */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.hide {
    transform: translate(-50%, 100%);
    opacity: 0;
}

.cookie-img {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.transition-scale {
    transition: transform 0.3s ease;
}

.transition-scale:hover {
    transform: scale(1.05);
}


.cookie-banner a {
    transition: color 0.3s ease;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #0a58ca; /* tono azul un poco más fuerte */
}


/* FOOTER CUSTOM STYLES  */
.footer-logo {
  height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .footer-logo {
    height: 40px;
  }
}

@media (max-width: 1200px) {
  .footer-logo {
    height: 40px;
  }
}

footer {
  background: #1c1c1c;
  color: #605656;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

footer h6 {
  font-weight: 700;
  color: #f8f9fa;
}

footer a {
  color: #cccccc;
  transition: color 0.3s ease;
}


.mb-5.fw-bold.section-title {
  font-family: "Roboto", sans-serif;
  font-variation-settings: 'wght' 600, 'wdth' 200;
  font-size: 2em;
}
footer a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

footer i {
  color: rgba(255, 255, 255, 0.835);
  transition: color 0.3s ease;
}

footer i:hover {
  color: #0d6efd;
}

.footer-contact i {
  color: #0d6efd !important;
  transition: none !important;
}

/* Estilo normal en rojo */
footer .col-md-3:nth-child(3) a {
  color: rgb(255, 255, 255) !important;
  transition: color 0.3s ease;
}

/* Hover azul suave */
footer .col-md-3:nth-child(3) a:hover {
  color: #4da3ff !important; /* Azul claro personalizado */
}


.footer-bottom {
  background-color: #111; /* más oscuro que el footer principal */
  font-size: 0.85rem;
}

/* Centros de trabajo conjunto*/
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  font-family: "Roboto",sans-serif;font-variation-settings: 'wght' 600, 'wdth' 200;
  
  
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
    font-size: 3rem;     /* Más grande que antes */
  font-weight: 800;    
  line-height: 1.2;
  color: #353535;
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
}

.text-trabajo {
  color: #0080ff; /* Naranja intenso */

}

.text-ciudades {
  color: #ff6a00; /* Azul brillante */
}

.text-colaboradores {
  color: #af2dff; /* Púrpura fuerte */
}



/* Textos debajo de numeros */
.desc-text {
 font-family: 'Roboto', sans-serif;
  font-weight: 400; /* Puedes ajustar a 500 si quieres que se vea un poco más marcada */
}


/* Fallback en móviles */
@media (max-width: 768px) {
    .hero-section-parallax {
           height: 50vh;
        background-attachment: scroll;
        background-position: center center; /* centra más la imagen */
    }
}

.navbar-nav .btn {
  padding: 0.375rem 1rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.navbar-nav .btn:hover {
  transform: translateY(-2px);

}


.btn-elegant {
  background-color: #3588fc;
  color: #fff !important; /* Siempre blanco */
  font-weight: 500;
  padding: 0.45rem 1.25rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  letter-spacing: 0.5px;
  transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 6px rgba(53, 136, 252, 0.2);
}

.btn-elegant:hover {
  background-color: #1d6edb;
  transform: translateY(-2px);

  color: #fff !important; /* Reafirma que no cambie */
}


/* HERO 3D CENTRADO CON TEXTO DETRÁS */


canvas#three-canvas {
  position: absolute;         /* se adapta mejor que fixed si quieres overlay */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;                 /* Asegura que esté detrás de todo */

  display: block;
  pointer-events: none;       /* 👈 IMPORTANTE: no bloquea clics al nav */
}


#container3D {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
/* IMAGEN PARALAXX*/
.hero-section-parallax {
    height: 100vh;
    background-image: url('/images/smartbanner.png'); /* Asegúrate de tener la imagen correcta */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}




a {
  color: #ce606f;
}

h1,
h2,
h3 {
  color: #fff;
  font-weight: 600;
}

h1,
.h1 {
  font-size: 2.5em;
  margin-bottom: 0.25em;
  margin-top: 0;
}

h2,
.h2 {
  font-size: 1.5em;
  margin-bottom: 0.33em;

}

h3,
.h3 {
  font-size: 1.25em;
  margin: 0 0 0.5em;
}

p {
  margin: 0.5em 0;
}

svg {
  height: auto;
  max-width: 100%;
}

.text-center {
  text-align: center;
}

.subline {
  color: #768191;
  font-weight: normal;
}

.align {
  display: grid;
  place-items: center;
}



.map {
  margin-top: 3em;
  position: relative;
}

.map__markers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map__marker {
  position: absolute;
}

.map__marker:after {
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-name: pop;
  border-radius: 50%;
  border: 1px solid #ce606f;
  content: "";
  height: 2em;
  left: 0;
  margin: -0.5em 0 0 -0.5em;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 2em;
}

.map__marker:hover .map__marker-info {
  display: block;
}

.map__marker > a {
  background-color: #ce606f;
  border-radius: 50%;
  height: 1em;
  display: block;
  text-indent: -9999px;
  width: 1em;
}



.map__marker--seattle:after {
  animation-delay: 5s;
}

.map__marker-info {
  display: none;
  left: 50%;
  position: absolute;
  bottom: 0;
  transform: translate(-50%, -2em);
  width: 20em;
  z-index: 999;
}

.map__marker-info-header {
  background-color: #4470f4;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  color: #fff;
  padding: 0.5em 1em;
}

.map__marker-info-main {
  background-color: #fff;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  color: #7e7e7e;
  padding: 0.5em 1em;
}

.map__marker-info h2 {
  margin-bottom: 0;
}

.map__marker-info-inner {
  border-radius: 0.5em;
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  font-size: 0.875em;
}

.map__marker-info-inner:after {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-top: 1em solid #fff;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
}

.animate {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes bounce-in {
  0%, 20%, 40%, 60%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.animate--bounce-in {
  animation-duration: 0.75s;
  animation-name: bounce-in;
}

.map__marker > a {
  background-color: rgba(255, 144, 26, 0.929);
  display: grid;
  place-items: center;
   transition: transform 0.3s ease;
}


.map__marker:hover > a {
  transform: scale(1.5);
  z-index: 10;
  background-color: rgb(255, 132, 0);
}



/* Posiciones aproximadas, puedes ajustarlas según el mapa SVG */
.map__marker--cd-juarez {
  top: 9%;
  left: 38%;
}

.map__marker--chihuahua {
  top: 25%;
  left: 40%;
}

.map__marker--matamoros {
  top: 39%;
  left: 64%;
}

.map__marker--nuevo-leon {
  top: 35%;
  left: 56%;
}

.map__marker--nuevo-laredo {
  top: 31%;
  left: 58%;
}

.map__marker--reynosa {
  top: 37%;
  left: 61%;
}

.map svg path {
  fill: #bdbdbd;

}

/* Colorea de azul los estados seleccionados */
.map svg path#MXCHH,
.map svg path#MXNLE,
.map svg path#MXTAM {
  fill: #007bff8c !important; /* Azul Bootstrap */
  transition: fill 0.3s ease-in-out; /* transicion suave */
}
.map svg path#MXCHH:hover,
.map svg path#MXNLE:hover,
.map svg path#MXTAM:hover {
  fill: #007bffcf !important; /* Azul Bootstrap */
}

#smartCarousel img {
  object-fit: cover;
  height: 700px;
}

@media (max-width: 768px) {
  #smartCarousel img {
    height: 300px;
  }
}


/* Banner/Carrusel ajustado para móvil y escritorio */
#smartCarousel {
  width: 100%;

  overflow: hidden;
}

#smartCarousel .carousel-inner {
  height: 100vh;
}

#smartCarousel .carousel-item {
  height: 100vh;
}

#smartCarousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Ajuste para móvil: mantiene la altura completa de la pantalla */
@media (max-width: 768px) {
  #smartCarousel .carousel-inner,
  #smartCarousel .carousel-item {
    height: 75vh; /* altura completa */
  }
}


.container-cards {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Antes: 1fr fijo */
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1400px; /* Aumentado desde 1200px */
  padding: 0 1rem;
  box-sizing: border-box;
}
.card {
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.053);
  display: flex; /* Cambia de grid a flex */
  flex-direction: column;
  justify-content: flex-end; /* Empuja el contenido al fondo */
  padding: 20px; /* añade un poco de espacio interior */
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}



.card img {
  position: absolute;
  top: 0;
  left: 0; /* asegúrate de esto */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none; /* Evita que interfiera con clicks */
}

.card h3,
.card p {
  position: relative;
  z-index: 1;
  color: white;
}

.card h3 {
  font-size: 24px;
  margin: 0 0 8px 0; /* reduce espacio arriba y entre título y "Ver más" */
}

.card p {
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.5px;
}
.card:hover {
  transform: scale(1.035);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.082);
}

.card:hover img {
  transform: scale(1.1);
}


@media (min-width: 768px) and (max-width: 1024px) {
  .container-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.card-expand-md {
    grid-column: span 2; /* que la 3ra card se extienda */
  }
}

/* ESCRITORIO (PC): 3 columnas normales */
@media (min-width: 1025px) {
  .container-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card.card-expand-md {
    grid-column: span 1; /* vuelve a ocupar solo 1 columna */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .card-nosotros {
    grid-column: span 3 !important; /* para grid personalizado */
    width: 100% !important;         /* por si usa flex o Bootstrap */
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .card-nosotros {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: span 3 !important; /* si usas CSS Grid */
  }
}



.visitor-popout {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #ffffff;
  color: #333;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  z-index: 1500;
  animation: slideIn 0.6s ease-out;
}

.visitor-icon {
  font-size: 1.5rem;
}

.visitor-number {
  font-weight: bold;
  color: #0d6efd;
}

@keyframes slideIn {
  from {
    transform: translateX(150%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .visitor-popout {
    bottom: 80px;
    right: 10px;
    font-size: 0.9rem;
  }
}


/* WhatsApp */

 @keyframes fadeInMessage {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes bounce {
      0%, 80%, 100% { transform: scale(0); }
      40% { transform: scale(1); }
    }

    @keyframes popOut {
      0%   { transform: scale(0); opacity: 0; }
      60%  { transform: scale(1.15); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    /* --- CHAT WIDGET --- */
    .chat-widget {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 280px;
      background-color: #fff;
      border-radius: 15px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
      z-index: 1500;
      overflow: hidden;
      transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
      max-height: 1000px;
      transform: scale(1);
      opacity: 1;
    }

    .chat-widget.hide {
      max-height: 0;
      opacity: 0;
      transform: scale(0.8);
      pointer-events: none;
    }

    .chat-header {
      background-color: #25D366;
      color: white;
      padding: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chat-header .title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: bold;
    }

    .chat-header img {
      width: 24px;
      height: 24px;
    }

    .chat-close {
      background: none;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
    }

    .chat-body {
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .chat-message {
      background-color: #e1ffc7;
      padding: 8px 12px;
      border-radius: 10px 10px 10px 0;
      max-width: 80%;
      font-size: 14px;
      opacity: 0;
      animation: fadeInMessage 0.4s forwards;
    }

    .chat-typing {
      font-size: 12px;
      color: #999;
      display: flex;
      align-items: center;
    }

    .chat-typing span {
      width: 5px;
      height: 5px;
      background: #999;
      margin: 0 2px;
      border-radius: 50%;
      animation: bounce 1.4s infinite ease-in-out;
    }

    .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
    .chat-typing span:nth-child(3) { animation-delay: 0.4s; }

    .chat-button {
      margin: 10px;
      align-self: flex-start;
      background-color: #25D366;
      color: white;
      border: none;
      padding: 6px 12px;
      font-size: 14px;
      border-radius: 20px;
      cursor: pointer;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .chat-button:hover {
      background-color: #1ebe5d;
      box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
    }

    /* --- WHATSAPP ICON --- */
    .whatsapp-icon {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
  
}

    .whatsapp-icon img {
      width: 28px;
      height: 28px;
    }

   
    .whatsapp-icon.show {
      display: flex;
      animation: popOut 0.5s ease forwards;
    }

    @media (max-width: 575.98px) {
      .chat-widget {
        display: none !important;
      }

      .whatsapp-icon {
        display: flex;
        opacity: 1;
        transform: scale(1);
      }
    }


    .galeria-smart-section {
  background-color: #f7f7f7;
  padding: 4rem 1rem;
}

.container-galeria {
  max-width: 1100px;
  margin: 0 auto;
}

/* NUEVO grid controlado */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.galeria-item {
  padding: 0;
}

.galeria-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.galeria-img:hover {
  transform: scale(1.03);
}

@media (max-width: 576px) {
  .galeria-img {
    height: 130px;
  }
}
#smart-stats .row > div {
  flex: 0 0 33.3333% !important;
  max-width: 33.3333% !important;
}

@media (max-width: 576px) {
  #smart-stats h1 {
    font-size: 1.5rem; /* reduce el tamaño del número */
  }

  #smart-stats .desc-text {
    font-size: 0.9rem; /* opcional: también reduce el texto debajo */
  }
}

