/* ============================================================
   FASE DETALLE — Stylesheet
   ============================================================ */

/* -----------------------------------------------
   PÁGINA BASE
----------------------------------------------- */
.detalle-page {
  padding-top: 80px; /* compensa el navbar fixed */
}

/* -----------------------------------------------
   HERO / ENCABEZADO
----------------------------------------------- */
.detalle-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid #e8edf2;
  background-color: #ffffff;
}


/* Etiqueta Fase */
.fase-tag {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

/* Título principal */
.detalle-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1.3rem;
  text-align: center;
}

/* Descripción introductoria */
.detalle-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* -----------------------------------------------
   MAPA
----------------------------------------------- */
.detalle-mapa {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.mapa-wrapper {
  text-align: center;
}

.mapa-wrapper img {
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  display: block;
}

.mapa-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-style: italic;
}

/* -----------------------------------------------
   METODOLOGÍAS
----------------------------------------------- */
.detalle-metodologias {
  padding: 0;
  background-color: #ffffff;
}

.metodologias-header {
  padding: 4rem 0 3rem;
  background-color: #ffffff;
}

.metodologias-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--text-dark);
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.metodologias-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
  opacity: 0.4;
}

/* Cada bloque de metodología es una sección propia */
.metodo-item {
  padding: 5rem 0;
  border-bottom: 1px solid #eaeff4;
}

.metodo-item:nth-child(even) {
  background-color: #f8fafc;
}

.metodo-item:nth-child(odd) {
  background-color: #ffffff;
}

.metodo-item:last-child {
  border-bottom: none;
}

.metodo-subtitulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 14px;
}

.metodo-subtitulo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.metodo-texto {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
}

.metodo-img-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metodo-img-wrapper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.metodo-img-wrapper:hover img {
  transform: scale(1.04);
}

/* -----------------------------------------------
   ANÁLISIS INTEGRADO
----------------------------------------------- */
.detalle-analisis {
  padding: 4rem 0 5rem;
  background-color: #f4f7f9;
}

.analisis-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--text-dark);
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.analisis-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
  opacity: 0.4;
}

.analisis-texto {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 860px;
  margin-bottom: 0.9rem;
}

.analisis-lista {
  padding-left: 1.3rem;
  margin-bottom: 0;
}

.analisis-lista li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.analisis-lista li::marker {
  color: var(--accent);
}


/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 767.98px) {
  .detalle-hero {
    padding: 2rem 0 1.8rem;
  }

  .detalle-mapa {
    padding: 2rem 0;
  }

  .detalle-metodologias {
    padding: 2.5rem 0 1rem;
  }

  .metodo-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .metodo-img-wrapper img {
    height: 200px;
  }

  .detalle-analisis {
    padding: 2.5rem 0 3rem;
  }
}
