/* ==========================================================================\n   GARCÍA CANDO · V88.5.3.41.13.2\n   Ajuste VISUAL exclusivo de Administración\n   - Sidebar colapsable a iconos\n   - Un solo scroll principal visible\n   - Inicio/Hero dividido en submenús visuales\n   No modifica API, datos, rutas, Hero V89.3 ni comunicaciones.\n   ========================================================================== */

/* ---- Scroll principal: discreto. Sidebar sin barra visible. ---- */
body.dashboard-mode .main{
  scrollbar-width:thin;
  scrollbar-color:#343b3e transparent;
}
body.dashboard-mode .main::-webkit-scrollbar{width:6px;height:6px}
body.dashboard-mode .main::-webkit-scrollbar-track{background:transparent}
body.dashboard-mode .main::-webkit-scrollbar-thumb{background:#343b3e;border-radius:999px}
body.dashboard-mode .main::-webkit-scrollbar-thumb:hover{background:#4a5357}
body.dashboard-mode .gc86-nav-scroll{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body.dashboard-mode .gc86-nav-scroll::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}

/* ---- Sidebar escritorio colapsable. ---- */
@media (min-width:1001px){
  body.dashboard-mode #portal.gc8853-shell{
    --gc4132-side:260px;
    grid-template-columns:var(--gc4132-side) minmax(0,1fr)!important;
    transition:grid-template-columns .22s ease!important;
  }
  body.dashboard-mode #portal.gc8853-shell .gc8853-global-bar{
    grid-template-columns:var(--gc4132-side) minmax(0,1fr)!important;
    transition:grid-template-columns .22s ease!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed{--gc4132-side:76px}

  .gc4132-side-control{
    flex:0 0 auto;
    padding:10px 10px 0;
  }
  .gc4132-side-toggle{
    width:100%;height:38px;
    display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;
    border:1px solid #252c2f;border-radius:11px;
    background:#0d1112;color:#879399;
    padding:0 10px;text-align:left;cursor:pointer;
    transition:.18s ease;
  }
  .gc4132-side-toggle:hover{background:#14191a;color:#fff;border-color:#343c40}
  .gc4132-side-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .gc4132-side-toggle span{font-size:9px;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap;overflow:hidden}

  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-brand{
    justify-content:center!important;padding:0!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-brand>div{display:none!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-nav-scroll{padding:10px 8px!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-group{display:none!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .sidenav{gap:5px!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .sidenav button{
    width:100%!important;min-height:44px!important;
    grid-template-columns:1fr!important;justify-items:center!important;
    gap:0!important;padding:9px 6px!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .sidenav button>span:nth-child(2){display:none!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-nav-ico{
    width:24px!important;height:24px!important;display:grid!important;place-items:center!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc86-nav-ico svg{width:20px!important;height:20px!important}

  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc4132-side-control{padding:10px 8px 0}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc4132-side-toggle{
    grid-template-columns:1fr!important;justify-items:center!important;padding:0!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc4132-side-toggle span{display:none!important}

  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc87-side-profile{padding:10px 8px!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc87-profile-trigger{
    grid-template-columns:42px!important;justify-items:center!important;padding:8px 2px!important;
  }
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc87-profile-trigger>span:nth-child(2),
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc87-profile-trigger>span:last-child{display:none!important}
  body.dashboard-mode #portal.gc8853-shell.gc4132-sidebar-collapsed .gc87-profile-menu{
    left:calc(100% + 8px)!important;right:auto!important;bottom:9px!important;
    width:190px!important;max-width:190px!important;
  }
}

@media (max-width:1000px){
  .gc4132-side-control{display:none!important}
}

/* ---- Editor gráfico: elimina el scroll interno de la consola. ---- */
#host-cms.gc885321-cms-console{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  display:block!important;
  overflow:visible!important;
}
#host-cms.gc885321-cms-console>.gc885318-editor-shell{
  position:relative!important;top:auto!important;
  margin:0!important;
  border:0!important;border-bottom:1px solid #293034!important;
  border-radius:0!important;
}
.gc885321-cms-scroll{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  scrollbar-gutter:auto!important;
  padding:18px!important;
}
#host-cms.gc885321-cms-console>.gc885318-savebar{
  position:relative!important;bottom:auto!important;
}

/* ---- Inicio/Hero: segundo nivel de navegación. ---- */
.gc4132-home-mode>.gc885318-editor-shell{
  display:grid!important;
  gap:9px!important;
  padding:10px 12px!important;
}
.gc4132-home-secondary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding-top:9px;
  border-top:1px solid #23292c;
}
.gc4132-home-subnav{
  display:flex;gap:6px;align-items:center;
  min-width:0;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:1px 0;
}
.gc4132-home-subnav::-webkit-scrollbar{display:none;width:0;height:0}
.gc4132-home-subnav button{
  flex:0 0 auto;
  min-height:34px;
  border:1px solid #2b3336;border-radius:10px;
  background:#0d1213;color:#7f8c91;
  padding:0 11px;font-size:9px;font-weight:500;
  white-space:nowrap;cursor:pointer;
}
.gc4132-home-subnav button:hover{color:#e7ebed;background:#14191a}
.gc4132-home-subnav button.active{
  background:#e9edef;color:#101415;border-color:#e9edef;
}
.gc4132-home-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}
.gc4132-home-actions button{
  min-height:34px;border:1px solid #30383b;border-radius:10px;
  background:#111617;color:#cfd6d8;padding:0 11px;font-size:9px;cursor:pointer;
}
.gc4132-home-actions button.primary{background:#e9edef;color:#101415;border-color:#e9edef}

/* Solo un bloque de Inicio visible a la vez. */
.gc4132-home-mode .gc885321-cms-scroll .gc885-section-card{display:none!important}
.gc4132-home-mode .gc885321-cms-scroll .gc87-home-intro{display:none!important}
.gc4132-home-mode .gc885321-cms-scroll .gc87-rebuild{display:none!important}
.gc4132-home-mode[data-gc4132-home-view="overview"] .gc885321-cms-scroll .gc87-home-intro,
.gc4132-home-mode[data-gc4132-home-view="overview"] .gc885321-cms-scroll .gc87-rebuild{display:flex!important}
.gc4132-home-mode[data-gc4132-home-view="home"] .gc885-section-card[data-home-key="home"],
.gc4132-home-mode[data-gc4132-home-view="studio"] .gc885-section-card[data-home-key="studio"],
.gc4132-home-mode[data-gc4132-home-view="community_projects"] .gc885-section-card[data-home-key="community_projects"],
.gc4132-home-mode[data-gc4132-home-view="services"] .gc885-section-card[data-home-key="services"],
.gc4132-home-mode[data-gc4132-home-view="direction"] .gc885-section-card[data-home-key="direction"],
.gc4132-home-mode[data-gc4132-home-view="process"] .gc885-section-card[data-home-key="process"],
.gc4132-home-mode[data-gc4132-home-view="portal"] .gc885-section-card[data-home-key="portal"],
.gc4132-home-mode[data-gc4132-home-view="contact"] .gc885-section-card[data-home-key="contact"]{display:block!important}

/* Las acciones globales de Inicio pasan a la barra secundaria para no duplicar controles. */
.gc4132-home-mode>.gc885318-savebar{display:none!important}
.gc4132-home-mode .gc885321-cms-scroll{padding-top:14px!important}
.gc4132-home-mode .gc885-editor-stack{gap:0!important}

@media(max-width:850px){
  .gc4132-home-secondary{grid-template-columns:1fr}
  .gc4132-home-actions{justify-content:flex-start}
}
@media(max-width:560px){
  .gc4132-home-actions{display:grid;grid-template-columns:1fr 1fr}
  .gc4132-home-actions button{width:100%}
}
