/* Presentación: el texto vive sobre la escena, con un velo que asegura el contraste. */
.presenting .brand, .presenting .panel, .presenting .dock { display: none; }
.presenting.exploring .panel { display: block; }
.presenting.exploring .dock { display: grid; }
.presenting.exploring .brand { display: block; }
.presenting.exploring .note, .presenting.exploring .present { display: none; }
.exploring .deck-content { display: none; }
.exploring .deck { background: none; }
.exploring .deck-hud, .exploring .deck-progress { display: none; }

.deck {
  --edge: clamp(24px, 4vw, 78px);
  position: fixed; inset: 0; pointer-events: none; display: flex; align-items: center; padding: var(--edge);
  background: linear-gradient(90deg, rgb(9 13 26 / 0.94) 0%, rgb(9 13 26 / 0.86) 32%, rgb(9 13 26 / 0) 56%);
}
.deck[data-side="right"] { justify-content: flex-end; transform-origin: right; background: linear-gradient(270deg, rgb(9 13 26 / 0.94) 0%, rgb(9 13 26 / 0.86) 32%, rgb(9 13 26 / 0) 56%); }
.deck[data-side="center"] { justify-content: center; text-align: center; background: radial-gradient(ellipse at center, rgb(9 13 26 / 0.88) 0%, rgb(9 13 26 / 0.62) 55%, rgb(9 13 26 / 0.35) 100%); }

.deck-content { width: min(41vw, 780px); display: grid; gap: clamp(10px, 1.5vw, 26px); }
.deck[data-side="center"] .deck-content { width: min(80vw, 1300px); justify-items: center; }
.deck-content > * { animation: deck-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.deck-content > :nth-child(2) { animation-delay: 70ms; }
.deck-content > :nth-child(3) { animation-delay: 140ms; }
.deck-content > :nth-child(4) { animation-delay: 210ms; }
.deck-content > :nth-child(n + 5) { animation-delay: 280ms; }
@keyframes deck-in { from { opacity: 0; transform: translateY(22px); } }

.deck-chapter { color: var(--yellow); font: 700 clamp(11px, 0.95vw, 17px)/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.deck h2 { font: 700 clamp(34px, 4.6vw, 90px)/0.98 var(--display); text-transform: uppercase; text-wrap: balance; }
.deck[data-side="center"] h2 { font-size: clamp(40px, 6vw, 118px); }
.deck-lead { font-size: clamp(15px, 1.45vw, 27px); line-height: 1.35; color: #dfe3ee; max-width: 36ch; }

.deck-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.deck-stats div { display: block; border-top: 3px solid var(--yellow); background: rgb(255 255 255 / 0.05); padding: clamp(8px, 1vw, 18px); }
.deck-stats dt { font: 700 clamp(30px, 3.6vw, 70px)/1 var(--display); color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck-stats dd { margin-top: 6px; font: 500 clamp(12px, 1vw, 18px)/1.3 var(--body); white-space: normal; color: var(--ink-dim); }

.deck-table { border-collapse: collapse; width: 100%; font-size: clamp(13px, 1.35vw, 25px); }
.deck-table th { text-align: left; color: var(--ink-dim); font: 600 0.7em var(--mono); text-transform: uppercase; padding: 8px 10px; }
.deck-table td { border-top: 1px solid var(--line); padding: clamp(8px, 0.9vw, 16px) 10px; font-variant-numeric: tabular-nums; }
.deck-table tbody tr:last-child td { color: var(--yellow); font-weight: 700; }

.deck-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 0.9vw, 15px); }
.deck-steps li { border-left: 4px solid var(--blue); padding-left: 14px; font-size: clamp(14px, 1.35vw, 25px); line-height: 1.3; visibility: hidden; opacity: 0; transform: translateX(-18px); transition: opacity 420ms ease, transform 420ms ease, visibility 420ms; }
.deck-steps li.seen { visibility: visible; opacity: 1; transform: none; }
.deck-source { color: var(--ink-dim); font: 500 clamp(13px, 0.9vw, 17px)/1.45 var(--mono); }
.deck-footer { color: var(--ink-dim); font-size: clamp(13px, 1.2vw, 22px); }

.deck-hud { position: absolute; left: var(--edge); right: var(--edge); bottom: 18px; display: flex; justify-content: space-between; gap: 16px; font: 600 clamp(13px, 0.9vw, 16px) var(--mono); color: var(--ink-dim); }
.deck-tag { background: var(--glass); padding: 4px 10px; }
.deck-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--yellow); transform-origin: left; transition: transform 500ms ease; }
.deck-curtain { position: fixed; inset: 0; background: #000; z-index: 5; }

@media (max-width: 760px) {
  .deck, .deck[data-side="right"] { align-items: flex-end; padding-bottom: 52px; background: linear-gradient(0deg, rgb(9 13 26 / 0.95) 0%, rgb(9 13 26 / 0.85) 55%, rgb(9 13 26 / 0) 85%); }
  .deck-content { width: 100%; max-height: 74vh; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-content > * { animation: none; }
  .deck-steps li, .deck-progress { transition: none; }
}
