/**
 * Block: POS Animation — estilos.
 *
 * DS (tokens reales del Figma "Minimalist Dashboard") + geometría pixel-perfect.
 * Toda medida se expresa como <px_de_figma> * var(--u), donde
 *   --u = 100cqw / 1440  →  1 px de diseño relativo al ancho del bloque.
 * Esto reproduce el Figma 1:1 y escala de forma fluida a cualquier ancho.
 *
 * Secciones: [tokens] · [escena cobro] · [escena inventarios] · [excel] · [a11y]
 */

/* ============================ TOKENS ============================ */
.gw_pos {
	container-type: inline-size;
	width: 100%;
	max-width: var(--pos-max, 760px);
	margin-inline: auto;

	--pos-bg: #f4f7f9;
	--pos-surface: #ffffff;
	--pos-panel: #e5eaef;
	--pos-sidebar: #22333b;
	--pos-chrome: #3e4349;
	--pos-tabs: #596068;
	--pos-sk: #939fac;
	--pos-sk-dark: #596068;
	--pos-line: #d3d6d8;
	--pos-nav: #8b95a0;
	--pos-action: #00b4bd;
	--pos-pink: #ff2e70;
	--pos-excel: #33b949;
}

/* Unidad de diseño: se define en cada raíz de escena (descendiente del container). */
.gw_pos__mockup,
.gw_pos__stage {
	--u: calc(100cqw / 1440);
	width: 100%;
}

/* ============================ ESCENA: COBROS ============================ */
.gw_pos__mockup {
	background: var(--pos-bg);
	border-radius: calc(40 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .14);
	overflow: hidden;
}

.gw_pos__chrome {
	display: flex;
	align-items: center;
	gap: calc(20 * var(--u));
	height: calc(85 * var(--u));
	padding-inline: calc(40 * var(--u));
	background: var(--pos-chrome);
}
.gw_pos__dot {
	width: calc(25 * var(--u));
	height: calc(25 * var(--u));
	border-radius: 50%;
	background: var(--c, #ccc);
	flex: 0 0 auto;
}

.gw_pos__body {
	display: flex;
	height: calc(939 * var(--u));
	background: var(--pos-surface);
}

.gw_pos__sidebar {
	width: calc(140 * var(--u));
	flex: 0 0 auto;
	background: var(--pos-sidebar);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: calc(50 * var(--u)) calc(30 * var(--u));
	gap: calc(68 * var(--u));
}
.gw_pos__logo {
	width: calc(75 * var(--u));
	line-height: 0;
}
.gw_pos__logo svg,
.gw_pos__logo img {
	display: block;
	width: 100%;
	height: auto;
}
.gw_pos__nav {
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
}
.gw_pos__nav span {
	width: calc(40 * var(--u));
	height: calc(40 * var(--u));
	border-radius: 50%;
	background: var(--pos-nav);
}

.gw_pos__main {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
	padding: calc(40 * var(--u));
}

.gw_pos__search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--pos-panel);
	border-radius: calc(20 * var(--u));
	padding: calc(30 * var(--u));
	flex: 0 0 auto;
}
.gw_pos__search-field {
	width: calc(305 * var(--u));
	height: calc(60 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--pos-sk);
}
.gw_pos__avatar {
	width: calc(60 * var(--u));
	height: calc(60 * var(--u));
	border-radius: 50%;
	background: var(--pos-chrome);
}

.gw_pos__content {
	display: flex;
	gap: calc(40 * var(--u));
	flex: 1 1 0;
	min-height: 0;
}

.gw_pos__left {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.gw_pos__tabs {
	display: flex;
	align-items: center;
	gap: calc(24 * var(--u));
	height: calc(74 * var(--u));
	padding: calc(20 * var(--u)) calc(45 * var(--u));
	background: var(--pos-tabs);
	border-radius: calc(20 * var(--u)) calc(20 * var(--u)) 0 0;
}
.gw_pos__tab {
	width: calc(129 * var(--u));
	height: calc(34 * var(--u));
	border-radius: 9999px;
	background: var(--pos-sk);
}
.gw_pos__tab.is-active { background: var(--pos-surface); }

.gw_pos__grid {
	flex: 1 1 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, auto);
	align-content: start;
	gap: calc(40 * var(--u)) calc(30 * var(--u));
	padding: calc(50 * var(--u));
	background: var(--pos-panel);
	border-radius: 0 0 calc(20 * var(--u)) calc(20 * var(--u));
}
.gw_pos__card {
	display: flex;
	flex-direction: column;
	gap: calc(8 * var(--u));
	transition: transform .22s ease, box-shadow .22s ease;
}
.gw_pos__card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: calc(16 * var(--u));
	background: var(--pos-surface);
}
.gw_pos__line {
	height: calc(23 * var(--u));
	border-radius: 9999px;
	background: var(--pos-sk);
}
.gw_pos__line.is-short {
	width: calc(65 * var(--u));
	height: calc(16 * var(--u));
	background: var(--pos-sk-dark);
}
.gw_pos__card.is-tap {
	transform: scale(.93);
	box-shadow: 0 0 0 calc(3 * var(--u)) var(--pos-action);
}

.gw_pos__panel {
	width: calc(400 * var(--u));
	flex: 0 0 auto;
	background: var(--pos-panel);
	border-radius: calc(20 * var(--u));
	padding: calc(52 * var(--u)) calc(30 * var(--u)) calc(39 * var(--u)) calc(32 * var(--u));
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.gw_pos__cart {
	display: flex;
	flex-direction: column;
	gap: calc(20 * var(--u));
}
.gw_pos__item {
	display: flex;
	align-items: center;
	gap: calc(16 * var(--u));
	opacity: 0;
	transform: translateX(calc(20 * var(--u)));
	transition: opacity .35s ease, transform .35s ease;
}
.gw_pos__item.is-in { opacity: 1; transform: none; }
.gw_pos__thumb {
	width: calc(110 * var(--u));
	height: calc(110 * var(--u));
	flex: 0 0 auto;
	border-radius: calc(9 * var(--u));
	background: var(--pos-surface);
}
.gw_pos__item-body {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: calc(11 * var(--u));
}
.gw_pos__pill {
	height: calc(20 * var(--u));
	border-radius: 9999px;
	background: var(--pos-sk);
}
.gw_pos__item-title { width: 100%; }
.gw_pos__item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gw_pos__item-row .is-w80 { width: calc(80 * var(--u)); height: calc(19 * var(--u)); }
.gw_pos__item-row .is-w45 { width: calc(45 * var(--u)); height: calc(19 * var(--u)); }
.gw_pos__chip {
	width: calc(75 * var(--u));
	height: calc(32 * var(--u));
	border-radius: calc(8 * var(--u));
	background: var(--pos-surface);
}

.gw_pos__bottom {
	display: flex;
	flex-direction: column;
	gap: calc(23 * var(--u));
}
.gw_pos__summary {
	background: var(--pos-surface);
	border-radius: calc(16 * var(--u));
	padding: calc(20 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
}
.gw_pos__sum-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gw_pos__sum-label {
	width: calc(167 * var(--u));
	height: calc(25 * var(--u));
	background: var(--pos-panel);
}
.gw_pos__sum-val {
	position: relative;
	width: calc(68 * var(--u));
	height: calc(25 * var(--u));
	background: var(--pos-panel);
	overflow: hidden;
}
.gw_pos__fill {
	position: absolute;
	inset: 0;
	width: 0%;
	border-radius: inherit;
	background: var(--pos-sk);
	transition: width .45s ease;
}
.gw_pos__sum-row.is-total .gw_pos__sum-label { background: var(--pos-sk-dark); }
.gw_pos__sum-row.is-total .gw_pos__sum-val { background: var(--pos-sk-dark); }
.gw_pos__sum-row.is-total .gw_pos__fill { background: var(--pos-action); }

.gw_pos__cta {
	position: relative;
	height: calc(73 * var(--u));
	border-radius: 9999px;
	background: var(--pos-action);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, filter .35s ease;
}
.gw_pos__cta.is-pressed { transform: scale(.97); }
.gw_pos__cta.is-success { filter: brightness(1.08); }
.gw_pos__cta-bar {
	width: calc(120 * var(--u));
	height: calc(16 * var(--u));
	border-radius: 9999px;
	background: rgba(255, 255, 255, .9);
	transition: opacity .2s ease;
}
.gw_pos__cta.is-success .gw_pos__cta-bar { opacity: 0; }
.gw_pos__cta-check {
	position: absolute;
	width: calc(34 * var(--u));
	height: calc(18 * var(--u));
	border-left: calc(6 * var(--u)) solid #fff;
	border-bottom: calc(6 * var(--u)) solid #fff;
	transform: rotate(-45deg) scale(0);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.gw_pos__cta.is-success .gw_pos__cta-check { transform: rotate(-45deg) scale(1); }

/* Cobros — JS toma el control: parte vacío y construye. Sin JS, queda estático.
   Acotado a is-scene-cobro: Facturación reusa este mockup con el carrito LLENO. */
.gw_pos.is-scene-cobro.is-animating .gw_pos__item { opacity: 0; transform: translateX(calc(20 * var(--u))); }
.gw_pos.is-scene-cobro.is-animating .gw_pos__item.is-in { opacity: 1; transform: none; }
.gw_pos.is-scene-cobro.is-animating .gw_pos__summary {
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
}
.gw_pos.is-scene-cobro.is-animating.has-items .gw_pos__summary {
	opacity: 1;
	visibility: visible;
}

/* ============================ ESCENA: INVENTARIOS ============================ */
.gw_pos__stage { position: relative; }

.gw_inv {
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .14);
	padding: calc(55 * var(--u)) calc(80 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(51 * var(--u));
}
.gw_inv__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gw_inv__search {
	width: calc(540 * var(--u));
	height: calc(60 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--pos-tabs);
}
.gw_inv__dl {
	width: calc(165 * var(--u));
	height: calc(60 * var(--u));
	border-radius: 9999px;
	background: var(--pos-action);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, filter .3s ease;
}
.gw_inv__dl svg { width: calc(35 * var(--u)); height: calc(35 * var(--u)); display: block; }
.gw_inv__dl.is-press { transform: scale(.94); filter: brightness(1.1); }

.gw_inv__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(33 * var(--u));
}
.gw_inv__group {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
}
.gw_inv__row {
	box-sizing: border-box;
	width: 100%;
	background: var(--pos-surface);
	border-radius: calc(40 * var(--u));
	padding: calc(40 * var(--u));
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gw_inv__labels {
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
	width: calc(420 * var(--u));
}
.gw_inv__l1 { height: calc(40 * var(--u)); width: 100%; border-radius: 9999px; background: var(--pos-sk); }
.gw_inv__l2 { height: calc(25 * var(--u)); width: calc(210 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_inv__stepper {
	box-sizing: border-box;
	height: calc(93 * var(--u));
	background: var(--pos-panel);
	border-radius: calc(15 * var(--u));
	padding: 0 calc(13 * var(--u));
	display: flex;
	align-items: center;
	gap: calc(9 * var(--u));
}
.gw_inv__btn {
	width: calc(70 * var(--u));
	height: calc(70 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--pos-sk);
	transition: transform .18s ease, filter .18s ease;
}
.gw_inv__btn.is-accent { background: var(--pos-action); }
.gw_inv__btn.is-danger { background: var(--pos-pink); }
.gw_inv__btn.is-press { transform: scale(.86); filter: brightness(.95); }
.gw_inv__val {
	width: calc(158 * var(--u));
	height: calc(70 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--pos-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: calc(45 * var(--u));
	line-height: 1;
	font-weight: 600;
	color: #2c2c2a;
	font-family: inherit;
}
.gw_inv__arrow { display: flex; }
.gw_inv__arrow svg { width: calc(70 * var(--u)); height: calc(70 * var(--u)); display: block; }
.gw_inv__arrow.is-bounce svg { animation: gwInvUp .6s ease; }
@keyframes gwInvUp {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(calc(-12 * var(--u))); }
}

/* ============================ EXCEL (overlay de inventarios) ============================ */
.gw_xls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	opacity: 0;
	visibility: hidden;
	transform: scale(.98);
	transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.gw_pos__stage.is-exported .gw_xls { opacity: 1; visibility: visible; transform: none; }
.gw_xls__card {
	width: calc(1190 * var(--u));
	background: var(--pos-surface);
	border-radius: calc(16 * var(--u));
	overflow: hidden;
	box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .12);
	display: flex;
	flex-direction: column;
}
.gw_xls__head { height: calc(101 * var(--u)); background: var(--pos-excel); }
.gw_xls__body {
	padding: calc(40 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(35 * var(--u));
}
.gw_xls__rows {
	display: flex;
	flex-direction: column;
	gap: calc(30 * var(--u));
}
.gw_xls__row {
	display: flex;
	align-items: center;
	gap: calc(20 * var(--u));
	opacity: 0;
	transform: translateY(calc(8 * var(--u)));
	transition: opacity .3s ease, transform .3s ease;
}
.gw_xls__row.is-in { opacity: 1; transform: none; }
.gw_xls__c1 {
	width: calc(350 * var(--u));
	height: calc(24 * var(--u));
	border-radius: 9999px;
	background: var(--pos-sk);
	flex: 0 0 auto;
}
.gw_xls__c {
	flex: 1 1 0;
	min-width: 0;
	height: calc(25 * var(--u));
	border-radius: 9999px;
	background: var(--pos-sk);
}
.gw_xls__c.is-dark { background: var(--pos-chrome); }
.gw_xls__divider { height: calc(2 * var(--u)); width: 100%; background: var(--pos-line); border-radius: 9999px; }
.gw_xls__foot { display: flex; justify-content: flex-end; }
.gw_xls__total {
	width: calc(169 * var(--u));
	height: calc(25 * var(--u));
	border-radius: 9999px;
	background: var(--pos-chrome);
}

/* ============================ ESCENA: MULTI-SUCURSAL ============================ */
.gw_ms {
	position: relative;
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .14);
	padding: calc(70 * var(--u)) calc(60 * var(--u));
	overflow: hidden;
}
.gw_ms__grid {
	display: grid;
	grid-template-columns: repeat(2, calc(529 * var(--u)));
	justify-content: center;
	column-gap: calc(120 * var(--u));
	row-gap: calc(45 * var(--u));
	transform-origin: 0 0;
}
.gw_ms__win {
	width: calc(529 * var(--u));
	display: flex;
	flex-direction: column;
}
.gw_ms__win:nth-child(3) { grid-column: 1 / -1; justify-self: center; }

.gw_ms__screen {
	position: relative;
	width: 100%;
	height: calc(376 * var(--u));
	border-radius: calc(18 * var(--u));
	overflow: hidden;
	box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .18);
}
.gw_ms__pos {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
}
.gw_ms__chrome {
	display: flex;
	align-items: center;
	gap: calc(7 * var(--u));
	height: calc(31 * var(--u));
	padding-inline: calc(14 * var(--u));
	background: var(--pos-chrome);
}
.gw_ms__chrome span { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--c, #ccc); }
.gw_ms__body { flex: 1; display: flex; min-height: 0; }
.gw_ms__side {
	width: calc(51 * var(--u));
	background: var(--pos-sidebar);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: calc(18 * var(--u)) calc(11 * var(--u));
	gap: calc(20 * var(--u));
}
.gw_ms__logo { width: calc(27 * var(--u)); line-height: 0; }
.gw_ms__logo svg { display: block; width: 100%; height: auto; }
.gw_ms__nav { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.gw_ms__nav span { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: var(--pos-nav); }
.gw_ms__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
	padding: calc(14 * var(--u));
}
.gw_ms__search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--pos-panel);
	border-radius: calc(10 * var(--u));
	padding: calc(9 * var(--u)) calc(11 * var(--u));
}
.gw_ms__search-field { width: calc(112 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--pos-sk); }
.gw_ms__avatar { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--pos-chrome); }
.gw_ms__tabs {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--u));
	height: calc(27 * var(--u));
	padding: 0 calc(10 * var(--u));
	background: var(--pos-tabs);
	border-radius: calc(10 * var(--u)) calc(10 * var(--u)) 0 0;
}
.gw_ms__tabs span { width: calc(40 * var(--u)); height: calc(11 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_ms__tabs span.is-active { background: var(--pos-surface); }
.gw_ms__grid-cards {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, auto);
	align-content: start;
	gap: calc(12 * var(--u)) calc(11 * var(--u));
	padding: calc(16 * var(--u));
	background: var(--pos-panel);
	border-radius: 0 0 calc(10 * var(--u)) calc(10 * var(--u));
}
.gw_ms__card { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.gw_ms__card-img { width: 100%; height: calc(48 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--pos-surface); }
.gw_ms__cline { height: calc(7 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_ms__cline.is-short { width: 55%; height: calc(5 * var(--u)); background: var(--pos-sk-dark); }

.gw_ms__overlay {
	position: absolute;
	inset: 0;
	background: #282b2e;
	border-radius: calc(18 * var(--u));
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .45s ease;
}
.gw_ms__win.is-on .gw_ms__overlay { opacity: 1; }
.gw_ms__check {
	width: calc(125 * var(--u));
	height: calc(125 * var(--u));
	border-radius: 50%;
	background: var(--pos-action);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.gw_ms__win.is-on .gw_ms__check { transform: scale(1); }
.gw_ms__check svg { width: calc(70 * var(--u)); height: calc(70 * var(--u)); display: block; }
.gw_ms__caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: calc(13 * var(--u));
	opacity: 0;
	transition: opacity .4s ease;
}
.gw_ms__win.is-on .gw_ms__caption { opacity: 1; }
.gw_ms__cap-name { width: calc(210 * var(--u)); height: calc(25 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_ms__cap-num { width: calc(80 * var(--u)); height: calc(25 * var(--u)); border-radius: 9999px; background: var(--pos-action); }

/* ============================ ESCENA: CONTABILIDAD ============================ */
.gw_acc {
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .14);
	padding: calc(80 * var(--u)) calc(125 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
}
.gw_acc__card {
	background: var(--pos-surface);
	border-radius: calc(16 * var(--u));
	padding: calc(60 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(54 * var(--u));
}
.gw_acc__rows {
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
}
.gw_acc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	opacity: 0;
	transform: translateY(calc(10 * var(--u)));
	transition: opacity .35s ease, transform .35s ease;
}
.gw_acc__row.is-in { opacity: 1; transform: none; }
.gw_acc__labels {
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
	width: calc(420 * var(--u));
}
.gw_acc__l1 { height: calc(40 * var(--u)); width: 100%; border-radius: 9999px; background: var(--pos-sk); }
.gw_acc__l2 { height: calc(25 * var(--u)); width: calc(210 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_acc__amount { width: calc(189 * var(--u)); height: calc(40 * var(--u)); border-radius: 9999px; background: var(--pos-chrome); }
.gw_acc__amount.is-neg { background: var(--pos-pink); }
.gw_acc__divider { height: calc(2 * var(--u)); width: 100%; background: var(--pos-line); border-radius: 9999px; }
.gw_acc__foot { display: flex; justify-content: flex-end; }
.gw_acc__total {
	width: calc(240 * var(--u));
	height: calc(60 * var(--u));
	border-radius: 9999px;
	background: var(--pos-chrome);
	opacity: 0;
	transform: translateY(calc(6 * var(--u)));
	transition: opacity .35s ease, transform .35s ease;
}
.gw_acc__total.is-in { opacity: 1; transform: none; }

.gw_chart {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	opacity: 0;
	visibility: hidden;
	transform: scale(.98);
	transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.gw_chart.is-on { opacity: 1; visibility: visible; transform: none; }
.gw_chart__card {
	width: calc(1159 * var(--u));
	background: var(--pos-surface);
	border-radius: calc(16 * var(--u));
	padding: calc(50 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .12);
}
.gw_chart__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
.gw_chart__labels { display: flex; flex-direction: column; gap: calc(14 * var(--u)); width: calc(420 * var(--u)); }
.gw_chart__l1 { height: calc(40 * var(--u)); width: 100%; border-radius: 9999px; background: var(--pos-sk); }
.gw_chart__l2 { height: calc(25 * var(--u)); width: calc(210 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_chart__legend { width: calc(277 * var(--u)); height: calc(40 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_chart__bars {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}
.gw_chart__col { display: flex; flex-direction: column; gap: calc(28 * var(--u)); width: calc(175 * var(--u)); }
.gw_chart__bar {
	width: 100%;
	height: 0;
	border-radius: calc(25 * var(--u));
	background: var(--pos-panel);
	transition: height .6s cubic-bezier(.22, 1, .36, 1);
}
.gw_chart__bar.is-teal { background: var(--pos-action); }
.gw_chart.is-on .gw_chart__bar { height: var(--bh); }
.gw_chart.is-on .gw_chart__col:nth-child(1) .gw_chart__bar { transition-delay: .05s; }
.gw_chart.is-on .gw_chart__col:nth-child(2) .gw_chart__bar { transition-delay: .13s; }
.gw_chart.is-on .gw_chart__col:nth-child(3) .gw_chart__bar { transition-delay: .21s; }
.gw_chart.is-on .gw_chart__col:nth-child(4) .gw_chart__bar { transition-delay: .29s; }
.gw_chart.is-on .gw_chart__col:nth-child(5) .gw_chart__bar { transition-delay: .37s; }
.gw_chart__xlabel { width: 100%; height: calc(30 * var(--u)); border-radius: calc(25 * var(--u)); background: var(--pos-tabs); }

/* ============================ ESCENA: FIDELIDAD ============================ */
.gw_loy {
	background: var(--pos-panel);
	border-radius: calc(40 * var(--u));
	box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .14);
	padding: calc(70 * var(--u)) calc(123 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
}
.gw_loy__row {
	display: flex;
	align-items: center;
	gap: calc(48 * var(--u));
	will-change: transform;
}
.gw_loy__avatar {
	width: calc(188 * var(--u));
	height: calc(188 * var(--u));
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--pos-surface);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gw_loy__icon {
	width: calc(122 * var(--u));
	height: calc(122 * var(--u));
	color: var(--pos-sk);
	display: flex;
	/* Color instantáneo: en el "commit" del swap el highlight debe saltar sin
	   transición, si no la barra de abajo flashea teal mientras la de arriba se
	   tiñe. El movimiento ya transmite el ascenso. */
}
.gw_loy__icon svg { width: 100%; height: 100%; display: block; }
.gw_loy__content {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gw_loy__labels {
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
	width: calc(420 * var(--u));
}
.gw_loy__l1 { height: calc(40 * var(--u)); width: 100%; border-radius: 9999px; background: var(--pos-sk); }
.gw_loy__l2 { height: calc(25 * var(--u)); width: calc(210 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_loy__pill {
	width: calc(189 * var(--u));
	height: calc(40 * var(--u));
	border-radius: 9999px;
	background: var(--pos-chrome);
}
.gw_loy__row.is-hot .gw_loy__icon { color: var(--pos-action); }
.gw_loy__row.is-hot .gw_loy__pill { background: var(--pos-action); }

/* ============================ ESCENA: FACTURACIÓN (lightbox) ============================ */
.gw_bill {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(9, 13, 15, .9);
	border-radius: calc(40 * var(--u));
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s ease;
}
.gw_bill.is-on { opacity: 1; visibility: visible; }
.gw_bill__modal {
	width: calc(767 * var(--u));
	background: var(--pos-surface);
	border-radius: calc(20 * var(--u));
	padding: calc(40 * var(--u)) calc(45 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
	transform: scale(.94);
	transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.gw_bill.is-on .gw_bill__modal { transform: scale(1); }
.gw_bill__icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(40 * var(--u));
}
.gw_bill__check {
	width: calc(101 * var(--u));
	height: calc(101 * var(--u));
	border-radius: 50%;
	background: var(--pos-action);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) .15s;
}
.gw_bill.is-on .gw_bill__check { transform: scale(1); }
.gw_bill__check svg { width: calc(52 * var(--u)); height: calc(52 * var(--u)); display: block; }
.gw_bill__arrow { display: flex; opacity: 0; transition: opacity .3s ease .3s; }
.gw_bill.is-on .gw_bill__arrow { opacity: 1; }
.gw_bill__arrow svg { width: calc(67 * var(--u)); height: calc(67 * var(--u)); display: block; }
.gw_bill__mail { display: flex; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) .4s; }
.gw_bill.is-on .gw_bill__mail { transform: scale(1); }
.gw_bill__mail svg { width: calc(120 * var(--u)); height: calc(120 * var(--u)); display: block; }
.gw_bill__body {
	display: flex;
	flex-direction: column;
	gap: calc(43 * var(--u));
	opacity: 0;
	transform: translateY(calc(10 * var(--u)));
	transition: opacity .4s ease .5s, transform .4s ease .5s;
}
.gw_bill.is-on .gw_bill__body { opacity: 1; transform: none; }
.gw_bill__divider { height: calc(2 * var(--u)); width: 100%; background: var(--pos-line); border-radius: 9999px; }
.gw_bill__row { display: flex; align-items: center; justify-content: space-between; }
.gw_bill__labels { display: flex; flex-direction: column; gap: calc(14 * var(--u)); width: calc(420 * var(--u)); }
.gw_bill__l1 { height: calc(40 * var(--u)); width: 100%; border-radius: 9999px; background: var(--pos-sk); }
.gw_bill__l2 { height: calc(25 * var(--u)); width: calc(210 * var(--u)); border-radius: 9999px; background: var(--pos-sk); }
.gw_bill__amount { width: calc(189 * var(--u)); height: calc(40 * var(--u)); border-radius: 9999px; background: var(--pos-chrome); }
.gw_bill__foot { display: flex; justify-content: flex-end; }
.gw_bill__btn { width: calc(210 * var(--u)); height: calc(45 * var(--u)); border-radius: 9999px; background: var(--pos-chrome); }

/* ============================ A11Y ============================ */
@media (prefers-reduced-motion: reduce) {
	.gw_pos__card,
	.gw_pos__item,
	.gw_pos__fill,
	.gw_pos__cta,
	.gw_pos__cta-bar,
	.gw_pos__cta-check,
	.gw_inv__btn,
	.gw_inv__dl,
	.gw_inv__arrow svg,
	.gw_xls,
	.gw_xls__row,
	.gw_ms__grid,
	.gw_ms__win,
	.gw_ms__overlay,
	.gw_ms__check,
	.gw_ms__caption,
	.gw_acc__row,
	.gw_acc__total,
	.gw_chart,
	.gw_chart__bar,
	.gw_loy__row,
	.gw_loy__icon,
	.gw_loy__pill,
	.gw_bill,
	.gw_bill__modal,
	.gw_bill__check,
	.gw_bill__arrow,
	.gw_bill__mail,
	.gw_bill__body {
		transition: none !important;
		animation: none !important;
	}
}
