/* ==========================================================================
   pages.css — Estilos para páginas internas (casos de estudio y landings)
   Depende de los tokens definidos en modern.css (:root)
   ========================================================================== */

/* ---------- Migas de pan ---------- */
.breadcrumb {
  padding: 110px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}
.breadcrumb [aria-current="page"] { color: var(--text-soft); }

/* ---------- Cabecera de página interna ---------- */
.page-hero {
  padding: 32px 0 56px;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 14px 0 18px;
  max-width: 22ch;
}
.page-hero .lede {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 68ch;
}
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- Ficha de metadatos del proyecto ---------- */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}
.cs-meta > div {
  background: var(--surface);
  padding: 18px 20px;
}
.cs-meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cs-meta dd { font-weight: 600; font-size: 0.98rem; }

/* ---------- Imagen destacada ---------- */
.cs-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin: 40px 0;
}
.cs-shot img { display: block; width: 100%; height: auto; }
.cs-shot figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- Cuerpo de texto ---------- */
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 52px 0 16px;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--text-soft);
}
.prose p { color: var(--text-soft); margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-soft);
}
.prose ul li::before {
  content: "▸";
  position: absolute;
  left: 6px;
  color: var(--accent);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Rejilla de funcionalidades ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feat-card .skill-icon { margin-bottom: 12px; }
.feat-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--text); }
.feat-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- Bloque CTA ---------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  margin: 64px 0 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-soft); max-width: 56ch; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Navegación entre proyectos ---------- */
.cs-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.cs-nav a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cs-nav a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cs-nav span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cs-nav strong { color: var(--text); font-family: var(--font-heading); }

/* ---------- FAQ (landing geo) ---------- */
.faq-list { max-width: 72ch; margin-top: 24px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p {
  padding: 0 22px 20px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Utilidades ---------- */
.chip-row.tight { margin-top: 14px; }

@media (max-width: 640px) {
  .breadcrumb { padding-top: 96px; }
  .cta-band { padding: 28px 20px; }
}
