/* Capa única de navegación de El Palacio: sin pop-ups del navegador. */
.srnav-shell[hidden],.srnav-warning[hidden]{display:none!important}
.srnav-shell{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;width:100%;height:100dvh;background:#E6E6E3;color:#111;box-sizing:border-box;font-family:"Times New Roman",Times,serif}
.srnav-shell *{box-sizing:border-box}
.srnav-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;min-height:60px;background:#001B8C;color:#fff;border-bottom:3px solid #9FA0A2}
.srnav-head strong{font-size:clamp(16px,2.1vw,23px);line-height:1.25}
.srnav-head nav{display:flex;gap:8px;flex-shrink:0;margin-left:auto}
.srnav-head button,.srnav-actions button{padding:9px 16px;background:#CBCBCC;color:#000080;border:2px solid #002795;border-radius:6px;font-weight:700;cursor:pointer}
.srnav-head button:disabled{opacity:.55;cursor:default}
.srnav-frame{display:block;flex:1 1 auto;width:100%;min-height:0;margin:0;border:0;background:#E6E6E3}
body.srnav-open{overflow:hidden!important}
.srnav-warning{position:absolute;inset:0;z-index:6;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.srnav-warning-box{background:#f5eedf;width:min(660px,100%);max-height:95%;overflow-y:auto;padding:22px;border:3px solid #7a263a;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.24)}
.srnav-warning h2{margin:0;color:#9b001d}.srnav-warning ul{max-height:170px;overflow-y:auto;margin:10px 0 18px;padding-left:24px}
.srnav-actions{display:flex;flex-wrap:wrap;gap:8px}.srnav-feedback{color:#9b001d;font-weight:600}
html.srnav-embedded .sersoe-rm-modal-cabecera{display:none!important}
html.srnav-embedded .sersoe-rm-modal{z-index:1000}
@media(max-width:560px){.srnav-head{flex-wrap:wrap;padding:8px 12px}.srnav-head nav{width:auto;margin-left:auto;justify-content:flex-end}.srnav-head button{flex:0 0 auto}.srnav-warning-box{padding:14px}}

.srnav-toast{position:fixed;inset:0;z-index:2147483010;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:18px}
.srnav-toast-box{width:min(520px,100%);padding:22px;background:#f5eedf;color:#2b2b2b;border:3px solid #7a263a;border-radius:8px}
.srnav-toast-box button{padding:9px 16px;background:#7a263a;color:white;border:0;border-radius:5px;cursor:pointer}
.srnav-confirm[hidden]{display:none!important}
.srnav-confirm{position:fixed;inset:0;z-index:2147483020;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.72)}
.srnav-confirm-box{width:min(610px,100%);padding:22px;border-radius:8px;border:3px solid #7a263a;background:#f5eedf;color:#2b2b2b}
.srnav-confirm-actions{display:flex;gap:10px;flex-wrap:wrap}.srnav-confirm-actions button{padding:9px 16px;border-radius:5px;cursor:pointer}
/* La cabecera única pertenece al visor; las vistas hijas conservan sus controles. */
html.srnav-embedded .sp-cab,
html.srnav-embedded .srnav-landing-head,
html.srnav-embedded .srpf-top,
html.srnav-embedded .rm-bp-cab,
html.srnav-embedded .sersoe-rm-delegado-top{display:none!important}
html.srnav-embedded .sp-main,
html.srnav-embedded .srpf-main,
html.srnav-embedded .rm-bp-main{max-width:none;width:100%;margin:0 auto}

/* En todas las vistas interiores ambos controles están en la cinta fija. */
.srnav-head .srnav-exit{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;margin-left:auto;font-family:inherit;font-size:17px}
.srnav-head .srnav-back{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;font-family:inherit;font-size:17px}
.srnav-head .srnav-back:disabled{opacity:.55;cursor:default}
/* Una única navegación: cuando el visor ofrece Atrás, la tarjeta no lo duplica.
   Fuera del visor o sin historial se conserva el enlace de retorno propio. */
html.srnav-embedded .srl-cabecera > .srl-atras,
html.srnav-root-controls .srl-cabecera > .srl-atras,
html.srnav-embedded .sersoe-rm-colcamp-modal-cabecera,
html.srnav-embedded .rv-barra > .rv-volver,
html.srnav-root-controls .rv-barra > .rv-volver,
html.srnav-root-controls .sersoe-rm-modal-cabecera .sersoe-rm-modal-acciones,
html.srnav-root-controls .sersoe-rm-colcamp-modal-cabecera .sersoe-rm-colcamp-modal-volver,
html.srnav-root-controls .sersoe-rm-delegado-ficha-barra > button,
html.srnav-embedded .sersoe-ec-plantillas-acciones-superiores > a,
html.srnav-root-controls .sersoe-ec-plantillas-acciones-superiores > a,
html.srnav-embedded .sersoe-rm-colcamp-modal-cabecera .sersoe-rm-colcamp-modal-volver{display:none!important}
/* Retornos superiores duplicados: solo enlaces de navegación, nunca botones
   de formularios ni «Volver a mi ficha» del portal de voluntariado. */
html.srnav-root-controls .srpf-top,
html.srnav-root-controls .sec-transf > div:first-child > a.button,
html.srnav-embedded .sec-transf > div:first-child > a.button,
html.srnav-root-controls .srperm-dual > p:first-of-type > a,
html.srnav-embedded .srperm-dual > p:first-of-type > a,
html.srnav-root-controls .sersoe-rm-benef-acciones > a.sersoe-rm-benef-btn-sec,
html.srnav-embedded .sersoe-rm-benef-acciones > a.sersoe-rm-benef-btn-sec{display:none!important}
/* No se ocultan «Sin filtros», «Cancelar» ni «Volver a mi ficha». */
.srnav-root-head,.srnav-sticky-root{position:sticky!important;top:0!important;z-index:2200!important}
.srnav-root-head{width:100%;}
.sp-cab.srnav-sticky-root{background:#001B8C!important;color:#fff!important}
.srnav-root-head .srnav-back,.srnav-root-head .srnav-exit,
.srnav-sticky-root .srnav-back,.srnav-sticky-root .srnav-exit{min-height:42px;padding:9px 16px;background:#CBCBCC;color:#000080;border:2px solid #002795;border-radius:6px;font-weight:700;font-family:"Times New Roman",Times,serif;font-size:17px;cursor:pointer}
.srnav-sticky-root nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.srnav-sticky-root .srnav-back:disabled{opacity:.55;cursor:default}
.srnav-sticky-root nav > a[hidden]{display:none!important}
/* En acceso delegado directo, la ficha no puede tapar la cinta. */
body.sersoe-rm-delegado-ficha-visible .srnav-sticky-root{z-index:2200!important}
body.sersoe-rm-delegado-ficha-visible:not(.srnav-open) .sersoe-rm-delegado-ficha-activa{top:74px!important;height:calc(100dvh - 74px)!important}

.srnav-root-warning{position:fixed!important;inset:0;z-index:2300!important}
