/* GENERADO: reglas del generador de informes de la v1 en claro. */
.rp-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 24px; }
.rp-overlay.open { display: flex; animation: drop .3s ease; }
.rp-modal { width: min(1080px, 100%); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); display: flex; flex-direction: column; background: #0c111d;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);  border-top: 2px solid var(--primary); }
.rp-wide { width: min(1280px, 100%); }
.rp-head { display: flex; gap: 24px; align-items: flex-start; padding: 22px 28px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rp-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.rp-x { background: none; border: 0; color: var(--text); font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.rp-x:hover { color: var(--secondary); }
.rp-steps { display: flex; gap: 18px; font: 700 .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; }
.rp-steps .on { color: var(--primary); }
.rp-body { overflow-y: auto; padding: 22px 28px; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(32, 33, 36, 0.135) transparent; }
.rp-foot { display: flex; gap: 14px; justify-content: flex-end; align-items: center; padding: 16px 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rp-progress { margin-right: auto; font-size: .82rem; color: var(--primary); }
.rp-sec { margin-bottom: 26px; }
.rp-sec h3 { font: 700 .74rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.rp-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; }
.rp-row > .field { flex: 1 1 150px; }
.rp-cover { font-size: .8rem; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.rp-cover b { color: var(--text-2); font-weight: 600; }
.rp-cover em { color: #d6245a; font-style: normal; }
.rp-fed { margin-top: 22px; }
.rp-fed-head { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.rp-fed-head .input { max-width: 260px; }
.rp-fed-head b, .rp-count { font: 700 .74rem var(--display); color: var(--primary); letter-spacing: .06em; }
.rp-fed-list { columns: 4 190px; column-gap: 24px; max-height: 210px; overflow-y: auto; padding-right: 6px; }
.rp-fed-list label, .rp-item { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-2); padding: 4px 0; cursor: pointer; break-inside: avoid; }
.rp-fed-list label:hover, .rp-item:hover { color: var(--text); }
.rp-fed-list label, .rp-item { position: relative; }
.rp-fed-list input, .rp-item input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.ck { width: 16px; height: 16px; border: 1px solid rgba(32, 33, 36, 0.315); margin-top: 2px; flex: none; transition: border-color .2s, box-shadow .2s; }
input:checked + .ck { border-color: var(--primary); background: var(--check) center / 13px no-repeat; box-shadow: 0 0 10px rgba(0, 133, 127, .35); }
input:focus-visible + .ck { outline: 2px solid var(--primary); outline-offset: 2px; }
.rp-fed-list label.cap span { text-transform: none; font-weight: 700; color: var(--text); }
.rp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 28px; margin-top: 18px; }
.rp-g-head { position: relative; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 14px; margin-bottom: 8px; overflow: hidden; isolation: isolate;
   }
.rp-g-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.55) grayscale(.2); }
.rp-g-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .35)); }
.rp-g-head b { font: 700 1rem var(--display); flex: 1; }
.rp-g-head span { font: 700 .72rem var(--display); color: var(--primary); }
.rp-g-head .link-arrow { font-size: .74rem; }
.rp-item span small { display: block; color: var(--muted); font-size: .74rem; margin-top: 1px; }
.rp-meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.rv-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; align-self: center; }
.rv-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rv-toc a { font-size: .78rem; color: var(--text-2); }
.rv-toc a:hover { color: var(--primary); }
.rv-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.rv-block h3 { display: flex; gap: 14px; align-items: baseline; font: 700 clamp(1.15rem, 2vw, 1.5rem) var(--display); letter-spacing: -.01em; }
.rv-block h3 span { font-size: .75rem; color: var(--primary); letter-spacing: .1em; }
.rv-note { font-size: .8rem; color: var(--muted); margin-top: 8px; max-width: 900px; }
.rv-kpis { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 18px 0 16px; }
.rv-kpis div { padding: 0 26px 0 0; margin-right: 26px; position: relative; }
.rv-kpis div::after { content: ""; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, rgba(0, 133, 127, .6), transparent); }
.rv-kpis div:last-child::after { display: none; }
.rv-kpis b { display: block; font: 700 clamp(1.25rem, 2.4vw, 1.9rem)/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-kpis span { font-size: .74rem; color: var(--muted); }
.rv-table { max-height: 420px; }
.rv-chart { width: 100%; margin-top: 8px; }
@media (max-width: 640px) { .rp-overlay { padding: 0; } .rp-modal { max-height: 100svh; height: 100svh; clip-path: none; } .rp-head, .rp-body, .rp-foot { padding-left: 16px; padding-right: 16px; } .rp-steps { display: none; } .rp-fed-list { columns: 1; } .rv-kpis div { padding-right: 14px; margin-right: 14px; } }
.rp2 { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; margin-top: 16px; min-height: 0; }
.rp2-nav { display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 0; }
.rp2-nav button { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 56px; border: 0; cursor: pointer; color: var(--text-2); text-align: left;
  font: 700 .86rem 'Inter'; overflow: hidden; isolation: isolate; background: #111827;  transition: color .2s; }
.rp2-nav button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .28; filter: grayscale(.6); transition: opacity .3s; }
.rp2-nav button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45)); }
.rp2-nav button span { flex: 1; }
.rp2-nav button b { font: 700 .7rem var(--display); color: var(--muted); }
.rp2-nav button b.some { color: var(--primary); }
.rp2-nav button:hover { color: var(--text); }
.rp2-nav button.on { color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.rp2-nav button.on img { opacity: .6; filter: none; }
.rp2-panel { min-width: 0; }
.rp2-head { position: relative; display: flex; gap: 18px; align-items: center; padding: 18px 20px; overflow: hidden; isolation: isolate; margin-bottom: 18px;
   }
.rp2-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rp2-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 20%, rgba(255, 255, 255, .55)); }
.rp2-head div { flex: 1; }
.rp2-head h3 { font: 700 1.25rem var(--display); }
.rp2-head p { font-size: .8rem; color: var(--text-2); margin-top: 4px; max-width: 620px; }
.rp-filter { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rp-filter-head { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.rp-filter-head b { font: 700 .74rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.rp-filter-head span { font: 700 .74rem var(--display); color: var(--primary); }
.rp-filter-head .input { max-width: 220px; padding: 6px 0; font-size: .84rem; }
.rp-filter .rp-fed-list { max-height: 170px; }
.rp-hint { font-size: .82rem; color: var(--muted); margin-bottom: 16px; padding-left: 12px; border-left: 2px solid var(--accent); }
.rp2-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 30px; }
.rp2-items .rp-item { padding: 6px 0; }
.rp2-sub { grid-column: 1 / -1; font: 700 .64rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin: 14px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rp2-sub:first-child { margin-top: 0; }
@media (max-width: 760px) { .rp2 { grid-template-columns: 1fr; gap: 14px; } .rp2-nav { flex-direction: row; overflow-x: auto; position: static; } .rp2-nav button { flex: none; height: 46px; } .rp2-items { grid-template-columns: 1fr; } }
.rv-export { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; color: var(--muted); padding: 0 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rv-export > span { font: 700 .62rem var(--display); letter-spacing: .18em; text-transform: uppercase; }
.rv-x { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--text-2); font: 600 .8rem 'Inter'; transition: color .2s; }
.rv-x svg { width: 14px; height: 14px; }
.rv-x:hover { color: var(--primary); }
.rv-x:disabled { color: var(--muted); cursor: progress; }
.rv-views { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 6px; }
.rv-views > span { font: 700 .62rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.rv-views button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); font: 600 .78rem 'Inter'; position: relative; transition: color .2s; }
.rv-views button svg { width: 16px; height: 16px; }
.rv-views button em { font-style: normal; }
.rv-views button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.rv-views button:hover { color: var(--text); }
.rv-views button.on { color: var(--primary); }
.rv-views button.on::after { transform: scaleX(1); }
@media (max-width: 640px) { .rv-views button em { display: none; } .rv-export { border: 0; padding: 0; } }
/* Generador de informes (modal) */
.rp-overlay { background: rgba(32, 33, 36, .45); backdrop-filter: none; }
.rp-modal, .rp2 { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(60, 64, 67, .3); border-top: 0; }
.rp-g-head, .rp2-head, .rp2-nav button { color: var(--text); }
.rp-g-head::before, .rp2-head::before, .rp2-nav button::before { background: var(--bg-soft) !important; }
.rp-g-head img, .rp2-head img, .rp2-nav button img { opacity: .08; }
.ck { border-color: #5f6368; border-radius: 3px; }

