
.sec--destacados {
  width        : 100%;
  margin-bottom: 60px;
}

.destacados__grid {
    width                : 100%;
    display              : grid;
    grid-template-columns: repeat(4, 1fr);
    gap                  : 16px;
}

.destacados__card {
  position       : relative;
  display        : block;
  height         : 0;
  padding-top    : 156%;
  border-radius  : 12px;
  overflow       : hidden;
  text-decoration: none;
}

.destacados__img {
    position  : absolute;
    top       : 0;
    left      : 0;
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    display   : block;
    transition: transform 0.4s ease;
}

/* Efecto sutil al pasar el mouse */
.destacados__card:hover .destacados__img {
  transform: scale(1.05);
}

/* Sombra oscura superior para legibilidad del texto */
.destacados__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px 30px;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.destacados__title {
  color      : #ffffff;
  font-family: var(--fuente-texto);
  font-size  : 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  text-align : center;
  margin     : 0;
}



/* Adaptación a dispositivos móviles y tablets */
@media (max-width: 992px) {

  .destacados__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

@media (max-width: 576px) {
  .destacados__grid {
    grid-template-columns: 1fr;
  }
}
