/* Beta79 (#30): la app de Mi cuenta para clientas (PSB_Client_App). Todo esto se ve solo instalada (html.psb-capp):
   en el navegador, el sitio queda como siempre. Paleta de marca: crema, greige, greige oscuro y negro. */

/* Beta82 (PSB-009, opción C), igual que la app de una sola página (ps-app.css): arriba «PELU STUDIO» al centro y la
   campana a la derecha, sin línea; abajo una barra fija de borde a borde, con la pestaña de ahora en una píldora
   champaña y Agendar al centro, en negro con un brillo que pasa. La hora y la batería quedan como siempre. */
.psb-tabbar, .psb-appbar { display: none; }
html.psb-capp .psb-appbar {
    position: fixed; left: 0; right: 0; top: 0; z-index: 9001; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
    max-width: 600px; height: 42px; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 8px 0; box-sizing: content-box; background: #f9f4f0;
}
.psb-appbar__mark { text-align: center; padding-left: .34em; font: 600 12px/1 'Instrument Sans', 'Segoe UI', system-ui, sans-serif; letter-spacing: .34em; color: #141210; }
.psb-appbar__bell { position: relative; justify-self: end; margin-right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #141210 !important; text-decoration: none !important; }
.psb-appbar__bell.is-on { background: #fffdfb; box-shadow: inset 0 0 0 1px #d3c7bb; }
.psb-appbar__bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.psb-appbar__n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #b4432f; color: #fff; font: 700 10.5px/18px 'Instrument Sans', system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #f9f4f0; }

html.psb-capp .psb-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; /* debajo del panel para agendar (portal.css, 99990) */
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; max-width: 600px; margin: 0 auto;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; background: #fffdfb;
    box-shadow: 0 -1px 0 #e8dfd6, 0 -12px 24px -18px rgba(60, 45, 30, .35); font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
}
.psb-tabbar__tab { display: grid; justify-items: center; gap: 4px; color: #5d5249 !important; font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none !important; }
.psb-tabbar__pi { width: 58px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
.psb-tabbar__pi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.psb-tabbar__tab.is-on { color: #141210 !important; font-weight: 600; }
.psb-tabbar__tab.is-on .psb-tabbar__pi { background: linear-gradient(135deg, #f3ebe0 0%, #dccbb6 42%, #f6efe6 62%, #cfbba4 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(160, 135, 110, .25); }
.psb-tabbar__tab--book { color: #141210 !important; font-weight: 600; }
.psb-tabbar__tab--book .psb-tabbar__pi { position: relative; overflow: hidden; isolation: isolate; color: #f3e7d6; background: linear-gradient(135deg, #2a241f 0%, #141210 45%, #3a3029 70%, #141210 100%); box-shadow: inset 0 1px 0 rgba(255, 245, 230, .22), inset 0 0 0 1px rgba(214, 192, 165, .35), 0 6px 14px -6px rgba(20, 16, 12, .7); }
.psb-tabbar__tab--book .psb-tabbar__pi::after { content: ""; position: absolute; top: -60%; left: 0; width: 40%; height: 220%; background: linear-gradient(90deg, rgba(255, 240, 220, 0), rgba(255, 240, 220, .55), rgba(255, 240, 220, 0)); transform: translateX(-160%) rotate(22deg); animation: psb-sheen 3.8s ease-in-out infinite; z-index: -1; pointer-events: none; }
.psb-tabbar__tab--book .psb-tabbar__pi svg { width: 22px; height: 22px; stroke-width: 2; }
.psb-tabbar__tab--book.is-on .psb-tabbar__pi { box-shadow: inset 0 1px 0 rgba(255, 245, 230, .22), 0 0 0 2px #fffdfb, 0 0 0 3.5px #cfbba4, 0 6px 14px -6px rgba(20, 16, 12, .7); }
@keyframes psb-sheen { 0%, 55% { transform: translateX(-160%) rotate(22deg); } 100% { transform: translateX(320%) rotate(22deg); } }
@media (prefers-reduced-motion: reduce) { .psb-tabbar__tab--book .psb-tabbar__pi::after { animation: none; transform: translateX(80%) rotate(22deg); } }

/* Instalada: el espacio de las dos barras, y el inicio sin «Todo lo tuyo» (está en Yo: cada cosa en un solo lugar) */
html.psb-capp body { background: #f9f4f0 !important; padding-top: calc(42px + env(safe-area-inset-top, 0px)) !important; padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
html.psb-capp .psb-home:not(.psb-yo) .psb-home__list,
html.psb-capp .psb-home:not(.psb-yo) .psb-home__cards,
html.psb-capp .psb-home:not(.psb-yo) .psb-home__mini,
html.psb-capp .psb-back { display: none !important; }
html.psb-capp .woocommerce-account .woocommerce,
html.psb-capp .woocommerce-account .entry-content { padding-top: env(safe-area-inset-top, 0px); }

/* Avisos */
.psb-capp-page { display: grid; gap: 14px; }
.psb-capp-title { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1.1; color: #141210; }
.psb-capp-note { margin: 0; font-size: 14px; line-height: 1.55; color: #4a453f; }

/* Yo */
.psb-yo__who { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.psb-yo__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fffdfa; box-shadow: inset 0 0 0 1px #e6dacb; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: #141210; }
.psb-yo__name { flex: 1; min-width: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; line-height: 1.1; color: #141210; }
.psb-yo__edit { flex: none; font-size: 13px; font-weight: 600; color: #141210; text-decoration: underline; text-underline-offset: 3px; }
.psb-yo__install { margin: 4px 0 0; text-align: center; }
.psb-yo__install-btn { padding: 8px 12px; border: 0; background: none; color: #141210; font: 600 13.5px/1.3 'Instrument Sans', 'Segoe UI', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.psb-capp .psb-yo__install { display: none; }

/* «¡Gracias!»: volver a la app (instalada no hace falta) */
.psb-capp-back { margin: 18px 0; }
html.psb-capp .psb-capp-back { display: none; }

/* Beta81: el título de cada página de Mi cuenta, dentro de la app (como «Avisos») */
.psb-capp-h1 { display: none; }
html.psb-capp .psb-capp-h1 { display: block; margin: 4px 0 14px; font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #141210; }
