#planoOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#planoOverlay.show {
  display: flex;
}
/* ========================================
   SECCIÓN: PROYECTO
   Agregar al final del archivo CSS existente
   ======================================== */

/* --- Hero --- */
.pro-hero {
  position: relative;
  padding: 96px 0 64px;
  background: url("../images/proyecto-hero.webp") center/cover no-repeat;
  overflow: hidden;
}

.pro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 64, 117, 0.9) 0%, rgba(13, 55, 82, 0.78) 55%, rgba(13, 55, 82, 0.55) 100%);
}

.pro-hero .container {
  position: relative;
  z-index: 1;
}

.pro-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

.pro-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}

.pro-hero__desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}

/* Pills variantes */
.pill--dark {
  background: var(--primary2);
  color: var(--primary);
}

.pill--soft {
  background: rgba(13, 55, 82, 0.08);
  color: var(--primary2);
}

/* Grid descripción + beneficios */
.proyecto-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.proyecto-desc {
  align-self: start;
}

/* Beneficios */
.proyecto-beneficios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beneficio-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.beneficio-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(7, 64, 117, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beneficio-icon svg {
  display: block;
}

.beneficio-item strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary2);
  display: block;
}

.beneficio-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

/* ===== Etapas ===== */
.proyecto-etapas-card {
  margin-top: 0;
}

.etapas-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: flex-start;
  gap: 0;
}

.etapa-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Línea conectora horizontal entre dots */
.etapa-connector {
  position: absolute;
  top: 13px; /* mitad del dot (26px / 2) */
  left: 50%;
  width: 100%;
  height: 3px;
  z-index: 0;
}

.etapa-connector--done    { background: #22c55e; }
.etapa-connector--pending { background: rgba(15, 23, 42, 0.12); }

/* Dot */
.etapa-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.etapa-dot--done   { background: #22c55e; border-color: #16a34a; }
.etapa-dot--active { background: var(--primary); border-color: #cc9f00; box-shadow: 0 0 0 5px rgba(255, 210, 1, 0.22); }
.etapa-dot--next   { background: #e2e8f0; border-color: #cbd5e1; }

/* Texto debajo del dot */
.etapa-label {
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.etapa-label strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary2);
}

/* Badges de estado */
.etapa-badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.etapa-badge--done   { background: #dcfce7; color: #166534; }
.etapa-badge--active { background: rgba(255, 210, 1, 0.18); color: #92400e; }
.etapa-badge--next   { background: rgba(15, 23, 42, 0.07); color: var(--muted); }
.etapa-badge--soon   { background: rgba(13, 55, 82, 0.07); color: var(--primary2); }

.etapa-dot--soon { background: #fff; border-color: #cbd5e1; border-style: dashed; }

/* ===== Mapa ===== */
.mapa-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 300px;
}

.mapa-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Plano ===== */
.plano-wrap {
  position: relative;
}

.plano-img-general {
  width: 100%;
  border-radius: 14px;
  display: block;
  cursor: zoom-in;
}

/* ===== Modal plano general (zoom / pan) ===== */
#masterplanOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#masterplanOverlay.active {
  display: flex;
}

.masterplan-modal {
  position: relative;
  width: 94vw;
  height: 90vh;
  background: #0b1b2b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.masterplan-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.masterplan-img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.masterplan-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

.masterplan-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.masterplan-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.mp-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary2);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-btn:hover {
  background: #fff;
}

.mp-btn--reset {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.plano-overlay-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(13, 55, 82, 0.75);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .proyecto-intro {
    grid-template-columns: 1fr;
  }

  .etapas-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .etapa-connector {
    display: none;
  }
}

@media (max-width: 480px) {
  .etapas-track {
    grid-template-columns: 1fr 1fr;
  }
}