/****************************************/
/*  ELEMENTOS PAGINAS DE LOS PROYECTOS  */
/****************************************/

/* Imagen inicial  */

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}


.text-overlay-proyects {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
}


/* Repertorio de imagenes  */

.galeria-proyecto {
  width: 100%;
  background-color: #fff;
  padding: 3% 5%;
}

.galeria-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.project-card {
  margin: 0 auto;
  max-width: 1200px;
}

.project-image {
  display: block;
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.6s ease;
  opacity: 0;
  object-fit: contain;
}

.project-image.loaded {
  opacity: 1;
}