/* Estilos básicos para PDF */ @page { size: A4; margin: 2cm; } body { font-family: "Roboto", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; font-size: 12pt; line-height: 1.5; } h1, h2, h3, h4, h5, h6 { color: #3f51b5; /* Color indigo como tu tema */ font-weight: 400; margin-top: 1.5em; } h1 { font-size: 24pt; page-break-before: always; } h2 { font-size: 20pt; } h3 { font-size: 16pt; } a { color: #3f51b5; text-decoration: none; } pre, code { font-family: "Roboto Mono", SFMono-Regular, Consolas, Menlo, monospace; font-size: 10pt; background-color: #f5f5f5; padding: 0.2em 0.4em; border-radius: 3px; } pre { padding: 1em; overflow: auto; page-break-inside: avoid; } table { border-collapse: collapse; width: 100%; margin: 1em 0; } table, th, td { border: 1px solid #ddd; } th, td { padding: 0.5em; text-align: left; } th { background-color: #f5f5f5; } img { max-width: 100%; height: auto; } /* Evitar saltos de página en elementos importantes */ pre, blockquote, table, figure { page-break-inside: avoid; } /* Asegurar que los encabezados no queden al final de la página */ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } /* Estilo para admonitions/notas */ .admonition { margin: 1em 0; padding: 0.5em 1em; border-left: 4px solid #3f51b5; background-color: #e8eaf6; page-break-inside: avoid; } .admonition-title { font-weight: bold; }