.custom-post-obras-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: 350px;
  max-width: 1000px;
  padding: 0 1rem;
  margin: 10px auto 50px;
}

.custom-post-obras-list a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none !important;
  position: relative;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 270px;
}

/* Efecto zoom en hover */
.custom-post-obras-list a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  z-index: -1;
}

.custom-post-obras-list a:hover::after {
  transform: scale(1.1);
}

.custom-post-obras-list a:hover {
  transform: translateY(-5px);
  box-shadow: rgba(60, 64, 67, 0.4) 0px 4px 8px 0px, rgba(60, 64, 67, 0.25) 0px 6px 12px 4px;
}

.custom-post-obras-list a:hover .background-shadow {
  background-color: rgba(12, 12, 12, 0.75);
}

.custom-post-obras-list a .background-shadow {
  background-color: rgba(0, 0, 0, 0.65);
  width: 100%;
  padding: 0.5rem;
  color: white;
  position: relative;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.custom-post-obras-list a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    black,
    black 10px,
    yellow 10px,
    yellow 20px
  );
  opacity: 0.8;
  pointer-events: none;
  z-index: 3;
}

.custom-post-obras-list a .background-shadow .post-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
  color: white !important;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.custom-post-obras-list a .background-shadow .post-excerpt,
.custom-post-obras-list a .background-shadow .post-excerpt ~ p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white !important;
  margin-bottom: 0.25rem !important;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.4;
}

/* Sección de título */
.content-title-76 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.content-title-76 .title-obras-76 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1000px;
  padding: 0 1rem;
  gap: 1rem;
}

.content-title-76 .title-obras-76 > a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-title-76 .title-obras-76 > a > h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.content-title-76 .title-obras-76 > a:hover > h2 {
  color: #2f6296;
}

.content-title-76 .title-obras-76 > i {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Lista de 4 columnas */
.custom-post-obras-list-231 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 1rem;
  margin: 10px auto 50px;
  font-family: 'Open Sans', sans-serif;
  max-width: 1200px;
}

.custom-post-obras-list-231 a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none !important;
  position: relative;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 270px;
}

/* Efecto zoom para lista de 4 columnas */
.custom-post-obras-list-231 a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  z-index: 0;
}

.custom-post-obras-list-231 a:hover::after {
  transform: scale(1.1);
}

.custom-post-obras-list-231 a:hover {
  transform: translateY(-3px);
  box-shadow: rgba(60, 64, 67, 0.4) 0px 4px 8px 0px, rgba(60, 64, 67, 0.25) 0px 6px 12px 4px !important;
}

.custom-post-obras-list-231 a:hover .background-shadow {
  background-color: rgba(12, 12, 12, 0.78);
}

.custom-post-obras-list-231 a .background-shadow {
  background-color: rgba(0, 0, 0, 0.425);
  width: 100%;
  padding: 0.5rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.custom-post-obras-list-231 a .background-shadow .post-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
  color: white !important;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.2;
}

.custom-post-obras-list-231 a .background-shadow .post-excerpt,
.custom-post-obras-list-231 a .background-shadow .post-excerpt ~ p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white !important;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  margin-bottom: 0.25rem !important;
  line-height: 1.3;
}

@media screen and (max-width: 1024px) {
  .custom-post-obras-list-231 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .custom-post-obras-list-231 a {
    height: 250px;
  }
}

@media screen and (max-width: 950px) {
  .custom-post-obras-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .custom-post-obras-list a {
    height: 350px;
  }
}

@media screen and (max-width: 775px) {
  .custom-post-obras-list-231 {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
  
  .custom-post-obras-list-231 a {
    height: 150px;
  }
}

@media screen and (max-width: 720px) {
  .custom-post-obras-list {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .custom-post-obras-list a {
    height: 150px;
  }

  .custom-post-obras-list a .background-shadow .post-title {
    font-size: 1.2rem;
  }
  
  .custom-post-obras-list a .background-shadow .post-excerpt,
  .custom-post-obras-list a .background-shadow .post-excerpt ~ p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 500px) {
  .custom-post-obras-list-231 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .custom-post-obras-list-231 a {
    height: 200px;
  }
  
  .custom-post-obras-list-231 a .background-shadow {
    padding: 0.75rem;
  }
  
  .custom-post-obras-list-231 a .background-shadow .post-title {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 360px) {
  .custom-post-obras-list,
  .custom-post-obras-list-231 {
    margin: 10px 0 30px;
    padding: 0 0.25rem;
  }
}

/* Mejoras de rendimiento */
@media (prefers-reduced-motion: reduce) {
  .custom-post-obras-list a,
  .custom-post-obras-list-231 a,
  .custom-post-obras-list a::after,
  .custom-post-obras-list-231 a::after,
  .custom-post-obras-list a .background-shadow,
  .custom-post-obras-list-231 a .background-shadow {
    transition: none;
  }
}