/* Demo PowerItUp — base común a la web y al panel.
   Rediseño 2026-11-03: papel blanco de carta impresa, letra de rótulo (Archivo estrecha) y el color de la casa
   (--acc, cambiable en "A tu medida") solo donde importa. Nada de crema + serif + mayúsculas espaciadas. */
:root {
  --bg: #FFFFFF; --bg2: #F4F2EE; --paper: #FFFFFF; --white: #fff;
  --acc: #A9713C; --acc-l: #D3A468; --acc-d: #6B4320;
  --ink: #222019; --gray: #6A655C; --line: rgba(34,32,25,.13);
  --ok: #2F7D4F; --warn: #B7791F; --bad: #B5453D;
  --serif: 'Archivo', system-ui, sans-serif; --sans: 'Archivo', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --strip: 44px; --r: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* letra de títulos: Archivo se estrecha como un rótulo; las otras dos letras ignoran el ancho */
.disp { font-family: var(--serif); font-stretch: 78%; font-weight: 750; letter-spacing: -.01em; }

/* Franja de demo (siempre visible arriba) */
#demo-strip { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; height: var(--strip); display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: #1B1A17; color: #EDEAE3; font-size: 13px; }
#demo-strip .tag { background: #F2C14E; color: #1B1A17; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 4px; flex: none; }
#demo-strip .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
#demo-strip .go { flex: none; background: #fff; color: #1B1A17; font-weight: 700; padding: 7px 12px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
#demo-strip .go:active { transform: scale(.97); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r); padding: 13px 20px; font-weight: 700; font-size: 15px;
  background: var(--acc); color: #fff; transition: transform .15s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--acc-d); }
.btn.dark { background: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.ok { background: var(--ok); } .btn.bad { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(181,69,61,.4); }
.btn[disabled] { opacity: .4; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.pill.ok { background: rgba(47,125,79,.12); color: var(--ok); }
.pill.warn { background: rgba(183,121,31,.15); color: #82540F; }
.pill.bad { background: rgba(181,69,61,.12); color: var(--bad); }
.pill.mine { background: var(--acc); color: #fff; }
.pill.sim { background: rgba(34,32,25,.07); color: var(--gray); font-weight: 600; }
.pill.night { background: #2B2440; color: #E8E1FF; }

/* Notificación tipo móvil (arriba) */
#toast { position: fixed; top: calc(var(--strip) + 10px); left: 50%; z-index: 3000; width: 380px; max-width: calc(100vw - 24px); transform: translate(-50%, -160%);
  opacity: 0; transition: transform .45s cubic-bezier(.34,1.3,.4,1), opacity .3s ease; background: rgba(250,250,248,.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-radius: 16px; box-shadow: 0 10px 34px rgba(0,0,0,.22); padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }
#toast .app { font-size: 12px; color: var(--gray); font-weight: 600; }
#toast b { display: block; font-size: 14px; }
#toast p { font-size: 13px; color: var(--gray); white-space: pre-line; line-height: 1.35; }

.err { max-width: 420px; margin: 120px auto; padding: 24px; text-align: center; color: var(--gray); }

/* 2026-11-16: enlace al precio en la franja y enlaces secundarios */
#demo-strip .go.alt { background: transparent; color: #F2C14E; box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.6); }
@media (max-width: 430px) { #demo-strip .txt { display: none; } #demo-strip { justify-content: space-between; } #demo-strip .tag { margin-right: auto; } }
.lnk2 { display: block; margin-top: 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--gray); }
