/* EIC ACADEMY 36.19.0 | sistema visual corporativo
   Paleta: rojo EIC / blanco / negro / gris. Sobrescribe estilos visuales;
   no toca estados ni permisos de negocio ni aplica a documentos y firmas. */
:root{--eic19-black:#16191f;--eic19-ink:#202329;--eic19-red:#e20f32;--eic19-red-dark:#c40828;--eic19-silver:#f3f4f6;--eic19-mist:#f8f9fa;--eic19-line:#e2e5e9;--eic19-muted:#68707b;--eic19-shadow:0 10px 28px rgba(17,24,39,.055),0 2px 6px rgba(17,24,39,.024)}
body #portal{--n9-bg:#f7f8fa;--n9-ink:var(--eic19-ink);--n9-muted:var(--eic19-muted);--n9-border:var(--eic19-line);--n9-primary:var(--eic19-black);color:var(--eic19-ink)}
/* Inicio: cuatro zonas y scroll natural; nunca bloquear el cuarto bloque */
html:has(#portal.n17-home-mode),body:has(#portal.n17-home-mode){min-height:100%;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
body #portal.n17-home-mode{position:relative!important;min-height:100vh!important;height:auto!important;overflow:visible!important;background:radial-gradient(ellipse at 94% 1%,#eeeeef,transparent 34%),linear-gradient(160deg,#fafafb,#f4f5f6 55%,#f8f8f9)!important;padding:clamp(14px,2.5vw,32px) clamp(12px,3vw,42px) 54px!important}
body #portal.n17-home-mode .portal-shell,body #portal.n17-home-mode #n9-panel,body #portal.n17-home-mode .e3615-home{min-height:0!important;height:auto!important;overflow:visible!important;max-height:none!important}
body #portal.n17-home-mode .e3615-home{max-width:1320px;display:block!important}
body #portal.n17-home-mode .e3615-brand-row{min-height:70px;margin:0 0 15px;padding:0 3px 8px}
body #portal.n17-home-mode .e3615-brand{gap:9px;padding:7px 9px 7px 0}
body #portal.n17-home-mode .e3615-brand img{width:145px;max-height:54px}
body #portal.n17-home-mode .e3615-brand-rule{height:30px;background:#cdd0d3}
body #portal.n17-home-mode .e3615-brand-slogan{font-size:8.5px;line-height:1.26;letter-spacing:.02em;color:#17191c}
body #portal.n17-home-mode .e3615-groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;gap:15px!important;height:auto!important;max-height:none!important}
body #portal.n17-home-mode .e3615-section{--accent:#1b1d20;--accent-soft:#eeeeef;--pane-border:#dadde0;display:grid!important;grid-template-columns:minmax(172px,218px) minmax(0,1fr) 96px!important;align-items:center!important;gap:clamp(10px,2vw,24px)!important;min-height:172px!important;height:auto!important;padding:23px clamp(20px,2.3vw,34px)!important;border:1px solid #e7e9eb!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--eic19-shadow)!important;isolation:isolate;overflow:hidden}
body #portal.n17-home-mode .e3615-section:nth-child(2){animation-delay:.05s}
body #portal.n17-home-mode .e3615-section:nth-child(3){animation-delay:.10s}
body #portal.n17-home-mode .e3615-section:nth-child(4){animation-delay:.15s}
body #portal.n17-home-mode .e3615-services{background:radial-gradient(ellipse at 1% 108%,#f1f1f2 0,transparent 42%),#fff!important;--accent:#17191e;--accent-soft:#eceeef;--pane-border:#d4d5d8}
body #portal.n17-home-mode .e3615-commerce{--accent:#e20f32;--accent-soft:#ffe8ec;--pane-border:#edc6cd;background:radial-gradient(ellipse at 101% 1%,#fcecef,transparent 45%),linear-gradient(110deg,#fff,#faf9f9)!important}
body #portal.n17-home-mode .e3615-family{--accent:#65676d;--accent-soft:#f0f1f2;--pane-border:#dadde1;background:radial-gradient(ellipse at 1% 105%,#e5e6e8,transparent 48%),linear-gradient(115deg,#f8f8f9,#fff)!important}
body #portal.n17-home-mode .e3615-admin{--accent:#c40b2b;--accent-soft:#fee9ee;--pane-border:#f0c8d1;background:radial-gradient(ellipse at 100% 110%,#ffe8ed,transparent 50%),linear-gradient(115deg,#fff7f8,#fff 57%)!important}
body #portal.n17-home-mode .e3615-section:before{bottom:-100px;opacity:.45}
body #portal.n17-home-mode .e3615-section-heading{gap:11px;margin:0!important;padding:0!important;align-self:center;min-height:0!important}
body #portal.n17-home-mode .e3615-section-heading h2{color:#17191e!important;font-size:clamp(18px,2vw,25px)!important;line-height:1.13!important;font-weight:850;letter-spacing:-.045em}
body #portal.n17-home-mode .e3615-short-line{height:3px;width:32px;background:var(--accent)}
body #portal.n17-home-mode .e3615-tile-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;gap:10px!important;flex:initial!important;width:100%;margin:0!important;padding:0!important;align-items:stretch}
body #portal.n17-home-mode .e3615-tile{background:#fff!important;border:1px solid #dfe2e7!important;color:#1d232b!important;border-radius:15px!important;min-height:115px!important;height:auto!important;padding:12px 8px!important;gap:8px!important;box-shadow:0 4px 12px rgba(20,29,39,.027)!important}
body #portal.n17-home-mode .e3615-tile:hover{border-color:#adb2ba!important;box-shadow:0 10px 22px rgba(20,29,39,.10)!important;transform:translateY(-3px) scale(1.018)}
body #portal.n17-home-mode .e3615-tile-icon{background:var(--accent-soft)!important;color:var(--accent)!important;width:39px!important;height:39px!important;flex:0 0 39px!important;border-radius:13px!important}
body #portal.n17-home-mode .e3615-tile-icon .n9-icon{width:21px!important;height:21px!important;flex-basis:21px!important}
body #portal.n17-home-mode .e3615-tile-title{font-size:12px!important;line-height:1.2!important;letter-spacing:-.015em;font-weight:760!important}
body #portal.n17-home-mode .e3615-art{right:9px!important;top:50%!important;transform:translateY(-50%) rotate(-7deg)!important;opacity:.9!important;filter:drop-shadow(0 7px 12px rgba(10,10,10,.07))}
body #portal.n17-home-mode .e3615-art-sheet{background:#fff;border:1px solid var(--pane-border)!important}
body #portal.n17-home-mode .e3615-art-front{color:var(--accent)!important;background:var(--accent-soft)!important}
/* Menú flotante conserva gesto y posicion; contraste corporativo */
#n9-nav .e3614-orb{background:#17191f!important;border-color:#111115!important;border-radius:17px!important;box-shadow:0 10px 27px rgba(15,15,19,.20)!important}
#n9-nav .e3614-burger i{background:var(--eic19-red)!important}
#n9-nav .e3614-popover{border-color:#dfe2e6;color:#202329!important;box-shadow:0 18px 45px rgba(22,25,29,.18)!important}
#n9-nav .e3614-route-group h3{color:#777d84!important}
#n9-nav .e3614-action:hover,#n9-nav .e3614-route-link:hover{background:#f4f4f5!important}
#n9-nav .e3614-action.e3614-note{background:var(--eic19-red)!important;color:#fff!important}
#n9-nav .e3614-action.e3614-note:hover{background:var(--eic19-red-dark)!important}
#n9-nav .e3614-logout{color:#c0092a!important}
/* Estilo consistente para vistas V9 + notas, referidos, seguridad, escuelas, gestion */
body #portal.n9-alt:not(.n17-home-mode){background:linear-gradient(155deg,#f9f9fa,#f2f3f5)!important}
body #portal.n9-alt:not(.n17-home-mode) #n9-panel{max-width:1320px!important;margin:0 auto!important}
body #n9-panel :is(.n9-section-head,.e3610-head,.ra-head,.fs-head,.ryg-head){border-bottom:1px solid #e6e7e9;padding-bottom:16px;margin-bottom:14px;align-items:center}
body #n9-panel :is(.n9-section-head,.e3610-head,.ra-head,.fs-head,.ryg-head) h1{color:#181b21!important;font-weight:840!important;letter-spacing:-.045em!important;font-size:clamp(23px,2.4vw,31px)!important;line-height:1.14!important}
body #n9-panel :is(.n9-section-head,.e3610-head,.ra-head,.fs-head,.ryg-head) p{color:#707782!important;font-size:12px!important;line-height:1.45!important}
body #n9-panel :is(.n9-card,.n9-product,.e3610-note,.ra-card,.ra-count,.ryg-card,.fs-card,.e367-panel){border-color:#e3e5e8!important;border-radius:15px!important;box-shadow:0 4px 15px rgba(25,32,39,.035)!important;background:#fff}
body #n9-panel :is(.n9-btn,.ra-secondary,.ryg-secondary,.e367-button,.n357-refresh,.n357-search-btn,.e3610-refresh){border-radius:10px!important;font-weight:740!important}
body #n9-panel :is(input,select,textarea){accent-color:#c80d2b}
body #n9-panel :is(input,select,textarea,button):focus-visible{outline:2px solid #d70b30!important;outline-offset:2px!important}
body #n9-panel :is(.n9-tabs,.e3610-folders,.n357-tabs,.ryg-tabs,.ra-service-filters){scrollbar-width:thin;scrollbar-color:#c3c4c8 transparent}
body #n9-panel :is(.n9-tabs,.e3610-folders,.n357-tabs,.ryg-tabs){border-bottom:1px solid #e0e2e6!important;gap:5px!important;min-width:0;scrollbar-width:thin}
body #n9-panel :is(.n9-tabs,.e3610-folders,.n357-tabs,.ryg-tabs)>button{background:transparent;color:#4c535e;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:10px 10px 0 0!important;min-height:37px;font-weight:730;transition:color .15s,background .15s}
body #n9-panel .n9-tabs>button.n9-active,body #n9-panel .e3610-folders>button.active,body #n9-panel .n357-tabs>button.n9-active,body #n9-panel .ryg-tabs>button.active{background:#1f2228!important;color:#fff!important;border-color:#1f2228!important;border-radius:10px 10px 0 0!important}
body #n9-panel .n9-market-tab-arrow{color:#202329!important;border-color:#dfe1e5!important}
body #n9-panel :is(.n9-primary,.ryg-primary,.e367-primary){background:#202329!important;color:#fff!important;border-color:#202329!important}
body #n9-panel :is(.n9-primary,.ryg-primary,.e367-primary):hover{background:#34383f!important;border-color:#34383f!important}
/* Botón actualización compacto, dos flechas */
body #n9-panel #n9-refresh{width:42px;min-width:42px!important;height:42px;padding:9px!important;display:inline-grid;place-items:center;border-radius:12px!important}
body #n9-panel #n9-refresh span{display:none!important}
body #n9-panel #n9-refresh .n9-icon{width:20px!important;height:20px!important}
body #n9-panel .e3610-control-line{border-color:#e2e4e7}
/* La pestaña Actividad comparte la cabecera y navegación de Notas */
.e3619-notes-activity{max-width:1320px;margin:auto}
.e3619-notes-activity .e3610-folders{display:flex;flex-wrap:nowrap!important;overflow:auto;white-space:nowrap;margin-bottom:18px}
.e3619-notes-activity .e3619-activity-slot{min-width:0}
.e3619-notes-activity .ra-head{display:none}
/* Vistas nuevas, sin transacciones ficticias */
.e3619-workspace{display:grid;gap:18px;max-width:1280px;margin:0 auto}
.e3619-workspace .e3619-header{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e2e4e8;padding:8px 0 18px}
.e3619-workspace .e3619-mark{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#e91b3f11;color:#bd0b29}
.e3619-workspace .e3619-mark svg{width:24px;height:24px;flex-basis:24px}
.e3619-workspace h1{font-size:clamp(24px,2.4vw,31px);letter-spacing:-.05em;margin:0;color:#181a1f}
.e3619-workspace p{font-size:13px;line-height:1.5;color:#676e78;margin:3px 0}
.e3619-workspace .e3619-label{font-size:10px;letter-spacing:.10em;font-weight:850;color:#a30c26}
.e3619-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:0 0 9px;border-bottom:1px solid #e3e5e9}
.e3619-tabs button{flex:0 0 auto;min-height:40px;border:1px solid #dfe2e6;border-radius:11px;background:#fff;color:#343a43;font:inherit;font-size:12px;font-weight:760;padding:8px 13px;cursor:pointer}
.e3619-tabs button[aria-selected=true]{background:#1c1e23;border-color:#1c1e23;color:#fff}
.e3619-content{border:1px solid #e1e4e8;border-radius:18px;background:#fff;padding:25px;box-shadow:var(--eic19-shadow)}
.e3619-content h2{font-size:19px;margin:6px 0 12px;letter-spacing:-.025em}
.e3619-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.e3619-feature{border:1px solid #e7e9ec;border-radius:12px;padding:14px;background:#f9fafb;display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:700;color:#343841}
.e3619-feature:before{content:'';display:block;flex:0 0 7px;width:7px;height:7px;border:2px solid #c41431;border-radius:50%;margin-top:3px}
.e3619-info{font-size:11px;color:#777f8a;line-height:1.45;padding-top:8px}
/* Responsive: toda categoría visible; cuatro secciones admiten scroll */
@media(max-width:900px){body #portal.n17-home-mode .e3615-section{grid-template-columns:175px minmax(0,1fr) 57px!important;min-height:150px!important;padding:18px!important;gap:14px!important}body #portal.n17-home-mode .e3615-tile{min-height:96px!important;padding:10px 5px!important}body #portal.n17-home-mode .e3615-art{right:4px!important}}
@media(max-width:780px){
 body #portal.n17-home-mode{height:auto!important;min-height:100svh!important;overflow-y:auto!important;padding:13px 12px 36px!important}
 body #portal.n17-home-mode .e3615-home{display:block!important;height:auto!important;min-height:0!important}
 body #portal.n17-home-mode .e3615-brand-row{height:auto!important;min-height:62px!important;padding:3px 3px 12px;margin-bottom:5px}
 body #portal.n17-home-mode .e3615-brand img{width:120px!important;height:auto!important;max-height:43px!important}
 body #portal.n17-home-mode .e3615-brand-slogan{font-size:7px!important}
 body #portal.n17-home-mode .e3615-brand-rule{height:23px}
 body #portal.n17-home-mode .e3615-groups{height:auto!important;grid-template-rows:none!important;gap:11px!important}
 body #portal.n17-home-mode .e3615-section{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:0!important;height:auto!important;padding:16px 14px 15px!important;border-radius:19px!important}
 body #portal.n17-home-mode .e3615-section-heading{flex:0 0 auto;align-self:stretch!important;gap:7px!important;padding:0 80px 0 2px!important;margin-bottom:7px!important}
 body #portal.n17-home-mode .e3615-section-heading h2{font-size:19px!important}
 body #portal.n17-home-mode .e3615-art{position:absolute;top:8px!important;right:13px!important;width:57px!important;height:46px!important;transform:rotate(-7deg)!important;opacity:.9}
 body #portal.n17-home-mode .e3615-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;flex:initial!important}
 body #portal.n17-home-mode .e3615-tile{min-height:92px!important;padding:10px 5px 9px!important;gap:7px!important}
 body #portal.n17-home-mode .e3615-tile-title{font-size:11px!important}
 body #portal.n17-home-mode .e3615-tile-icon{width:37px!important;height:37px!important;flex-basis:37px!important}
 .e3619-feature-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){body #portal.n17-home-mode .e3615-section{padding:14px 11px 13px!important}body #portal.n17-home-mode .e3615-tile-grid{gap:6px!important}body #portal.n17-home-mode .e3615-tile{min-height:84px!important;padding:8px 4px!important}body #portal.n17-home-mode .e3615-tile-title{font-size:10px!important}body #portal.n17-home-mode .e3615-tile-icon{width:33px!important;height:33px!important;flex-basis:33px!important}.e3619-feature-grid{grid-template-columns:1fr}.e3619-content{padding:17px}}
@media(prefers-reduced-motion:reduce){body #portal.n17-home-mode .e3615-section,body #portal.n17-home-mode .e3615-tile{animation:none!important;transition:none!important}}

@media(max-width:780px){
 body #portal.n17-home-mode .e3615-family .e3615-tile.pre30-card-locked{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;min-width:0!important;min-height:100px!important;gap:6px!important;padding:7px 4px!important;overflow:hidden!important}
 body #portal.n17-home-mode .e3615-family .e3615-tile.pre30-card-locked>.pre30-card-content{display:flex;flex-direction:column;align-items:center;gap:4px!important;min-width:0;width:100%}
 body #portal.n17-home-mode .e3615-family .e3615-tile.pre30-card-locked>.pre29-unlock{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:27px!important;box-sizing:border-box!important;margin:3px 0 0!important;padding:6px 2px!important;border-radius:8px!important;font-size:9px!important;line-height:1!important;letter-spacing:-.03em;white-space:nowrap!important;text-align:center}
}
/* Unificación de la pestaña Actividad en paleta corporativa, sin alterar estados contables */
body #n9-panel .e3619-notes-activity .ra-live{background:#f5f5f6!important;border-color:#e2e3e7!important;color:#30343b!important}
body #n9-panel .e3619-notes-activity .ra-live i{background:#c81030!important;box-shadow:0 0 0 4px rgba(200,16,48,.11)!important}
body #n9-panel .e3619-notes-activity .ra-count strong{color:#1c2028!important}
body #n9-panel .e3619-notes-activity .ra-count b{color:#aaaeb7!important}
body #n9-panel .e3619-notes-activity :is(.ra-type-r,.ra-type-v,.ra-type-g,.ra-type-c){background:#f2f3f5!important;color:#31353b!important}
