/* ============================================================
   AnabaOffJapan - Estilos de Impresión (Mejorados)
   ============================================================ */

@media print {
    /* --- Print color palette --- */
    :root {
        --print-text: #000;
        --print-bg: #fff;
        --print-muted: #555;
        --print-border: #ccc;
        --print-card-border: #ddd;
    }

    /* --- Reset --- */
    body {
        font-size: 11pt;
        line-height: 1.6;
        color: var(--print-text);
        background: var(--print-bg);
    }

    /* --- Hide non-essential elements --- */
    .back-to-top,
    #scroll-progress,
    .hero,
    .footer-nav,
    .article-footer,
    .btn,
    .read-more,
    .link-grid {
        display: none !important;
    }

    /* --- Page breaks --- */
    .feature-box,
    .route-card,
    .cta-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .article-content h3 {
        page-break-after: avoid;
    }

    /* --- Links: show URL --- */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: var(--print-muted);
        font-weight: normal;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* --- Footer --- */
    .footer {
        background: none !important;
        color: var(--print-text) !important;
        border-top: 1px solid var(--print-border);
        margin-top: 20px;
        padding: 16px 0;
    }

    /* --- Cards --- */
    .feature-card {
        box-shadow: none !important;
        border: 1px solid var(--print-card-border);
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .feature-card::before {
        display: none;
    }

    /* --- Typography adjustments --- */
    h1, h2, h3, h4 {
        color: var(--print-text) !important;
        -webkit-text-fill-color: var(--print-text) !important;
    }

    .stat-number {
        -webkit-text-fill-color: var(--print-text) !important;
    }

    /* --- Images --- */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* --- Remove background patterns --- */
    body::before,
    .welcome-section::before,
    .cta-section::before,
    .cta-section::after {
        display: none !important;
    }
}
