/* ================================
   ESTILO DEL BOTÓN (PANTALLA)
   ================================ */

.imprimir-boton {
    display: inline-block;
    padding: 10px 16px;
    margin: 12px 0;
    background: rgba(255, 230, 170, 0.18);
    border: 1px solid rgba(255, 210, 120, 0.45);
    border-radius: 8px;
    text-decoration: none;
    color: #f0e6c7;
    font-weight: bold;
    box-shadow:
        0 0 8px rgba(255, 210, 120, 0.3),
        inset 0 0 4px rgba(255, 240, 200, 0.2);
}

.imprimir-boton:hover {
    background: rgba(255, 235, 180, 0.28);
}


/* ==================================
   ESTILOS PARA IMPRESIÓN — UNIFICADO
   ==================================

*/@media print {

    /* Fondo blanco simple */
    html, body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Ocultar elementos interactivos */
    .no-print {
        display: none !important;
    }

    /* El contenedor general NO debe evitar cortes */
    .contenedor-print {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        page-break-inside: auto !important;
    }

    /* Permitir que flujo corte normalmente */
    p, blockquote {
        page-break-inside: auto !important;
    }

    /* Importante: permitir cortes dentro de encabezados también */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Las tablas DEBEN cortarse */
    table, tr, td {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Solo evitar cortes dentro de imágenes */
    img {
        page-break-inside: avoid !important;
    }

    /* Hack: evitar la generación de páginas en blanco */
    * {
        break-before: auto !important;
        break-after: auto !important;
    }
}
