/* ---------- General ---------- */
body {
    padding-top: 80px;
}

/*para poner la imagen de servicios*/

.hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 4vw;
  padding: 1rem 2rem;
  border-radius: 8px;
  margin: 0;
  color: white;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.9),
    0px 0px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .subtext {
  font-size: 1vw;
  margin-top: 0.5rem;
  font-weight: 400;
  color: #f1f1f1;
}

/* -------- Pantallas medianas: hasta 990px -------- */
@media (max-width: 990px) {
  .hero {
    height: 200px;
  }

  .hero-content h1 {
    font-size: 6vw;
  }

  .hero-content .subtext {
    font-size: 3vw;
  }
}

/* -------- Pantallas pequeñas: hasta 480px -------- */
@media (max-width: 480px) {
  .hero {
    height: 150px;
  }

  .hero-content h1 {
    font-size: 7vw;
    padding: 0.6rem 1.2rem;
  }

  .hero-content .subtext {
    font-size: 3vw;
  }
}

/*Imagenes de proyectos*/
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 20px; /* espacio entre imágenes */
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.project img {
  width: 100%;
  height: 250px; /* puedes ajustar el alto */
  object-fit: cover; /* recorta y ajusta la imagen */
  border-radius: 10px; /* esquinas redondeadas opcional */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.project img:hover {
  transform: scale(1.05); /* zoom al pasar el mouse */
}
