.mainmenu {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 4px solid #312eeb;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mainmenu button {
  border: 0;
  background: transparent;
  color: #1e1b4b;
  font-weight: 950;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.mainmenu button:hover {
  background: #ede9fe;
  color: #6d28d9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: #ede9fe;
  color: #6d28d9;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 24px;
  cursor: pointer;
}

.modal-box h2 {
  margin-top: 0;
  color: #312eeb;
}

.mainmenu {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 4px solid #312eeb;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mainmenu button {
  border: 0;
  background: transparent;
  color: #1e1b4b;
  font-weight: 950;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.mainmenu button:hover {
  background: #ede9fe;
  color: #6d28d9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: #ede9fe;
  color: #6d28d9;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 24px;
  cursor: pointer;
}

.mainmenu {
  position: sticky;
  top: 0;
  z-index: 50;
}

.view-switch{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin:10px auto 0;
}

.view-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  border:1px solid #e2e8f0;
  text-decoration:none;
  font-size:20px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.view-btn:hover,
.view-btn.active{
  outline:2px solid #6d28d9;
  background:#f5f3ff;
}

.flag-workspace {
  margin-top: 28px;
}

.flag-workspace {
  margin-top: 32px;
}

.flag-stage {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  overflow: auto;
}

#cuadritosflag {
  display: grid;
  grid-template-columns: repeat(100, 10px);
  grid-auto-rows: 10px;
  gap: 2px;
  width: max-content;
  margin: 0 auto;
}

.flag-cell {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background-color: var(--cell-color);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.flag-cell.available {
  opacity: 0.05;
}

.flag-cell.sold {
  opacity: 1;
}

.flag-cell.memorial {
  opacity: 1;
  filter: brightness(0.42) saturate(0.9);
}

.flag-cell:hover {
  transform: scale(1.8);
  z-index: 5;
  position: relative;
  outline: 1px solid rgba(255, 255, 255, 0.9);
}

.flag-workspace {
  margin-top: 32px;
}

