:root{
  --bg0:#070A12;
  --bg1:#0A1024;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);

  --accent:#7C5CFF;
  --accent2:#2ED3FF;

  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(46,211,255,.18), transparent 55%),
    radial-gradient(900px 600px at 55% 85%, rgba(124,92,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow: hidden; /* clave: sin scroll en body */
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px;
}

/* Full width para el cuerpo */
.container-fluid{
  width: 100%;
  height: 100%;
  padding: 16px 16px;
}

/* Shell ocupa exactamente 100vh: header + main + footer */
.shell{
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar{
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,18,.75), rgba(7,10,18,.35));
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-badge{
  width: 34px; height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,211,255,.85));
  box-shadow: var(--shadow2);
}
.brand span{ opacity: .95; }

.navlinks{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: .15s ease;
}
.pill:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.right{
  display:flex;
  align-items:center;
  gap:12px;
}

.lang{
  display:flex;
  gap:8px;
  align-items:center;
  color: var(--muted);
}
.lang a{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.lang a:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  transition: .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}
.btn-primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(46,211,255,.35));
}
.btn-primary:hover{
  border-color: rgba(46,211,255,.55);
}

/* Mainwrap = zona entre header y footer */
.mainwrap{
  overflow: hidden; /* evita scroll global */
}

/* Layout central ocupa todo el alto disponible */
.layout{
  height: 100%;
  display:grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Sidebar ocupa alto completo y scrollea interno si hace falta */
.sidebar{
  height: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}

.sidebar .title{
  padding: 14px 14px 10px;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: rgba(10,16,36,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.menu{
  list-style:none;
  padding: 10px 8px 12px;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: .15s ease;
}
.menu a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.menu a.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(46,211,255,.12));
  border: 1px solid rgba(255,255,255,.10);
}

/* Content ocupa todo el alto y scrollea interno */
.content{
  min-width: 0;
  height: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.h1{ font-size: 26px; margin: 0 0 10px; letter-spacing:.2px; }
.p{ color: var(--muted); margin: 0 0 14px; line-height: 1.55; }

.card{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 14px;
}

/* Footer siempre visible */
.footer{
  border-top: 1px solid var(--line);
  color: var(--muted2);
  background: rgba(7,10,18,.25);
  backdrop-filter: blur(10px);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding: 12px 16px;
}
.footer a{
  color: var(--muted);
}
.footer a:hover{ color: var(--text); }

/* Responsive: en móvil volvemos a scroll normal */
@media (max-width: 920px){
  body{ overflow:auto; }
  .shell{ height:auto; min-height:100vh; }
  .mainwrap{ overflow: visible; }
  .container-fluid{ height:auto; }
  .layout{ grid-template-columns: 1fr; height:auto; }
  .sidebar, .content { height:auto; overflow: visible; }
}

