/*
 * LiquidBar web — estilos base. Todo lo que se anima lo escribe liquidbar.js en cada fotograma;
 * aquí solo va la estructura. Personaliza colores y cristal con las opciones de LiquidBar.create().
 */
/* :where() deja la especificidad a 0: la posición y el ancho los decide el contenedor de cada web. */
:where(.lbw) {
  position: relative;
  display: block;
  width: 100%;
}
.lbw {
  height: 68px;
  color: var(--lbw-content, rgba(255, 255, 255, .82));
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.lbw *, .lbw *::before, .lbw *::after { box-sizing: border-box; }

/* Superficies de cristal: fondo + filo de luz (::before) + contorno oscuro (::after) */
.lbw-glass {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  overflow: hidden;
  transform-origin: center;
}
.lbw-glass-el { position: relative; }
.lbw-glass::before,
.lbw-glass::after,
.lbw-lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lbw-glass::before,
.lbw-lens::before {
  padding: var(--lbw-rim-w, .8px);
  background: linear-gradient(135deg, var(--lbw-rim, transparent) 0%, transparent 42%, transparent 58%, var(--lbw-rim-end, transparent) 100%);
}
.lbw-glass::after {
  padding: var(--lbw-drim-w, 1.6px);
  background: linear-gradient(225deg, var(--lbw-drim, transparent) 0%, transparent 35%, transparent 65%, var(--lbw-drim, transparent) 100%);
}

/* Brillo bajo el dedo (GlassGlow) */
.lbw-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: plus-lighter;
}

/* Pestañas */
.lbw-group {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.lbw-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  overflow: hidden;
}
.lbw-cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-drag: none;
}
.lbw-cell.is-sel { color: var(--lbw-accent, #0A84FF); }
.lbw-cell:focus-visible { outline: 2px solid var(--lbw-accent, #0A84FF); outline-offset: -2px; }
.lbw-ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transform-origin: center;
}
.lbw-ico > svg { width: 25.6px; height: 25.6px; display: block; }
.lbw-lab {
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
}
.lbw-cell.is-sel .lbw-lab { font-weight: 700; }

/* La lupa */
.lbw-lens {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  z-index: 1;
  --lbw-rim-w: .5px;
}
.lbw-lens:active { cursor: grabbing; }
.lbw-lens-c {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.lbw-clone {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--lbw-accent, #0A84FF);
  pointer-events: none;
}
.lbw-clone .lbw-cell { cursor: inherit; transform-origin: center; }

/* Círculos: pestaña plegada y acción */
.lbw-btn {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  transform-origin: center;
}
.lbw-btn:focus-visible { outline: 2px solid var(--lbw-accent, #0A84FF); outline-offset: 2px; }
.lbw-single { color: var(--lbw-accent, #0A84FF); }
.lbw-btn .lbw-ico { position: absolute; left: 50%; margin-left: -16px; }
.lbw-btn .lbw-lab { position: absolute; left: 0; right: 0; text-align: center; }
.lbw-single .lbw-lab { font-weight: 700; }
.lbw-act-solo .lbw-ico { top: 50% !important; margin-top: -16px; }
.lbw-act-solo .lbw-ico > svg { width: 28.8px; height: 28.8px; }
.lbw-act-glass { z-index: 2; }
.lbw-act { z-index: 3; }

/* ───────── Píldora (LiquidBar.createPill, port de LiquidPillBar) ───────── */
/* La anchura la pone el JS (se ajusta al contenido); centra la barra en tu contenedor. */
.lbp { height: 64px; color: var(--lbw-content, rgba(255, 255, 255, .72)); }
.lbp-surface { height: 64px; }
/* Riel vertical: solo iconos, cada pestaña es un círculo de 48 px */
.lbp-v .lbp-tab { left: 0; width: 48px; justify-content: center; }
.lbp-v .lbp-labw { display: none; }
.lbp-row {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 48px;
}
.lbp-tab {
  position: absolute;
  top: 0;
  height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center;
  -webkit-user-drag: none;
}
.lbp-tab:focus-visible { outline: 2px solid var(--lbw-accent, #0A84FF); outline-offset: -2px; }
.lbp-ico {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  transform-origin: center;
}
.lbp-ico > svg { width: 24px; height: 24px; display: block; }
.lbp-labw { flex: none; display: block; overflow: hidden; }
/* Tipografía de LiquidPillDefaults.LabelStyle (14/20, peso 500); la web puede sobrescribirla. */
.lbp-lab {
  display: inline-block;
  padding-left: 7px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
}
.lbp-meter { position: absolute; visibility: hidden; pointer-events: none; left: 0; top: 0; }
.lbp-lens { z-index: 1; --lbw-rim-w: .8px; pointer-events: none; }
.lbp-hit {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  z-index: 2;
  touch-action: none;
  cursor: grab;
}
.lbp-hit:active { cursor: grabbing; }
.lbp-clone {
  position: absolute;
  top: 0;
  left: 0;
  height: 48px;
  pointer-events: none;
}
.lbp-clone .lbp-tab { cursor: inherit; }
