/* Lo que la galería le agrega a cada demo: la barra de ejemplo y el panel de colores.
   Tiene sus propios colores fijos a propósito: no es parte de la plantilla, y no cambia con la paleta. */

.demo-barra {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: .6rem clamp(16px, 4vw, 56px);
  background: #22252B;
  color: #F2F3F5;
  font: 400 .92rem/1.4 "Instrument Sans", system-ui, sans-serif;
}
.demo-barra a { color: #fff; font-weight: 700; }

.sel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  font: 400 .95rem/1.45 "Instrument Sans", system-ui, sans-serif;
  color: #1E2126;
}
.sel-boton {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .95rem .55rem .6rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1E2126;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.18);
  cursor: pointer;
}
.sel-muestras { display: inline-flex; }
.sel-muestras i {
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -.35rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.sel-muestras i:first-child { margin-left: 0; }

.sel-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(22rem, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.sel-panel[hidden] { display: none; }
.sel-cabeza { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.sel-panel h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.sel-cerrar {
  border: 0; background: none; font: inherit; font-size: 1.4rem; line-height: 1;
  padding: 0 .2rem; cursor: pointer; color: #555B66;
}
.sel-desc { margin: .4rem 0 .8rem; }
.sel-ficha { margin: 0 0 .9rem; display: grid; gap: .45rem; }
.sel-ficha div { display: grid; }
.sel-ficha dt { font-weight: 700; font-size: .85rem; color: #555B66; }
.sel-ficha dd { margin: 0; }

.sel-colores { border: 0; margin: 0; padding: .8rem 0 0; border-top: 1px solid #E3E5E9; }
.sel-colores legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.sel-opcion {
  display: flex; align-items: center; gap: .7rem;
  padding: .4rem .5rem; margin: 0 -.5rem;
  border-radius: 8px; cursor: pointer;
}
.sel-opcion:hover { background: #F2F3F5; }
.sel-opcion input { accent-color: #1E2126; margin: 0; }
.sel-opcion:has(input:checked) { background: #EDEFF3; font-weight: 700; }
.sel-nota { margin: .6rem 0 0; font-size: .85rem; color: #555B66; }
.sel-todas { display: inline-block; margin-top: .7rem; font-weight: 700; color: #1E2126; }

.sel :focus-visible { outline: 3px solid #2F6FEB; outline-offset: 2px; }

/* «Quiero esta»: el verde de WhatsApp, porque es ahí adonde lleva. */
.demo-acciones { display: inline-flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.demo-barra .demo-quiero {
  background: #1C7C43; color: #fff; text-decoration: none;
  padding: .15rem .7rem; border-radius: 999px;
}
.sel-quiero {
  display: block; margin-top: 1rem; padding: .7rem 1rem;
  background: #1C7C43; color: #fff; border-radius: 10px;
  text-align: center; font-weight: 700; text-decoration: none;
}
.sel-quiero:hover { background: #166636; }

/* Para sacar la miniatura: la plantilla sola, sin nada de la galería. */
.es-miniatura .demo-barra, .es-miniatura .sel { display: none !important; }
