/* ============================================
   FASE3.CSS — La mochila
   Estilos específicos de fase3.html
   ============================================ */

/* Scroll-padding para anclas internas */
html {
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

.fase-content {
  width: 100%;
}

/* --- SECCIÓN 1: PREGUNTAS ESENCIALES --- */

.document-link-area {
  margin-bottom: 2.5rem;
}

.document-link-area p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* Lista de preguntas */
.question-list {
  padding: 1.5rem 2rem;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.question-list p {
  font-family: var(--font-primary);
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.7;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 47, 74, 0.5);
}

.question-list p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.question-number {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-light);
  margin-right: 0.25rem;
}

/* --- SECCIÓN 2: PÍLDORAS FORMATIVAS --- */

.pills-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Bloque individual de cada píldora (título + tweets) */
.pill-block {
  --pill-color: var(--color-primary);
}

.pill-block[data-theme="comunicacion"] {
  --pill-color: #5a9cf6;
}

.pill-block[data-theme="equipo"] {
  --pill-color: #64dfdf;
}

.pill-block[data-theme="tiempo"] {
  --pill-color: #f7c948;
}

.pill-block[data-theme="emocional"] {
  --pill-color: #c77dff;
}

/* Título de la píldora */
h3.pill-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pill-color);
  border: none;
}

/* Fila de tweets */
.tweet-row {
  display: flex;
  gap: 0;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  border-top: 3px solid var(--pill-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tarjeta de tweet individual */
.tweet-card {
  flex: 1;
  padding: 1.5rem;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.tweet-card:last-child {
  border-right: none;
}

.tweet-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pill-color);
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--color-border);
}

.tweet-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
  flex-grow: 1;
}

/* --- SECCIÓN 3: RESPUESTAS --- */

.answers-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.answer-item {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-bg-alt);
  transition: border-color var(--transition);
}

.answer-item:hover {
  border-color: rgba(123, 108, 246, 0.3);
}

.answer-item h3 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.answer-content {
  color: var(--color-text);
  line-height: 1.8;
}

.answer-content p {
  margin-bottom: 0.75rem;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

.answer-content ul,
.answer-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text);
}

.answer-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.answer-content strong {
  color: var(--color-text-heading);
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
  .tweet-row {
    flex-direction: column;
  }

  .tweet-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
  }

  .tweet-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .question-list {
    padding: 1rem 1.25rem;
  }

  .answer-item {
    padding: 1.25rem;
  }

  h3.pill-title {
    font-size: 1.2rem;
  }
}
