








/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Mantiene la altura de la sección en toda la pantalla */
    overflow: hidden;
}

.hero video {
    position: fixed; /* Cambiar a fixed para que se mantenga en su lugar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -18; /* Asegúrate de que el video esté detrás del contenido */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Asegúrate de que el contenido esté delante del video */
}

.hero-logo {
    width: 200px;
}





.btn-get-started {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(230, 57, 70, 0.01);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn-get-started:hover {
  background-color: #d62828;
}

.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.visible {
  opacity: 1;
  max-height: 500px; /* Ajusta según la altura del contenido */
  transition: opacity 1.2s ease, max-height 1.2s ease;
}



/*certificados*/


.certificados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
   
    background-color: #fff; /* Fondo blanco sólido */
    padding: 60px 0; /* Espaciado superior e inferior */
    position: relative; /* Asegura que se posicione correctamente */
    z-index: 10; /* Asegúrate de que esté por encima del video */
}



.certificado-item {
  position: relative ;
  justify-content: center;
    
}

.certificado-item img {
  width: 100%;
  max-width: 130px; /* Tamaño ajustable de las imágenes */
  height: auto;
  
  display: block;
  
}

.certificado-info {
  display: none; /* Oculta el texto para evitar cuadros innecesarios */
}

.certificado-item:hover .certificado-info {
  display: none; /* Sin cambios en hover */
}



/* barra de marcas*/

#marcas {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;

}

#marcas h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.marcas-sliderf {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-trackf {
    display: flex;
    width: calc(8px * 21* 22); /* Duplicar la cantidad total de logos */
    animation: scroll 28s linear infinite; /* Reducir la duración */
}

.slidef {
    width: 310px; /* Ancho del logo */
    padding: 0 20px; /* Espacio entre logos */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slidef img {
    max-width: 150px; /* Establece un tamaño máximo para el ancho */
    max-height: 120px; /* Establece un tamaño máximo para la altura */
    width: auto; /* Permite que las proporciones se mantengan */
    height: auto; /* Ajusta la altura automáticamente */
    object-fit: contain; /* Asegura que las imágenes se adapten sin deformarse */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moverse la mitad de la longitud total */
    }
}





/* Estilos generales */
/* Carrusel */
.carrusel {
  width: 100%;
  max-width: 2200px; /* Limitar el ancho en pantallas grandes */
  margin: auto;
  padding: 50px 0;
  text-align: center;
  background-color: #f1f1f1;
}

/* Título y texto del carrusel */
.carrusel .intro {
  text-align: center;
  margin-bottom: 20px;
}

.carrusel .intro h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
}

.carrusel .intro p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
}

/* Contenedor del carrusel */
.carrusel-contenedor {
  display: flex;
  transition: transform 1.5s ease-in-out; /* Desplazamiento suave */
  width: 100%; /* Asegura que ocupe todo el espacio disponible */
}

.carrusel-item {
  min-width: 100%; /* Cada video debe ocupar todo el ancho del contenedor */
  flex: 0 0 auto; /* Impide que los videos se redimensionen */
  display: flex;
  justify-content: center;
}


.carrusel-item video {
  width: 80%; /* Ajustar el video al 80% del contenedor */
  max-width: 700px; /* Limitar el tamaño máximo a 600px */
  height: auto; /* Mantener la proporción de aspecto */
  max-height: 400px; /* Limitar la altura máxima a 350px */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Asegura que el video cubra bien el espacio sin distorsionarse */
}

/* Flechas de navegación */
.nav-arrows {
  position: absolute;
  top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #333;
  z-index: 10;
}

.prev, .next {
  background-color: rgba(72, 72, 72, 0);
  padding: 50px;
  border-radius: 30%;
  cursor: pointer;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 1);
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .carrusel-item video {
    width: 90%; /* Ajustar el video al 90% del contenedor en pantallas pequeñas */
    max-width: 480px; /* Limitar el tamaño máximo a 480px */
    max-height: 380px; /* Limitar la altura a 300px */
    
  }
  
  .carrusel .intro h2 {
    font-size: 1.8rem;
  }

  .carrusel .intro p {
    font-size: 1rem;
  }

  .carrusel-contenedor {
    width: 100%; /* Para mostrar tres elementos al mismo tiempo */
  }

  .nav-arrows {
    font-size: 1.5rem; /* Tamaño más pequeño para las flechas */
  }
}

/* Media Query para pantallas muy pequeñas (móviles) */
/* Media Query para pantallas muy pequeñas (móviles) */
@media screen and (max-width: 500px) {
  .carrusel {
    padding: 15px 0;
  }

  .carrusel .intro h2 {
    font-size: 1.5rem;
  }

  .carrusel .intro p {
    font-size: 0.9rem;
  }

  .carrusel-contenedor {
    width: 100%; /* Solo mostrar dos elementos al mismo tiempo */
    display: flex;
    justify-content: center; /* Asegura que los videos estén centrados */
  }

  .carrusel-item {
    min-width: 100%;
    padding: 3px; /* Menos padding para pantallas pequeñas */
    display: flex;
    justify-content: center; /* Centrar el video */
    align-items: center; /* Centrar el video verticalmente */
  }

  .carrusel-item video {
    width: 100%; /* Ajustar el tamaño del video */
    max-width: 380px; /* Limitar el tamaño máximo */
    height: auto; /* Mantener la proporción */
    border-radius: 10px;
  }

}
 
  





#servicios {
  background-color: #fefeff;
  color: #333;
  padding: 100px 20px;
  text-align: center;
}

#servicios1 {
  background-color: #f4f4f4;
  color: #333;
  padding: 100px 20px;
  text-align: center;
} 
#servicios h2 {
  
   font-size: 1.8rem; /* Tamaño del título */
  font-weight: bold;
  margin-bottom: 20px;
}
#servicios1 h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
    text-align: center
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  overflow: hidden;
}

.servicio-item {
  position: relative;
  width: 300px;
  height: 500px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.servicio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.imagen-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.imagen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.servicio-item:hover .imagen-bg img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Fondo oscuro semitransparente */
  transition: background 0.3s ease;
}

.servicio-item:hover .overlay {
  background: rgba(0, 0, 0, 0.4);
}

.contenido-servicio {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: left;
  z-index: 2;
  color: #fff;
  backdrop-filter: blur(8px); /* Desenfoque del fondo */
  background: rgba(0, 0, 0, 0.2); /* Fondo translúcido oscuro */
  padding: 15px;
  border-radius: 8px;
}

.contenido-servicio h3 {
  font-size: 1.5em;
  margin: 0;
  color: #fff;
}

.contenido-servicio p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #eee;
}

/* Numeración de los servicios */
.servicio-item::before {
  content: attr(data-number);
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2em;
  color: rgba(255, 255, 255, 0.8); /* Blanco translúcido */
  font-weight: bold;
  z-index: 1;
}

/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
  .servicios-grid {
    flex-direction: column;
    align-items: center;
  }

  .servicio-item {
    width: 90%;
    height: 350px;
    margin-bottom: 20px;
  }

  .contenido-servicio h3 {
    font-size: 1.3em;
  }

  .contenido-servicio p {
    font-size: 0.85em;
  }
}

/* Animación de aparición */
.appear {
    opacity: 0;
    transform: translateY(30px) scale(0.9); /* Desplazamiento hacia abajo y reducción */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Suavidad en la transición */
}

.appear.visible {
    opacity: 1;
    transform: translateY(0) scale(1); /* Vuelve a la posición original y escala */
}



.cta-section {
  background-color: #1e1e1e; /* Fondo rojo oscuro */
  color: #ffffff; /* Texto blanco */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Ajusta el alto y el ancho del contenedor */
  height: 200px; /* Cambia este valor para ajustar el alto */
  width: 100%; /* Cambia a 80%, 90% o un tamaño fijo como 1200px */
}

.cta-container {
  text-align: center;
  max-width: 600px; /* Ajusta el ancho máximo del contenido */
}

.cta-title {
   color: #ffffff;
  font-size: 1.8rem; /* Tamaño del título */
  font-weight: bold;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 6px 30px; /* Ajusta el tamaño del botón */
  font-size: 1rem;
  font-weight: bold;
  color: #761b1b; /* Texto del botón */
  background-color: #ffffff; /* Fondo blanco del botón */
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d32f2f; /* Rojo más claro al pasar el mouse */
  color: #ffffff; /* Texto blanco */
}













/* Boton de accion sala de bombas */

.custom-button {
  background-color: #a0001c; /* Color de fondo rojo oscuro */
  color: #ffffff;           /* Color del texto blanco */
  border: none;             /* Sin borde */
  border-radius: 51px;       /* Bordes redondeados */
  padding: 10px 20px;       /* Espaciado interno */
  font-size: 16px;          /* Tamaño de la fuente */
  font-weight: bold;        /* Texto en negrita */
  text-align: center;       /* Centrar texto */
  cursor: pointer;          /* Mostrar puntero cuando se pase el mouse */
  transition: all 0.3s ease; /* Animación suave para hover */
}

.custom-button:hover {
  background-color: #800016; /* Color más oscuro en hover */
  transform: scale(1.05);    /* Aumentar ligeramente el tamaño en hover */
}

.custom-button:active {
  transform: scale(0.98);    /* Reducir ligeramente el tamaño al hacer clic */
}



.whatsapp-button {
    position: fixed; /* Fijar en la pantalla */
    bottom: 30px;    /* Distancia desde la parte inferior */
    left: 30px;      /* Colocarlo a la izquierda */
    background-color: #2f2f2f; /* Gris oscuro */
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000; /* Asegura que esté siempre encima */
}

.whatsapp-button img {
    width: 60px; /* Tamaño del logo */
    height: 60px;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Efecto de zoom */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}


