/* Amarea · Inventario
   Colores y tipografía tomados de amareav.com (rosa, vino y dorado; Plus Jakarta Sans). */
:root {
  --bg: #FFF6F2;
  --card: #FFFFFF;
  --ink: #4A2A33;
  --muted: #75505B;
  --line: #F1DAD8;
  --brand: #B82F66;
  --brand-2: #9A2455;
  --on-brand: #FFFFFF;
  --soft: #FFE9E6;
  --gold: #C49A3C;
  --ok: #2F7D4F;
  --ok-soft: #E3F2E8;
  --bad: #C2410C;
  --bad-soft: #FCE9DF;
  --shadow: 0 1px 2px rgba(61, 22, 38, .05), 0 6px 20px rgba(61, 22, 38, .07);
  --r: 18px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1418; --card: #2A1B21; --ink: #FBEAEE; --muted: #D3AAB6; --line: #3F2B33;
    --brand: #FF7AA8; --brand-2: #F7B2C9; --on-brand: #3D1626; --soft: #3A2430; --gold: #E3BD5F;
    --ok: #5FC08A; --ok-soft: #1C2F23; --bad: #F08A5D; --bad-soft: #3A2017;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1F1418; --card: #2A1B21; --ink: #FBEAEE; --muted: #D3AAB6; --line: #3F2B33;
  --brand: #FF7AA8; --brand-2: #F7B2C9; --on-brand: #3D1626; --soft: #3A2430; --gold: #E3BD5F;
  --ok: #5FC08A; --ok-soft: #1C2F23; --bad: #F08A5D; --bad-soft: #3A2017;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 17px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
small { font-size: 13px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- estructura ---------- */
#shell { display: none; }
body.in #shell { display: block; }
body.in #login { display: none; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 18px;
}
.mark-img { width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; object-fit: cover; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }

main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; }
.page-title { font-size: 26px; margin: 4px 0 18px; }

#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 6px 2px; font-size: 11.5px; color: var(--muted); text-decoration: none;
}
#nav a.on { color: var(--brand); font-weight: 600; }
#nav a.x { display: none; }

@media (min-width: 900px) {
  body.in #shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
  .top { grid-column: 1 / -1; padding: 12px 24px; }
  #nav {
    position: sticky; top: 65px; align-self: start; height: calc(100vh - 65px);
    flex-direction: column; gap: 2px; padding: 16px 10px; background: transparent;
    border-top: 0; border-right: 1px solid var(--line); backdrop-filter: none;
  }
  #nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 12px; font-size: 15px; color: var(--ink); }
  #nav a:hover { background: var(--soft); }
  #nav a.on { background: var(--soft); color: var(--brand-2); }
  #nav a.x { display: flex; }
  #nav a.mas { display: none; }
  #nav .sep { height: 1px; background: var(--line); margin: 8px 12px; }
  main { padding: 28px 36px 48px; margin: 0; width: 100%; }
}
#nav .sep { display: none; }
@media (min-width: 900px) { #nav .sep { display: block; } }

/* ---------- piezas ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--soft); color: var(--brand-2); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad-soft); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.warn { background: var(--bad-soft); color: var(--bad); border-color: transparent; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--brand-2); white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* inicio */
.hello h1 { font-size: 28px; }
.hello p { margin: 4px 0 18px; }
.tasa { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tasa b { font-size: 20px; }
.tasa.warn { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.big-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.big {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 128px;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease;
}
.big:active { transform: scale(.98); }
.big .ic { width: 30px; height: 30px; color: var(--brand); margin-bottom: auto; }
.big b { font-size: 18px; margin-top: 14px; }
.big span { font-size: 13px; color: var(--muted); }
.big:first-child { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.big:first-child .ic, .big:first-child span { color: inherit; opacity: .9; }
@media (min-width: 700px) { .big-grid { grid-template-columns: repeat(4, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats span { font-size: 13px; color: var(--muted); }
.stats b { font-size: 22px; letter-spacing: -.01em; }
.stats.big-n b { font-size: 26px; }

/* listas */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a, .list .li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; min-height: 52px; text-decoration: none;
}
.list .sub { display: block; font-size: 13px; color: var(--muted); }
.list .right { text-align: right; flex: none; }
.list .right small { display: block; color: var(--muted); }
.list .anulado { opacity: .5; text-decoration: line-through; }

/* formularios */
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
label .note { font-weight: 400; }
input, select, textarea, button { font-family: inherit; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 11px 14px;
  font: inherit; font-weight: 400; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; outline: none;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
label.check input { width: 22px; min-height: 22px; height: 22px; margin: 0; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.unit { font-weight: 400; color: var(--muted); }
.search { position: relative; display: flex; gap: 8px; margin-bottom: 14px; }
.search > .ic { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.search input { margin: 0; padding-left: 44px; }
.search .icon-btn { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--card); }

.line { display: grid; grid-template-columns: 1fr 110px 120px 44px; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line label { margin: 0; }
.line .icon-btn { color: var(--muted); }
.line.rec { grid-template-columns: 1fr 140px 44px; }
@media (max-width: 620px) {
  .line { grid-template-columns: 1fr 1fr 44px; }
  .line > label:first-of-type { grid-column: 1 / -1; }
  .line.rec { grid-template-columns: 1fr 44px; }
}
.sumbox { background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; }
.sumbox .row { justify-content: space-between; }
.sumbox b { font-size: 18px; }

/* vender */
.sell { display: grid; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 14px; min-height: 100px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .1s ease;
}
.tile:active { transform: scale(.97); }
.tile b { font-size: 15px; line-height: 1.25; }
.tile .pr { font-weight: 700; color: var(--brand-2); margin-top: auto; }
.tile small { color: var(--muted); }
.tile small.bad { color: var(--bad); }
.tile em {
  position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-style: normal; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.cart-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cart-line:first-of-type { border-top: 0; }
.cart-line .name { flex: 1; min-width: 0; }
.cart-line .name small { display: block; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.stepper button .ic { width: 18px; height: 18px; }
.stepper b { min-width: 30px; text-align: center; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.total b { font-size: 26px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.methods button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.methods button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* listas de recetas / opciones */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pick button {
  text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; cursor: pointer; min-height: 76px; box-shadow: var(--shadow);
}
.pick button b { display: block; font-size: 16px; }
.pick button span { font-size: 13px; color: var(--muted); }
.pick button.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* reportes */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { padding: 8px 0; }
.bars .row { justify-content: space-between; font-size: 15px; }
.bar { height: 8px; border-radius: 99px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }

/* inicio de sesión */
#login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; }
.login-logo { display: block; width: 150px; height: auto; margin: 0 auto 14px; }
.login-card h1, .login-card > p { text-align: center; }
.login-card h1 { font-size: 28px; margin-bottom: 6px; }
.login-card > p { margin: 0 0 22px; }
.users { display: grid; gap: 10px; }
.users button {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-align: left;
}
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.pin-input { font-size: 28px; letter-spacing: .5em; text-align: center; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* ventanas y avisos */
dialog.modal {
  border: 0; border-radius: 22px; padding: 22px; width: min(440px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
dialog.modal::backdrop { background: rgba(20, 12, 6, .45); backdrop-filter: blur(3px); }
dialog.modal h2 { font-size: 20px; margin-bottom: 14px; }
dialog.modal p { margin: 0 0 16px; color: var(--muted); }
#toasts { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: up .25s ease; transition: opacity .3s, transform .3s; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

.scanner { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; width: min(70vw, 320px); height: 160px; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.scanner .btn { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); background: #fff; color: #000; }

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

/* secciones del inventario */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 15px; background: var(--soft); }
.seg button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.seg button small { font-weight: 500; font-size: 12px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.line:has(.precio-venta:not([hidden])) { grid-template-columns: 1fr 110px 120px 120px 44px; }
@media (max-width: 620px) {
  .line:has(.precio-venta:not([hidden])) { grid-template-columns: 1fr 1fr 44px; }
  .line .precio-venta { grid-column: 1 / 3; }
}

/* recibo impreso */
#recibo { display: none; }
@media print {
  @page { margin: 4mm; }
  body > *:not(#recibo) { display: none !important; }
  body { background: #fff; color: #000; }
  #recibo { display: block; width: 72mm; font: 12px/1.35 ui-monospace, "Courier New", monospace; color: #000; }
  #recibo h1 { font-size: 18px; text-align: center; margin: 0; letter-spacing: .1em; }
  #recibo p { margin: 8px 0; }
  #recibo .c { text-align: center; }
  #recibo table { width: 100%; border-collapse: collapse; border-top: 1px dashed #000; padding-top: 4px; }
  #recibo td { padding: 2px 0; vertical-align: top; }
  #recibo .r { text-align: right; white-space: nowrap; padding-left: 8px; }
  #recibo .tot td { font-weight: 700; }
}

/* factura escaneada */
.aviso { background: var(--soft); border-color: transparent; display: flex; flex-direction: column; gap: 4px; }
.line .desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-bottom: -2px; }
.line.falta select { border-color: var(--bad); background: var(--bad-soft); }
.busy { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20, 12, 6, .45); backdrop-filter: blur(3px); }
.busy-card { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--brand); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

button, a, label, .tile, .big { touch-action: manipulation; }
.tile, .big, .chip, .btn, .seg button, .methods button { -webkit-user-select: none; user-select: none; }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  main { padding: 24px 28px calc(110px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 30px; }
  #nav a { min-height: 66px; font-size: 13px; gap: 4px; }
  #nav a .ic { width: 26px; height: 26px; }
  .sell { grid-template-columns: 1fr 340px; align-items: start; }
  .cart { position: sticky; top: 84px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .tile { min-height: 124px; padding: 16px; }
  .tile b { font-size: 17px; }
  .tile .pr { font-size: 18px; }
  .pick { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .cart-line .stepper button { width: 42px; height: 42px; }
  .methods button { min-height: 54px; font-size: 15px; }
  .btn { min-height: 52px; }
  #f-item, #f-rec, #f-compra, #f-caja, #f-horn, #f-libre { max-width: 820px; }
  .list a, .list .li { min-height: 60px; }
  .stats.big-n b { font-size: 30px; }
}
@media (min-width: 900px) {
  .sell { grid-template-columns: 1fr 380px; }
  .cart { top: 90px; }
}
@media (min-width: 1200px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ---------- Capa de diseño estilo Apple ----------
   Misma idea que en la web de Lumen: titulares apretados en peso 600, texto a 17 px, botones en píldora sin brillo
   que se encogen al tocarlos, tarjetas planas con borde fino, barras con vidrio esmerilado y movimiento suave. */
:root, :root[data-theme="dark"], :root[data-theme="light"] { --shadow: none; --ease: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow: none; } }
body { font-size: 17px; line-height: 1.47; letter-spacing: -.022em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: 19px; margin-bottom: 14px; }
.page-title { font-size: clamp(30px, 5vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; margin: 6px 0 22px; }
.hello h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -.04em; line-height: 1.04; }
.hello p { font-size: 17px; margin: 6px 0 22px; }
small, .note, .sub { letter-spacing: -.01em; }
.note { font-size: 14px; }

/* barras con vidrio */
.top { min-height: 56px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
#nav { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
@media (min-width: 900px) { #nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } }
#nav a { font-weight: 500; }
#nav a.on { font-weight: 600; }

/* superficies planas */
.card { border-radius: 20px; padding: 20px; box-shadow: none; }
.big, .tile, .pick button { box-shadow: none; border-radius: 20px; }
.seg { border-radius: 14px; }
.seg button { font-weight: 500; transition: background-color .25s var(--ease), color .25s; }
.seg button.on { font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* botones en píldora */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: -.01em; transition: transform .2s var(--ease), background-color .25s, color .25s, opacity .2s; }
.btn:hover { filter: none; }
.btn:active { transform: scale(.95); }
.btn.sm { border-radius: 999px; }
.btn.soft:hover { background: color-mix(in srgb, var(--brand) 18%, var(--soft)); }
.btn.ghost:hover { background: var(--soft); }
.chip { font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.icon-btn { border-radius: 50%; }
.methods button { border-radius: 14px; font-weight: 500; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.methods button:active { transform: scale(.97); }
.methods button.on { font-weight: 600; }
.stepper button { border-radius: 50%; }

/* campos */
input, select, textarea { border-radius: 12px; font-size: 17px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
label { font-weight: 500; }

/* tarjetas de producto con foto */
.tile { padding: 0; overflow: hidden; gap: 0; align-items: stretch; transition: transform .2s var(--ease), border-color .2s; }
.tile:active { transform: scale(.96); }
.tile .ph { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .in { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 12px 14px 14px; }
.tile b { font-weight: 600; letter-spacing: -.02em; }
.tile em { top: 10px; right: 10px; box-shadow: 0 0 0 2px var(--card); }
.big { padding: 20px; }
.big:active { transform: scale(.97); }
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--soft); flex: none; }
.lf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-foto { display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin: 0 0 16px; background: var(--soft); }
@media (min-width: 700px) { .tile .in { padding: 14px 16px 16px; } }

/* movimiento suave solo al cambiar de pantalla */
#view.enter { animation: entra .45s var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast { border-radius: 16px; animation: up .35s var(--ease); }
dialog.modal { border-radius: 24px; }
dialog.modal[open] { animation: entra .3s var(--ease) both; }
.list a, .list .li { transition: opacity .2s; }
.list a:active { opacity: .6; }

/* evita que una fila ancha (filtros) estire toda la pantalla */
.sell > *, .cols > *, .cart { min-width: 0; }
.chips { max-width: 100%; }
