/* ============================================
   FASE4.CSS — Problema-Solución
   Estilos específicos de fase4.html
   ============================================ */

.fase-content {
  width: 100%;
}

/* --- SECCIÓN 1: PDF EMBEBIDO --- */

.pdf-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.pdf-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.fallback-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.fallback-link:hover {
  color: var(--color-primary-light);
}

/* --- SECCIÓN 2: APARTADOS DEL DOCUMENTO --- */

.document-sections-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Títulos de sección con borde lateral */
h3.section-title {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-heading);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  line-height: 1.3;
}

/* Tarjeta de sección */
.document-section {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.document-section:hover {
  border-color: rgba(123, 108, 246, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Cuerpo de la sección */
.section-body {
  padding: 1.5rem;
  line-height: 1.75;
  color: var(--color-text);
  text-align: justify;
}

.section-body p {
  margin-bottom: 0.75rem;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body strong {
  color: var(--color-secondary);
}

/* Imagen dentro de sección */
.section-img {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius-sm);
}

/* Imagen Kanban / Trello */
.kanban-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.kanban-img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.kanban-img:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(123, 108, 246, 0.25);
}

.kanban-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.kanban-figure figcaption a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kanban-figure figcaption a:hover {
  color: var(--color-secondary);
}

/* Lista de miembros */
.members-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.members-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(42, 47, 74, 0.5);
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-weight: 500;
  padding-left: 1.25rem;
  position: relative;
}

.members-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.members-list li:last-child {
  border-bottom: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .pdf-container {
    aspect-ratio: 4 / 3;
  }

  h3.section-title {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    padding-left: 0.75rem;
  }

  .section-body {
    padding: 1.25rem;
  }

  .section-img {
    max-width: 200px;
  }
}
