/* ═══════════ B2 — Mapa de Sala ═══════════ */

.sc-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: flex-start;
}

.sc-board {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 14px;
}

.sc-blackboard {
  background: linear-gradient(135deg, #1f3d1f, #2d4f2d);
  color: #d4f0d4;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  padding: 14px;
  border-radius: 6px 6px 2px 2px;
  font-size: 0.86rem;
  margin-bottom: 12px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3);
}

.sc-back {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  padding: 6px;
  border-top: 2px dashed var(--border2);
}

.sc-grid {
  display: grid;
  gap: 8px;
}

.sc-cell {
  min-height: 70px;
  background: var(--bg);
  border: 2px dashed var(--border2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sc-cell.sc-occupied {
  border-style: solid;
  border-color: var(--teal);
  background: rgba(34, 211, 238, 0.06);
}
.sc-cell:hover {
  border-color: var(--gold);
}

.sc-empty {
  font-size: 0.66rem;
  color: var(--muted2);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.5;
}

.sc-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  cursor: move;
  user-select: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.sc-avatar {
  font-size: 1.4rem;
  line-height: 1;
}

.sc-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--fg);
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.sc-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  display: none;
}
.sc-cell:hover .sc-remove { display: block; }

.sc-bench {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.sc-bench-hd {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}

.sc-bench-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 100px;
}

.sc-bench-seat {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 6px 4px;
  min-height: 56px;
  transition: border-color 0.15s ease;
}
.sc-bench-seat:hover { border-color: var(--teal); }

@media (max-width: 800px) {
  .sc-wrap { grid-template-columns: 1fr; }
  .sc-bench { position: static; max-height: none; }
  .sc-bench-list { grid-template-columns: repeat(3, 1fr); }
}
