/* ============================================================
   ia.css — Estilos para las páginas de contenido
   (historia.html, conceptos.html, etica.html, glosario.html, proyectos.html)
   ============================================================ */

/* Layout de página interior */
.page-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.7;
}

/* Contenido principal */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
}

/* Grids de proyectos mejorados */
.concepts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

/* Project card específico para página de proyectos */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-header {
  margin-bottom: 16px;
}

.project-card-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.status-completed {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-dev {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-collab {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.project-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.project-card-body {
  flex: 1;
  margin-bottom: 16px;
}

.project-card-body p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.6;
}

.project-what strong,
.project-problem strong {
  color: var(--text);
  font-weight: 500;
}

.project-desc-short {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.project-tags {
  margin-bottom: 16px;
}

/* Acciones de proyecto (botones GitHub y Demo) */
.project-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.btn-project:hover:not(:disabled) {
  border-color: #444;
  background: #252525;
}

.btn-project svg {
  opacity: 0.7;
}

.btn-project.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Timeline (Historia) */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.timeline-year {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 680px;
}

/* Cards de conceptos */
.concept-card { }
.concept-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.concept-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.concept-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Comparación (tabla) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 48px;
}
.compare-table th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  line-height: 1.6;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table tr:hover td { background: #161616; }

/* Ética — lista de sesgos */
.ethics-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.ethics-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ethics-num {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  width: 24px;
  padding-top: 2px;
}
.ethics-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ethics-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* Glosario */
.glossary-list { display: flex; flex-direction: column; gap: 0; }
.glossary-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.glossary-item:last-child { border-bottom: none; }
.glossary-term {
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  padding-top: 2px;
}
.glossary-def {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Subtítulos de sección */
.sub-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sub-heading:first-child { margin-top: 0; }

/* NOTA: Los estilos de projects-placeholder fueron eliminados
   ya que los proyectos placeholder "Asignatura X" e "Y" fueron removidos */

@media (max-width: 768px) {
  .page-hero { padding: 40px 20px 32px; }
  .page-hero h1 { font-size: 32px; }
  .content-wrap { padding: 40px 20px; }
  .concepts-grid { grid-template-columns: 1fr; }
  .glossary-item { grid-template-columns: 1fr; gap: 6px; }
  .project-actions { flex-direction: column; }
  .btn-project { justify-content: center; }
}
