/* Wakoo Interfaz · Barra de pestañas animada (lámpara, burbuja, gota) */
.wk-ui-tb { --_h: var(--tb-h, 56px); --_r: var(--tb-r, 28px); --_dur: var(--tb-dur, .5s); --_icon: var(--tb-icon, 18px); display: flex; padding-top: 34px; }
.wk-ui-tb--lamp { padding-top: 6px; }
.wk-ui-tb__defs { position: absolute; width: 0; height: 0; }
.wk-ui-tb__bar {
	position: relative; display: flex; align-items: stretch; width: 380px; max-width: 100%; height: var(--_h);
	border-radius: var(--_r); box-sizing: border-box; isolation: isolate;
}
.wk-ui-tb__item {
	position: relative; z-index: 2; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	text-decoration: none; color: var(--_ic); -webkit-tap-highlight-color: transparent; outline-offset: -4px; border-radius: var(--_r);
	transition: color .3s ease;
}
.wk-ui-tb__icon { display: grid; place-items: center; width: calc(var(--_icon) + 6px); height: calc(var(--_icon) + 6px); font-size: var(--_icon); transition: transform var(--_dur) cubic-bezier(.34, 1.56, .64, 1), color .3s, opacity .2s; }
.wk-ui-tb__icon svg { width: var(--_icon); height: var(--_icon); fill: currentColor; }
.wk-ui-tb__icon i { color: inherit; }
.wk-ui-tb__label { font-size: 10px; line-height: 1; font-weight: 500; white-space: nowrap; }
.wk-ui-tb:not(.has-labels) .wk-ui-tb__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wk-ui-tb__ind { position: absolute; z-index: 1; left: calc((var(--i) + .5) * 100% / var(--n)); pointer-events: none; transition: left var(--_dur) cubic-bezier(.65, 0, .35, 1); }

/* 1 · Lámpara */
.wk-ui-tb--lamp { --_bg: var(--tb-bg, #1c1b20); --_ic: var(--tb-ic, #8e8c96); --_ac: var(--tb-ac, #e5383b); }
.wk-ui-tb--lamp .wk-ui-tb__bar { background: var(--_bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); overflow: hidden; }
.wk-ui-tb--lamp .wk-ui-tb__ind { top: 0; width: 34px; height: 3px; translate: -50% 0; background: var(--_ac); border-radius: 0 0 4px 4px; box-shadow: 0 0 12px 2px var(--_ac); }
.wk-ui-tb--lamp .wk-ui-tb__ind::after {
	content: ""; position: absolute; top: 3px; left: 50%; translate: -50% 0; width: 64px; height: calc(var(--_h) * .7);
	background: linear-gradient(to bottom, color-mix(in srgb, var(--_ac) 42%, transparent), transparent 85%);
	clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); filter: blur(3px);
}
.wk-ui-tb--lamp .wk-ui-tb__item:hover, .wk-ui-tb--lamp .wk-ui-tb__item.is-active { color: var(--_ac); }
.wk-ui-tb--lamp .wk-ui-tb__item.is-active .wk-ui-tb__icon { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--_ac) 70%, transparent)); }

/* 2 · Burbuja flotante */
.wk-ui-tb--bubble { --_bg: var(--tb-bg, #ffffff); --_ic: var(--tb-ic, #26262b); --_ac: var(--tb-ac, #d81b60); }
.wk-ui-tb--bubble .wk-ui-tb__bar { background: var(--_bg); box-shadow: 0 10px 30px rgba(40, 50, 90, .14); }
.wk-ui-tb--bubble .wk-ui-tb__ind {
	top: calc(var(--_h) * -.3); width: calc(var(--_h) * .82); height: calc(var(--_h) * .82); translate: -50% 0; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--_ac) 70%, #fff), var(--_ac) 60%);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--_ac) 45%, transparent), 0 0 0 5px var(--_bg);
}
.wk-ui-tb--bubble .wk-ui-tb__item.is-active { color: #fff; }
.wk-ui-tb--bubble .wk-ui-tb__item.is-active .wk-ui-tb__icon { transform: translateY(calc(var(--_h) * -.3 + var(--_h) * .41 - var(--_h) / 2)); }
.wk-ui-tb--bubble.has-line .wk-ui-tb__bar::after { content: ""; position: absolute; bottom: 7px; left: 50%; translate: -50% 0; width: 30%; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--_ic) 18%, transparent); }
.wk-ui-tb--bubble.has-labels .wk-ui-tb__item.is-active .wk-ui-tb__label { opacity: 0; }

/* 3 · Gota líquida */
.wk-ui-tb--liquid { --_bg: var(--tb-bg, #ffffff); --_ic: var(--tb-ic, #2a2a33); --_ac: var(--tb-ac, #2a2a33); --_cur: #e9a6c8; }
.wk-ui-tb--liquid .wk-ui-tb__bar { filter: drop-shadow(0 10px 22px rgba(40, 50, 90, .14)); }
.wk-ui-tb__goo { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; top: -110px; pointer-events: none; }
.wk-ui-tb__fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--_h); border-radius: var(--_r); background: var(--_bg); transition: background-color var(--_dur) ease; }
.wk-ui-tb--liquid.is-tinted .wk-ui-tb__fill { background: color-mix(in srgb, var(--_cur) 34%, var(--_bg)); }
.wk-ui-tb__drop, .wk-ui-tb__bubble {
	position: absolute; left: calc((var(--i) + .5) * 100% / var(--n)); width: calc(var(--_h) * .66); height: calc(var(--_h) * .66);
	margin-left: calc(var(--_h) * -.33); border-radius: 50%;
}
.wk-ui-tb__drop { bottom: calc(var(--_h) - var(--_h) * .33); background: color-mix(in srgb, var(--_cur) 70%, #fff); transition: background-color var(--_dur) ease; }
.wk-ui-tb__bubble { z-index: 3; top: calc(var(--_h) * -.33); display: grid; place-items: center; color: var(--_ac); font-size: calc(var(--_icon) * .85); pointer-events: none; }
.wk-ui-tb__bubble svg { width: calc(var(--_icon) * .85); height: calc(var(--_icon) * .85); fill: currentColor; }
.wk-ui-tb--liquid .wk-ui-tb__item.is-active .wk-ui-tb__icon { opacity: 0; }
.wk-ui-tb--liquid .wk-ui-tb__item.is-active .wk-ui-tb__label { font-weight: 700; color: var(--_ac); }
.wk-ui-tb--liquid .wk-ui-tb__item::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--_ac); opacity: 0; transform: scale(0); transition: .3s; }
.wk-ui-tb--liquid .wk-ui-tb__item.is-active::after { opacity: 1; transform: scale(1); }
.wk-ui-tb--liquid:not(.has-labels) .wk-ui-tb__item::after { display: none; }

/* fixed at the bottom */
.wk-ui-tb--bottom { position: fixed; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9980; justify-content: center !important; pointer-events: none; }
.wk-ui-tb--bottom .wk-ui-tb__bar { pointer-events: auto; width: min(420px, calc(100vw - 24px)) !important; }
@media (max-width: 767px) {
	.wk-ui-tb--bottom-mobile { position: fixed; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9980; justify-content: center !important; pointer-events: none; }
	.wk-ui-tb--bottom-mobile .wk-ui-tb__bar { pointer-events: auto; width: calc(100vw - 24px) !important; }
}
@media (prefers-reduced-motion: reduce) {
	.wk-ui-tb *, .wk-ui-tb *::after { transition-duration: .01s !important; }
}
