/* NTY · diálogo de selección de secciones para descargar PDF / PPT (viz/nty-secciones.js) */
.sec-back { position: fixed; inset: 0; z-index: 400; background: rgba(20,22,28,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: secFade .2s both; }
.sec-dlg { width: min(720px, 100%); max-height: min(780px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.28); overflow: hidden; animation: secPop .28s cubic-bezier(.2,.9,.3,1) both; font-family: var(--font, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif); color: var(--text, #1d1d1f); }
.sec-hdr { display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px 8px; }
.sec-kicker { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent, #557ba5); }
.sec-hdr h2 { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.sec-hdr p { margin: 6px 0 0; font-size: 13px; color: var(--muted, #6e6e73); }
.sec-x { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 50%; background: #f1f3f6; color: #6e6e73; font-size: 20px; line-height: 1; cursor: pointer; }
.sec-x:hover { background: #e4e8ee; }
.sec-presets { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 28px 6px; }
.sec-chip { border: 1px solid rgba(0,0,0,.1); background: #fff; border-radius: 100px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text, #1d1d1f); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sec-chip:hover { background: #f3f6fb; }
.sec-chip.on { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.sec-list { overflow: auto; padding: 8px 28px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; align-content: start; }
.sec-group { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-group legend { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted, #6e6e73); padding: 0 0 6px; }
.sec-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: start; padding: 8px 10px; border-radius: 12px; cursor: pointer; position: relative; transition: background .15s; }
.sec-item:hover { background: #f5f7fa; }
.sec-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sec-box { width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid #c3c8d0; background: #fff; display: grid; place-items: center; margin-top: 1px; transition: all .15s; }
.sec-box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.sec-item input:checked + .sec-box { background: var(--accent, #557ba5); border-color: var(--accent, #557ba5); }
.sec-item input:checked + .sec-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.sec-item input:focus-visible + .sec-box { outline: 2px solid #8BA5C4; outline-offset: 2px; }
.sec-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-txt b { font-size: 13.5px; font-weight: 600; }
.sec-txt em { font-style: normal; font-size: 11.5px; color: var(--muted, #6e6e73); line-height: 1.35; }
.sec-item.off { opacity: .5; cursor: not-allowed; } .sec-item.off input { cursor: not-allowed; }
.sec-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-top: 1px solid rgba(0,0,0,.07); background: #fafbfc; }
.sec-count { font-size: 12.5px; color: var(--muted, #6e6e73); } .sec-count b { color: var(--text, #1d1d1f); }
.sec-actions { display: flex; gap: 10px; }
.sec-btn { border: 0; border-radius: 100px; padding: 10px 20px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #eceff3; color: var(--text, #1d1d1f); }
.sec-btn:hover { background: #e1e5ea; }
.sec-btn.primary { background: #1d1d1f; color: #fff; }
.sec-btn.primary:hover { background: #000; }
.sec-btn:disabled { opacity: .4; cursor: not-allowed; }
.sec-url { padding: 0 28px 14px; background: #fafbfc; font-size: 11px; color: var(--muted, #6e6e73); min-height: 12px; overflow-wrap: anywhere; }
.sec-url code { background: #eef1f5; border-radius: 6px; padding: 2px 6px; font-size: 11px; }
body.sec-open { overflow: hidden; }
@keyframes secFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes secPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .sec-list { grid-template-columns: 1fr; } .sec-hdr, .sec-presets, .sec-list, .sec-foot, .sec-url { padding-left: 18px; padding-right: 18px; } .sec-foot { flex-direction: column; align-items: stretch; } .sec-actions { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .sec-back, .sec-dlg { animation: none; } }
@media print { .sec-back { display: none !important; } }
