/* ==========================================================================
   SICEJ · Interoperabilidad (RENIEC / SUNARP) — SIMULADA
   ========================================================================== */
.ixbtn { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .85rem .4rem .45rem; border: 0; border-radius: 14px; color: #fff; text-align: left; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #258269, #3fefc0 60%, #67f3ce); box-shadow: 0 10px 20px -12px rgba(27, 134, 105, .9), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s, box-shadow .25s, filter .2s; white-space: nowrap; }
.ixbtn--j { background: linear-gradient(120deg, #12452e, #1d7449 60%, #2f9a63); box-shadow: 0 10px 20px -12px rgba(26, 112, 73, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ixbtn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); animation: ixsheen 3.6s 1s infinite; }
.ixbtn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ixbtn__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.ixbtn__t { display: flex; flex-direction: column; line-height: 1.1; } .ixbtn__t b { font-size: .86rem; letter-spacing: .1em; } .ixbtn__t small { font-size: .66rem; opacity: .85; }
.ixbtn__live { width: 9px; height: 9px; border-radius: 50%; background: #5fe3a0; box-shadow: 0 0 0 0 rgba(95, 227, 160, .7); animation: ixlive 1.8s infinite; margin-left: .2rem; }

.modal__panel--lg { width: min(100%, 940px); }
.ix__head { position: relative; isolation: isolate; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; color: #fff; background: linear-gradient(105deg, #14563e, #2bcaa0 55%, #3fefc0); }
.modal--ix[data-kind="sunarp"] .ix__head { background: linear-gradient(105deg, #082719, #1a7049 55%, #35a96f); }
.ix__head-tex { position: absolute; inset: 0; z-index: -1; background-image: var(--tex-rosette); background-size: 88px; }
.ix__logo { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: 1.3rem; }
.ix__ttl { flex: 1; min-width: 0; } .ix__ttl small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; } .ix__ttl h2 { font-size: 1.2rem; overflow-wrap: anywhere; color: #fff; }
.ix__ttl h2 span { font-weight: 500; opacity: .9; font-size: .95em; }
.ix__head .icon-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.ix__sim { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 1.2rem; background: #f1fae1; color: #405c0f; font-size: .8rem; border-bottom: 1px solid #d0e5ab; }
.ix__sim .i { margin-top: .15rem; flex: none; }
.ix__body { padding: 1.3rem 1.3rem 1.4rem; }
#ix-panel { overflow-y: auto; }

/* flujo de consulta */
.ixf { display: flex; align-items: center; justify-content: center; gap: .3rem; margin: .4rem 0 1.4rem; }
.ixf__node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; width: 112px; flex: none; }
.ixf__node span { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; font-size: 1.6rem; color: #fff; background: linear-gradient(145deg, var(--r-500), var(--r-800)); box-shadow: 0 12px 24px -12px rgba(26, 112, 73, .9); }
.ixf__node--m span { background: linear-gradient(145deg, #3fefc0, #1b8669); }
.ixf__node--z span { background: linear-gradient(145deg, #1f9d68, #0c5a3a); }
.modal--ix[data-kind="sunarp"] .ixf__node--z span { background: linear-gradient(145deg, #96b75d, #5e7b2b); }
.ixf__node span::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--r-300); opacity: 0; animation: ixring 2.4s infinite; }
.ixf__node--m span::after { animation-delay: .4s; border-color: #97f7dd; } .ixf__node--z span::after { animation-delay: .8s; border-color: #5fe3a0; }
.ixf__node b { font-size: .9rem; letter-spacing: .12em; color: var(--r-800); } .ixf__node small { font-size: .66rem; color: var(--muted); line-height: 1.2; }
.ixf__link { position: relative; flex: 1; max-width: 120px; height: 2px; margin-bottom: 2.2rem; background: repeating-linear-gradient(90deg, var(--r-300) 0 6px, transparent 6px 11px); }
.ixf__link--b { background: repeating-linear-gradient(90deg, #97f7dd 0 6px, transparent 6px 11px); }
.ixf__link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: ixpkt 1.6s linear infinite; }
.ixf__link i:nth-child(2) { animation-delay: .5s; } .ixf__link i:nth-child(3) { animation-delay: 1s; }
.ixf__link--b i { animation-direction: reverse; background: #5fe3a0; box-shadow: 0 0 10px #5fe3a0; }

.ixp { height: 8px; border-radius: 999px; background: var(--r-100); overflow: hidden; margin-bottom: 1.1rem; }
.ixp i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--r-600), var(--gold), var(--r-600)); background-size: 200% 100%; animation: ixbar 1.2s linear infinite; transition: width .5s cubic-bezier(.3, 1, .4, 1); }
.ixs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ixs { display: flex; align-items: center; gap: .8rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; opacity: .55; transition: .35s; }
.ixs b { display: block; font-size: .9rem; } .ixs small { color: var(--muted); font-size: .76rem; } .ixs > div { flex: 1; min-width: 0; }
.ixs__dot { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); color: transparent; transition: .3s; }
.ixs__dot .i { width: .95rem; height: .95rem; stroke-width: 3; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.ixs__spin { position: absolute; inset: -2px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--r-500); opacity: 0; }
.ixs__ms { font-family: var(--font-mono); font-size: .75rem; color: var(--ok); font-weight: 700; min-width: 3.5rem; text-align: right; }
.ixs.on { opacity: 1; border-color: var(--r-300); background: var(--r-50); transform: translateX(4px); } .ixs.on .ixs__spin { opacity: 1; animation: spin .7s linear infinite; }
.ixs.ok { opacity: 1; } .ixs.ok .ixs__dot { background: var(--ok); border-color: var(--ok); color: #fff; } .ixs.ok .ixs__dot .i { transform: scale(1); }
.ix__consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1.1rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--paper-2); font-size: .8rem; color: var(--muted); }
.ix__consent .i { margin-top: .15rem; color: var(--r-500); flex: none; }

/* resultado */
.ix__done { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; margin-bottom: 1.2rem; border-radius: 12px; background: #e6f6ee; color: #0f5a38; border: 1px solid #b5e3cb; animation: viewIn .4s; }
.ix__done .i { width: 1.4rem; height: 1.4rem; padding: .2rem; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.ix__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.3rem; }
.idc { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 1.1rem 1.2rem 1rem; color: #fff; background: linear-gradient(130deg, #14563e, #2bcaa0 60%, #5cf2ca); box-shadow: var(--shadow-2); animation: ixcard .8s cubic-bezier(.2, 1.2, .3, 1) both; }
.idc--j { background: linear-gradient(130deg, #082719, #1a7049 60%, #35ab70); }
.idc::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--tex-rosette), var(--tex-grain); background-size: 88px, 160px; mix-blend-mode: soft-light; }
.idc__holo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .22) 35%, rgba(200, 223, 159, .25) 45%, rgba(120, 255, 220, .18) 55%, transparent 70%); background-size: 250% 100%; animation: ixholo 5s ease-in-out infinite; }
.idc header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.idc__tag { font-size: .66rem; letter-spacing: .18em; font-weight: 800; opacity: .9; }
.idc__st { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; background: rgba(255, 255, 255, .18); }
.idc__st.ok { background: #1f9d68; animation: ixlive 2s infinite; }
.idc__main { display: flex; gap: 1rem; align-items: center; }
.idc__ph { position: relative; width: 112px; height: 136px; flex: none; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px -10px #000; background: #fff; }
.idc__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc__scan { position: absolute; left: 0; right: 0; height: 26%; background: linear-gradient(transparent, rgba(120, 255, 220, .55), transparent); animation: ixscan 2.6s ease-in-out infinite; }
.idc__t { display: flex; flex-direction: column; min-width: 0; } .idc__t small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: .45rem; } .idc__t small:first-child { margin-top: 0; }
.idc__t b { font-size: 1.05rem; overflow-wrap: anywhere; letter-spacing: .02em; }
.idc__dni { font-size: 1.35rem !important; letter-spacing: .12em !important; } .idc__dni em { font-style: normal; opacity: .7; }
.idc footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.idc footer small { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; } .idc footer b { font-size: .88rem; }

.ixg { position: relative; display: grid; justify-items: center; align-content: start; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, #fff, var(--r-50)); box-shadow: var(--shadow-1); }
.ixg__svg { width: 150px; height: 150px; rotate: -90deg; } .ixg__svg circle { fill: none; stroke-width: 9; }
.ixg__bg { stroke: var(--r-100); } .ixg__bar { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.3, 1, .4, 1) .1s; }
.ixg__t { position: absolute; top: 1.1rem; width: 150px; height: 150px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: baseline; text-align: center; }
.ixg__t b { font-family: var(--font-display); font-size: 2.5rem; color: var(--r-800); line-height: 1; } .ixg__t span { font-weight: 800; color: var(--r-600); } .ixg__t small { flex-basis: 100%; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ixg__chk { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .8rem; align-self: stretch; }
.ixg__chk li { display: flex; align-items: flex-start; gap: .5rem; opacity: 0; animation: viewIn .4s forwards; } .ixg__chk li:nth-child(1) { animation-delay: .5s; } .ixg__chk li:nth-child(2) { animation-delay: .8s; } .ixg__chk li:nth-child(3) { animation-delay: 1.1s; }
.ixg__chk .i { color: var(--ok); stroke-width: 3; margin-top: .15rem; }

.ix__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ix__cols section { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ix__cols h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--r-800); padding-bottom: .6rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); } .ix__cols h3 .i { color: var(--r-500); }
.ix__h3b { margin-top: 1rem; }
.ix__cols dl { margin: 0; }
.ixd { display: grid; grid-template-columns: 9rem 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); opacity: 0; animation: viewIn .45s forwards; }
.ixd:last-child { border-bottom: 0; }
.ixd:nth-child(1) { animation-delay: .3s; } .ixd:nth-child(2) { animation-delay: .4s; } .ixd:nth-child(3) { animation-delay: .5s; } .ixd:nth-child(4) { animation-delay: .6s; } .ixd:nth-child(5) { animation-delay: .7s; } .ixd:nth-child(6) { animation-delay: .8s; } .ixd:nth-child(7) { animation-delay: .9s; }
.ixd dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--r-600); padding-top: .15rem; } .ixd dd { margin: 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.ixd__pill { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: var(--r-100); color: var(--r-700); font-size: .72rem; }
.ix__audit { margin-top: 1.2rem; border-radius: 14px; background: #131d18; color: #e9f8eb; overflow: hidden; }
.ix__audit summary { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; cursor: pointer; font-weight: 700; font-size: .85rem; list-style: none; } .ix__audit summary::-webkit-details-marker { display: none; }
.ix__audit .muted { color: #aec0b3; font-weight: 500; }
.ix__chev { margin-left: auto; transition: transform .3s; } .ix__audit[open] .ix__chev { transform: rotate(180deg); }
.ix__aud { margin: 0; padding: 0 1rem 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.2rem; }
.ix__aud dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); } .ix__aud dd { margin: 0; font-size: .78rem; overflow-wrap: anywhere; color: #fff; }
.ix__foot { gap: .5rem; flex-wrap: wrap; }
.ix__foot .btn--primary { margin-left: auto; }

@media (max-width: 760px) {
  .ix__grid, .ix__cols { grid-template-columns: 1fr; }
  .ixd { grid-template-columns: 1fr; gap: .1rem; }
  .ix__aud { grid-template-columns: 1fr; }
  .ixf__node { width: 84px; } .ixf__node span { width: 50px; height: 50px; font-size: 1.3rem; } .ixf__node small { display: none; } .ixf__link { margin-bottom: 1.4rem; }
  .idc__ph { width: 92px; height: 112px; } .idc__dni { font-size: 1.1rem !important; }
  .ix__foot .btn--primary { margin-left: 0; flex: 1; }
  .ixbtn { width: 100%; }
}
@keyframes ixsheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes ixlive { 0% { box-shadow: 0 0 0 0 rgba(95, 227, 160, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 227, 160, 0); } }
@keyframes ixring { 0% { opacity: .8; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes ixpkt { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes ixbar { to { background-position: -200% 0; } }
@keyframes ixcard { from { opacity: 0; transform: perspective(800px) rotateY(-25deg) translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ixholo { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@keyframes ixscan { 0% { top: -26%; } 100% { top: 100%; } }

/* ===== Visor integrado: modo Google Drive ===== */
.pdf__drive { position: relative; flex: 1; min-width: 0; background: #1c2923; }
.pdf__drive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.pdf__drive .pdf__loading a { color: var(--gold-2); }
#pdf-root.is-drive :is(#pdf-thumbs-btn, .pdf__page, #pdf-prev, #pdf-next, #pdf-zin, #pdf-zout, #pdf-fitw, #pdf-fitp, #pdf-rot, #pdf-read, #pdf-print, #pdf-open, .pdf__zoom, #pdf-thumbs) { display: none !important; }
#pdf-root.is-drive .pdf__grp:not(.pdf__grp--end) { display: none; }
#pdf-root.is-drive .pdf__grp--end { margin-left: 0; width: 100%; justify-content: flex-end; }
#pdf-gopen { display: none; }
#pdf-root.is-drive #pdf-gopen { display: inline-flex; }

.notif__btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.pager__gap { align-self: center; color: var(--muted); padding: 0 .2rem; }
