/* Arma tu periódico */
.np-builder { max-width: 1180px; margin: 0 auto 18px; padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 24, 40, .05)); }
.np-b-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.np-b-head h1 { font-size: 24px; font-weight: 750; margin: 0 0 4px; color: var(--ink); }
.np-b-head p { margin: 0; color: var(--muted); max-width: 70ch; font-size: 14px; }
.np-pdf { display: inline-flex; align-items: center; gap: 8px; }
.np-b-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.np-b-row label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.np-b-row label span { font-size: 12px; font-weight: 600; color: var(--muted); }
.np-b-row select, .np-b-row input[type="date"] { font: inherit; font-size: 14px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 100%; }
.np-b-secs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.np-chip { position: relative; cursor: pointer; }
.np-chip input { position: absolute; opacity: 0; pointer-events: none; }
.np-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: var(--panel); transition: all .15s; }
.np-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.np-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.np-status { margin: 10px 0 0; font-size: 13px; color: var(--brand); font-weight: 600; }

/* El periódico */
.np-wrap { padding-bottom: 30px; }
.paper { --np-ink: #141414; --np-rule: #1a1a1a; --np-soft: #5b5650; max-width: 1180px; margin: 0 auto; padding: 26px 34px 22px; background: #f8f5ee; color: var(--np-ink); font-family: "Source Serif 4", Georgia, "Times New Roman", serif; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 50px rgba(0, 0, 0, .14); border-radius: 4px; background-image: radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px); background-size: 3px 3px; }
.paper a { color: inherit; text-decoration: none; }
.paper a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.np-mast { text-align: center; margin-bottom: 18px; }
.np-mast-top, .np-mast-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--np-soft); padding: 6px 0; }
.np-mast-top { border-bottom: 1px solid var(--np-rule); }
.np-mast-top small { text-transform: none; letter-spacing: 0; opacity: .7; }
.np-date { font-weight: 700; color: var(--np-ink); }
.np-title { font-family: "UnifrakturMaguntia", "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(40px, 7vw, 88px); line-height: 1.05; margin: 10px 0 8px; color: #0d0d0d; letter-spacing: .01em; }
.np-mast-bot { border-top: 3px double var(--np-rule); border-bottom: 1px solid var(--np-rule); }
.np-empty { text-align: center; padding: 60px 0; font-size: 18px; color: var(--np-soft); }

.np-a h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0 0 6px; color: #0d0d0d; }
.np-meta { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--np-soft); }
.np-meta b { color: #8a1c1c; font-weight: 700; }
.np-by { margin: 0; font-size: 12.5px; line-height: 1.55; color: #2b2723; }
.np-by em { font-style: italic; color: var(--np-soft); }
.np-by span { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; white-space: nowrap; }
.np-by .flag { width: 13px; height: 10px; border-radius: 1px; filter: saturate(.85); }
.np-by .np-more { font-style: italic; color: var(--np-soft); }
.np-url { margin: 4px 0 0; font: 10px/1.3 ui-monospace, Menlo, Consolas, monospace; color: #8b857d; display: none; word-break: break-all; }
.np-a.is-breaking h3::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b91c1c; margin-right: 8px; vertical-align: .2em; }
.np-fig { margin: 0 0 10px; overflow: hidden; background: #e7e1d4; }
.np-fig img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; filter: grayscale(.25) contrast(1.05); }

.np-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--np-rule); padding-bottom: 16px; }
.np-lead { padding-right: 22px; border-right: 1px solid var(--np-rule); }
.np-lead h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; line-height: 1.07; margin-bottom: 10px; }
.np-lead .np-by { font-size: 13.5px; }
.np-side { padding-left: 22px; display: flex; flex-direction: column; }
.np-side .np-a + .np-a { border-top: 1px solid #b9b2a6; padding-top: 12px; margin-top: 12px; }
.np-s-front-img h3 { font-size: 22px; }
.np-side h3, .np-row h3 { font-size: 19px; }
.np-s-front-img .np-fig img { max-height: 190px; }
.np-lead-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #b9b2a6; }
.np-lead-more .np-a + .np-a { border-left: 1px solid #b9b2a6; padding-left: 18px; }
.np-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--np-rule); }
.np-row .np-a { padding: 14px 18px; }
.np-row .np-a:first-child { padding-left: 0; }
.np-row .np-a:last-child { padding-right: 0; }
.np-row .np-a + .np-a { border-left: 1px solid #b9b2a6; }

.np-sec { margin-top: 22px; break-inside: auto; }
.np-sec-h { margin: 0 0 12px; border-top: 4px solid var(--np-rule); border-bottom: 1px solid var(--np-rule); padding: 5px 0 4px; display: flex; align-items: center; }
.np-sec-h span { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.np-cols { column-count: 3; column-gap: 30px; column-rule: 1px solid #b9b2a6; }
.np-cols .np-a { break-inside: avoid; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dotted #b9b2a6; }
.np-s-sec-top h3 { font-size: 21px; }
.np-s-brief h3 { font-size: 16.5px; }
.np-foot { margin-top: 22px; padding-top: 8px; border-top: 3px double var(--np-rule); font-size: 11px; color: var(--np-soft); text-align: center; font-style: italic; }
.paper[dir="rtl"] .np-lead { padding-right: 0; padding-left: 22px; border-right: 0; border-left: 1px solid var(--np-rule); }
.paper[dir="rtl"] .np-side { padding-left: 0; padding-right: 22px; }

@media (max-width: 900px) {
    .paper { padding: 16px; }
    .np-front { grid-template-columns: 1fr; }
    .np-lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--np-rule); padding-bottom: 14px; margin-bottom: 14px; }
    .np-side { padding-left: 0; }
    .np-row, .np-lead-more { grid-template-columns: 1fr; }
    .np-lead-more .np-a + .np-a { border-left: 0; padding-left: 0; }
    .np-row .np-a { padding: 12px 0; } .np-row .np-a + .np-a { border-left: 0; border-top: 1px solid #b9b2a6; }
    .np-cols { column-count: 1; }
    .np-mast-top, .np-mast-bot { justify-content: center; text-align: center; }
}
@media (min-width: 901px) and (max-width: 1200px) { .np-cols { column-count: 2; } }

/* Logo de la marca, en negro como en un periódico */
.np-logo { display: flex; justify-content: center; margin: 14px 0 0; line-height: 0; }
.np-logo img { height: 38px !important; width: auto !important; max-width: none !important; max-height: none !important; filter: brightness(0) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.np-logo .logo-dark { display: none !important; }
.np-logo .logo-light, .np-logo .logo-any { display: inline-block !important; }
.np-logo .wordmark { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.np-logo .wordmark span { color: #111 !important; }
.np-title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.np-logo-big { margin: 4px 0 0; }
.np-logo-big img { height: clamp(48px, 7vw, 84px) !important; max-width: min(92%, 720px) !important; }
.np-logo-big .wordmark { font-size: clamp(46px, 7vw, 86px); }
.np-edition { font-family: "UnifrakturMaguntia", "Playfair Display", Georgia, serif; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.05; }
.np-logo-sm { display: block; margin: 0 0 6px; }
.np-logo-sm img { height: 18px !important; }
.np-logo-sm .wordmark { font-size: 15px; }

/* PDF / impresión: solo el periódico */
@media print {
    @page { margin: 10mm; }
    .np-builder, .statusbar, .side, .top, .tabbar, .install-banner, .consent, .skip, .side-scrim { display: none !important; }
    html, body, .app, .app-main, .app-scroll, .page { background: #fff !important; height: auto !important; min-height: 0 !important; overflow: visible !important; display: block !important; position: static !important; }
    .page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    .np-wrap { padding: 0; }
    .paper { max-width: none; box-shadow: none; border-radius: 0; padding: 0; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .np-logo-big img { height: 70px !important; } .np-edition { font-size: 38px; }
    .np-url { display: block; }
    .np-front { grid-template-columns: 2fr 1fr; }
    .np-lead { padding-right: 18px; border-right: 1px solid var(--np-rule); border-bottom: 0; margin-bottom: 0; }
    .np-side { padding-left: 18px; }
    .np-row, .np-lead-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .np-lead-more .np-a + .np-a { border-left: 1px solid #b9b2a6; padding-left: 14px; }
    .np-row .np-a { padding: 12px 14px; } .np-row .np-a + .np-a { border-left: 1px solid #b9b2a6; border-top: 0; }
    .np-cols { column-count: 3; }
    .np-mast-top, .np-mast-bot { justify-content: space-between; }
    .np-a, .np-fig { break-inside: avoid; }
    .np-sec-h { break-after: avoid; }
    .paper a { text-decoration: none !important; }
}
