/* ALL IN · deck.css — layout de deck de scroll vertical (usar junto a brand.css) */

.deck {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* Portada */
.deck-cover {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 56px 0 48px;
  border-bottom: 1.5px solid var(--ink);
}
.deck-cover h1 {
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.92;
  margin: 0;
}
.deck-cover .deck-meta { margin-top: 10px; }

.deck-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Ficha del documento: quién lo hizo, cuándo y de qué tipo es (obligatoria en todo documento) */
.doc-ficha {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
}
.doc-ficha-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(26, 25, 22, 0.28);
  border-radius: 3px;
  padding: 3px 9px;
}
.doc-ficha-key { color: var(--muted); margin-right: 6px; }

.doc-colophon {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(26, 25, 22, 0.4);
  color: var(--muted);
  text-transform: uppercase;
}

/* Secciones */
.deck-section {
  padding: 64px 0;
  border-bottom: 1.5px dashed rgba(26, 25, 22, 0.4);
}
.deck-section:last-of-type { border-bottom: none; }
.deck-section h2 { font-size: clamp(28px, 4.5vw, 44px); }

/* Cifras grandes */
.deck-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
  margin: 28px 0 8px;
}
.kpi .kpi-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
}
.kpi .kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Frase editorial de golpe */
.deck-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0;
}

/* Listas con oficio */
.deck-list { padding-left: 0; margin: 0; list-style: none; }
.deck-list li { padding: 14px 0; border-bottom: 1px solid rgba(26, 25, 22, 0.25); }
.deck-list li:last-child { border-bottom: none; }

/* Cierre */
.deck-footer {
  padding: 56px 0 72px;
}
.deck-footer .deck-meta { margin-top: 18px; }

/* ── Impresión / exportar a PDF (Cmd+P) ─────────────────────────
   Fondo blanco para ahorrar tinta, portada en página propia, sin grano
   ni sombras, y el rojo de pills/sellos se conserva. */
@media print {
  body {
    background: #fff;
    font-size: 11.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .paper-grain::before { display: none; }

  .deck { max-width: none; padding: 0; }

  .deck-cover {
    min-height: auto;
    padding: 48px 0 40px;
    break-after: page;
  }
  .deck-cover h1 { font-size: 34pt; }

  .deck-section { padding: 26px 0; }
  .deck-section h2 { font-size: 19pt; }
  .deck-footer { padding: 26px 0; }

  .card, .btn { box-shadow: none; }
  .card, .kpi, .deck-list li, .deck-quote, .deck-kpis, .doc-ficha { break-inside: avoid; }
  .kpi .kpi-number { font-size: 34pt; }

  /* El gradiente de .text-ai no imprime bien: vuelve a tinta */
  .text-ai {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--ink);
  }

  a { text-decoration: none; }
  .btn { display: none; } /* botones de acción no tienen sentido en papel */
}
