/* LoMío — estilo mosaico oscuro, tarjetas con imagen, barra flotante. */
:root {
  --bg: #F4F4F6; --bg2: #FFFFFF; --bg3: #EBEBEF; --line: rgba(0,0,0,.08);
  --tx: #0B0B0F; --tx2: #5C5C66; --tx3: #9A9AA3;
  --accent: #B26BFF; --ok: #2FD67B; --warn: #FFA62B; --bad: #FF5C5C;
  --glass: rgba(255,255,255,.72); --dock: rgba(40,40,44,.86); --dock-ic: #fff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --r: 22px; --gut: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg2: #141416; --bg3: #1F1F23; --line: rgba(255,255,255,.08);
    --tx: #F5F5F7; --tx2: #A1A1AA; --tx3: #6B6B74;
    --glass: rgba(28,28,30,.72); --dock: rgba(52,52,56,.82);
    --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg2: #141416; --bg3: #1F1F23; --line: rgba(255,255,255,.08);
  --tx: #F5F5F7; --tx2: #A1A1AA; --tx3: #6B6B74;
  --glass: rgba(28,28,30,.72); --dock: rgba(52,52,56,.82);
  --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--tx); min-height: 100dvh;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
.muted { color: var(--tx2); }
.pad { padding: 14px 16px; margin: 0; }
.hint { color: var(--tx3); font-size: 13px; margin: 6px 4px; }
.hint.center, .center { text-align: center; }
.warn { color: var(--warn); display: block; margin-top: 4px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 8px) 16px 6px; background: linear-gradient(var(--bg) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.2px; font-size: 18px; color: var(--tx); }
.brand .ic { color: var(--accent); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: var(--tx); position: relative; transition: transform .15s, background .15s; }
.icon-btn:active { transform: scale(.9); }
.icon-btn.big { width: 48px; height: 48px; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.glass, .btn.glass { background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.badge-dot { position: absolute; top: 9px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #FF3B5C; border: 2px solid var(--bg); }

main { padding: 0 var(--gut) calc(110px + var(--safe-b)); max-width: 1280px; margin: 0 auto; outline: none; }
main.enter > * { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
main.enter > *:nth-child(2) { animation-delay: .03s } main.enter > *:nth-child(3) { animation-delay: .06s } main.enter > *:nth-child(n+4) { animation-delay: .09s }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 6px 6px 12px; }
.page-head h1 { margin: 0; font-size: 32px; line-height: 1.08; letter-spacing: -.8px; font-weight: 800; }
.eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--tx2); letter-spacing: .1px; }
.sub { margin: 6px 0 0; color: var(--tx2); font-size: 15px; }

/* ---------- pestañas estilo mosaico ---------- */
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 4px 8px 0; margin: 4px -10px 12px; position: sticky; top: calc(var(--safe-t) + 60px); z-index: 15; background: var(--bg); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 0 10px; font-size: 17px; font-weight: 600; color: var(--tx2); position: relative; white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: color .2s; }
.tab:first-child { margin-left: 10px; }
.tab:last-child { margin-right: 10px; }
.tab small { font-size: 12px; color: var(--tx3); font-weight: 600; }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.tab.on { color: var(--tx); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--tx); animation: grow .25s ease; }
@keyframes grow { from { transform: scaleX(.3); opacity: 0; } }

/* ---------- mosaico ---------- */
.masonry { column-count: 2; column-gap: var(--gut); }
@media (min-width: 700px) { .masonry { column-count: 3; } :root { --gut: 14px; } }
@media (min-width: 1000px) { .masonry { column-count: 4; } }
@media (min-width: 1280px) { .masonry { column-count: 5; } }
.card { break-inside: avoid; margin: 0 0 18px; display: block; cursor: pointer; animation: rise .4s both; }
.card .media { position: relative; border-radius: var(--r); overflow: hidden; transform: translateZ(0); transition: transform .2s; }
.card:active .media { transform: scale(.97); }
.card.is-done .media { opacity: .5; }
.card.is-done .caption b { text-decoration: line-through; color: var(--tx2); }
.caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; padding: 8px 4px 0 6px; }
.caption > div { min-width: 0; }
.caption b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.caption small { display: block; font-size: 13px; color: var(--tx2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more { color: var(--tx); opacity: .85; padding: 0 2px; margin-top: -2px; }

/* arte generado para tarjetas sin foto */
.art { position: relative; width: 100%; background: radial-gradient(120% 90% at var(--ax) var(--ay), color-mix(in srgb, var(--c) 95%, #fff 5%), color-mix(in srgb, var(--c) 55%, #000 45%) 55%, color-mix(in srgb, var(--c) 25%, #000 75%)); display: grid; place-items: center; overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); mix-blend-mode: overlay; }
.art-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); top: -15%; right: -15%; filter: blur(6px); }
.art-ic { color: rgba(255,255,255,.92); width: 34%; height: auto; max-width: 92px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); stroke-width: 1.4; }
.art.photo { background: var(--bg3); }
.art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.add { background: var(--bg3); color: var(--tx2); border: 1.5px dashed var(--line); }
.chip-time, .chip-tag, .chip-rep { position: absolute; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chip-time { left: 9px; top: 9px; background: rgba(0,0,0,.5); color: #fff; }
.chip-rep { right: 9px; top: 9px; background: rgba(0,0,0,.5); color: #fff; padding: 6px; }
.chip-tag { left: 9px; bottom: 9px; background: rgba(255,255,255,.88); color: #111; }
.chip-tag.must { background: #fff; color: #111; }
.chip-tag.opt { background: rgba(0,0,0,.45); color: #fff; }
.chip-tag.joy { background: rgba(255,255,255,.9); color: #6a2bd1; }
.chip-tag.warn { background: #FFE2B8; color: #7a4600; }
.chip-tag.muted { background: rgba(0,0,0,.5); color: #ddd; }
.check-fab { position: absolute; right: 9px; bottom: 9px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: transparent; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .2s, background .2s, color .2s; }
.check-fab:active { transform: scale(.85); }
.check-fab.on { background: var(--ok); color: #fff; }
.check-fab:not(.on) .ic { color: #bbb; }
.overlay-big { position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.6px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.overlay-free { position: absolute; inset: auto 12px 12px 12px; color: #fff; }
.overlay-free b { font-size: 30px; font-weight: 800; letter-spacing: -.8px; display: block; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.overlay-free small { opacity: .9; }
.blocks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.blocks span { font-size: 11px; font-weight: 600; background: rgba(0,0,0,.35); padding: 3px 7px; border-radius: 8px; }

/* tarjetas de lista */
.list-card { background: var(--bg2); border-radius: var(--r); padding: 14px 6px 6px; border: 1px solid var(--line); cursor: default; }
.lc-head { display: flex; gap: 10px; padding: 0 8px 8px; align-items: flex-start; }
.lc-head .ic { color: var(--c); margin-top: 2px; }
.lc-head b { display: block; font-size: 15px; }
.lc-head small { color: var(--tx2); font-size: 12.5px; }

/* filas */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 14px; cursor: pointer; min-height: 52px; transition: background .15s; }
.row:active { background: var(--bg3); }
.row .bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; min-height: 30px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.row-main small { color: var(--tx2); font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row.is-done .row-main b { text-decoration: line-through; color: var(--tx3); }
.prio { color: var(--warn); font-style: normal; font-weight: 600; }
.soft { font-size: 12px; color: var(--tx3); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; flex: none; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.check.on { background: var(--c); color: #fff; }
.check:active { transform: scale(.85); }
.card-rows { background: var(--bg2); border-radius: var(--r); padding: 6px; border: 1px solid var(--line); }

/* ---------- Mi día ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 2px 12px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.wk span { font-size: 11px; color: var(--tx3); font-weight: 600; }
.wk b { font-size: 17px; }
.wk i { display: flex; gap: 2px; height: 5px; }
.wk em { width: 5px; height: 5px; border-radius: 50%; }
.wk.on { background: var(--tx); color: var(--bg); border-color: transparent; }
.wk.on span { color: var(--bg); opacity: .7; }
.ask-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--bg3); color: var(--tx2); font-size: 15px; margin: 0 0 6px; text-align: left; transition: transform .15s; }
.ask-bar:active { transform: scale(.98); }
.ask-bar .ic { color: var(--accent); }

/* ---------- botones / formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; background: var(--bg3); font-weight: 600; font-size: 15px; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--tx); color: var(--bg); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn.wide { width: 100%; margin: 10px 0; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.seg { display: inline-flex; background: var(--bg3); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--tx2); transition: all .2s; }
.seg button.on { background: var(--bg2); color: var(--tx); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.seg.views { margin: 0 4px 6px; }
.seg.small { margin: 0 4px 12px; }

/* ---------- barra flotante ---------- */
.dock { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); display: flex; gap: 8px; }
.dock a { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: rgba(58,58,64,.92); border: 1px solid rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .18s, color .18s, background .18s; }
.dock a.on { color: #fff; background: linear-gradient(135deg, #B26BFF, #3D7BFF); border-color: transparent; box-shadow: 0 8px 24px rgba(130,90,255,.45); }
.dock a .ic { stroke-width: 2.1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.dock a:active { transform: scale(.9); }

/* ---------- hojas modales ---------- */
#sheets { position: relative; z-index: 50; }
.sheet-wrap { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .28s; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 0 16px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.9,.2,1); overscroll-behavior: contain; }
.sheet.full { height: 94dvh; max-height: 94dvh; }
.sheet.wide { max-width: 760px; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
@media (min-width: 760px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; max-height: 88dvh; } .sheet.full { height: auto; } .sheet-wrap .sheet { transform: translateY(30px) scale(.98); opacity: 0; transition: all .25s; } .sheet-wrap.open .sheet { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--tx3); opacity: .5; margin: 8px auto 4px; position: sticky; top: 8px; z-index: 3; padding: 0; }
.sheet-grip::before { content: ""; position: absolute; inset: -14px -60px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 10px; position: sticky; top: 0; background: var(--bg2); z-index: 2; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-body h3 { margin: 6px 0 12px; }
.confirm .row-btns { display: flex; gap: 10px; margin-top: 18px; }
.confirm .row-btns .btn { flex: 1; }
.menu .line.act { width: 100%; }

.title-input { width: 100%; border: 0; background: transparent; font-size: 24px; font-weight: 700; letter-spacing: -.4px; padding: 8px 2px 12px; outline: none; }
.title-input.big { font-size: 26px; padding: 0 0 10px; resize: none; background: transparent; border-radius: 0; line-height: 1.15; }
.title-input::placeholder { color: var(--tx3); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.pills:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg3); font-size: 14px; font-weight: 600; color: var(--tx2); border: 1.5px solid transparent; transition: all .15s; }
.pill.sm { padding: 6px 11px; font-size: 13px; }
.pill .ic { color: var(--c); }
.pill.on { background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); color: var(--tx); border-color: var(--c, var(--accent)); }
.group { background: var(--bg3); border-radius: 18px; padding: 4px 14px; margin: 12px 0; }
.group > textarea { width: 100%; border: 0; background: transparent; padding: 12px 0; outline: none; resize: vertical; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); }
.line:last-child, .line:has(+ .hint:last-child) { border-bottom: 0; }
.line > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--tx); white-space: nowrap; }
.line > span .ic { color: var(--tx2); }
.line.col { flex-direction: column; align-items: stretch; padding: 12px 0; gap: 8px; }
.line input:not([type=checkbox]), .line select { background: transparent; border: 0; text-align: right; outline: none; min-width: 0; flex: 1; color: var(--tx); font-size: 15px; }
.line input::placeholder { color: var(--tx3); }
.line select { appearance: none; -webkit-appearance: none; color: var(--tx2); text-align-last: right; }
.line .dt { display: flex; gap: 8px; justify-content: flex-end; flex: 1; align-items: center; }
.line .dt input { flex: none; text-align: right; }
.line input.num { width: 50px; flex: none; }
.line.act { justify-content: flex-start; color: var(--tx); font-weight: 500; gap: 12px; }
.line.act.danger { color: var(--bad); }
.toggle input { display: none; }
.toggle i { width: 51px; height: 31px; border-radius: 16px; background: var(--tx3); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.toggle input:checked + i { background: var(--ok); }
.toggle input:checked + i::after { transform: translateX(20px); }
.wd { display: flex; gap: 4px; }
.wd button { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); font-size: 13px; font-weight: 700; color: var(--tx2); }
.wd button.on { background: var(--tx); color: var(--bg); }
textarea { width: 100%; background: var(--bg3); border: 0; border-radius: 16px; padding: 12px 14px; outline: none; resize: vertical; color: var(--tx); }

/* ---------- entrada rápida ---------- */
.qa-box { background: var(--bg3); border-radius: 20px; padding: 6px; }
.qa-box textarea { background: transparent; font-size: 18px; min-height: 90px; }
.qa-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 4px; }
.mic { background: var(--bg2); width: 48px; height: 48px; border-radius: 50%; color: var(--accent); }
.mic.rec { background: #FF3B5C; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255,59,92,.15); } }
.examples { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.example { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--tx2); font-size: 14px; }
.proposal { border-radius: 18px; background: var(--bg3); padding: 12px; margin: 10px 0; border-left: 4px solid var(--c); display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.proposal.off { opacity: .45; }
.proposal input, .proposal select { background: var(--bg2); border: 0; border-radius: 10px; padding: 9px 10px; outline: none; min-width: 0; color: var(--tx); }
.proposal [data-f=title] { font-weight: 600; font-size: 16px; }
.p-top { display: flex; align-items: center; gap: 8px; }
.p-top select { flex: 1; }
.p-ic { color: var(--c); }
.keep { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tx2); }
.p-row { display: grid; grid-template-columns: 1.2fr .9fr 1.2fr; gap: 6px; }
.notice { background: var(--bg3); padding: 14px; border-radius: 16px; display: flex; gap: 10px; color: var(--tx2); margin: 12px 0; }
.loading { height: 60px; border-radius: 16px; margin: 12px 0; background: linear-gradient(90deg, var(--bg3), var(--bg2), var(--bg3)); background-size: 200% 100%; animation: shimmer 1s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- calendario ---------- */
.cal-head h1 { font-size: 28px; }
.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-body { animation: rise .3s both; }
.month { background: var(--bg2); border-radius: var(--r); padding: 8px 6px; border: 1px solid var(--line); }
.mh { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--tx3); font-weight: 600; padding: 2px 0 6px; }
.mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mc { min-height: 64px; border-radius: 12px; padding: 5px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: left; transition: background .15s; overflow: hidden; }
.mc .n { font-size: 14px; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.mc.out { opacity: .35; }
.mc.today .n { background: var(--accent); color: #fff; }
.mc.sel { background: var(--bg3); }
.bars { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.bars i { height: 5px; border-radius: 3px; background: var(--c); display: block; overflow: hidden; }
.bars i.done { opacity: .35; }
.bars i em { display: none; }
.bars small { font-size: 10px; color: var(--tx3); text-align: center; }
@media (min-width: 700px) {
  .mc { min-height: 104px; align-items: stretch; }
  .mc .n { align-self: flex-end; }
  .bars i { height: auto; background: color-mix(in srgb, var(--c) 22%, transparent); border-left: 3px solid var(--c); padding: 1px 5px; border-radius: 5px; }
  .bars i em { display: block; font-style: normal; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tx); }
}
.day-panel { background: var(--bg2); border-radius: var(--r); border: 1px solid var(--line); margin-top: 12px; padding: 12px 6px 6px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 6px; }
.tg { background: var(--bg2); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.tg-headrow, .tg-allrow { display: grid; grid-template-columns: 44px repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tg-dh { padding: 8px 0; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--tx3); font-weight: 600; text-transform: capitalize; }
.tg-dh b { font-size: 17px; color: var(--tx); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.tg-dh.today b { background: var(--accent); color: #fff; }
.tg-gutter small { font-size: 9px; color: var(--tx3); display: block; text-align: center; padding-top: 6px; line-height: 1.1; }
.tg-ad { min-width: 0; overflow: hidden; min-height: 30px; padding: 3px 2px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; cursor: copy; }
.ad-item { font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--c) 25%, transparent); border-left: 3px solid var(--c); border-radius: 5px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: flex; gap: 3px; align-items: center; }
.ad-item.done { opacity: .45; text-decoration: line-through; }
.tg-scroll { height: calc(100dvh - 330px); min-height: 360px; overflow-y: auto; }
.tg-inner { display: grid; grid-template-columns: 44px minmax(0, 1fr); position: relative; }
.tg-h { height: 52px; position: relative; }
.tg-h span { position: absolute; top: -7px; right: 6px; font-size: 10px; color: var(--tx3); }
.tg-h:first-child span { display: none; }
.tg-cols { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 52px); }
.tg-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.tg-ev { position: absolute; border-radius: 8px; padding: 3px 6px; background: color-mix(in srgb, var(--c) 30%, var(--bg2)); border-left: 3px solid var(--c); overflow: hidden; cursor: pointer; font-size: 12px; line-height: 1.2; animation: rise .3s both; }
.tg-ev.opt { background: color-mix(in srgb, var(--c) 15%, var(--bg2)); border-left-style: dashed; }
.tg-ev.done { opacity: .45; }
.tg-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ev small { color: var(--tx2); font-size: 10.5px; }
.tg:not(.one) .tg-ev small { display: none; }
@media (min-width: 700px) { .tg:not(.one) .tg-ev small { display: block; } }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #FF3B5C; z-index: 2; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #FF3B5C; }
.ag-day { display: grid; grid-template-columns: 58px 1fr; gap: 6px; margin-bottom: 12px; }
.ag-date { text-align: center; padding-top: 8px; }
.ag-date b { display: block; font-size: 24px; font-weight: 800; }
.ag-date span { font-size: 11px; color: var(--tx2); }
.ag-day .rows { background: var(--bg2); border-radius: 18px; border: 1px solid var(--line); padding: 4px; }

/* ---------- tareas ---------- */
.tgroup { margin-bottom: 18px; }
.tgroup h3 { font-size: 15px; color: var(--tx2); margin: 6px 8px 8px; font-weight: 700; }
.tgroup h3 small { color: var(--tx3); font-weight: 600; }
.task-groups { max-width: 760px; }

/* ---------- inventario ---------- */
.asset .asset-hero { position: relative; margin: 0 -16px; }
.asset .asset-hero .art { border-radius: 0; }
.asset .close { position: absolute; top: 10px; left: 12px; }
.asset .photo-btn { position: absolute; right: 12px; bottom: 12px; height: 38px; }
.asset-body { padding-top: 14px; }
.seg.own { margin: 4px 0 8px; flex-wrap: wrap; }
.source { font-size: 13px; color: var(--tx2); background: var(--bg3); border-radius: 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.source .ic { color: var(--accent); margin-top: 2px; }
.sec { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 22px 0 10px !important; }
.sec .ic { color: var(--accent); }
.chips-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); padding: 7px 8px 7px 12px; border-radius: 999px; font-size: 14px; }
.chip button { color: var(--tx3); }
.inline-add { display: flex; gap: 6px; align-items: center; width: 100%; margin-top: 6px; }
.inline-add.wrap { flex-wrap: wrap; }
.inline-add input, .inline-add select { flex: 1; min-width: 0; background: var(--bg3); border: 0; border-radius: 12px; padding: 10px 12px; outline: none; color: var(--tx); }
.inline-add .icon-btn { background: var(--bg3); }
.specs { display: flex; flex-direction: column; gap: 4px; }
.spec { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg3); border-radius: 12px; align-items: center; }
.spec span { color: var(--tx2); font-size: 14px; }
.spec b { text-align: right; flex: 1; font-weight: 600; font-size: 14px; }
.spec button { color: var(--tx3); }
.pending { color: var(--warn); font-weight: 600; font-size: 13px; }
.rel { display: flex; flex-direction: column; gap: 6px; }
.rel-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--bg3); border-radius: 14px; text-align: left; }
.rel-item img, .rel-item > span { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--c); flex: none; }
.rel-item div { flex: 1; } .rel-item b { display: block; font-size: 14px; } .rel-item small { color: var(--tx2); font-size: 12px; }
.rel-item i { color: var(--tx3); padding: 6px; }
.asset textarea { margin-top: 6px; }

/* ---------- aficiones / más ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 4px 14px; scrollbar-width: none; }
.gear { flex: none; width: 92px; text-align: center; }
.gear img, .gear span { width: 92px; height: 92px; border-radius: 22px; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, #000); color: #fff; }
.gear b { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { aspect-ratio: 1.25; border-radius: var(--r); padding: 16px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(120% 100% at 80% 0%, var(--c), color-mix(in srgb, var(--c) 30%, #000)); transition: transform .15s; }
.tile:active { transform: scale(.96); }
.tile b { font-size: 16px; }
.free-blocks { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 4px 16px; }
.fb { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.fb b { display: block; } .fb small { color: var(--tx2); }

/* ---------- vacíos, aviso y acceso ---------- */
.empty { break-inside: avoid; text-align: center; padding: 34px 18px; background: var(--bg2); border-radius: var(--r); border: 1px solid var(--line); color: var(--tx2); margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .ic { color: var(--accent); }
.empty b { color: var(--tx); font-size: 16px; }
.empty p { margin: 0; font-size: 14px; }
#toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--tx); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { color: var(--accent); font-weight: 700; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(80% 60% at 70% 0%, rgba(178,107,255,.35), transparent), radial-gradient(70% 50% at 0% 100%, rgba(61,123,255,.3), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 380px; text-align: center; }
.auth-card h1 { font-size: 40px; letter-spacing: -1.2px; margin: 14px 0 6px; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.auth-card input { background: var(--bg3); border: 0; border-radius: 16px; padding: 16px; outline: none; font-size: 17px; }
.auth-logo { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #B26BFF, #3D7BFF); box-shadow: 0 14px 40px rgba(178,107,255,.4); }
.err { color: var(--bad); min-height: 20px; font-size: 14px; }
.splash { min-height: 100dvh; display: grid; place-items: center; }
.pulse { animation: pulse 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1000px) { .page-head h1 { font-size: 40px; } }

.search { display: flex; align-items: center; gap: 10px; background: var(--bg3); border-radius: 16px; padding: 0 14px; margin: 0 2px 6px; color: var(--tx3); }
.search input { flex: 1; background: transparent; border: 0; outline: none; padding: 13px 0; font-size: 16px; color: var(--tx); -webkit-appearance: none; }

.search-row { display: flex; gap: 8px; align-items: center; margin: 0 2px 6px; }
.search-row .search { flex: 1; margin: 0; }
.cam-btn { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #B26BFF, #3D7BFF); color: #fff; flex: none; box-shadow: 0 6px 18px rgba(130,90,255,.35); transition: transform .15s; }
.cam-btn:active { transform: scale(.92); }
.art.add.cam { flex-direction: column; gap: 10px; color: var(--tx); background: radial-gradient(100% 80% at 70% 10%, rgba(178,107,255,.45), transparent), var(--bg3); border-style: solid; }
.art.add.cam span { font-size: 13px; color: var(--tx2); text-align: center; padding: 0 16px; position: relative; }
.ident-photo { position: relative; border-radius: 22px; overflow: hidden; max-height: 42dvh; display: grid; place-items: center; background: #000; }
.ident-photo img { width: 100%; max-height: 42dvh; object-fit: contain; display: block; }
.scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(178,107,255,.55), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
#ident-msg { margin: 14px 8px; font-size: 14px; display: block; }
#ident-msg .ic { display: inline-block; vertical-align: -3px; color: var(--accent); }
.spec input { accent-color: var(--accent); }
.src { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; flex: none; }
.src.etiqueta { background: rgba(47,214,123,.18); color: var(--ok); }
.src.conocimiento { background: rgba(255,166,43,.18); color: var(--warn); }
.notice.dup { align-items: flex-start; }
.notice.dup .row-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.today-sum { margin: 2px 6px 10px; }

.group .inline-add input { background: var(--bg2); text-align: left; }

.prov { padding: 10px 0; border-top: 1px solid var(--line); }
.prov-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.prov .soft.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.prov .inline-add { flex-wrap: nowrap; }

.feed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 12px; color: var(--tx2); font-size: 14px; }
.feed-bar span { display: flex; align-items: center; gap: 6px; }
.feed-bar .ic { color: var(--accent); }
.idea .idea-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea .idea-gear { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--tx3); }
.idea-sheet h2 { margin: 14px 0 8px; font-size: 24px; letter-spacing: -.4px; }
.idea-sheet p { font-size: 16px; line-height: 1.45; }
.idea-hero { height: 140px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 100% at 70% 0%, var(--c), color-mix(in srgb, var(--c) 25%, #000)); margin-top: 6px; }
.guide { background: var(--bg3); border-radius: 18px; padding: 12px 14px; }
.guide p { margin: 4px 0 10px; line-height: 1.45; }
.guide details { border-top: 1px solid var(--line); padding: 8px 0; }
.guide summary { font-weight: 600; cursor: pointer; padding: 4px 0; }
.guide ol, .guide ul { margin: 6px 0 4px; padding-left: 22px; line-height: 1.5; }
.guide .rows { margin: 0 -8px; }
.plan-row .btn { flex: none; }
.sheet-body.welcome { text-align: center; padding-top: 10px; }
.sheet-body.welcome h2 { margin: 16px 0 6px; }
.wl-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wl-form input { background: var(--bg3); border: 0; border-radius: 14px; padding: 14px; outline: none; color: var(--tx); }

.value-card { background: radial-gradient(120% 140% at 100% 0%, rgba(255,166,43,.22), transparent 60%), var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 4px 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.vc-main span { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-size: 14px; font-weight: 600; }
.vc-main span .ic { color: var(--warn); }
.vc-main b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 2px 0; }
.vc-main small { color: var(--tx2); font-size: 13px; }
.vc-cat { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; }
.vc-cat span { color: var(--tx2); } .vc-cat b { font-size: 20px; }
.vc-bars { display: flex; flex-direction: column; gap: 6px; }
.vc-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; text-align: left; font-size: 13px; }
.vc-bar i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--c); display: block; }
.vc-bar span { color: var(--tx2); } .vc-bar em { font-style: normal; font-weight: 600; }
.value-card .btn { align-self: flex-start; }
.value-card .hint { margin: 0; }
.caption small.price { color: var(--warn); font-weight: 700; }

.masonry + .value-card { margin-top: 8px; margin-bottom: 20px; }

.vc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vc-split div { background: var(--bg3); border-radius: 14px; padding: 8px 10px; }
.vc-split span { display: block; font-size: 11.5px; color: var(--tx2); line-height: 1.2; min-height: 28px; }
.vc-split b { font-size: 16px; }
.spec.extra input { width: 86px; background: transparent; border: 0; outline: none; text-align: right; color: var(--tx); font-weight: 600; }
.spec.extra em { font-style: normal; color: var(--tx2); }
.spec.extra span { flex: 1; color: var(--tx); }
.inline-add .price-in { max-width: 90px; flex: none; }
.money-sum { background: var(--bg3); border-radius: 18px; padding: 6px 14px; margin-top: 10px; }
.money-sum div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.money-sum div:last-child { border-bottom: 0; }
.money-sum span { color: var(--tx2); }
.money-sum .tot span { color: var(--tx); font-weight: 600; } .money-sum .tot b { color: var(--warn); font-size: 17px; }

button.value-card { width: 100%; text-align: left; color: var(--tx); cursor: pointer; transition: transform .15s; }
button.value-card:active { transform: scale(.98); }
.vc-main small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.spent-total { text-align: center; padding: 6px 0 16px; }
.spent-total b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -1.2px; color: var(--warn); }
.spent-total small { color: var(--tx2); font-size: 13px; }
.spent-row { width: 100%; text-align: left; }
.spent-v { flex: none; font-size: 15px; }
.spent-bar { display: block; height: 5px; border-radius: 3px; background: var(--bg3); margin-top: 6px; overflow: hidden; }
.spent-bar em { display: block; height: 100%; background: var(--c); border-radius: 3px; }

.market { background: color-mix(in srgb, var(--warn) 12%, var(--bg3)); border-radius: 16px; padding: 10px 12px; margin: 10px 0; }
.market p { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.market .ic { color: var(--warn); }
.market-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.market .hint { display: block; margin: 4px 0 0; }

.ident-choice { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }

.asst { display: flex; flex-direction: column; min-height: 100%; }
.as-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 12px; min-height: 40dvh; }
.as-hello b { font-size: 22px; display: block; margin: 10px 0; }
.as-examples { display: flex; flex-direction: column; gap: 8px; }
.as-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; }
.as-msg p { margin: 0; }
.as-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.as-msg.bot { align-self: flex-start; background: var(--bg3); border-bottom-left-radius: 6px; }
.as-msg.thinking p { opacity: .6; animation: pulse 1.2s infinite; }
.as-created { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.as-created .ic { color: var(--ok); flex: none; }
.as-created span { flex: 1; } .as-created b { display: block; font-size: 14px; } .as-created small { color: var(--tx2); font-size: 12px; }
.as-created.undone { opacity: .45; text-decoration: line-through; }
.as-bar { display: flex; align-items: center; gap: 10px; padding-top: 8px; position: sticky; bottom: 0; background: var(--bg2); }
.as-mic { width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #B26BFF, #3D7BFF); box-shadow: 0 8px 24px rgba(130,90,255,.4); transition: transform .15s; }
.as-mic:active { transform: scale(.92); }
.as-mic.rec { background: #FF3B5C; animation: pulse 1.2s infinite; }
.as-form { flex: 1; display: flex; align-items: center; background: var(--bg3); border-radius: 18px; padding: 0 4px 0 14px; }
.as-form input { flex: 1; background: transparent; border: 0; outline: none; padding: 14px 0; color: var(--tx); font-size: 16px; min-width: 0; }
.quick-line { display: flex; align-items: center; gap: 10px; background: var(--bg3); border-radius: 16px; padding: 0 6px 0 14px; margin: 0 2px 10px; color: var(--accent); }
.quick-line input { flex: 1; background: transparent; border: 0; outline: none; padding: 13px 0; color: var(--tx); font-size: 16px; min-width: 0; }

.manual-link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.vc-split.imp { margin: 6px 0 12px; }
.imp-err { font-size: 13px; color: var(--bad); padding-left: 18px; }
.imp-list { max-height: 45dvh; overflow-y: auto; margin-top: 10px; }

.asst.dictating .as-mic { background: var(--ok); box-shadow: 0 8px 24px rgba(47,214,123,.4); }
#as-hint .ic { display: inline-block; vertical-align: -2px; }

.lock-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: radial-gradient(80% 60% at 70% 0%, rgba(178,107,255,.35), transparent), radial-gradient(70% 50% at 0% 100%, rgba(61,123,255,.3), transparent), var(--bg); }
.lock-card { width: 100%; max-width: 340px; text-align: center; }
.lock-card h1 { font-size: 36px; letter-spacing: -1px; margin: 14px 0 26px; }

/* Las pestañas se esconden al bajar por el feed y vuelven al subir */
.tabs { transition: transform .25s ease, opacity .2s ease; }
body.tabs-hidden .tabs { transform: translateY(-140%); opacity: 0; pointer-events: none; }

/* pasos numerados en hojas de ayuda */
.steps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.45; }
.steps li::marker { color: #B26BFF; font-weight: 700; }

/* tarjetas del inventario: lo que costó y lo que vale ahora */
.caption .price-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; margin-top: 2px; }
.caption .price-row span { opacity: .65; }
.caption .price-row b { font-weight: 600; }
.caption .price-row b.muted { opacity: .4; color: inherit; }

/* ficha: lo que costó frente a lo que vale */
.cost-stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; margin: 10px 0 14px; display: grid; gap: 6px; }
.cost-stat .cs-row { display: flex; justify-content: space-between; font-size: 14px; }
.cost-stat .cs-row span { opacity: .7; }
.cost-stat .cs-row b.now { color: #7EE2A8; }
.cost-stat .cs-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.cost-stat .cs-bar i { display: block; height: 100%; border-radius: 6px; }
.cost-stat .cs-bar i.paid { background: linear-gradient(90deg,#B26BFF,#3D7BFF); }
.cost-stat .cs-bar i.now { background: linear-gradient(90deg,#2FD67B,#7EE2A8); }
.cost-stat .cs-diff { margin: 4px 0 0; font-size: 13px; opacity: .8; }
.cost-stat .cs-diff.up { color: #7EE2A8; opacity: 1; }
.cost-stat .cs-diff.down { color: #FF8A7A; opacity: 1; }

/* grupos del inventario */
.groups-btn { background: rgba(255,255,255,.08) !important; }
.group-now { display: flex; align-items: center; gap: 6px; margin: -4px 4px 10px; font-size: 13px; opacity: .85; flex-wrap: wrap; }
.group-now .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.group-now .link { background: none; border: 0; color: #9DB6FF; font: inherit; padding: 0 0 0 4px; }
.groups-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.group-tile { position: relative; text-align: left; display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: inherit; font: inherit; }
.group-tile.on { border-color: #B26BFF; background: rgba(178,107,255,.12); }
.group-tile .gdot { width: 26px; height: 26px; border-radius: 9px; display: block; }
.group-tile b { font-size: 14px; line-height: 1.2; }
.group-tile small { opacity: .6; }
.group-tile .gedit { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches .sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; position: relative; overflow: hidden; }
.swatches .sw.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(178,107,255,.6); }
.swatches .sw.custom { display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.5); }
.swatches .sw.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.field-lab { margin: 12px 0 6px; font-size: 13px; opacity: .7; }
.btn.danger { color: #FF8A7A; }

/* ficha: chip del grupo con botón para moverlo */
.group-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gc) 55%, transparent); background: color-mix(in srgb, var(--gc) 16%, transparent); color: var(--gc); font: 600 13px/1 inherit; margin-bottom: 8px; }
.group-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); }
.group-chip span { color: var(--tx2, #aaa); font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }

/* iPhone: que nunca se quede con zoom (Safari amplía al escribir si la letra es menor de 16 px) */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
@supports (-webkit-touch-callout: none) { input:not(.title-input), select, textarea:not(.title-input) { font-size: max(16px, 1em) !important; } }

/* botón ··· junto al + (solo en Inventario) con las formas de añadir */
#btn-more { display: none; }
body[data-route="inventario"] #btn-more { display: grid; }
.add-menu { display: grid; gap: 10px; }
.add-menu button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: inherit; font: inherit; }
.add-menu button > .ic, .add-menu button > svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg,#B26BFF,#3D7BFF); color: #fff; }
.add-menu b { display: block; font-size: 15px; }
.add-menu small { opacity: .65; font-size: 13px; }

/* galería de fotos del producto (deslizar) */
.asset-hero .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16/10; }
.asset-hero .gallery::-webkit-scrollbar { display: none; }
.asset-hero .gslide { flex: 0 0 100%; scroll-snap-align: center; background: #000; }
.asset-hero .gslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-hero .gdots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.asset-hero .gdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: transform .2s, background .2s; }
.asset-hero .gdots i.on { background: #fff; transform: scale(1.25); }
.asset-hero .gcount { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; }
.gal-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 10px 0 0; flex-wrap: wrap; }
.gal-actions .btn[disabled] { opacity: .4; }

.value-card .vc-paid { display: block; margin: 2px 0 4px; font-size: 14px; opacity: .8; }

/* recuadro del total: pestañas «Lo que me costó» / «Lo que vale ahora» */
.value-card .vc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); margin-bottom: 10px; }
.value-card .vc-tabs button { flex: 1; border: 0; border-radius: 9px; padding: 8px 6px; background: transparent; color: inherit; font: 600 13px/1.1 inherit; opacity: .7; }
.value-card .vc-tabs button.on { background: linear-gradient(135deg,#B26BFF,#3D7BFF); color: #fff; opacity: 1; }
.value-card .vc-main { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0; }
