/* ============================================================================
   PIEL v3 — aprobada por Ariel el 2026-09-12 (referencia: Smartify / Paperpillar)
   ============================================================================
   Tipografía ligera y grande (Outfit 300–600), tarjetas crema sobre carbón
   cálido, radios amplios, un solo acento por pantalla. Dos mandos del usuario:
     · PALETA  → html[data-pal="carbon|papel|noche|arena"]  (localStorage prova_palette)
     · ACENTO  → html style="--acc:#hex"                     (profile.primary_color)
   Regla dura: ningún texto por debajo de 12px; el cuerpo va a 16px.
   El documento (.qdoc) es papel SIEMPRE: se imprime y se manda en PDF.
   ========================================================================== */

/* ── Paletas ──────────────────────────────────────────────────────────────── */
html { --acc: #F0733A; --acc-ink: #FFFFFF; }
html, html[data-pal="carbon"] {
  --bg: #2A2724; --surf: #3A3632; --surf2: #443F3A; --field: #2F2C29; --ink: #F5F2ED; --muted: #A39E97; --muted2: #7E7972;
  --card: #F4F2EE; --card2: #E8E5DE; --card-ink: #1F1D1A; --card-muted: #8A857D;
  --line: rgba(255,255,255,.08); --cline: rgba(31,29,26,.08);
  --csh: 0 10px 30px rgba(0,0,0,.18); --tsh: 0 10px 30px rgba(0,0,0,.28);
}
html[data-pal="papel"] {
  --bg: #F1EEE8; --surf: #FFFFFF; --surf2: #F4F1EB; --field: #F4F1EB; --ink: #1F1D1A; --muted: #7B776F; --muted2: #A19C94;
  --card: #FFFFFF; --card2: #F1EEE8; --card-ink: #1F1D1A; --card-muted: #8A857D;
  --line: rgba(31,29,26,.08); --cline: rgba(31,29,26,.08);
  --csh: 0 10px 30px rgba(31,29,26,.08); --tsh: 0 10px 30px rgba(31,29,26,.14);
}
html[data-pal="noche"] {
  --bg: #121214; --surf: #1D1D21; --surf2: #26262B; --field: #19191C; --ink: #F2EFE9; --muted: #9C99A2; --muted2: #6F6C75;
  --card: #ECEBE8; --card2: #DEDCD7; --card-ink: #15141A; --card-muted: #7E7B84;
  --line: rgba(255,255,255,.08); --cline: rgba(21,20,26,.08);
  --csh: 0 10px 30px rgba(0,0,0,.3); --tsh: 0 10px 30px rgba(0,0,0,.45);
}
html[data-pal="arena"] {
  --bg: #DCD3C4; --surf: #EBE4D7; --surf2: #F3EDE2; --field: #F3EDE2; --ink: #2A2521; --muted: #7D746A; --muted2: #A39A8E;
  --card: #F9F5EE; --card2: #EFE8DC; --card-ink: #2A2521; --card-muted: #8C8378;
  --line: rgba(42,37,33,.08); --cline: rgba(42,37,33,.08);
  --csh: 0 10px 30px rgba(42,37,33,.08); --tsh: 0 10px 30px rgba(42,37,33,.14);
}
html {
  --acc-soft: color-mix(in srgb, var(--acc) 14%, transparent);
  --acc-glow: color-mix(in srgb, var(--acc) 38%, transparent);
  --warn: #C8781E; --warn-bg: rgba(200,120,30,.14); --danger: #C9442E;
  --r: 26px; --r-sm: 18px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html { background: var(--bg); }
body { font-family: "Outfit", -apple-system, system-ui, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.app { max-width: 460px; margin: 0 auto; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
a { color: var(--acc); }
button { font: inherit; cursor: pointer; border: none; border-radius: 999px; color: inherit; background: none; }
img { max-width: 100%; }
::placeholder { color: var(--muted2); font-weight: 300; }

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.appbar { display: flex; align-items: center; gap: 10px; padding: 18px 18px 6px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.mark { width: 44px; height: 44px; border-radius: 999px; background: var(--surf); display: grid; place-items: center; flex: 0 0 auto; }
.mark img { width: 24px; height: 24px; display: block; }
.gate-brand img { width: 22px; height: 22px; display: block; }

/* ── Intro de marca (una vez por sesión) ──────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 100; background: #0B0B0C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; transition: opacity .55s ease; }
.intro-p { position: relative; width: 150px; height: 150px; }
.intro-p svg, .intro-p img { position: absolute; inset: 0; width: 150px; height: 150px; }
/* el trazo (2 s), la cabeza del láser y las chispas los mueve el JS en un mismo reloj */
.intro-p .stroke { filter: drop-shadow(0 0 6px rgba(240,115,58,.55)); }
/* al final entra el logo real encima y el trazo se va: el cierre es exacto al bitmap */
.intro-p img { opacity: 0; animation: intro-fill .45s 2.05s ease forwards; }
.intro-p svg { animation: intro-hide .4s 2.25s ease forwards; }
.intro span { font-family: "Outfit", system-ui, sans-serif; font-weight: 300; font-size: 30px; letter-spacing: .32em; text-transform: uppercase; color: #F5F2ED; padding-left: .32em; opacity: 0; animation: intro-w 1.2s .9s ease forwards; }
.intro.out { opacity: 0; pointer-events: none; }
@keyframes intro-fill { to { opacity: 1; } }
@keyframes intro-hide { to { opacity: 0; } }
@keyframes intro-w { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .32em; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
.brandwrap { line-height: 1.1; min-width: 0; flex: 1; }
.brandwrap b { font-size: 20px; font-weight: 400; letter-spacing: -.01em; display: block; }
.brandwrap span { font-size: 12px; color: var(--muted); font-weight: 300; display: block; margin-top: 2px; }
.quota { font-size: 13px; color: var(--ink); background: var(--surf); border-radius: 999px; padding: 8px 12px; flex: 0 0 auto; line-height: 1; white-space: nowrap; }
.quota:empty { display: none; }
.quota b { color: var(--acc); font-weight: 500; font-size: 15px; }
.langsw { display: flex; border-radius: 999px; overflow: hidden; background: var(--surf); flex: 0 0 auto; padding: 3px; }
.langsw button { font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 6px 9px; color: var(--muted); border-radius: 999px; }
.langsw button.on { background: var(--ink); color: var(--bg); }
.tabs { display: flex; gap: 4px; margin: 8px 18px 0; padding: 4px; background: var(--surf); border-radius: 999px; position: sticky; top: 74px; z-index: 4; }
.tabs button { flex: 1; padding: 10px 4px; font-size: 13px; font-weight: 400; color: var(--muted); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button.on { color: var(--acc-ink); background: var(--acc); box-shadow: 0 6px 14px var(--acc-glow); font-weight: 500; }
main { flex: 1; padding: 14px 18px 48px; }

/* ── Tipografía ───────────────────────────────────────────────────────────── */
.h { font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.h-sm { font-size: 26px; font-weight: 300; letter-spacing: -.015em; line-height: 1.1; }
.sub { font-size: 16px; color: var(--muted); font-weight: 300; line-height: 1.45; margin-top: 8px; }
.lbl { font-size: 13px; color: var(--muted); font-weight: 300; margin-bottom: 8px; }
.sect { margin-top: 28px; }
.hintline { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.45; margin-top: 6px; }
.note { font-size: 13px; color: var(--muted2); font-weight: 300; line-height: 1.5; margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); }
.req { color: var(--warn); font-size: 12px; margin-left: 5px; }

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 400; border-radius: 999px; padding: 0 20px; }
.btn-p { background: var(--acc); color: var(--acc-ink); box-shadow: 0 12px 26px var(--acc-glow); }
.btn-g { background: var(--surf); color: var(--ink); }
.btn-t { display: block; width: 100%; text-align: center; padding: 14px; font-size: 15px; font-weight: 300; color: var(--muted); margin-top: 4px; }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.linkbtn { color: var(--acc); font-size: 14px; font-weight: 400; padding: 8px 0; width: auto; }
.linkbtn.del { color: var(--danger); }
.gbtn svg { width: 20px; height: 20px; }
.orline { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--muted2); font-size: 13px; font-weight: 300; }
.orline::before, .orline::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Campos ───────────────────────────────────────────────────────────────── */
.field { width: 100%; height: 52px; padding: 0 18px; border: none; border-radius: var(--r-sm); background: var(--field); font-family: inherit; font-size: 16px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.field:focus { box-shadow: 0 0 0 3px var(--acc-soft); }
select.field { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.stack > * + * { margin-top: 10px; }
.row { display: grid; gap: 10px; }
.row.c2 { grid-template-columns: 1fr 1fr; } .row.c3 { grid-template-columns: 1.4fr .8fr .9fr; }
.err { background: rgba(201,68,46,.14); color: #F0A090; padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; margin-top: 12px; line-height: 1.4; }
html[data-pal="papel"] .err, html[data-pal="arena"] .err { color: #9E2F1D; }

/* ── Tarjetas y estado ────────────────────────────────────────────────────── */
.banner { background: var(--warn-bg); color: var(--warn); padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; font-weight: 400; }
.banner.ok { background: var(--acc-soft); color: var(--acc); }
.banner.hot { background: var(--warn-bg); color: var(--warn); }
.banner ul { margin: 6px 0 0 18px; }
.banner .linkbtn { display: block; padding-top: 6px; }
.giftcard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--card); color: var(--card-ink); box-shadow: var(--csh); }
.giftnum { width: 54px; height: 54px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-size: 24px; font-weight: 300; flex: 0 0 auto; box-shadow: 0 8px 18px var(--acc-glow); }
.giftcard b { font-size: 17px; font-weight: 400; display: block; }
.giftcard span { font-size: 13px; color: var(--card-muted); font-weight: 300; line-height: 1.4; display: block; margin-top: 2px; }
.supportcard { display: flex; gap: 12px; align-items: center; margin-top: 28px; padding: 16px 18px; border-radius: var(--r); background: var(--card); color: var(--card-ink); box-shadow: var(--csh); }
.supportcard div { flex: 1; }
.supportcard b { font-size: 17px; font-weight: 400; display: block; }
.supportcard span { font-size: 13px; color: var(--card-muted); font-weight: 300; }
.supportcard .btn { width: 46px; height: 46px; padding: 0; background: var(--acc); color: var(--acc-ink); }
.supportcard .btn svg { width: 20px; height: 20px; }

/* ── Sign in: foto a sangre + hoja crema ──────────────────────────────────── */
.gate { margin: -14px -18px 0; }
.gate-hero { position: relative; height: 46vh; min-height: 300px; max-height: 440px; background: #6E5A48 center/cover no-repeat; }
.gate-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 40%, rgba(0,0,0,.3)); }
.gate-top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.gate-brand { font-size: 22px; font-weight: 400; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.gate-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(20,18,16,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate-seg button { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }
.gate-seg button.on { background: #fff; color: #1F1D1A; }
.gate-free { position: absolute; left: 18px; right: 18px; bottom: 52px; z-index: 1; display: flex; align-items: center; gap: 12px; background: rgba(20,18,16,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 8px; }
.gate-free .n { width: 44px; height: 44px; border-radius: 999px; background: var(--acc); display: grid; place-items: center; font-size: 22px; font-weight: 300; flex: 0 0 auto; }
.gate-free .t { font-size: 14px; font-weight: 300; line-height: 1.2; } .gate-free .t b { font-weight: 400; display: block; }
.gate-sheet { position: relative; z-index: 2; margin-top: -32px; background: var(--card); color: var(--card-ink); border-radius: 36px 36px 0 0; padding: 26px 22px 40px; box-shadow: 0 -20px 50px rgba(0,0,0,.2); min-height: 54vh; }
.gate-sheet .h { font-size: 30px; }
.gate-sheet .sub { color: var(--card-muted); }
.gate-sheet .field { background: var(--card2); color: var(--card-ink); border-radius: 999px; }
.gate-sheet .btn-g { background: var(--card2); color: var(--card-ink); }
.gate-sheet .btn-t { color: var(--card-muted); }
.gate-sheet .note { border-top: none; text-align: center; margin-top: 12px; padding-top: 0; color: var(--card-muted); }
.gate-sheet .note a { color: var(--card-ink); }
.gate-sheet .err { background: rgba(201,68,46,.12); color: #9E2F1D; }
.gate-sheet .orline { color: var(--card-muted); } .gate-sheet .orline::before, .gate-sheet .orline::after { background: var(--cline); }

/* ── Captura ──────────────────────────────────────────────────────────────── */
.capture { display: block; position: relative; height: 230px; border-radius: var(--r); overflow: hidden; margin-top: 16px; background: #6E5A48 center/cover no-repeat; cursor: pointer; box-shadow: var(--tsh); text-align: left; }
.capture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.6)); }
.capture .lens { position: absolute; left: 16px; bottom: 60px; z-index: 1; width: 48px; height: 48px; border-radius: 999px; background: var(--acc); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.capture .lens svg { width: 22px; height: 22px; color: #fff; }
.capture b { position: absolute; left: 16px; bottom: 30px; z-index: 1; color: #fff; font-size: 22px; font-weight: 300; }
.capture p { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 300; }
.gal { margin-top: 10px; }
.gal svg { width: 18px; height: 18px; }
.shot { width: 100%; border-radius: var(--r); display: block; object-fit: cover; max-height: 240px; background: var(--surf); box-shadow: var(--tsh); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 400; padding: 9px 13px; border-radius: 999px; color: var(--muted); background: var(--surf); cursor: pointer; }
.chip.on { background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 14px var(--acc-glow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { position: relative; border-radius: 22px; overflow: hidden; padding: 0; background: var(--surf); cursor: pointer; width: 100%; box-shadow: var(--csh); text-align: left; }
.pick img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.pick .n { position: absolute; top: 10px; left: 10px; font-size: 12px; background: rgba(20,18,16,.6); color: #fff; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.pick .tag { position: absolute; bottom: 10px; left: 10px; right: 10px; font-size: 13px; color: #fff; background: rgba(20,18,16,.6); padding: 6px 8px; border-radius: 999px; text-align: center; backdrop-filter: blur(6px); }
.pick.sel { box-shadow: 0 0 0 2px var(--acc), 0 14px 30px var(--acc-glow); }
.pick .tick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; box-shadow: 0 6px 14px var(--acc-glow); }
.pick .tick svg { width: 16px; height: 16px; }
.develop { position: relative; border-radius: var(--r); overflow: hidden; margin-top: 6px; box-shadow: var(--tsh); }
.develop img { filter: saturate(.35) contrast(.92); display: block; width: 100%; }
.sweep { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--acc-glow), transparent); border-top: 1px solid var(--acc); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { 0% { top: -30%; } 100% { top: 100%; } }
.dgrid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.14) 1px, transparent 1px); background-size: 26px 26px; }
.steps { margin-top: 18px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 7px 0; font-size: 16px; font-weight: 300; color: var(--muted2); }
.step.done { color: var(--muted); } .step.now { color: var(--ink); font-weight: 400; }
.step .m { font-size: 12px; }
.step.now .m { color: var(--acc); }
.bar { height: 4px; background: var(--surf); border-radius: 4px; overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; background: var(--acc); animation: grow 45s linear forwards; }
@keyframes grow { 0% { width: 4%; } 100% { width: 96%; } }

/* ── Estimado (libro en tarjeta crema) ────────────────────────────────────── */
.est { margin-top: 4px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 300; margin: 8px 0 6px; flex-wrap: wrap; }
.dot-g, .dot-a, .dot-b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-g { background: var(--acc); } .dot-a { background: var(--warn); } .dot-b { background: var(--muted2); }
.ledger { background: var(--card); color: var(--card-ink); border-radius: var(--r); padding: 4px 16px 14px; margin-top: 8px; box-shadow: var(--csh); }
.ledger > .sub { color: var(--card-muted); padding: 10px 0; }
.row2 { padding: 12px 0; border-bottom: 1px solid var(--cline); }
.row2 .r1 { display: flex; align-items: center; gap: 8px; }
.row2 .nm { flex: 1; font-size: 16px; font-weight: 400; line-height: 1.3; min-width: 0; color: var(--card-ink); }
.row2.brick .nm { color: var(--card-muted); }
.row2.aiRow .nm { color: var(--warn); }
.row2 .nm i { font-style: normal; font-size: 12px; margin-left: 6px; font-weight: 300; color: var(--card-muted); }
.row2 .nm i.ai { color: var(--warn); }
.nmIn { width: 100%; font-family: inherit; font-size: 16px; border: none; border-radius: 12px; padding: 8px 10px; background: var(--card2); color: var(--card-ink); outline: 2px solid var(--acc); }
.row2 .r2 { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 8px; }
.qtywarn { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 12px; padding: 8px 10px; margin-top: 8px; line-height: 1.4; }
.basis { font-size: 13px; color: var(--card-muted); font-weight: 300; margin-top: 6px; line-height: 1.4; }
.qty, .priceIn { font-family: inherit; font-size: 15px; border: none; border-radius: 12px; padding: 9px 10px; background: var(--card2); color: var(--card-ink); text-align: right; outline: none; }
.qty { width: 100%; }
.priceWrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.priceIn { width: 92px; box-shadow: inset 0 0 0 1px var(--acc-glow); }
.priceIn.ai { box-shadow: inset 0 0 0 1px var(--warn); }
.priceIn:focus, .qty:focus { box-shadow: 0 0 0 3px var(--acc-soft); }
.priceWrap em { font-style: normal; font-size: 13px; color: var(--card-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uu { font-size: 13px; color: var(--card-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.amt { font-size: 18px; font-weight: 300; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rowmore { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: var(--card-muted); padding: 0; border-radius: 999px; }
.rowmore svg { width: 18px; height: 18px; }
.row2.open .rowmore { background: var(--card2); color: var(--card-ink); }
.rowacts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rowacts button { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; padding: 9px 13px; border-radius: 999px; background: var(--card2); color: var(--card-ink); }
.rowacts button svg { width: 14px; height: 14px; }
.rowacts button.danger { color: var(--danger); }
.total { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 16px; }
.total .k { font-size: 13px; color: var(--card-muted); font-weight: 300; }
.total .v { font-size: 40px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.range { font-size: 13px; color: var(--card-muted); font-weight: 300; text-align: right; margin-top: 6px; }
.addbox { border-radius: var(--r); background: var(--surf); padding: 16px; margin-top: 12px; }
.addbox .field { margin-bottom: 8px; }
.addgrid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.addgrid .field { margin: 0; padding: 0 12px; height: 48px; font-size: 15px; }
.addgrid .btn { width: auto; height: 48px; padding: 0 18px; font-size: 15px; background: var(--surf2); }
.disc { font-size: 13px; line-height: 1.5; color: var(--muted2); font-weight: 300; margin-top: 12px; }
.aiBox { display: flex; gap: 12px; align-items: center; border-radius: var(--r); background: var(--surf); padding: 16px; margin: 12px 0; }
.aiBox div { flex: 1; min-width: 0; }
.aiBox b { font-size: 16px; font-weight: 400; display: block; color: var(--warn); }
.aiBox span { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.45; display: block; margin-top: 3px; }
.aiBox .btn { width: auto; flex: 0 0 auto; height: 46px; padding: 0 16px; font-size: 14px; }
.actions, .actions4 { display: grid; gap: 8px; margin-top: 14px; }
.actions { grid-template-columns: 1fr 1fr 1fr; } .actions4 { grid-template-columns: repeat(4, 1fr); }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 66px; border-radius: 22px; background: var(--card); color: var(--card-ink); font-size: 13px; font-weight: 300; box-shadow: var(--csh); padding: 0 4px; }
.act svg { width: 20px; height: 20px; }
.act.pri { background: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 22px var(--acc-glow); font-weight: 400; }

/* ── Documento: SIEMPRE papel ─────────────────────────────────────────────── */
.qwrap { border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--tsh); margin-top: 12px; }
.qdoc { --doc: #F0733A; background: #fff; color: #17211B; padding: 22px 20px; font-family: "Outfit", system-ui, sans-serif; }
.qd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.qd-brand { min-width: 0; }
.qd-logo { max-width: 150px; max-height: 52px; object-fit: contain; display: block; }
.qd-name { color: var(--doc); font-weight: 500; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.qd-sub { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8B948C; margin-top: 4px; }
.qd-tag { text-align: right; flex: 0 0 auto; }
.qd-tag b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--doc); font-weight: 500; }
.qd-tag span { display: block; font-size: 11px; color: #8B948C; margin-top: 3px; line-height: 1.5; }
.qd-rule { border: none; border-top: 2px solid #17211B; margin: 12px 0 0; }
.qd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #E7E4DB; }
.qd-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8B948C; margin-bottom: 4px; }
.qd-v { font-size: 12.5px; line-height: 1.6; word-break: break-word; }
.qd-terms { font-size: 11.5px; line-height: 1.6; color: #5A625B; margin-top: 12px; padding-top: 10px; border-top: 1px solid #E7E4DB; }
.qimg { width: 100%; border-radius: 10px; margin: 12px 0 2px; display: block; }
.qd-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.qd-table th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8B948C; text-align: left; padding: 6px 0; border-bottom: 1.5px solid #17211B; font-weight: 400; }
.qd-table th.r, .qd-table td.r { text-align: right; }
.qd-table td { font-size: 12.5px; padding: 8px 0 8px 6px; border-bottom: 1px solid #EFECE3; color: #17211B; }
.qd-table td:first-child { padding-left: 0; }
.qd-table td.m { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.qd-tot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 12px; }
.qd-tot .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8B948C; }
.qd-tot .v { font-size: 28px; font-weight: 300; letter-spacing: -.02em; color: var(--doc); line-height: 1; }
.qd-range { font-size: 11px; color: #5A625B; text-align: right; margin-top: 4px; }
.qd-opts { margin-top: 12px; padding: 10px 12px; background: #FAF7F0; border-radius: 8px; border-left: 2px solid var(--doc); }
.qd-opts p { font-size: 11.5px; color: #5A625B; line-height: 1.6; margin-top: 3px; }
.qd-disc { font-size: 10.5px; line-height: 1.55; color: #8B948C; margin-top: 10px; padding-top: 8px; border-top: 1px solid #E7E4DB; }
.qd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.qd-sign .ln { border-top: 1px solid #17211B; padding-top: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8B948C; }

/* ── Tu negocio ───────────────────────────────────────────────────────────── */
.logobox { display: flex; gap: 14px; align-items: center; border-radius: var(--r); background: var(--card); color: var(--card-ink); padding: 16px; box-shadow: var(--csh); }
.logoslot { width: 78px; height: 78px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--card2); overflow: hidden; cursor: pointer; padding: 8px; }
.logoslot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logoslot svg { width: 22px; height: 22px; color: var(--card-muted); }
.logoinfo { flex: 1; min-width: 0; }
.logoinfo b { font-size: 16px; font-weight: 400; display: block; }
.logoinfo .hintline { color: var(--card-muted); }
.sw { display: flex; align-items: center; gap: 10px; border-radius: var(--r-sm); background: var(--field); padding: 13px 16px; cursor: pointer; }
.sw span { flex: 1; font-size: 16px; }
.sw i { width: 46px; height: 27px; border-radius: 999px; background: var(--surf2); position: relative; transition: background .15s; flex: 0 0 auto; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw.on i { background: var(--acc); box-shadow: 0 6px 14px var(--acc-glow); } .sw.on i::after { transform: translateX(19px); background: #fff; }
.reprow { display: flex; align-items: center; gap: 8px; border-radius: var(--r-sm); padding: 12px 16px; background: var(--field); }
.reprow span { flex: 1; font-size: 16px; }
.icb { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; background: var(--surf2); color: var(--danger); padding: 0; }
.icb svg { width: 14px; height: 14px; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; }
.palette div { text-align: center; font-size: 12px; color: var(--muted); font-weight: 300; }
.swatch { display: block; width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 5px; padding: 0; cursor: pointer; position: relative; box-shadow: 0 8px 16px color-mix(in srgb, var(--c) 38%, transparent); background: var(--c); }
.swatch.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c); }
.swatch.on::before { content: ""; position: absolute; left: 50%; top: 52%; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%,-60%) rotate(-45deg); }
.pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.palc { border-radius: 18px; padding: 6px; background: var(--surf); text-align: center; font-size: 12px; color: var(--muted); font-weight: 300; cursor: pointer; }
.palc .mini { height: 78px; border-radius: 13px; background: var(--pb); position: relative; overflow: hidden; margin-bottom: 6px; }
.palc .mini::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 26px; border-radius: 8px; background: var(--pc); }
.palc .mini::after { content: ""; position: absolute; left: 8px; right: 30px; bottom: 10px; height: 14px; border-radius: 7px; background: var(--acc); }
.palc.on { outline: 2px solid var(--acc); color: var(--ink); font-weight: 400; }

/* ── Preguntas ────────────────────────────────────────────────────────────── */
.searchwrap { position: relative; margin-top: 14px; }
.searchwrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchwrap .field { padding-left: 44px; border-radius: 999px; }
.faqgroup { margin-top: 24px; }
.faqgroup > .lbl { margin-bottom: 4px; }
.qitem { border-bottom: 1px solid var(--line); }
.qhead { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 0; border-radius: 0; }
.qhead b { flex: 1; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink); }
.qhead .cx { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); margin-top: 4px; transition: transform .18s; }
.qitem.open .qhead .cx { transform: rotate(45deg); }
.qbody { display: none; font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.6; padding: 0 26px 16px 0; white-space: pre-line; }
.qitem.open .qbody { display: block; }
.empty { text-align: center; color: var(--muted); font-size: 15px; font-weight: 300; padding: 34px 10px; line-height: 1.5; }

/* ── Tarjetas en fila (saldo, plan) — faltaban y el "+" salía gigante ─────── */
.card.row { display: flex; align-items: center; gap: 12px; }
.card.dk .row, .card .row { display: flex; align-items: center; gap: 12px; }
.ic { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); flex: none; box-shadow: 0 6px 14px var(--acc-glow); }
.ic svg, .chev svg { width: 18px; height: 18px; }
.chev { margin-left: auto; width: 36px; height: 36px; border-radius: 999px; background: var(--card2); color: var(--card-ink); display: grid; place-items: center; flex: none; padding: 0; }
.card.dk .chev { background: var(--surf2); color: var(--ink); }
.big { font-size: 20px; font-weight: 400; letter-spacing: -.01em; line-height: 1.15; }
.big small { font-size: 13px; font-weight: 300; margin-left: 4px; }
.tiny { font-size: 13px; font-weight: 300; }
.card .m { color: var(--card-muted); } .card.dk .m { color: var(--muted); }
.card.dk .badge.acc { margin-left: auto; }

/* ── Plan, hoja inferior y candados ───────────────────────────────────────── */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 460px; background: var(--card); color: var(--card-ink); border-radius: 32px 32px 0 0; padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0,0,0,.3); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--cline); margin: -6px auto 14px; }
.sheet .h2 { font-size: 26px; font-weight: 300; letter-spacing: -.015em; line-height: 1.1; }
.sheet .sub { color: var(--card-muted); }
.sheet .lbl { color: var(--card-muted); }
.sheet .btn { margin-top: 10px; }
.sheet .btn-g { background: var(--card2); color: var(--card-ink); }
.sheet .btn-t { color: var(--card-muted); }
.pw-list { list-style: none; margin: 14px 0 4px; padding: 0; }
.pw-list li { font-size: 15px; font-weight: 300; padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--cline); }
.pw-list li:first-child { border-top: 0; }
.pw-list li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 9px; height: 9px; border-radius: 999px; background: var(--acc); }
.card.dk .pw-list li { border-color: var(--line); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60; background: #1F1D1A; color: #F5F2ED; padding: 12px 18px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #8E2F1F; }
.lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); vertical-align: middle; margin-left: 8px; }
.veil { position: relative; }
.veil::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); pointer-events: none; }
.quota { cursor: pointer; }
.planline { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.planline .big { flex: 1; }

/* ── Home tipo góndola + historial + Tú (12-sep-2026, cierre mockup↔app) ── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 4px; }
.av { width: 46px; height: 46px; border-radius: 999px; position: relative; background: var(--surf2); color: var(--ink); display: grid; place-items: center; font-size: 17px; font-weight: 500; overflow: visible; flex: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }
.av img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
.av i { position: absolute; right: -8px; bottom: -4px; font-style: normal; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); }
.av.lg { width: 76px; height: 76px; font-size: 26px; }
.rb { width: 46px; height: 46px; border-radius: 999px; background: var(--surf); color: var(--ink); display: grid; place-items: center; flex: none; padding: 0; cursor: pointer; }
.rb svg { width: 20px; height: 20px; }
.rb.sm { width: 36px; height: 36px; } .rb.sm svg { width: 16px; height: 16px; }
.hi-sub { font-size: 15px; color: var(--muted); font-weight: 300; margin-top: 4px; }

.tile { position: relative; border-radius: var(--r); overflow: hidden; height: 200px; box-shadow: var(--tsh); margin-top: 14px; background: var(--surf) center/cover no-repeat; cursor: pointer; display: block; width: 100%; text-align: left; padding: 0; }
.tile .ov2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.6)); }
.tile .chips { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tile .chip { font-size: 12px; font-weight: 400; padding: 5px 10px; border-radius: 999px; background: rgba(20,18,16,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center; width: max-content; border: 0; }
.tile .chip i { width: 7px; height: 7px; border-radius: 999px; background: var(--acc); display: inline-block; }
.tile .go { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; background: rgba(20,18,16,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.tile .go svg { width: 16px; height: 16px; }
.tile .nm { position: absolute; left: 16px; bottom: 14px; right: 100px; color: #fff; font-size: 22px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nm small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.tile .bt { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.tile .bt span { width: 34px; height: 34px; border-radius: 999px; background: rgba(20,18,16,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.tile .bt span svg { width: 15px; height: 15px; }
.tile .bt span.a { background: var(--acc); }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dev { background: var(--card); color: var(--card-ink); border-radius: 24px; padding: 14px 14px 12px; min-height: 118px; position: relative; overflow: hidden; box-shadow: var(--csh); text-align: left; cursor: pointer; width: 100%; }
.dev .n { font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.dev .n small { font-size: 12px; color: var(--card-muted); margin-left: 4px; letter-spacing: 0; }
.dev .t { font-size: 14px; font-weight: 400; margin-top: 4px; }
.dev .ic { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; box-shadow: none; background: var(--acc-soft); color: var(--acc); }
.dev .ic svg { width: 16px; height: 16px; }

/* antes/después deslizable */
.ba { position: relative; height: 240px; border-radius: var(--r); overflow: hidden; box-shadow: var(--tsh); background: var(--surf); user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .aft { clip-path: inset(0 0 0 var(--x, 55%)); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--x, 55%); width: 2px; background: #fff; pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: var(--x, 55%); transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 999px; background: var(--acc); color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.9); display: grid; place-items: center; pointer-events: none; }
.ba .knob svg { width: 18px; height: 18px; }
.ba em { position: absolute; top: 12px; font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(20,18,16,.55); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.ba em.l { left: 12px; } .ba em.r { right: 12px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; touch-action: pan-y; }

/* historial: filas y estado */
.jrow { display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--card-ink); border-radius: 22px; padding: 10px 12px 10px 10px; margin-top: 10px; box-shadow: var(--csh); cursor: pointer; width: 100%; text-align: left; }
.jrow .th { width: 62px; height: 62px; border-radius: 16px; background: var(--card2) center/cover no-repeat; flex: none; }
.jrow .tx { flex: 1; min-width: 0; }
.jrow .tx b { display: block; font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow .tx span { display: block; font-size: 13px; color: var(--card-muted); font-weight: 300; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow .amt2 { font-size: 18px; font-weight: 300; letter-spacing: -.01em; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--card2); color: var(--card-muted); text-transform: uppercase; letter-spacing: .04em; }
.pill.sent { background: var(--acc-soft); color: var(--acc); }
.pill.won { background: rgba(16,163,92,.14); color: #0E8A4E; }
.pill.lost { background: rgba(201,68,46,.12); color: #9E2F1D; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surf); border-radius: 999px; margin-top: 14px; }
.seg button { flex: 1; padding: 9px 4px; font-size: 13px; color: var(--muted); border-radius: 999px; }
.seg button.on { background: var(--card); color: var(--card-ink); font-weight: 500; }
.empty2 { text-align: center; padding: 40px 20px; color: var(--muted); font-weight: 300; }

/* Tú: filas de ajustes */
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; background: var(--surf); color: var(--ink); border-radius: 18px; margin-top: 8px; cursor: pointer; }
.setrow .ic { width: 36px; height: 36px; box-shadow: none; background: var(--acc-soft); color: var(--acc); }
.setrow .ic svg { width: 17px; height: 17px; }
.setrow .tx { flex: 1; min-width: 0; }
.setrow .tx b { display: block; font-weight: 400; font-size: 16px; }
.setrow .tx span { display: block; font-size: 13px; color: var(--muted); font-weight: 300; margin-top: 1px; }
.setrow .chev { background: var(--surf2); color: var(--ink); }
.setrow .sw { padding: 0; background: transparent; }
.setrow.danger { color: var(--danger); } .setrow.danger .ic { background: rgba(201,68,46,.12); color: var(--danger); }
.who { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.who .tx { min-width: 0; }
.who .tx b { display: block; font-size: 22px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
.who .tx span { display: block; font-size: 14px; color: var(--muted); font-weight: 300; margin-top: 3px; word-break: break-all; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--surf2); color: var(--ink); }
.badge.acc { background: var(--acc); color: var(--acc-ink); }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cline); }
.prow:first-child { border-top: 0; }
.prow .tx { flex: 1; min-width: 0; } .prow .tx b { display: block; font-weight: 400; } .prow .tx span { display: block; font-size: 13px; color: var(--card-muted); font-weight: 300; }
.prow .v { font-size: 17px; font-weight: 300; white-space: nowrap; }
.prow a { color: var(--acc); font-size: 13px; text-decoration: none; }

/* ── Impresión ────────────────────────────────────────────────────────────── */
#printArea { display: none; }
@media print { html, body { background: #fff; } .app { display: none !important; } #printArea { display: block !important; } #printArea .qdoc { padding: 0; } }
