/* ===== Hero constructoras ===== */
.mp-constructoras-hero {
  padding: 2.5rem 0 2.75rem;
}

.mp-constructoras-hero-inner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.mp-constructoras-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,.84), rgba(15,23,42,.6));
}

.mp-constructoras-hero .container {
  position: relative;
  color: #f9fafb;
}

.mp-constructoras-hero .mp-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.mp-constructoras-hero .title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.mp-constructoras-hero .subtitle {
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.mp-constructoras-hero .buttons {
  margin-top: 1.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== Galería grandes obras ===== */
.mp-works-gallery-section {
  background-color: var(--mp-bg);
}

.mp-works-gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 3 x 3 en desktop */
@media screen and (min-width: 1024px) {
  .mp-works-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mp-works-gallery-item {
  cursor: pointer;
}

.mp-works-gallery-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.mp-works-gallery-thumb img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.mp-works-gallery-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--mp-text-soft);
}

/* Modal galería */
.mp-gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.mp-gallery-modal.is-active {
  display: block;
}

.mp-gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.65);
}

.mp-gallery-modal-dialog {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  background: #0b1120;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.mp-gallery-modal-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.mp-gallery-modal-figure figcaption {
  margin-top: 0.75rem;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.mp-gallery-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  color: #e5e7eb;
  cursor: pointer;
}

/* ===== Timeline "Cómo trabajamos" ===== */
.mp-steps-section {
  background-color: #ffffff;
}

.mp-steps-timeline {
  position: relative;
  padding-left: 2.75rem;
  list-style: none; /* evitamos cualquier bullet raro */
  margin: 0;
}

.mp-steps-timeline::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--mp-primary), rgba(148,163,184,.2));
}

.mp-step {
  position: relative;
  margin-bottom: 1.75rem;
}

.mp-step:last-child {
  margin-bottom: 0;
}

.mp-step-marker {
  position: absolute;
  left: -0.1rem;
  top: 0.15rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--mp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mp-primary);
}

.mp-step-content {
  padding-left: 1.8rem;
}

.mp-step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mp-step-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #0369a1;
}

.mp-step.is-optional .mp-step-marker {
  border-style: dashed;
}

/* ===== Banner CTA final ===== */
.mp-works-banner-cta {
  padding: 0;
}

.mp-works-banner-inner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 260px;
}

.mp-works-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,.88), rgba(15,23,42,.55));
}

.mp-works-banner-content {
  position: relative;
  padding: 3.75rem 1.5rem;
  color: #f9fafb;
  text-align: center;
}

.mp-works-banner-content .title,
.mp-works-banner-content .subtitle {
  color: #ffffff;
}

.mp-works-banner-content .subtitle {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.mp-works-banner-content .buttons {
  margin-top: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 768px) {
  .mp-constructoras-hero-inner {
    min-height: auto;
    padding: 3rem 1.25rem 3.5rem;
    align-items: flex-end;
  }

  .mp-gallery-modal-dialog {
    margin: 2rem 1rem;
  }

  .mp-works-banner-content {
    padding: 3rem 1.5rem;
  }

  /* Galería un poco más angosta en mobile */
  .mp-works-gallery-item {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .mp-works-gallery-thumb img {
    height: 135px;
  }

  .mp-step-content {
    padding-left: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .mp-works-banner-content {
    padding: 4.5rem 2rem;
  }
}
