@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff; /* Considera agregar un fondo para mejorar la legibilidad */
  
}
.fa-shopping-cart:before {
  content: "\f07a";
  color: black;
}

.logo h1{
    text-decoration: none;
    color: #333;
    font-weight: 500;

}
.logo a{
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease;
}


.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-menu-icon {
    display: none;
}

.fondo {
  background-color: rgb(10, 10, 10);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cables {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  animation: cables-animation 5s linear infinite; /* Añadido para la animación de las líneas */
}


@keyframes cables-animation {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(20px, 20px);
  }
}

.foco {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: 0 0 10px 10px rgba(255, 218, 185, 0.8), 0 0 20px 20px rgba(255, 218, 185, 0.5); /* Sombra cálida para el "foco apagado" */
  transition: box-shadow 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

}



.nombre-empresa {
  color: rgba(255, 255, 255, 0.802);
  font-size: 3em;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
  margin: 0;
}

.fondo:hover .foco {
  box-shadow: 0 0 50px 50px rgba(255, 218, 185, 1), 0 0 100px 100px rgba(255, 218, 185, 0.7), 
              0 0 150px 150px rgba(255, 218, 185, 0.5), 0 0 200px 200px rgba(255, 218, 185, 0.3),
              0 0 250px 250px rgba(255, 218, 185, 0.2); /* Sombra cálida más compleja para el "foco encendido" al pasar el ratón */
}
.welcome-message {
  position: absolute;
  top: 15%; /* Ajusta según sea necesario */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: 100%; /* Limita el ancho del mensaje al 90% del ancho de la pantalla */
  max-width: 100%; /* Establece un ancho máximo para evitar que el mensaje sea demasiado ancho en pantallas grandes */
  margin: 0 auto; /* Centra el mensaje horizontalmente */
}

.welcome-message h2 {
  font-size: 30px;
  margin: 0;
}

  .servicios {
    background-color: white; /* Gris claro, típico en el diseño de Apple */
    color: black;
    padding: 60px 0;
    text-align: center;
  }
  
  .servicios h1 {
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .servicios h3{
    padding-top: 20px;
    padding-bottom: 50px;
  }
  .service p, li{
    text-align: justify;
    padding-left: 50px;
    padding-right: 50px;
  }
  
  .service-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .service {
    width: calc(33.333% - 20px);
    background-color: #fff;
    border: 1px solid #e1e1e6;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease;
  }
  
  .service img {
    width: 100%; /* Asegura que la imagen ocupe el ancho completo del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    object-fit: cover; /* Cubre el área del contenedor sin perder proporciones */
    border-radius: 10px; /* Opcional: para bordes redondeados */
    max-height: 500px; /* Establece una altura máxima para todas las imágenes */
  }
  
  .service:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .section-materials {
    background-color: white;
    padding: 60px 20px;
  }
  
  .materials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;

  }
  
  .materials-description, .materials-image {
    flex: 1;
    min-width: 300px; /* Asegura un ancho mínimo para ambos, el texto y la imagen */
  }
  .materials-description{
    padding: 30px;


  }
  
  .materials-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding-top: 50px;
  }
  
  .swiper-container {
    width: 100%;
    height: 100%;
  }
  
  
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
  
    /* Centrar imagen */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
  
  .brand-slider {
    overflow: hidden;
  }
  

  .slide-track {
    display: flex;
    width: calc(100% * 2); /* Ajusta según la cantidad de elementos duplicados */
    animation: scroll-slide 20s linear infinite;
    background-color: white;
  }
  
  .slide {
    flex: 0 0 auto;
    width: 20%; /* Ajusta según tus necesidades */
    text-align: center;
  }
  

  
  @keyframes scroll-slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%); /* Ajusta este valor basado en la duplicación */
    }
  }
  .contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    background-color: white;
    padding-top: 100px;
  }
  
  .info-contacto, .mapa {
    flex: 1;
    min-width: 300px; /* Asegura un tamaño mínimo para la responsividad */
  }
  
  .info-contacto h2, .info-contacto p, .redes-sociales a {
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
  }
  .redes-sociales{

    text-align: center;
  }
  .redes-sociales a {
    font-size: 24px; /* Tamaño de los iconos */
    color: black; /* Color del icono */
    margin: 0 10px;
  }
  .redes-sociales p{
    color: #000;
  }
  .mapa iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px; /* Estilo opcional para bordes redondeados */
  }
  .site-footer {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f7;
    color: #666;
  }



 
  .contenedor {
    width: 90%;
    max-width: 800px;
    margin: auto;
  }
  
  /* ------------------------- */
  /* HEADER */
  /* ------------------------- */
  
  .Galeryy {
    padding: 40px 0;
  }
  
  .logo1 {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .logo1 p {
    color: #9B9B9B;
  }
  
  .Galeryy form {
    
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .barra-busqueda {
    display: none;
    width: 70%;
    height: 40px;
    line-height: 40px;
    background: #fff;
    padding: 0 20px;
    border-radius: 100px;
    border: none;
    text-align: center;
    font-size: 16px;
  }
  
  .categorias1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .categorias1 a {
    color: #9B9B9B;
    margin: 10px 20px;
    font-size: 18px;
    font-weight: 700;
  }
  
  .categorias a.activo {
    color: #000;
  }
  
  /* ------------------------- */
  /* Grid */
  /* ------------------------- */
  
  .grid {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s linear 1s;
  }
  
  .grid.imagenes-cargadas {
    opacity: 1;
  }
  
  .grid .item {
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(33.333333% - 20px);
  }
  
  .grid .item-contenido {
    position: relative;
  }
  
  .grid .item img {
    width: 100%;
    cursor: pointer;
    vertical-align: top;
    border-radius: 10px;

  }
  
  /* ------------------------- */
  /* Overlay */
  /* ------------------------- */
  .overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.9);
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;


  }
  
  .overlay.activo {
    display: flex;
  }
  
  .overlay img {
    width: 800px;  
    border-radius: 10px;
  }
  
  .overlay .descripcion {
    display: block;
    background: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 5px;
    border-radius: 10px;
    max-width: 50%;
  }
  
  .contenedor-img {
    position: relative;
  }
  
  #btn-cerrar-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 44px;
    cursor: pointer;
  }
  
  #btn-cerrar-popup i {
    color: white; /* Cambia esto por el color que mejor se ajuste a tu diseño */
  }
  .whatsapp-icon {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999; /* Asegúrate de que es suficientemente alto */
    color: black;
    font-size: 30px; /* Ajusta según sea necesario */
}

.whatsapp-icon i {
    font-size: 40px; /* Tamaño del icono */
}


@media (max-width: 1280px){
  .overlay img {
    max-height: 80%;
  }
}
@media (max-width: 768px) {
    .navbar {
      padding: 0px;

        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegura que el menú se mantenga sobre otros elementos */
        background-color: #fff; /* Considera agregar un fondo para mejorar la legibilidad */
      }
    .logo{
      padding-top: 5px;
      padding-left: 5px;
    } 
    
          .welcome-message h2{
        font-size: 20px;
      }
      .nombre-empresa {
        color: rgba(255, 255, 255, 0.802);
        font-size: 2em;
        font-family: 'Arial', sans-serif;
        letter-spacing: 2px;
        margin: 0;
      }
      .fondo:hover .foco {
        box-shadow: 0 0 10px 0px rgba(255, 218, 185, 1), 0 0 50px 50px rgba(255, 218, 185, 0.7), 
                    0 0 20px 0px rgba(255, 218, 185, 0.5), 0 0 100px 100px rgba(255, 218, 185, 0.3),
                    0 0 30px 0px rgba(255, 218, 185, 0.2); /* Sombra cálida más compleja para el "foco encendido" al pasar el ratón */
      } 
    
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        transform: translateY(-200%);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.showMenu {
        transform: translateY(0);
    }

    .carrito {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .mobile-menu-icon img {
        width: 30px;
    }
    .hero-content h1 {
        font-size: 2rem;
        
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 8px 16px;
    }
    .service-grid {
        flex-direction: column;
        align-items: center;
      }
    
      .service {
        width: 90%; /* Ajusta el ancho para que se vea bien en móviles */
        margin-bottom: 20px; /* Espacio entre servicios */
      }
    
      .materials-image {
        padding: 0;
        margin-bottom: 20px;
      }

      .contacto {
        flex-direction: column;
        align-items: center;
      }
    
      .info-contacto, .mapa {
        width: 90%; /* Ajusta el ancho para dispositivos móviles */
      }
    
      .mapa iframe {
        margin-top: 20px; /* Espacio extra arriba del mapa */
      }
      .grid .item {
        width: calc(50% - 20px);
      }
      .overlay img {
        width: 380px;  
        border-radius: 10px;
      }
      #btn-cerrar-popup {
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 24px;
        cursor: pointer;
      }
      
      #btn-cerrar-popup i {
        color: white; /* Cambia esto por el color que mejor se ajuste a tu diseño */
      }
    
      .whatsapp-icon i {
        font-size: 40px; /* Tamaño del icono para tablets y arriba */
    }
    
}
