
.special-projects-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1rem 0;
}


.proyecto-row {
  display: flex;
  justify-content: center;
}

.proyecto-row.reverse .project-card {
  flex-direction: row-reverse;
}

.proyecto-row:not(.reverse) .project-body {
  margin-left: -80px;
  z-index: 1;
}

.proyecto-row.reverse .project-body {
  margin-right: -80px;
  z-index: 1;
}


.project-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  min-height: 450px;
}

.project-image {
  flex: 1.2;
  position: relative;
  z-index: 0;
  border-radius: 30px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

.project-body {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  z-index: 1;
}

.project-card__title {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 1rem;
  color: #000;
}

.project-card__description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
}

.project-card__button a {
  background: linear-gradient(90deg, #FFCE00 0%, #FFB000 100%);
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  padding: 9px 20px;
  border-radius: 45px;
  text-decoration: none;
  display: inline-block;
}

.project-card__button a:hover {
  text-decoration: none;
}

.project-card__button a:visited {
  color: white;
}

@media screen and (max-width: 768px) {
  .special-projects-list {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .proyecto-row {
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 2rem; 
  }

  .project-card {
    flex-direction: column !important;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
  }

  .project-image {
    width: 100%;
    min-height: 200px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    z-index: 0;
  }

  .project-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
  }

  .project-body {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    max-width: 90%;
  }

  .project-card__description.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .proyecto-row.reverse .project-card,
  .proyecto-row:not(.reverse) .project-card {
    flex-direction: column !important;
  }
  .proyecto-row .project-body {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
