/* Layout: una sola columna para celular, con vistas por paso; catálogo en grilla que crece a 3-4 columnas en compu. */
:root {
  --bg: #FCF8F4;
  --surface: #FFFFFF;
  --sunk: #F6EDE4;
  --ink: #3A2617;
  --muted: #8A6F5B;
  --line: #EBDDD0;
  --brand: #945E2C;        /* marrón del logo */
  --brand-ink: #FFFFFF;
  --tan: #CE9160;          /* dorado/canela del logo */
  --blush: #F7E7DC;
  --ok: #2F7A4F;
  --warn: #A05A10;
  --warn-bg: #FCF0E2;
  --err: #B03A2E;
  --logo-osc: block;
  --logo-clr: none;
  --promo: #B0473A;
  --promo-bg: #FBE9E4;
  --shadow: 0 1px 2px rgba(58,38,23,.06), 0 8px 24px rgba(58,38,23,.08);
  --f-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --r: 18px;
  --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1410; --surface: #261C16; --sunk: #2F241C; --ink: #F4E9DF; --muted: #BCA390;
    --line: #3E3026; --brand: #D99A62; --brand-ink: #1C1410; --tan: #E2AE80; --blush: #3A2A20;
    --ok: #7CC79A; --warn: #F0B46C; --warn-bg: #3A2A1A; --err: #F08A7E; --logo-osc: none; --logo-clr: block; --promo: #F29A8C; --promo-bg: #3E231E;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1410; --surface: #261C16; --sunk: #2F241C; --ink: #F4E9DF; --muted: #BCA390;
  --line: #3E3026; --brand: #D99A62; --brand-ink: #1C1410; --tan: #E2AE80; --blush: #3A2A20;
  --ok: #7CC79A; --warn: #F0B46C; --warn-bg: #3A2A1A; --err: #F08A7E; --logo-osc: none; --logo-clr: block; --promo: #F29A8C; --promo-bg: #3E231E;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 620px; margin: 0 auto; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--tan); font-size: 1.5em; line-height: .8; letter-spacing: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.logo-link { background: none; border: 0; padding: 0; display: inline-flex; flex: none; }
.logo-link img { height: 40px; width: auto; }
.logo-osc { display: var(--logo-osc); }
.logo-clr { display: var(--logo-clr); }
.steps { display: flex; gap: 4px; flex: 1; min-width: 0; justify-content: center; }
.step { border: 0; background: none; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; max-width: 120px; color: var(--muted); font-size: 11px; font-weight: 600; min-width: 0; }
.step .bar { height: 4px; width: 100%; border-radius: 4px; background: var(--line); transition: background .3s; }
.step.done .bar, .step.on .bar { background: var(--brand); }
.step.on { color: var(--ink); }
.step:disabled { cursor: default; }
.step span.lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.top.home .steps { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, background .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Views ---------- */
.view { padding-block: 24px 140px; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: grid; gap: 6px; margin-bottom: 20px; }
.view-head h2 { font-size: clamp(26px, 6vw, 36px); font-weight: 700; color: var(--ink); }

/* ---------- Inicio ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding-top: 8px; }
.hero-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; max-width: 100%; }
.hero-photos figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--sunk); }
.hero-photos figure:first-child { grid-row: span 2; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy { display: grid; gap: 16px; }
.hero-copy .logo-big { width: min(260px, 70%); height: auto; }
.hero-copy h1 { font-size: clamp(34px, 8.5vw, 56px); font-weight: 700; line-height: 1.02; color: var(--ink); }
.hero-copy h1 .script { display: inline-block; font-size: 1.35em; transform: translateY(.08em); margin-left: .05em; }
.hero-copy .lead { font-size: 18px; color: var(--muted); max-width: 34ch; }
.how { display: grid; gap: 12px; margin-top: 8px; padding: 0; list-style: none; counter-reset: how; }
.how li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; counter-increment: how; font-size: 15px; }
.how li::before { content: counter(how); width: 32px; height: 32px; border-radius: 50%; background: var(--blush); color: var(--brand); font-family: var(--f-display); font-weight: 700; display: grid; place-items: center; }
.how b { display: block; font-family: var(--f-display); font-weight: 600; }
.faq { margin-top: 40px; display: grid; gap: 8px; }
.faq h3 { font-size: 20px; margin-bottom: 4px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.faq summary { font-weight: 600; cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.resume-note { background: var(--blush); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); padding: 12px 14px; font-size: 16px; min-height: 48px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tan); outline: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .err { color: var(--err); font-size: 13px; display: none; }
.field.invalid .err { display: block; }
.row2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chips-input button[aria-pressed="true"] { border-color: var(--brand); background: var(--blush); color: var(--brand); font-weight: 700; }

/* ---------- Catálogo ---------- */
.cat-tools { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 20; background: var(--bg); padding-block: 10px 8px; margin-inline: -16px; padding-inline: 16px; display: grid; gap: 10px; }
.search { position: relative; }
.search input { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); padding: 11px 16px 11px 42px; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--tan); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-section { margin-top: 22px; }
.cat-section > h3 { font-size: 20px; margin-bottom: 4px; }
.cat-section > p { font-size: 14px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.card.in { border-color: var(--tan); box-shadow: 0 0 0 1px var(--tan); }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--sunk); border: 0; padding: 0; display: block; width: 100%; max-width: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(28,20,16,.62); color: #fff; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; backdrop-filter: blur(4px); }
.qty-pill { position: absolute; right: 8px; top: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px; min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; }
.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 12px; background: var(--sunk); box-shadow: inset 0 0 0 1.5px var(--line); }
.ph-empty svg { width: 34px; height: 34px; color: var(--tan); }
.ph-empty small { font-weight: 500; font-size: 11px; opacity: .8; }
.card .body { padding: 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card h4 { margin: 0; font-family: var(--f-display); font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.card .price { font-weight: 700; color: var(--brand); font-size: 15px; }
.card .price small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.card .desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.card .actions { padding: 0 12px 12px; }
.add-btn { width: 100%; border: 1.5px solid var(--brand); color: var(--brand); background: transparent; border-radius: 999px; padding: 9px 10px; font-weight: 700; font-size: 14px; }
.add-btn.added { background: var(--brand); color: var(--brand-ink); }
.contents { display: flex; flex-wrap: wrap; gap: 4px; }
.contents span { font-size: 11.5px; background: var(--blush); color: var(--ink); border-radius: 6px; padding: 2px 7px; }
.foto-note { font-size: 13px; color: var(--muted); margin-top: 28px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.empty-search { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- Bottom bar ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); pointer-events: none; }
.dock-inner { max-width: 620px; margin: 0 auto; display: flex; gap: 8px; pointer-events: auto; }
.dock .btn { box-shadow: var(--shadow); }
.dock-cart { flex: 1; justify-content: space-between; padding: 12px 18px; }
.dock-cart .count { background: var(--brand-ink); color: var(--brand); border-radius: 999px; font-size: 13px; padding: 1px 9px; margin-right: 8px; }
.dock-cart .lbl { display: flex; align-items: center; }

/* ---------- Sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,12,8,.45); z-index: 60; opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); border-radius: 22px 22px 0 0; max-height: 88vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: 620px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet.show { transform: none; }
.sheet-scroll { overflow-y: auto; padding: 0 20px 16px; }
.sheet-grip { width: 40px; height: 5px; background: var(--line); border-radius: 4px; margin: 10px auto 8px; flex: none; }
.sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sheet-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sunk); margin-bottom: 14px; max-width: 100%; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet h3 { font-size: 24px; }
.sheet .close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: 20px; line-height: 1; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; font-weight: 600; color: var(--brand); border-radius: 999px; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper input { width: 52px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 17px; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 34px; height: 34px; font-size: 17px; }
.stepper.sm input { width: 40px; font-size: 15px; }

/* ---------- Mesa ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; box-shadow: var(--shadow); }
.board figure { margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); max-width: 100%; }
.board img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board figcaption { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; background: linear-gradient(to top, rgba(20,12,8,.75), transparent); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.board figcaption b { display: block; font-size: 14px; }
.lines { display: grid; gap: 10px; margin-top: 18px; }
.line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
.line .th { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.line .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line h4 { margin: 0; font-family: var(--f-display); font-size: 16px; font-weight: 600; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.line .sub { font-weight: 700; font-size: 16px; }
.line .tools { display: flex; gap: 14px; font-size: 13px; margin-top: 6px; }
.line .tools button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.line .tools button.rm { color: var(--err); }
.line .note { margin-top: 8px; font-size: 13px; background: var(--sunk); border-radius: 8px; padding: 6px 10px; }
.line textarea { width: 100%; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); font-size: 15px; min-height: 64px; }
.sum-box { margin-top: 18px; background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-box .t { font-family: var(--f-display); font-size: 28px; font-weight: 700; }
.sug { margin-top: 28px; }
.sug h3 { font-size: 19px; margin-bottom: 4px; }
.sug-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.empty { text-align: center; padding: 36px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; }
.empty svg { width: 56px; height: 56px; color: var(--tan); }
.empty h3 { font-size: 22px; }

/* ---------- Precotización ---------- */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.doc-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-head .ref { text-align: right; font-size: 13px; color: var(--muted); }
.doc-head .ref b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 16px; letter-spacing: .03em; }
.doc-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.doc-sec h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.items { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.items td { padding: 9px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.items tr:last-child td { border-bottom: 0; }
.items td.r { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.items .n { font-weight: 600; }
.items .d { color: var(--muted); font-size: 13px; }
.doc-total { padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; background: var(--blush); gap: 12px; }
.doc-total span { font-weight: 600; }
.doc-total b { font-family: var(--f-display); font-size: 30px; color: var(--brand); }
.pend { background: var(--warn-bg); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.pend b { color: var(--warn); }
.pend ul { margin: 0; padding-left: 18px; }
.disclaimer { font-size: 13.5px; color: var(--muted); padding: 14px 20px 18px; }
.send { margin-top: 20px; display: grid; gap: 12px; }
.send .alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 80; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.copy-fallback { width: 100%; min-height: 180px; border: 1.5px solid var(--tan); border-radius: var(--r-sm); padding: 10px; background: var(--bg); font-size: 13px; }

/* ---------- Confirm sheet ---------- */
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 24px; }
  .hero-copy { order: -1; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .sug-row { grid-auto-columns: minmax(180px, 30%); }
  .step { font-size: 12px; }
}
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .step span.lbl { font-size: 10px; } .top .icon-btn { padding: 6px 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Descuento ---------- */
.promo { display: flex; gap: 12px; align-items: center; background: var(--promo-bg); color: var(--ink); border-radius: var(--r); padding: 14px 16px; margin-bottom: 4px; }
.promo .pct { font-family: var(--f-display); font-weight: 700; font-size: 28px; color: var(--promo); line-height: 1; white-space: nowrap; }
.promo b { display: block; font-family: var(--f-display); }
.promo span { font-size: 13.5px; color: var(--muted); }
.filters button.f-promo { border-color: var(--promo); color: var(--promo); }
.filters button.f-promo[aria-pressed="true"] { background: var(--promo); color: var(--surface); border-color: var(--promo); }
.card .old { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 4px; }
.tag-promo { position: absolute; left: 8px; top: 8px; background: var(--promo); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.disc-row td, .sum-row { color: var(--promo); }
.sum-lines { display: grid; gap: 4px; font-size: 15px; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Prototipo IA ---------- */
.ia { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.ia h3 { font-size: 20px; }
.ia-up { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; }
.ia-thumb { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: var(--tan); }
.ia-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ia-thumb svg { width: 32px; height: 32px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ia-out { border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); aspect-ratio: 3 / 2; display: grid; place-items: center; max-width: 100%; position: relative; }
.ia-out img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ia-out .wait { color: var(--muted); font-weight: 600; font-size: 14px; display: grid; gap: 10px; justify-items: center; padding: 20px; text-align: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ia-note { font-size: 12.5px; color: var(--muted); }
.ia-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ia-actions .btn { padding: 11px 18px; font-size: 15px; }
.proto-doc { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.proto-doc .pics { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.proto-doc .pics img { width: 100%; border-radius: 10px; display: block; background: #fff; }

/* ---------- Admin ---------- */
.admin { display: grid; gap: 18px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--sunk); border-radius: var(--r-sm); font-weight: 600; }
.switch input { width: 52px; height: 30px; appearance: none; -webkit-appearance: none; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(22px); }
.admin .state { font-size: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--blush); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { border-color: var(--brand); background: var(--blush); color: var(--brand); }

/* ---------- Cupón ---------- */
.cupon-row { display: flex; gap: 8px; }
.cupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.cupon-row .btn { padding: 10px 18px; font-size: 15px; flex: none; }
.cupon-ok { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--promo-bg); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14.5px; flex-wrap: wrap; }
.adm-cup { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.cup-list { display: grid; gap: 8px; }
.cup-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; background: var(--sunk); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; }
.switch.mini { padding: 0; background: none; }
.cup-new { display: grid; gap: 14px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 14px; }
.board .ph-empty span, .line .th .ph-empty span, .ia-thumb .ph-empty span { display: none; }
.board .ph-empty { align-content: start; padding-top: 18%; }
.line .th .ph-empty { padding: 0; }
.line .th .ph-empty svg { width: 26px; height: 26px; }
/* ---------- Precios (admin) ---------- */
.adm-precios { background: var(--sunk); border-radius: var(--r-sm); padding: 4px 14px; }
.adm-precios summary { font-weight: 700; padding: 10px 0; cursor: pointer; font-family: var(--f-display); }
.precio-row { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.precio-row label { font-size: 14.5px; min-width: 0; }
.precio-row label small { display: block; color: var(--muted); font-size: 12px; }
.precio-in { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; }
.precio-in span { color: var(--muted); font-size: 14px; }
.precio-in input { border: 0; background: none; width: 100%; min-width: 0; padding: 9px 0; font-size: 16px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.precio-in input:focus { outline: none; }
.precio-row.invalid .precio-in { border-color: var(--err); }
.ia-step { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.ia-n { width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--brand); font-family: var(--f-display); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.ia-step .ia-up { grid-template-columns: 80px minmax(0,1fr); }
.ia-step .ia-thumb { width: 80px; height: 80px; }
.ia-prompt { background: var(--sunk); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ia-prompt summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.ia-prompt pre { white-space: pre-wrap; font-family: var(--f-body); font-size: 13px; margin: 8px 0 4px; max-height: 220px; overflow-y: auto; }
.ia-out { aspect-ratio: auto; }
/* ---------- Vista 3D ---------- */
.v3d { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); aspect-ratio: 3 / 2; max-width: 100%; display: grid; place-items: center; }
.v3d canvas { display: block; width: 100%; height: auto; cursor: grab; }
.v3d canvas:active { cursor: grabbing; }
.v3d .wait { color: var(--muted); font-weight: 600; font-size: 14px; display: grid; gap: 10px; justify-items: center; padding: 20px; text-align: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sw { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.sw input { width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; padding: 0; background: none; cursor: pointer; }
.sw input::-webkit-color-swatch-wrapper { padding: 2px; }
.sw input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sw input::-moz-color-swatch { border: 0; border-radius: 50%; }

/* Fotos subidas por código (img/U006.jpg) */
.auto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.auto-img.ok { opacity: 1; }
.line .th, .ia-thumb { position: relative; }
/* Inicio sin fotos: una sola columna centrada */
.hero.solo { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; padding-top: 24px; }
.hero.solo .hero-copy { order: 0; }
