* {
  box-sizing: border-box
}
body,
html {
  height: 100%;
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--color-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-fg);
  font-family: 'Segoe UI',sans-serif
}
body {
  padding: 30px 40px;
  min-height: 100vh
}
h1 {
  font-weight: 400;
  margin: 0
}
.coleccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px
}
.coleccion-header-botones {
  display: flex;
  align-items: center;
  gap: 10px
}
.texto-matrix {
  font-family: 'Courier New',monospace;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--color-fg);
  opacity: .85;
  user-select: none;
  white-space: pre;
  cursor: pointer;
  transition: opacity .15s ease
}
.texto-matrix:hover {
  opacity: 1
}
.texto-matrix.oculto {
  display: none
}
.toggle-colecciones {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-fg);
  border-radius: 8px;
  background: 0 0;
  color: var(--color-fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease,color .15s ease,background-color .15s ease
}
.toggle-colecciones svg {
  width: 18px;
  height: 18px;
  stroke: currentColor
}
.toggle-colecciones:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
  background: color-mix(in srgb,var(--color-fg) 8%,transparent)
}
.toggle-colecciones.activo {
  background: color-mix(in srgb,var(--color-seleccion,#4f7d5e) 30%,transparent);
  border-color: var(--color-seleccion,#4f7d5e);
  color: var(--color-fg)
}
.coleccion-bloque {
  border: 1px solid var(--color-fg);
  border-radius: 16px;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto
}
.coleccion-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px
}
.box {
  border: 1px solid var(--color-fg);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color .15s ease,border-color .15s ease,color .15s ease
}
.box:hover {
  background: color-mix(in srgb,var(--color-fg) 10%,transparent);
  border-color: var(--color-hover);
  color: var(--color-hover)
}
.box,
.box * {
  font-family: 'Segoe UI',sans-serif
}
@media (max-width:700px) {
  .coleccion-grid {
    grid-template-columns: 1fr
  }
}
.tema-guardado {
  font-size: 16px
}
.caja-derecha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}
.icons {
  display: flex;
  align-items: center;
  gap: 10px
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit
}
.svg-tema {
  width: 18px;
  height: 18px;
  display: block;
  stroke: #000000
}
.svg-tema .svg-fg {
  fill: var(--color-fg)
}
.svg-tema .svg-bg {
  fill: var(--color-bg)
}
.svg-tema-futurista {
  width: 18px;
  height: 18px;
  display: none;
  stroke: currentColor;
  fill: none
}
html.tema-futurista .svg-tema {
  display: none
}
html.tema-futurista .svg-tema-futurista {
  display: block
}
.icono-futurista {
  display: none
}
html.tema-futurista .icono-futurista {
  display: inline-flex
}
html.tema-futurista .icono-normal {
  display: none
}
.grid-vacio {
  grid-column: 1/-1;
  border: 1px dashed color-mix(in srgb,var(--color-fg) 50%,transparent);
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  opacity: .75;
  font-size: 14px
}
.check-seleccion {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-fg);
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  transition: background-color .15s ease,border-color .15s ease
}
.modo-seleccion .check-seleccion {
  display: inline-block
}
.tema-guardado.marcado .check-seleccion {
  background: var(--color-seleccion,#4f7d5e);
  border-color: var(--color-seleccion,#4f7d5e)
}
.tema-guardado .caja-izquierda {
  display: flex;
  align-items: center;
  min-width: 0
}
.barra-seleccion {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: color-mix(in srgb,var(--color-bg) 85%,var(--color-fg) 15%);
  border: 1px solid var(--color-fg);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 50
}
.barra-seleccion.oculta {
  display: none
}
.barra-seleccion-botones {
  display: flex;
  gap: 8px
}
.btn-barra {
  border: 1.5px solid var(--color-fg);
  border-radius: 6px;
  background: 0 0;
  color: var(--color-fg);
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease,color .15s ease,background-color .15s ease
}
.btn-barra:hover {
  border-color: var(--color-hover);
  color: var(--color-hover)
}
.btn-barra-peligro:hover {
  border-color: #e05a5a;
  color: #e05a5a
}
.coleccion-sidebar {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 240px;
  border: 1px solid var(--color-fg);
  border-radius: 10px;
  padding: 12px;
  max-height: 168px;
  overflow-y: auto;
  z-index: 40;
  background: color-mix(in srgb,var(--color-bg) 85%,var(--color-fg) 15%);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: opacity .2s ease,transform .2s ease
}
.coleccion-sidebar.oculta {
  opacity: 0;
  transform: translateY(-50%) translateX(12px);
  pointer-events: none
}
.sidebar-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .15s ease,color .15s ease
}
.sidebar-item:hover {
  background: color-mix(in srgb,var(--color-fg) 10%,transparent);
  color: var(--color-hover)
}
.sidebar-item.activa {
  background: var(--color-bg);
  color: var(--color-fg);
  font-weight: 600
}
.sidebar-vacio {
  padding: 10px 12px;
  font-size: 13px;
  opacity: .7
}
.coleccion-sidebar,
body,
html {
  scrollbar-width: none
}
.coleccion-sidebar::-webkit-scrollbar,
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none
}
.toggle-colecciones {
  outline: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none
}
.toggle-colecciones:active,
.toggle-colecciones:focus,
.toggle-colecciones:focus-visible {
  outline: 0;
  box-shadow: none
}
.icon-modo {
  opacity: 0;
  transition: opacity .15s ease
}
.box:hover .icon-modo {
  opacity: 1
}