
.laeca-proyectos-destacados,
.laeca-proyectos-destacados *,
.laeca-proyectos-destacados *::before,
.laeca-proyectos-destacados *::after {
  box-sizing: border-box;
}

.laeca-proyectos-destacados h2,
.laeca-proyectos-destacados h3,
.laeca-proyectos-destacados p {
  margin: 0;
  padding: 0;
}

.laeca-proyectos-destacados {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 6rem 1.5rem;
  background: #ffffff;
  font-family: "Inter", sans-serif;
}

.laeca-proyectos-destacados__container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.laeca-proyectos-destacados__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.laeca-proyectos-destacados__title {
  color: var(--laeca-featured-accent, #1a40ff);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.laeca-proyectos-destacados__indicator {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.laeca-proyectos-destacados__indicator span {
  display: block;
  width: 1.25rem;
  height: 3px;
  border-radius: 999px;
  background: #d9dee5;
}

.laeca-proyectos-destacados__indicator span.is-active {
  width: 2rem;
  background: var(--laeca-featured-accent, #1a40ff);
}

.laeca-proyectos-destacados__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.laeca-proyecto-card {
  width: 100%;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  transition:
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}

.laeca-proyecto-card:hover {
  border-color: rgba(209, 213, 219, .40);
  box-shadow: 0 20px 50px -12px rgba(26,64,255,.15);
  transform: translateY(-2px);
}

.laeca-proyecto-card__media {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border-radius: .375rem;
}

.laeca-proyecto-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .7s ease;
}

.laeca-proyecto-card:hover .laeca-proyecto-card__media img {
  transform: scale(1.05);
}

.laeca-proyecto-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,41,.10);
  opacity: 0;
  transition: opacity .3s ease;
}

.laeca-proyecto-card:hover .laeca-proyecto-card__overlay {
  opacity: 1;
}

.laeca-proyecto-card__content {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
}

.laeca-proyecto-card__content h3 {
  margin-bottom: .5rem;
  color: var(--laeca-featured-accent, #1a40ff);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.laeca-proyecto-card:hover .laeca-proyecto-card__content h3 {
  color: #1d4ed8;
}

.laeca-proyecto-card__meta {
  display: block;
  margin-bottom: 1rem;
  color: #4b5563;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.laeca-proyecto-card__content p {
  color: #6b7280;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
}

.laeca-proyecto-card__content p strong {
  color: inherit;
  font-weight: 700;
}

/* Reveal */
.laeca-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22,1,.36,1) var(--delay, 0s),
    transform .7s cubic-bezier(.22,1,.36,1) var(--delay, 0s);
}

.laeca-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (min-width: 768px) {
  .laeca-proyectos-destacados {
    padding: 6rem 3rem;
  }

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

/* Desktop */
@media (min-width: 1024px) {
  .laeca-proyectos-destacados__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Móvil */
@media (max-width: 767px) {
  .laeca-proyectos-destacados {
    padding: 4.5rem 1.25rem;
  }

  .laeca-proyectos-destacados__header {
    margin-bottom: 2.75rem;
  }

  .laeca-proyectos-destacados__title {
    font-size: 2.5rem;
  }

  .laeca-proyecto-card {
    padding: .5rem;
  }

  .laeca-proyecto-card__media {
    height: 290px;
    margin-bottom: 1.4rem;
  }

  .laeca-proyecto-card__content {
    padding: 0 .65rem 1rem;
  }

  .laeca-proyecto-card__content h3 {
    font-size: 2rem;
  }

  .laeca-proyecto-card__meta {
    font-size: 1rem;
  }

  .laeca-proyecto-card__content p {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laeca-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .laeca-proyecto-card,
  .laeca-proyecto-card__media img,
  .laeca-proyecto-card__overlay {
    transition: none;
  }
}

/* =========================================================
TRANSICIÓN HERO → PROYECTOS DESTACADOS
DEGRADADO SUAVE COMO EN LOS BLOQUES ANTERIORES
========================================================= */
.laeca-proyectos-destacados::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -230px;
  height: 300px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.08) 12%,
    rgba(255,255,255,.28) 28%,
    rgba(255,255,255,.58) 48%,
    rgba(255,255,255,.82) 67%,
    rgba(255,255,255,.96) 84%,
    #ffffff 100%
  );
}

.laeca-proyectos-destacados__container {
  position: relative;
  z-index: 2;
}

@media (max-width: 1023px) {
  .laeca-proyectos-destacados::before {
    top: -190px;
    height: 250px;
  }
}

@media (max-width: 767px) {
  .laeca-proyectos-destacados::before {
    top: -150px;
    height: 210px;
  }
}

