/* -------------------------------
   intro SECTION
-------------------------------- */
.intro-section {
  background-color: var(--color-dark);
}

.intro-header {
  height: 70vh;
  padding: 4rem;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: flex-start;
}

/* -------------------------------
   GRID SECTION
-------------------------------- */
.grid-section{
  background-color: var(--color-dark);
}
.grid-projects{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  flex-wrap: wrap;
  max-width: 100%;                 /* Usa un ancho más amplio del viewport */
}

.grid-block {
  aspect-ratio: 1 / 1; /* Cuadrado perfecto */
  width: 100%;         /* Ocupa toda la celda */
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grid-image {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(0%) brightness(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
  z-index: 1;
}
.grid-block:hover .grid-image {
  filter: grayscale(100%) brightness(20%);
  transform: scale(1.4);
}
.grid-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: transparent;
  text-align: center;
  transition: color 0.3s ease;
  z-index: 2;
}
.grid-label h1{
  font-weight: bold;
  font-size: 2.5rem;
}
.grid-label h2{
  font-size: 0.8rem;
}
.grid-block:hover .grid-label {
  color: var(--color-white);
}
/*----------------------------- MOBILE ---------------------------------------*/
@media (max-width: 1500px) {
.intro-header {
  height: 50vh;
  padding: 4rem;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: flex-start;
}
/* -------------------------------
   GRID SECTION
-------------------------------- */
.grid-label h1{
  font-weight: bold;
  font-size: 1rem;
}
.grid-label h2{
  font-size: 0.6rem;
}
}