.navbar {
  padding: 1.5rem 0.94rem 0 1.25rem;
}

footer {
  padding: 16.06rem 1.13rem 0.75rem 1.37rem;
}

.projects-container {
  padding: 40px 20px; /* Espaciado interior */
  margin: 0 auto;
}
.project-card .project-card-info .category-container {
  position: relative;
  overflow: hidden;
  height: 20px; /* Ajusta la altura a tu fuente */

  /* --- CAMBIOS CLAVE --- */
  width: 100px; /* Dale un ancho fijo, ajústalo según necesites */
  display: flex;
  justify-content: flex-end; /* Alinea el contenido a la derecha */
  margin-left: auto; /* Empuja el contenedor a la derecha de la tarjeta */
}

.project-card .project-card-info .category-container span {
  display: block;
  line-height: 20px;
  transition: transform 0.3s ease-in-out;

  /* --- CAMBIOS CLAVE --- */
  min-width: 100px; /* Asegura que ambos textos ocupen el ancho del contenedor */
  text-align: right; /* Alinea el texto a la derecha dentro de su span */
}

.project-card .project-card-info .category-container .category-hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Asegura que ocupe todo el ancho */
}

.project-card:hover .project-card-info .category-container .category-original,
.project-card:hover
  .project-card-info
  .category-container.hovered
  .category-original {
  transform: translateY(-100%);
}

.project-card:hover .project-card-info .category-container .category-hover,
.project-card:hover
  .project-card-info
  .category-container.hovered
  .category-hover {
  transform: translateY(-100%);
}

/* Estilos para la primera, tercera, quinta, etc., sección */
/* .articles-1 {
  display: flex;
  justify-content: space-between;
  height: 51.54rem;
  margin-top: 8.06rem;
}


.articles-1 .project-card:nth-child(1) {
  align-self: flex-start;
}

.articles-1 .project-card:nth-child(2) {
  align-self: center;
}

.articles-1 .project-card:nth-child(3) {
  align-self: flex-end;
}


.articles-2 {
  display: flex;
  justify-content: space-between;
  height: 45.56rem;
  margin-top: 8.06rem;
}

.articles-2 .project-card:nth-child(1) {
  align-self: center;
}

.articles-2 .project-card:nth-child(2) {
  align-self: flex-start;
}

.articles-2 .project-card:nth-child(3) {
  align-self: flex-end;
}
 */

/* Estilos para la primera, tercera, quinta, etc., sección */
.articles-1 {
  display: grid;
  grid-template-columns: repeat(3, 296px);
  align-items: start;
  margin-top: 8.06rem;
  justify-items: left;
  justify-content: space-between;
}

/* Estilos para la segunda, cuarta, sexta, etc., sección */
.articles-2 {
  display: grid;
  grid-template-columns: repeat(3, 296px);
  align-items: start;
  justify-items: left;
  justify-content: space-between;
  margin-top: 8.06rem;
}

/* --- Posicionamiento de las tarjetas --- */

.articles-1 .project-card:nth-child(1) {
  /* No necesita alineación especial (arriba) */
}
.articles-1 .project-card:nth-child(2) {
  margin-top: 10rem; /* Empuja la segunda tarjeta hacia abajo */
}
.articles-1 .project-card:nth-child(3) {
  margin-top: 20rem; /* Empuja la tercera tarjeta más abajo */
}

.articles-2 .project-card:nth-child(1) {
  grid-column: 2;
}
.articles-2 .project-card:nth-child(2) {
  margin-top: 10rem;
  grid-column: 1;
  grid-row: 1;
}
.articles-2 .project-card:nth-child(3) {
  margin-top: 20rem;
  grid-column: 3;
}

.project-card {
  width: auto;
  text-decoration: none;
  color: inherit;
}

.card-image-container {
  height: 23.5625rem;
  aspect-ratio: 296/377;
  overflow: hidden;
  /* position: relative; */
  margin-bottom: 0.5rem;
}

/* .parallax-image {
  width: 100%;
  height: 120%;
  object-fit: cover; 

  position: relative;
  top: -20%;


  will-change: transform;
} */

.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .project-card img {
  height: 23.5625rem;
  align-self: stretch;
  aspect-ratio: 296/377;
  object-fit: cover;
  margin-bottom: 0px;
} */

.project-card-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 0.875rem; /* 116.667% */
  letter-spacing: -0.015rem;
  text-transform: uppercase;
  align-items: baseline;
}

.neue {
  display: none;
}

@media (max-width: 905px) {
  /* Hacemos que .articles-1 (y .articles-2 por si acaso) tengan 2 columnas */
  .articles-1,
  .articles-2 {
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-around; /* Opcional: centra las columnas */
    justify-items: center;
  }

  /* Reseteamos los márgenes verticales que usamos para el escalonado en desktop */
  .articles-1 .project-card:nth-child(2),
  .articles-1 .project-card:nth-child(3),
  .articles-2 .project-card:nth-child(1),
  .articles-2 .project-card:nth-child(2),
  .articles-2 .project-card:nth-child(3) {
    margin-top: 10rem;
  }

  /* Reseteamos el orden de las columnas de .articles-2 para que sea el natural */
  .articles-2 .project-card:nth-child(1),
  .articles-2 .project-card:nth-child(2),
  .articles-2 .project-card:nth-child(3) {
    grid-column: auto;
  }

  .projects-container {
    padding: 40px 0px; /* Espaciado interior */
  }
}

/* --- Media Query para pantallas más pequeñas (móviles) --- */
@media (max-width: 768px) {
  .projects-container {
    column-count: 1; /* En móviles, mostramos una sola columna */
  }
}

@media (max-width: 560px) {
  .articles-1 {
    display: flex;
    flex-direction: column;
  }

  .articles-1 .project-card:nth-child(2),
  .articles-1 .project-card:nth-child(3),
  .articles-2 .project-card:nth-child(1),
  .articles-2 .project-card:nth-child(2),
  .articles-2 .project-card:nth-child(3) {
    margin-top: 3rem;
  }

  .logo {
    display: none;
  }

  .navbar .nav-container {
    justify-content: right;
  }

  .articles-1 {
    margin-top: 0rem;
    margin-bottom: 3rem;
  }

  .main-container {
    padding: 0rem 1rem;
  }

  .neue {
    display: block;
    margin-top: 10rem;
    margin-bottom: 2rem;
  }

  .projects-container {
    padding: 0 0rem;
  }

  .card-image-container {
    height: auto;
    align-self: stretch;
    aspect-ratio: 358/455.97;
  }
}
