/* Páginas de detalle de funcionalidades. Usa los tokens de ../styles.css */

.fx-hero {
  background: linear-gradient(160deg, #170D30 0%, #0F0A1E 55%, #241141 100%);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.fx-back {
  display: table;
  font-size: 13px;
  color: var(--on-dark-soft);
  margin-bottom: 28px;
}
.fx-back:hover { color: var(--gold); }
.fx-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 20px;
}
.fx-hero .eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.fx-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 20px;
}
.fx-hero__lead {
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 62ch;
}

.fx-main { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.fx-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.fx-toc { position: sticky; top: 100px; }
.fx-toc__inner { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--line); padding-left: 16px; }
.fx-toc__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.fx-toc a { font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.fx-toc a:hover { color: var(--accent); }

.fx-intro {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 300;
  max-width: 68ch;
  margin-bottom: 48px;
}

.fx-section { padding: 0; margin-bottom: 56px; scroll-margin-top: 100px; }
.fx-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.fx-section__num { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: var(--accent); }
.fx-section h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--ink);
}
.fx-section__intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 68ch;
  margin-bottom: 8px;
}

.fx-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.fx-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: 0 4px 14px -10px rgba(53,33,81,0.25);
}
.fx-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fx-item h4 { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fx-item p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.fx-new {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
}

.fx-end {
  border-top: 1px solid var(--line-strong);
  padding-top: 32px;
}
.fx-back-link { font-weight: 700; color: var(--accent); }
.fx-back-link:hover { color: var(--ink); }

@media (max-width: 900px) {
  .fx-layout { grid-template-columns: 1fr; gap: 0; }
  .fx-toc { display: none; }
}
@media (max-width: 640px) {
  .fx-list { grid-template-columns: 1fr; }
}
