/* ============================================
   Capvital Docs - Print / PDF Styles
   ============================================ */

@media print {
  /* Hide navigation elements */
  .sidebar,
  .sidebar-toggle,
  nav.app-nav,
  .docsify-pagination-container,
  .search,
  .github-corner,
  .cover-main {
    display: none !important;
  }

  /* Full width content */
  .content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  .markdown-section {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Page breaks */
  .markdown-section h1 {
    page-break-before: always;
  }
  .markdown-section h1:first-of-type {
    page-break-before: avoid;
  }
  .markdown-section h2, .markdown-section h3 {
    page-break-after: avoid;
  }
  .markdown-section table, .markdown-section img {
    page-break-inside: avoid;
  }

  /* Ensure images are visible */
  .markdown-section img {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  /* Print header */
  body::before {
    content: 'Manual de Usuario - Capvital';
    display: block;
    text-align: center;
    font-size: 10pt;
    color: #999;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }

  /* Links show URL */
  .markdown-section a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  .markdown-section a[href^="#"]::after,
  .markdown-section a[href^="javascript"]::after {
    content: "";
  }

  /* Font size adjustments */
  body {
    font-size: 11pt;
    color: #000;
  }
  .markdown-section h1 { font-size: 20pt; }
  .markdown-section h2 { font-size: 16pt; }
  .markdown-section h3 { font-size: 13pt; }
}
