/* PLC 3D: Comunidad · dashboard (scoped). Reusa tokens de plc.css; no inventa paleta.
   Glow reservado a elementos importantes (destacado/seleccionado/hover). Mono solo para
   nombres de archivo, versiones, direcciones/valores PLC e identificadores. */

/* ===== contenedor app ===== */
.com-app{ width:calc(100% - 28px); max-width:1640px; margin:0 auto; padding:24px 0 40px; }
.com-grid{ display:grid; grid-template-columns:minmax(176px,190px) minmax(0,1fr) minmax(320px,340px); gap:20px; align-items:start; }

/* ===== sidebar izquierdo ===== */
.com-side{ position:sticky; top:88px; display:flex; flex-direction:column; gap:14px; }
.com-side-head{ display:flex; align-items:center; gap:11px; font-family:var(--display); font-weight:700;
  font-size:13px; letter-spacing:.16em; color:var(--text); text-transform:uppercase; padding:4px 6px 2px; }
.com-side-head .si{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background:var(--blue-soft); border:1px solid var(--line-blue); color:var(--blue-2); }
.com-side-head .si svg{ width:18px; height:18px; }
.com-nav{ display:flex; flex-direction:column; gap:3px; }
.com-nav-item{ display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:12px;
  color:var(--muted); font-family:var(--body); font-weight:600; font-size:14px; border:1px solid transparent;
  background:transparent; text-align:left; transition:color .18s, background .18s, border-color .18s; cursor:pointer; }
.com-nav-item svg{ width:18px; height:18px; flex:none; }
.com-nav-item:hover{ color:var(--text); background:rgba(255,255,255,.04); }
.com-nav-item.active{ color:var(--text);
  background:linear-gradient(180deg,rgba(40,224,200,.13),rgba(46,123,255,.09));
  border-color:var(--line-blue); }
.com-nav-item.active svg{ color:var(--cyan); }
.com-nav-toggle{ display:none; }

/* tarjeta Loxi: loxi-head.png, fondo oscuro blenda con la tarjeta */
.com-loxi{ position:relative; margin-top:6px; padding:18px 16px 0; overflow:hidden; min-height:275px;
  background:radial-gradient(130% 80% at 50% 105%, rgba(40,224,200,.24), transparent 54%), linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line-blue); border-radius:var(--r-lg); display:flex; flex-direction:column; }
.com-loxi .lx-text{ position:relative; z-index:2; }
.com-loxi .lx-text p{ font-size:13px; color:var(--muted); line-height:1.5; text-wrap:pretty; margin-top:4px; }
.com-loxi .lx-spark{ color:var(--cyan); font-weight:600; font-size:13px; display:flex; align-items:center; gap:6px; }
.com-loxi .lx-spark svg{ width:13px; height:13px; color:var(--cyan); flex:none; }
.com-loxi .lx-img{ display:block; width:100%; height:170px; object-fit:cover; object-position:center 15%;
  margin-top:auto; position:relative; z-index:2;
  filter:brightness(1.04) drop-shadow(0 -10px 28px rgba(40,224,200,.45));
  border-radius:0 0 14px 14px; }
.lx-dot{ position:absolute; border-radius:50%; background:var(--cyan); z-index:3; }
.lx-dot-1{ width:4px;height:4px; top:22%; right:20%; opacity:.65; animation:lxpulse 2.8s .2s ease-in-out infinite; }
.lx-dot-2{ width:3px;height:3px; top:16%; left:24%; opacity:.5; animation:lxpulse 3.2s .9s ease-in-out infinite; }
.lx-dot-3{ width:5px;height:5px; top:38%; right:14%; opacity:.6; animation:lxpulse 2.5s 1.5s ease-in-out infinite; }
@keyframes lxpulse{ 0%,100%{opacity:.15;transform:scale(1)} 50%{opacity:.8;transform:scale(1.8)} }

/* ===== cabecera compacta ===== */
.com-head{ display:grid; grid-template-columns:minmax(0,1fr) 400px; align-items:center; gap:28px; margin-bottom:20px; }
.com-head-l{ min-width:0; }
.com-title{ font-family:var(--display); font-weight:700; font-size:clamp(26px,2.6vw,33px); letter-spacing:-.02em; }
.com-sub{ color:var(--muted); font-size:15px; margin-top:6px; max-width:54ch; }
.com-actions{ display:flex; gap:10px; flex-wrap:nowrap; margin-top:16px; }
.com-actions .btn{ flex:0 0 auto; }
.com-privacy{ display:flex; align-items:center; gap:9px; margin-top:13px; color:var(--muted); font-size:13px; }
.com-privacy svg{ width:16px; height:16px; color:var(--cyan); flex:none; }

/* banda de métricas */
.com-metrics{ display:flex; align-items:stretch; padding:6px 8px;
  background:linear-gradient(180deg,var(--panel-2),var(--panel)); border:1px solid var(--line); border-radius:var(--r-lg); }
.metric{ padding:12px 22px; position:relative; }
.metric + .metric::before{ content:""; position:absolute; left:0; top:18%; height:64%; width:1px; background:var(--line); }
.metric .mh{ display:flex; align-items:center; gap:7px; color:var(--blue-2); margin-bottom:5px; }
.metric .mh svg{ width:15px; height:15px; }
.metric .mn{ font-family:var(--display); font-weight:700; font-size:23px; color:var(--text); line-height:1; }
.metric .ml{ font-size:12px; color:var(--muted); margin-top:4px; }

/* ===== panel genérico ===== */
.com-card{ background:linear-gradient(180deg,var(--panel-2),var(--panel)); border:1px solid var(--line); border-radius:var(--r-lg); }
.com-panel-head{ display:flex; align-items:center; gap:10px; padding:17px 22px; border-bottom:1px solid var(--line); }
.com-panel-head h3{ font-family:var(--display); font-size:18px; font-weight:600; }
.com-panel-head .info{ width:17px; height:17px; color:var(--dim); cursor:help; }
.com-panel-head .ph-right{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.ver-todo{ font-size:13px; color:var(--blue-2); font-weight:600; cursor:pointer; }
.ver-todo:hover{ color:var(--cyan); }
.map-select{ display:flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); }
.map-select select{ appearance:none; background:var(--panel-3); border:1px solid var(--line-2); color:var(--text);
  font-family:var(--body); font-size:13px; padding:6px 26px 6px 11px; border-radius:9px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA7BE' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 7px center; background-size:13px; }
.map-icobtn{ width:32px; height:32px; border-radius:9px; display:grid; place-items:center; color:var(--muted);
  background:var(--panel-3); border:1px solid var(--line-2); cursor:pointer; transition:color .16s, border-color .16s, background .16s; }
.map-icobtn:hover{ color:var(--text); border-color:var(--line-blue); background:var(--blue-soft); }
.map-icobtn svg{ width:16px; height:16px; }

/* ===== lienzo del mapa ===== */
.map-canvas{ position:relative; height:378px; overflow:hidden; cursor:grab;
  background:
    radial-gradient(circle at 50% 48%, rgba(0,153,255,.13), transparent 42%),
    linear-gradient(rgba(56,105,157,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,105,157,.06) 1px, transparent 1px),
    #06101d;
  background-size: auto, 32px 32px, 32px 32px; }
.map-canvas.grabbing{ cursor:grabbing; }
.map-stage{ position:absolute; inset:0; transform-origin:50% 50%; will-change:transform; }
.map-edges{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.map-edges path{ transition:opacity .2s, stroke-width .2s; }
.map-inner{ position:absolute; inset:0; z-index:2; }

/* hint discreto */
.map-hint{ position:absolute; left:16px; bottom:14px; z-index:6; display:flex; align-items:center; gap:8px;
  padding:7px 12px; border-radius:999px; background:rgba(8,13,24,.72); border:1px solid var(--line-2);
  color:var(--muted); font-size:11.5px; backdrop-filter:blur(6px); pointer-events:none; }
.map-hint svg{ width:13px; height:13px; color:var(--cyan); }
.map-hint b{ color:var(--text); font-weight:600; }

/* ===== nodo-proyecto (variantes: featured / standard / compact) ===== */
/* ===== nodos: base ===== */
.node{ position:absolute; width:230px; border-radius:15px; cursor:pointer;
  transform:translate(-50%,-50%); transform-origin:center center;
  background:linear-gradient(180deg,rgba(18,26,46,.97),rgba(11,17,32,.98)); border:1px solid rgba(40,224,200,.28);
  box-shadow:0 0 0 1px rgba(40,224,200,.06), 0 12px 28px -14px rgba(0,0,0,.9);
  transition:box-shadow .18s, border-color .18s, opacity .2s; }
.node-pad{ padding:12px 13px 11px; }
.node:hover{ z-index:7; border-color:rgba(40,224,200,.56); box-shadow:0 0 0 1px rgba(40,224,200,.22), 0 18px 44px -14px rgba(40,224,200,.44); }
.node.sel{ z-index:8; border-color:rgba(40,224,200,.75); box-shadow:0 0 0 1px rgba(40,224,200,.5), 0 18px 44px -14px rgba(40,224,200,.5); }
.map-canvas.has-hover .node:not(.hot){ opacity:.38; }
.map-canvas.has-hover .node.hot{ opacity:1; }

/* featured */
.node.featured{ width:252px; z-index:3; border-color:rgba(40,224,200,.55);
  box-shadow:0 0 0 1px rgba(40,224,200,.18), 0 0 36px -10px rgba(40,224,200,.48), 0 20px 40px -18px rgba(0,0,0,.9); }
.node.featured:hover{ border-color:rgba(40,224,200,.75); box-shadow:0 0 0 1px rgba(40,224,200,.3), 0 0 52px -8px rgba(40,224,200,.65), 0 22px 50px -14px rgba(40,224,200,.55); }
.node-feat-img{ height:116px; overflow:hidden; border-radius:14px 14px 0 0; display:grid; place-items:center;
  background:radial-gradient(130% 120% at 30% 0%, rgba(40,224,200,.22), rgba(46,123,255,.08)); border-bottom:1px solid rgba(40,224,200,.22); }
.node-feat-img img{ width:100%; height:100%; object-fit:contain; }

/* compact */
.node.compact{ width:205px; }
.node-thumb-sm{ width:48px; height:42px; border-radius:9px; flex:none; overflow:hidden; display:grid; place-items:center;
  background:radial-gradient(120% 130% at 50% 0%, rgba(46,123,255,.12), rgba(8,14,26,.6)); border:1px solid var(--line); }
.node-thumb-sm img{ width:100%; height:100%; object-fit:contain; }

/* elementos internos */
.node-top{ display:flex; gap:10px; align-items:center; padding-right:4px; }
.node-thumb{ width:62px; height:54px; border-radius:11px; flex:none; overflow:hidden; display:grid; place-items:center;
  background:radial-gradient(120% 130% at 50% 0%, rgba(46,123,255,.14), rgba(8,14,26,.6)); border:1px solid var(--line); }
.node-thumb img{ width:100%; height:100%; object-fit:contain; }
.node-h{ min-width:0; flex:1; }
.node-t{ font-family:var(--display); font-weight:600; font-size:13.5px; line-height:1.18; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.node-who{ display:flex; align-items:center; gap:6px; margin-top:3px; }
.node-who .av{ width:16px; height:16px; border-radius:50%; flex:none; font-size:8px; font-weight:700; color:#fff;
  display:grid; place-items:center; font-family:var(--display); }
.node-who .nm{ font-size:11.5px; color:var(--muted); }
.node-tags{ display:flex; gap:5px; flex-wrap:wrap; margin:9px 0 8px; }
.node-tag{ font-size:10px; letter-spacing:.01em; padding:3px 7px; border-radius:6px; border:1px solid; }
.nt-blue{ color:var(--blue-2); background:var(--blue-soft); border-color:var(--line-blue); }
.nt-cyan{ color:var(--cyan); background:var(--cyan-soft); border-color:rgba(40,224,200,.32); }
.nt-teal{ color:#1ec4b0; background:rgba(30,196,176,.13); border-color:rgba(30,196,176,.3); }
.nt-bright{ color:#5b9bff; background:rgba(91,155,255,.12); border-color:rgba(91,155,255,.28); }
.nt-slate{ color:#8094b8; background:rgba(128,148,184,.12); border-color:rgba(128,148,184,.25); }
.nt-violet{ color:#a06bff; background:rgba(160,107,255,.12); border-color:rgba(160,107,255,.28); }
.nt-orange{ color:var(--warn); background:rgba(245,181,68,.12); border-color:rgba(245,181,68,.28); }
.nt-green{ color:var(--ok); background:rgba(47,210,122,.12); border-color:rgba(47,210,122,.25); }
.node-stats{ display:flex; align-items:center; gap:13px; color:var(--dim); font-family:var(--mono); font-size:11px; }
.node-stats span{ display:flex; align-items:center; gap:4px; }
.node-stats svg{ width:12px; height:12px; }

/* puntos de nodo y junciones */
.map-dot{ position:absolute; width:7px; height:7px; border-radius:50%; transform:translate(-50%,-50%); z-index:2; opacity:.85;
  background:var(--blue-2); box-shadow:0 0 9px 1px var(--blue-glow); }
.map-dot.reco{ background:var(--cyan); box-shadow:0 0 9px 1px rgba(40,224,200,.55); }
.map-dot.popular{ background:var(--warn); box-shadow:0 0 9px 1px rgba(245,181,68,.55); }
.map-jdot{ position:absolute; width:5px; height:5px; border-radius:50%; transform:translate(-50%,-50%); z-index:1; pointer-events:none;
  background:var(--blue-2); opacity:.45; box-shadow:0 0 6px 1px var(--blue-glow); }

/* leyenda 5 estados */
.map-legend{ display:flex; justify-content:center; flex-wrap:wrap; gap:20px; padding:13px; border-top:1px solid var(--line); }
.lg{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); }
.lg i{ width:9px; height:9px; border-radius:50%; display:block; }
.lg svg{ width:13px; height:13px; }
.lg.nuevo i{ background:var(--blue-2); box-shadow:0 0 8px var(--blue-glow); }
.lg.popular i{ background:var(--warn); box-shadow:0 0 8px rgba(245,181,68,.7); }
.lg.reco i{ background:var(--cyan); box-shadow:0 0 8px rgba(40,224,200,.7); }
.lg.oficial{ color:#e9c45a; } .lg.colab{ color:var(--cyan); }

/* ===== continuidad: secciones del main ===== */
.com-section{ margin-top:24px; }
.com-bottom-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }

/* ===== foro técnico ===== */
.forum-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:18px; }
.forum-cat{ display:flex; gap:12px; padding:14px; border-radius:14px; background:rgba(255,255,255,.02);
  border:1px solid var(--line); cursor:pointer; transition:border-color .18s, background .18s, transform .18s; }
.forum-cat:hover{ border-color:var(--line-blue); background:rgba(46,123,255,.06); transform:translateY(-2px); }
.forum-ic{ width:40px; height:40px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:var(--panel-3); border:1px solid var(--line-2); color:var(--cyan); }
.forum-ic svg{ width:21px; height:21px; }
.forum-t{ font-family:var(--display); font-weight:600; font-size:14.5px; }
.forum-d{ font-size:12px; color:var(--muted); line-height:1.4; margin-top:2px; }
.forum-m{ display:flex; gap:14px; margin-top:8px; color:var(--dim); font-family:var(--mono); font-size:11px; }
.forum-m span{ display:flex; align-items:center; gap:5px; } .forum-m svg{ width:13px; height:13px; }

/* ===== archivos ===== */
.files-wrap{ padding:4px 8px 8px; }
.ftable{ width:100%; border-collapse:collapse; }
.ftable th{ text-align:left; font-size:11px; letter-spacing:.04em; color:var(--dim); font-weight:600; padding:10px 12px; }
.ftable td{ padding:12px 12px; border-top:1px solid var(--line); vertical-align:middle; }
.ftable tr:hover td{ background:rgba(255,255,255,.02); }
.fname{ display:flex; align-items:center; gap:11px; font-family:var(--mono); font-size:13.5px; color:var(--text); font-weight:500; }
.fname svg{ width:17px; height:17px; color:var(--dim); flex:none; }
.fglyph{ position:relative; width:30px; height:38px; border-radius:6px; flex:none; display:grid; place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 4px 10px -4px rgba(0,0,0,.6); overflow:hidden; }
.fglyph::before{ content:''; position:absolute; top:0; right:0; border-style:solid; border-width:0 10px 10px 0; }
.fglyph b{ font-family:var(--display); font-weight:800; font-size:8.5px; letter-spacing:.02em; color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.5); }
.fglyph.l5x{ background:linear-gradient(160deg,#2ee6cf,#127e6d); } .fglyph.l5x::before{ border-color:transparent #0c3b34 transparent transparent; }
.fglyph.hmi{ background:linear-gradient(160deg,#3b92ff,#1b46b8); } .fglyph.hmi::before{ border-color:transparent #102a66 transparent transparent; }
.fglyph.pdf{ background:linear-gradient(160deg,#ff6573,#c12f3d); } .fglyph.pdf::before{ border-color:transparent #6e1820 transparent transparent; }
.fglyph.acd{ background:linear-gradient(160deg,#a878ff,#5a2fb0); } .fglyph.acd::before{ border-color:transparent #341a66 transparent transparent; }
.ftype{ display:inline-block; font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:.04em; padding:3px 8px; border-radius:6px; }
.ftype.l5x{ color:var(--cyan); background:var(--cyan-soft); }
.ftype.hmi{ color:var(--blue-2); background:var(--blue-soft); }
.ftype.pdf{ color:var(--bad); background:rgba(255,92,108,.12); }
.ftype.acd{ color:var(--warn); background:rgba(245,181,68,.12); }
.fauthor{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.fauthor .av{ width:24px; height:24px; border-radius:7px; font-size:9.5px; font-weight:700; color:#fff; display:grid; place-items:center; font-family:var(--display); flex:none; }
.fdate{ color:var(--muted); font-family:var(--mono); font-size:12px; }
.fcell-dl{ display:flex; align-items:center; gap:12px; }
.fdl{ color:var(--muted); font-family:var(--mono); font-size:12.5px; }
.fbtn{ width:30px; height:30px; border-radius:8px; display:grid; place-items:center; color:var(--muted);
  background:var(--panel-3); border:1px solid var(--line-2); cursor:pointer; transition:color .15s, border-color .15s; }
.fbtn:hover{ color:var(--cyan); border-color:var(--line-blue); } .fbtn svg{ width:15px; height:15px; }
.files-foot{ display:flex; align-items:center; justify-content:space-between; padding:14px 14px 6px; border-top:1px solid var(--line); margin-top:2px; }
.files-foot .note{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12.5px; }
.files-foot .note svg{ width:15px; height:15px; color:var(--cyan); }
.upload-link{ display:flex; align-items:center; gap:7px; color:var(--blue-2); font-size:13.5px; font-weight:600; cursor:pointer; }
.upload-link:hover{ color:var(--cyan); } .upload-link svg{ width:16px; height:16px; }

/* ===== proyecto de la semana ===== */
.weekly{ display:grid; grid-template-columns:240px 1fr; gap:0; overflow:hidden; }
.weekly-media{ position:relative; display:grid; place-items:center; color:var(--cyan); padding:26px;
  background:radial-gradient(130% 120% at 30% 10%, rgba(40,224,200,.2), rgba(46,123,255,.08)); border-right:1px solid var(--line); }
.weekly-media svg{ width:84px; height:84px; opacity:.95; }
.weekly-tag{ position:absolute; top:14px; left:14px; display:inline-flex; align-items:center; gap:6px;
  padding:5px 11px; border-radius:999px; font-size:11px; font-weight:600; color:#0a1020;
  background:linear-gradient(180deg,#f5c869,#e0a93a); }
.weekly-tag svg{ width:12px; height:12px; }
.weekly-body{ padding:22px 24px; }
.weekly-body h3{ font-family:var(--display); font-size:21px; font-weight:600; }
.weekly-who{ display:flex; align-items:center; gap:8px; margin-top:8px; color:var(--muted); font-size:13px; }
.weekly-who .av{ width:22px; height:22px; border-radius:6px; font-size:9px; font-weight:700; color:#fff; display:grid; place-items:center; font-family:var(--display); }
.weekly-desc{ color:var(--muted); font-size:14px; line-height:1.55; margin:12px 0 14px; max-width:62ch; }
.weekly-foot{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.weekly-tags{ display:flex; gap:7px; flex-wrap:wrap; }
.weekly-foot .btn{ margin-left:auto; }

/* ===== rail derecho ===== */
.com-rail{ display:flex; flex-direction:column; gap:18px; position:static; }
.rail-card{ padding:18px; }
.rail-head{ display:flex; align-items:center; margin-bottom:14px; }
.rail-head h4{ font-family:var(--display); font-size:15px; font-weight:600; }
.rail-head .ver-todo{ margin-left:auto; }

.act{ position:relative; display:flex; gap:11px; align-items:center; padding:13px 0 13px 13px; border-top:1px solid var(--line); }
.act:first-child{ border-top:0; }
.act-dot{ position:absolute; left:0; top:50%; transform:translateY(-50%); width:7px; height:7px; border-radius:50%;
  box-shadow:0 0 8px 1px rgba(255,255,255,.25); }
.act .av{ width:38px; height:38px; flex:none; font-size:12px; font-weight:700; color:#fff; display:grid; place-items:center; font-family:var(--display);
  clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  box-shadow:0 0 0 1px rgba(120,180,255,.25); }
.act-main{ flex:1; min-width:0; }
.act-txt{ font-size:13px; color:var(--muted); line-height:1.45; }
.act-txt b{ color:var(--text); font-weight:700; }
.act-txt .lk{ color:var(--blue-2); font-weight:600; }
.act-age{ display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--dim); margin-top:4px; font-family:var(--mono); }
.act-age svg{ width:12px; height:12px; }
.act-ic{ width:38px; height:38px; border-radius:10px; flex:none; display:grid; place-items:center;
  color:var(--cyan); background:var(--cyan-soft); border:1px solid rgba(40,224,200,.25); align-self:center; transition:all .15s; }
.act-ic:hover{ background:rgba(40,224,200,.16); border-color:var(--cyan); }
.act-ic svg{ width:16px; height:16px; }

.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud .chip{ font-family:var(--body); font-size:12.5px; cursor:pointer; transition:border-color .16s, color .16s, background .16s; }
.tag-cloud .chip:hover{ color:var(--blue-2); border-color:var(--line-blue); background:var(--blue-soft); }
.rail-foot-link{ display:block; text-align:center; margin-top:14px; font-size:13px; color:var(--blue-2); font-weight:600; cursor:pointer; }
.rail-foot-link:hover{ color:var(--cyan); }

.collab-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.collab{ position:relative; text-align:center; padding:13px 8px 13px; border-radius:14px; overflow:hidden;
  border:1px solid color-mix(in srgb, var(--cc) 36%, transparent);
  background:linear-gradient(180deg, color-mix(in srgb, var(--cc) 13%, transparent), color-mix(in srgb, var(--cc) 3%, transparent)); }
.collab::after{ content:''; position:absolute; left:26%; right:26%; bottom:0; height:2px; border-radius:2px;
  background:var(--cc); box-shadow:0 0 10px 1px var(--cc); }
.collab-rank{ position:relative; display:inline-block; width:30px; height:32px; margin-bottom:2px; }
.collab-rank .crown{ position:absolute; top:0; left:50%; transform:translateX(-50%); width:26px; height:17px; fill:var(--cc);
  filter:drop-shadow(0 0 5px color-mix(in srgb, var(--cc) 55%, transparent)); }
.collab-rank i{ position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:20px; height:18px;
  display:grid; place-items:center; font:800 11px/1 var(--display); color:#0a1020; background:var(--cc); border-radius:5px;
  box-shadow:0 2px 6px -1px color-mix(in srgb, var(--cc) 60%, transparent); }
.collab-medal{ width:100%; max-width:116px; margin:0 auto; }
.collab-img{ width:100%; aspect-ratio:1/1; object-fit:contain; display:block; filter:drop-shadow(0 6px 13px rgba(0,0,0,.45)); }
.collab .cav{ position:relative; width:54px; height:54px; border-radius:14px; margin:6px auto; font-size:16px; font-weight:700;
  color:#fff; display:grid; place-items:center; font-family:var(--display); }
.collab .cn{ font-size:13px; font-weight:700; color:var(--text); margin-top:7px; }
.collab .cp{ font-family:var(--mono); font-size:11px; color:var(--cc); font-weight:600; margin-top:1px; }

.connect-ai{ background:radial-gradient(130% 120% at 100% 0%, rgba(40,224,200,.12), transparent 58%), linear-gradient(180deg,var(--panel-2),var(--panel)); }
.connect-ai .ca-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.connect-ai h4{ font-family:var(--display); font-size:15px; font-weight:600; }
.connect-ai .soon{ margin-left:auto; }
.connect-ai p{ font-size:13px; color:var(--muted); line-height:1.5; }
.connect-ai .ca-link{ display:inline-flex; align-items:center; gap:7px; margin-top:13px; color:var(--blue-2); font-size:13.5px; font-weight:600; cursor:pointer; }
.connect-ai .ca-link:hover{ color:var(--cyan); } .connect-ai .ca-link svg{ width:15px; height:15px; }

/* ===== modales ===== */
.com-overlay{ position:fixed; inset:0; z-index:120; background:rgba(4,7,14,.74); backdrop-filter:blur(6px);
  display:flex; align-items:flex-start; justify-content:center; padding:56px 20px; overflow-y:auto;
  opacity:0; pointer-events:none; transition:opacity .22s; }
.com-overlay.open{ opacity:1; pointer-events:auto; }
.com-modal{ width:100%; max-width:560px; background:linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line-2); border-radius:var(--r-lg); box-shadow:var(--shadow); transform:translateY(14px); transition:transform .24s; }
.com-overlay.open .com-modal{ transform:translateY(0); }
.com-modal-head{ display:flex; align-items:center; gap:12px; padding:20px 24px; border-bottom:1px solid var(--line); }
.com-modal-x{ margin-left:auto; width:34px; height:34px; border-radius:9px; display:grid; place-items:center;
  background:rgba(255,255,255,.03); border:1px solid var(--line-2); color:var(--muted); }
.com-modal-x:hover{ color:var(--text); border-color:var(--line-blue); background:var(--blue-soft); } .com-modal-x svg{ width:17px; height:17px; }
.com-modal-body{ padding:24px; }
.com-field{ margin-bottom:16px; }
.com-field label{ display:block; font-size:12px; font-weight:600; color:var(--blue-2); margin-bottom:7px; }
.com-input, .com-textarea, .com-select{ width:100%; background:var(--panel-2); border:1px solid var(--line-2); border-radius:11px; color:var(--text); font-family:var(--body); font-size:14px; padding:12px 13px; }
.com-textarea{ resize:vertical; min-height:96px; line-height:1.5; }
.com-input:focus, .com-textarea:focus, .com-select:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }
.com-tagrow{ display:flex; gap:8px; flex-wrap:wrap; }
.com-tagrow .chip{ font-family:var(--body); cursor:pointer; transition:border-color .16s, background .16s, color .16s; }
.com-tagrow .chip:hover{ border-color:var(--line-blue); color:var(--text); }
.com-tagrow .chip.sel{ color:var(--blue-2); border-color:var(--line-blue); background:var(--blue-soft); }
.com-actions-r{ display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }

/* ===== drawer contextual de proyecto ===== */
.proj-drawer{ position:fixed; top:0; right:0; bottom:0; width:412px; max-width:92vw; z-index:130;
  background:linear-gradient(180deg,var(--panel-2),var(--panel)); border-left:1px solid var(--line-2);
  box-shadow:-30px 0 60px -24px rgba(0,0,0,.7); transform:translateX(100%); transition:transform .26s ease;
  display:flex; flex-direction:column; }
.proj-drawer.open{ transform:translateX(0); }
.pd-scrim{ position:fixed; inset:0; z-index:129; background:rgba(4,7,14,.5); opacity:0; pointer-events:none; transition:opacity .26s; }
.pd-scrim.open{ opacity:1; pointer-events:auto; }
.pd-head{ display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid var(--line); }
.pd-head .eyebrow{ margin:0; }
.pd-x{ margin-left:auto; width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:rgba(255,255,255,.03); border:1px solid var(--line-2); color:var(--muted); cursor:pointer; }
.pd-x:hover{ color:var(--text); border-color:var(--line-blue); } .pd-x svg{ width:17px; height:17px; }
.pd-scroll{ overflow-y:auto; padding:20px; flex:1; }
.pd-preview{ position:relative; height:150px; border-radius:14px; display:grid; place-items:center; color:var(--cyan); margin-bottom:16px;
  background:radial-gradient(130% 130% at 30% 0%, rgba(40,224,200,.22), rgba(46,123,255,.1)); border:1px solid var(--line-2); }
.pd-prev-img{ width:100%; height:100%; object-fit:contain; }
.pd-flag{ position:absolute; top:12px; left:12px; display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-size:10.5px; font-weight:600; color:#0a1020; background:linear-gradient(180deg,#f5c869,#e0a93a); }
.pd-flag svg{ width:12px; height:12px; }
.pd-title{ font-family:var(--display); font-size:21px; font-weight:600; line-height:1.2; }
.pd-who{ display:flex; align-items:center; gap:8px; margin-top:8px; color:var(--muted); font-size:13px; }
.pd-who .av{ width:22px; height:22px; border-radius:6px; font-size:9px; font-weight:700; color:#fff; display:grid; place-items:center; font-family:var(--display); }
.pd-desc{ color:var(--muted); font-size:14px; line-height:1.55; margin:14px 0; }
.pd-specs{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.spec{ background:rgba(255,255,255,.02); border:1px solid var(--line); border-radius:11px; padding:11px 12px; }
.spec .sl{ font-size:11px; color:var(--dim); }
.spec .sv{ font-family:var(--mono); font-size:13px; color:var(--text); margin-top:3px; }
.pd-sub{ font-family:var(--display); font-size:13px; font-weight:600; color:var(--text); margin:16px 0 9px; }
.pd-list{ display:flex; flex-direction:column; gap:7px; }
.pd-li{ display:flex; align-items:center; gap:9px; font-size:13px; color:var(--muted); }
.pd-li svg{ width:15px; height:15px; color:var(--cyan); flex:none; }
.pd-file{ display:flex; align-items:center; gap:9px; font-family:var(--mono); font-size:12.5px; color:var(--text); padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.02); border:1px solid var(--line); }
.pd-file svg{ width:14px; height:14px; color:var(--dim); flex:none; }
.pd-statbar{ display:flex; gap:18px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:16px 0; }
.pd-statbar .st b{ font-family:var(--display); font-size:17px; color:var(--text); }
.pd-statbar .st span{ display:block; font-size:11px; color:var(--dim); }
.pd-actions{ padding:16px 20px; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pd-actions .btn{ width:100%; }
.pd-actions .btn.full{ grid-column:1 / -1; }

/* ===== responsive ===== */
/* 3 columnas por defecto (≥ 1380px). */
@media (max-width:1379px){
  .com-grid{ grid-template-columns:176px minmax(0,1fr); }
  .com-rail{ grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; position:static; }
  .com-rail .rail-card, .com-rail .connect-ai{ flex:1 1 260px; }
}
@media (max-width:1100px){
  .com-grid{ grid-template-columns:1fr; }
  .com-side{ position:static; }
  .com-nav-toggle{ display:flex; align-items:center; gap:9px; padding:10px 13px; border-radius:12px;
    background:var(--panel-2); border:1px solid var(--line-2); color:var(--text); font-weight:600; font-size:14px; cursor:pointer; }
  .com-nav-toggle svg{ width:18px; height:18px; }
  .com-nav{ flex-direction:row; flex-wrap:wrap; }
  .com-nav.collapsed{ display:none; }
  .com-loxi{ display:none; }
  .com-bottom-grid{ grid-template-columns:1fr; }
  .map-canvas{ height:auto; min-height:260px; cursor:default; overflow:visible;
    background:radial-gradient(420px 300px at 50% 30%, rgba(46,123,255,.08), transparent 70%); }
  .map-canvas .map-edges{ display:none; }
  .map-stage{ position:static; transform:none !important; }
  .map-inner{ position:static; display:flex; gap:14px; overflow-x:auto; padding:16px; scroll-snap-type:x mandatory; }
  .map-inner .map-dot, .map-inner .map-jdot{ display:none; }
  .node{ position:static !important; transform:none !important; flex:0 0 228px; scroll-snap-align:start; }
  .node:hover{ transform:translateY(-3px) !important; }
  .node.featured{ width:260px; flex:0 0 260px; }
}
@media (max-width:900px){
  .com-head{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .com-app{ padding:18px 0 32px; }
  .com-metrics{ flex-wrap:wrap; } .metric{ flex:1 0 40%; }
  .metric + .metric::before{ display:none; }
  .com-actions .btn{ flex:1 1 auto; }
  .forum-grid{ grid-template-columns:1fr; }
  .ftable, .ftable tbody, .ftable tr, .ftable td{ display:block; width:100%; }
  .ftable thead{ display:none; }
  .ftable tr{ border:1px solid var(--line); border-radius:12px; margin-bottom:10px; padding:6px 10px; }
  .ftable td{ border-top:0; padding:6px 2px; }
  .fcell-dl{ justify-content:flex-start; }
}
