/* Prevenir desplazamiento horizontal en toda la página */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Asegurar que todos los contenedores no excedan el ancho */
.container, .container-fluid {
    max-width: 100%;
    overflow: hidden;
}

/* Revisar específicamente la navbar */
.navbar {
    max-width: 100vw;
}

/* Revisar la imagen de la mano en móviles */
@media (max-width: 768px) {
    .quienes-img img {
        max-width: 100% !important;
        right: 0 !important;
    }
}




/* ====== Servicios circulares ====== */
.services-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.service-circle {
    text-align: center;
    width: 160px;
    transition: transform 0.3s ease;
}

.service-circle i,
.service-circle img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #007BFF;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}

.service-circle h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.service-circle:hover {
    transform: scale(1.1);
}


.servicio-industriales {
  background-image: url("imagenes/fb1.jpg");
  background-size: cover;          /* Que la imagen cubra todo */
  background-position: center;     /* Centrada */
  background-repeat: no-repeat;    /* Que no se repita */
  background-attachment: fixed;    /* 🔥 Aquí está el efecto parallax */
  
  color: #fff;
  padding: 80px 20px 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}


.img-box img {
  width: 100%;
  position: relative;
  top: -120px; /* sobresale hacia arriba */
  margin-bottom: -120px; /* 🔥 compensamos el hueco azul abajo */
  z-index: 3;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}


.container-industriales {
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* coloca contenido por encima del fondo */
}

/* Imagen que sobresale */
.img-box {
  flex: 1;
  position: relative;
  
  
}


.btn-margin-desktop {
    margin-left: 50px;
}

/* Quitar margen en móviles */
@media (max-width: 768px) {
    .btn-margin-desktop {
        margin-left: 0;
        margin-top: 10px; /* opcional si quieres que se separen verticalmente */
    }
}



/* Texto */
.info-box {
  flex: 1;
  z-index: 4; /* el texto siempre arriba */

}

.info-box {
  background: rgba(0, 0, 0, 0.6); /* cajita oscura */
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px); /* 🔥 efecto glassmorphism */
  color: #fff; /* texto blanco */
}

.info-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #3992ff; /* un color llamativo (ejemplo dorado) */
}

.info-box p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
}


/* Versión para móviles */
@media (max-width: 768px) {
  .container-industriales {
    flex-direction: column;   /* apila la imagen y el texto */
    text-align: center;
    gap: 20px;
  }

  

  .img-box img {
    max-width: 320px;       /* tamaño más cómodo en móvil */
    top: -110px;             /* 🔥 casco sobresale un poco más */
    margin-bottom: -80px;   /* compensa el hueco azul */
  }

  .info-box {
    text-align: justify;   /* 🔥 texto justificado */
    max-width: 90%;
    margin: 0 auto;
    
  }

  .info-box h2 {
    font-size: 1.6rem;
    text-align: center;    /* título centrado, se ve mejor */
  }

  .info-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .info-box button {
    display: block;
    margin: 0 auto;
    font-size: 1rem;
    padding: 10px 20px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .container-industriales {
    flex-direction: column;
  }

  .info-box {
    order: 1; /* 🔥 Info primero */
  }

  .img-box {
    order: 2; /* Imagen después */
  }
  .img-box img {
  max-width: 320px;
  top: 0;
  margin-bottom: 0;
}

}


/* ==== Estilos para los Modales ==== */
.modal-content {
  border-radius: 15px;                /* esquinas redondeadas */
  border: none;
  background: #ececec;                /* fondo claro elegante */
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}

.modal-header {
  background: #007BFF;                /* tu azul corporativo */
  color: #fff;
  border-bottom: none;
  padding: 20px 25px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-header .btn-close {
  filter: invert(1);                  /* botón de cerrar blanco */
}

.modal-body {
  padding: 30px;
  max-height: 70vh;                   /* scroll interno si hay mucho contenido */
  overflow-y: auto;
}

/* Las cards dentro del modal */
.modal .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.modal .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.modal .card:hover {
  transform: translateY(-5px);
}

.modal .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.modal .card-content {
  padding: 15px;
  background: #fff;
}

.modal .card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 10px;
}

.modal .card-content p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  text-align: left;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 15px; /* espacio entre logo y título */
}

.modal-logo {
  height: 40px;   /* ajusta según tu diseño */
  width: auto;
}

.scale-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.scale-hover:hover {
  transform: scale(1.1); /* Aumenta un 10% */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Sombra opcional */
}


/* Bloque quienes somos */
.quienes-somos {
  position: relative;
  overflow: visible;
}

.quienes-container {
  position: relative;
  z-index: 2;
}

/* Texto */
.quienes-text h1 {
  font-weight: 700;
}

.quienes-text p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Imagen sindi sobresaliendo */
.quienes-img {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* empuja la imagen a la derecha */
  overflow: visible; /* permite que sobresalga */
}
/* Estilos para la imagen de la mano en Quiénes Somos */
.quienes-img img {
    max-width: 700px !important;
    width: auto;
    height: auto;
    position: relative;
    right: -100px;
    transform: scale(1.3);
    transform-origin: right center;
    margin-right: 0;
    z-index: 3; /* Mantiene la imagen por encima de otros elementos */
}

/* 🔥 Ajuste especial para móviles: imagen de la mano */
@media (max-width: 768px) {
  .quienes-somos .quienes-img img {
    max-width: 380px !important;
    width: 380px !important;
    right: auto !important;              /* quitar desplazamiento raro */
    left: 50% !important;                /* centrar */
    transform: translate(-45%, 10%) scale(1.2) !important; /* bajamos + agrandamos */
    display: block;
    margin: 20px auto 0 auto;            /* un margen arriba para separar del texto */
  }

  .quienes-somos .quienes-container {
    flex-direction: column !important;   /* apilar texto e imagen */
    align-items: center !important;
    text-align: center !important;
    min-height: auto !important;
  }

  .quienes-somos .quienes-text {
    padding: 0 15px !important;          /* texto más estrecho */
    margin-bottom: 20px !important;      /* espacio con la imagen */
  }
}


/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .quienes-img img {
        max-width: 300px !important;  /* Aumentado de 250px a 300px */
        width: 300px !important;      /* Aumentado de 250px a 300px */
        right: -100px !important;     /* Aumentado para compensar */
        transform: translateY(-50%) scale(1.1) !important;
    }
    
    .quienes-text {
        padding-right: 150px; /* Aumentado espacio */
    }
    
    .quienes-container {
        min-height: 400px; /* Aumentada altura */
    }
}