/* Wakoo Pantalla · soft glass app screens (containers + widgets). Colours are CSS variables (--ap-*). */
.wk-ap, [class*="wk-ap-"] {
	--_ink: var(--ap-ink, #4A3A36);
	--_card: var(--ap-card, rgba(255, 255, 255, .62));
	--_dot: var(--ap-dot, #5B3F36);
	--_acc: var(--ap-accent, #C98B7D);
	--_tint: var(--ap-tint, #F4D6CE);
	--_r: var(--ap-r, 28px);
	--_blur: var(--ap-blur, 18px);
	--_sh: 0 16px 34px -22px color-mix(in srgb, var(--_acc) 70%, #4a2a22);
}
.wk-ap { color: var(--_ink); box-sizing: border-box; }
.wk-ap *, .wk-ap *::before, .wk-ap *::after { box-sizing: border-box; }
.wk-ap ul, ul.wk-ap { list-style: none; margin: 0; padding: 0; }
.wk-ap a { color: inherit; text-decoration: none; }
.wk-ap p { margin: 0; }
.wk-ap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- Containers (Advanced → Pantalla de app) */
.e-con.wk-ap-glass, .e-con.wk-ap-screen, .e-con.wk-ap-band {
	position: relative; border-radius: var(--_r); isolation: isolate; overflow: hidden;
	-webkit-backdrop-filter: blur(var(--_blur)) saturate(1.2); backdrop-filter: blur(var(--_blur)) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, .75);
	box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--_acc) 80%, #4a2a22), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.e-con.wk-ap-glass { background: color-mix(in srgb, #fff 55%, transparent); }
.e-con.wk-ap-screen {
	--_r: var(--ap-r, 36px);
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 70%, transparent), color-mix(in srgb, var(--_tint) 75%, transparent) 70%, color-mix(in srgb, var(--_tint) 95%, #fff));
}
/* Light reflections: two soft diagonal bands across the screen. */
.e-con.wk-ap-screen::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, .55) 38.5%, rgba(255, 255, 255, .18) 47%, transparent 47.5%),
		linear-gradient(118deg, transparent 54%, rgba(255, 255, 255, .35) 54.5%, rgba(255, 255, 255, .08) 60%, transparent 60.5%);
}
.e-con.wk-ap-band { background: color-mix(in srgb, var(--_tint) 80%, #e8b4a6); border-radius: var(--_r); }

/* ---------------- Cabecera de app */
.wk-ap-head { display: grid; gap: 6px; }
.wk-ap-head--center { justify-items: center; text-align: center; }
.wk-ap-head__bar { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wk-ap-head__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--_ink); font-size: 18px; }
.wk-ap-head__btn svg { width: 18px; height: 18px; fill: currentColor; }
.wk-ap-head__img { display: block; width: 96px; }
.wk-ap-head__img img { display: block; width: 100%; height: auto; }
.wk-ap-head__img--round { aspect-ratio: 1; border-radius: 50%; padding: 5px; background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--_acc) 55%, #fff)); box-shadow: var(--_sh); }
.wk-ap-head__img--round img { height: 100%; object-fit: cover; border-radius: 50%; }
.wk-ap .wk-ap-head__t { margin: 6px 0 0; color: var(--_ink); font-size: clamp(22px, 5.6vw, 30px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.wk-ap-head--xl .wk-ap-head__t { font-size: clamp(38px, 11vw, 64px); font-weight: 600; letter-spacing: -.03em; }
.wk-ap-head__s { font-size: 15px; opacity: .78; }
.wk-ap-head__m { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; opacity: .7; }
.wk-ap-head__mi svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------------- Icon glyph */
.wk-ap-glyph, .wk-ap-opt__ic { display: inline-grid; place-items: center; line-height: 1; }
.wk-ap-glyph svg, .wk-ap-opt__ic svg { width: 1em; height: 1em; fill: currentColor; }
.wk-ap-glyph.has-img img, .wk-ap-opt__ic.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------------- Lista de píldoras */
.wk-ap-pills { display: grid; gap: 14px; }
.wk-ap-pill {
	display: grid; grid-template-columns: 52px 1fr 34px; gap: 14px; align-items: center; padding: 9px 12px 9px 9px; border-radius: 999px;
	background: linear-gradient(100deg, rgba(255, 255, 255, .9), color-mix(in srgb, var(--_tint) 55%, rgba(255, 255, 255, .6)));
	border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--_sh), inset 0 1px 0 #fff;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .2s, box-shadow .2s;
}
a.wk-ap-pill:hover { transform: translateY(-2px); }
a.wk-ap-pill:active { transform: scale(.98); }
.wk-ap-pill__dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; color: #fff;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--_dot) 70%, #fff), var(--_dot) 65%); box-shadow: 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--_acc) 55%, #fff), 0 8px 16px -8px var(--_dot); }
.wk-ap-pills--light .wk-ap-pill__dot { background: #fff; color: var(--_dot); }
.wk-ap-pill__dot .wk-ap-glyph.has-img { width: 38px; height: 38px; }
.wk-ap-pill__b { display: grid; min-width: 0; }
.wk-ap-pill__b strong { font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ap-pill__b small { font-size: 12.5px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ap-pill__end { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; color: var(--_acc); background: color-mix(in srgb, var(--_tint) 70%, #fff); box-shadow: inset 0 1px 3px rgba(120, 60, 50, .15); }
.wk-ap-pill__end svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------------- Mosaicos */
.wk-ap-tiles { display: grid; grid-template-columns: repeat(var(--ap-cols, 3), minmax(0, 1fr)); gap: 12px; }
.wk-ap-tile { display: grid; justify-items: center; align-content: center; gap: 6px; aspect-ratio: 1; padding: 10px 6px; border-radius: 20px; text-align: center;
	background: linear-gradient(160deg, rgba(255, 255, 255, .9), color-mix(in srgb, var(--_tint) 55%, rgba(255, 255, 255, .6))); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--_sh), inset 0 1px 0 #fff;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .2s; }
a.wk-ap-tile:hover { transform: translateY(-2px); }
.wk-ap-tile .wk-ap-glyph { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; color: var(--_dot); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--_acc) 55%, #fff); }
.wk-ap-tile .wk-ap-glyph.has-img { width: 46px; height: 46px; box-shadow: none; }
.wk-ap-tile__l { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.wk-ap-tile__s { font-size: 11px; opacity: .65; }
.wk-ap-tiles--solid .wk-ap-tile { aspect-ratio: 1; background: var(--ap-tile, var(--_acc)); color: #fff; border-color: transparent; }
.wk-ap-tiles--solid .wk-ap-tile .wk-ap-glyph { color: #fff; box-shadow: none; font-size: 24px; }
.wk-ap-tiles--solid .wk-ap-tile .wk-ap-glyph.has-img { width: 52px; height: 52px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .85); }

/* ---------------- Lista de opciones */
.wk-ap-opts { display: grid; gap: 4px; }
.wk-ap .wk-ap-opt { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 28px 1fr 22px; gap: 12px; align-items: center; padding: 10px 4px; cursor: pointer; color: var(--_ink); border-radius: 14px; }
.wk-ap .wk-ap-opt:focus-visible { outline: 2px solid var(--_acc); outline-offset: 2px; }
.wk-ap-opt__ic { width: 26px; height: 26px; font-size: 16px; color: var(--_dot); }
.wk-ap-opt__ic.has-img { width: 38px; height: 38px; }
.wk-ap .wk-ap-opt:has(.wk-ap-opt__ic.has-img) { grid-template-columns: 40px 1fr 22px; }
.wk-ap-opt__b { display: grid; min-width: 0; }
.wk-ap-opt__b strong { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.wk-ap-opt__b small { font-size: 12px; opacity: .65; }
.wk-ap-opt__mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--_ink) 45%, transparent); position: relative; }
.wk-ap-opt[aria-checked="true"] .wk-ap-opt__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--_dot); }

/* ---------------- Foto con botón */
.wk-ap-photo { position: relative; height: 240px; border-radius: 24px; overflow: hidden; box-shadow: var(--_sh); background: var(--_tint); }
.wk-ap-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-ap-photo__badge { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wk-ap-photo__badge.has-img { background: rgba(255, 255, 255, .7); padding: 6px; }
.wk-ap-photo__badge svg { width: 18px; height: 18px; fill: currentColor; }
.wk-ap-photo__t { position: absolute; left: 18px; right: 18px; bottom: 72px; color: #fff; font-size: 20px; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.wk-ap-photo__btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); min-width: 62%; padding: 13px 26px; border-radius: 999px; text-align: center;
	background: #fff; color: var(--_ink) !important; font-weight: 600; font-size: 15px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }

/* ---------------- Campo de búsqueda */
.wk-ap-search { position: relative; display: block; margin: 0; }
.wk-ap-search input { width: 100%; min-height: 50px; padding: 12px 20px 12px 48px; font: inherit; color: var(--_ink); outline: none; }
.wk-ap-search__ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--_acc); pointer-events: none; }
.wk-ap-search__ic svg { width: 15px; height: 15px; fill: currentColor; }
.wk-ap-search--pill input { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--_acc) 45%, #fff); background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 3px rgba(120, 60, 50, .1); }
.wk-ap-search--pill input:focus { border-color: var(--_acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_acc) 25%, transparent); }
.wk-ap-search--line input { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--_ink) 30%, transparent); background: transparent; border-radius: 0; padding-left: 32px; }
.wk-ap-search--line .wk-ap-search__ic { left: 4px; }

@media (prefers-reduced-motion: reduce) {
	.wk-ap * { transition: none !important; }
}

/* ---------- «Pantalla de carga» ---------- */
.wk-ap-loader { --ld-bg1: #FBEFF1; --ld-bg2: #EDE3F1; --ld-acc: #B76E84; --ld-ink: #4A3A40; --ld-size: 150px;
	position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: linear-gradient(170deg, var(--ld-bg1), var(--ld-bg2));
	transition: opacity .7s ease, visibility .7s ease, transform .9s cubic-bezier(.7,0,.2,1); }
.wk-ap-loader.is-done { opacity: 0; visibility: hidden; transform: scale(1.04); }
.wk-ap-loader.is-preview { position: relative; inset: auto; min-height: 320px; border-radius: 24px; z-index: 1; }
.wk-ap-loader__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.wk-ap-loader__logo { width: var(--ld-size); height: auto; animation: wkLdIn 1.1s cubic-bezier(.2,.8,.2,1) both, wkLdBreath 2.4s ease-in-out 1.1s infinite; filter: drop-shadow(0 14px 22px rgba(120,50,80,.18)); }
.wk-ap-loader__t { margin: 0; color: var(--ld-ink); font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; animation: wkLdFade 1s .5s both; }
.wk-ap-loader__bar { width: 140px; height: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ld-acc) 18%, transparent); overflow: hidden; animation: wkLdFade .6s .3s both; }
.wk-ap-loader__bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--ld-acc), transparent); animation: wkLdBar 1.3s ease-in-out infinite; }
.wk-ap-loader__sp { position: absolute; left: 50%; top: calc(var(--ld-size) / 2); width: 0; height: 0; }
.wk-ap-loader__sp i { position: absolute; width: 10px; height: 10px; margin: -5px; color: var(--ld-acc);
	transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--ld-size) * -.78)); opacity: 0; animation: wkLdSpark 2.2s ease-in-out calc(var(--i) * .22s) infinite; }
.wk-ap-loader__sp i::before { content: ""; position: absolute; inset: 0; background: currentColor;
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
html.wk-ap-loading, html.wk-ap-loading body { overflow: hidden; }
@keyframes wkLdIn { from { opacity: 0; transform: scale(.82) translateY(10px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 14px 22px rgba(120,50,80,.18)); } }
@keyframes wkLdBreath { 50% { transform: scale(1.035); } }
@keyframes wkLdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wkLdBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes wkLdSpark { 0%, 100% { opacity: 0; scale: .3; } 40% { opacity: 1; scale: 1; } 70% { opacity: .2; scale: .6; } }
@media (prefers-reduced-motion: reduce) { .wk-ap-loader *, .wk-ap-loader { animation: none !important; transition: opacity .3s !important; } }
