/* ============ Wedding Planner · Diseño editorial botánico ============ */
:root {
  --paper: #f7f3ec; --card: #fffdf9; --ink: #2b2a26; --ink-2: #5d5a52; --line: #e6dfd2;
  --sage: #7d8f72; --sage-d: #5f7256; --sage-soft: #dfe6d8;
  --gold: #b08d57; --gold-soft: #ead9b8;
  --rose: #c98e86; --rose-soft: #f0d6d1;
  --danger: #b2554a; --wa: #1f9d55;
  --r: 14px; --shadow: 0 1px 2px rgba(60,50,30,.05), 0 6px 24px -8px rgba(60,50,30,.12);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-weight: 400; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
h1 em { font-style: italic; color: var(--gold); }
h3 { font-size: 1.35rem; margin-bottom: .75rem; }
a { color: inherit; }
.muted { color: var(--ink-2); }
.tiny { font-size: .78rem; } .center { text-align: center; } .d-block { display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; color: var(--gold); margin: 0 0 .35rem; font-weight: 500; }
.link { display: inline-block; margin-top: .8rem; color: var(--sage-d); font-weight: 500; text-decoration: none; font-size: .9rem; }

/* ---------- Botones e inputs ---------- */
.btn { font: inherit; font-weight: 500; border: 1px solid transparent; border-radius: 999px; padding: .6rem 1.15rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: .15s; white-space: nowrap; font-size: .9rem; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--sage-d); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-2); background: var(--card); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.sm { padding: .35rem .75rem; font-size: .8rem; }
.btn.block { width: 100%; justify-content: center; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa svg { width: 15px; height: 15px; }
.btn.wa:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .95rem;
  display: inline-grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.icon-btn:hover { background: var(--sage-soft); color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .75rem; width: 100%; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
label > span { display: block; font-size: .78rem; color: var(--ink-2); margin-bottom: .3rem; font-weight: 500; }
label small { color: var(--ink-2); font-size: .74rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 20% 20%, var(--sage-soft), transparent 45%), radial-gradient(circle at 85% 80%, var(--rose-soft), transparent 40%), var(--paper); }
.login-card { width: min(400px, 100%); background: var(--card); padding: 2.5rem 2rem; border-radius: 22px; box-shadow: var(--shadow);
  display: grid; gap: 1rem; text-align: center; border: 1px solid var(--line); }
.login-card label { text-align: left; }
.lock-note { font-size: .75rem; color: var(--ink-2); margin: 0; }
.rings { position: relative; width: 64px; height: 40px; margin: 0 auto; }
.rings span { position: absolute; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--gold); }
.rings span:last-child { left: 24px; border-color: var(--sage); }
.rings.sm { width: 40px; height: 26px; margin: 0; } .rings.sm span { width: 26px; height: 26px; border-width: 2px; } .rings.sm span:last-child { left: 14px; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.5rem 1rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem;
  background: linear-gradient(180deg, var(--card), var(--paper)); }
.brand { display: flex; align-items: center; gap: .8rem; padding: 0 .5rem; }
.brand strong { font-family: var(--serif); font-size: 1.3rem; display: block; line-height: 1.1; font-weight: 600; }
.brand small { color: var(--ink-2); font-size: .75rem; }
nav { display: grid; gap: 2px; }
nav a { display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
nav a svg { width: 20px; height: 20px; flex: none; }
nav a:hover { background: var(--sage-soft); color: var(--ink); }
nav a.active { background: var(--ink); color: var(--paper); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .5rem; font-size: .85rem; }
main { padding: 2rem clamp(1rem, 3vw, 2.75rem) 4rem; min-width: 0; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head .muted { margin: .4rem 0 0; max-width: 60ch; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-head { padding: 1.75rem; border-radius: 22px; color: var(--ink); border: 1px solid var(--line);
  background: radial-gradient(circle at 100% 0, var(--gold-soft), transparent 50%), radial-gradient(circle at 0 100%, var(--sage-soft), transparent 55%), var(--card); }
.hero-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero-head .muted strong { color: var(--ink); font-family: var(--serif); font-size: 1.3em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; display: grid; gap: .35rem; box-shadow: var(--shadow); }
.kpi-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.kpi-value { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.kpi-value small { font-size: .9rem; font-family: var(--sans); color: var(--ink-2); font-weight: 400; }
.kpi-sub { font-size: .8rem; color: var(--ink-2); }
.kpi.accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpi.accent .kpi-label, .kpi.accent .kpi-sub { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.kpi.accent .kpi-value { color: var(--gold-soft); }
.kpi.warn { border-color: var(--rose); }
.bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; position: relative; }
.bar.sm { height: 5px; margin: .3rem 0 .15rem; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--sage); border-radius: 99px; }
.bar i.c2, .hb i.c2 { background: var(--gold-soft); }

.donut-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut > div { width: 98px; height: 98px; border-radius: 50%; background: var(--card); display: grid; place-content: center; text-align: center; }
.donut strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; } .donut small { font-size: .7rem; color: var(--ink-2); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .88rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .5rem; }
.legend b { margin-left: .35rem; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.chip { display: inline-block; font-size: .75rem; padding: .15rem .6rem; border-radius: 99px; background: var(--sage-soft); color: var(--sage-d); white-space: nowrap; }
.chip.warn { background: var(--gold-soft); color: #7a5a24; white-space: normal; }

.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.hb-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .25rem; }
.hb { height: 9px; border-radius: 99px; background: var(--paper); position: relative; overflow: hidden; }
.hb i { position: absolute; inset: 0 auto 0 0; background: var(--sage); border-radius: 99px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--sage); vertical-align: -1px; margin: 0 .2rem 0 .6rem; }
.sw.c2 { background: var(--gold-soft); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.timeline li { display: grid; grid-template-columns: 78px 1fr auto; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.timeline time { font-size: .75rem; color: var(--ink-2); }
.timeline strong { display: block; font-weight: 500; font-size: .9rem; }
.timeline small { color: var(--ink-2); font-size: .75rem; }
.timeline li.late time, .timeline li.late small { color: var(--danger); }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pipeline div { text-align: center; padding: .8rem .3rem; border-radius: 12px; background: var(--paper); position: relative; }
.pipeline div:not(:last-child)::after { content: '›'; position: absolute; right: -.45rem; top: 50%; transform: translateY(-50%); color: var(--gold); }
.pipeline strong { font-family: var(--serif); font-size: 2rem; display: block; line-height: 1; }
.pipeline span { font-size: .72rem; text-transform: capitalize; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .65rem; align-items: center; font-size: .9rem; }
.checklist li span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .75rem; flex: none; color: #fff; }
.checklist li.done { color: var(--ink-2); text-decoration: line-through; }
.checklist li.done span { background: var(--sage); border-color: var(--sage); }

/* ---------- Tablas / listas ---------- */
.summary-strip { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.summary-strip div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; display: flex; align-items: baseline; gap: .45rem; }
.summary-strip strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.summary-strip span { font-size: .78rem; color: var(--ink-2); }
.summary-strip .ok strong { color: var(--sage-d); } .summary-strip .pend strong { color: var(--gold); } .summary-strip .no strong { color: var(--danger); }
.toolbar { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar input { flex: 1 1 260px; } .toolbar select { flex: 0 1 220px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
table.data td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--sage-soft) 35%, transparent); }
.r { text-align: right; } .actions { white-space: nowrap; }
.actions > * { vertical-align: middle; }
.who { display: flex; align-items: center; gap: .7rem; }
.who strong { display: block; font-weight: 500; } .who small { color: var(--ink-2); font-size: .75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: #6d5021; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; flex: none; font-size: 1rem; }
.badge { font: inherit; font-size: .75rem; font-weight: 500; border: 0; padding: .25rem .7rem; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.badge.pendiente { background: var(--gold-soft); color: #7a5a24; }
.badge.confirmado { background: var(--sage-soft); color: var(--sage-d); }
.badge.rechazado { background: var(--rose-soft); color: #8c4a42; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: transparent; padding: .45rem 1rem; border-radius: 99px; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty-ico { font-size: 2.5rem; } .empty h4 { font-size: 1.5rem; color: var(--ink); margin: .5rem 0 .25rem; } .empty p { margin: 0; }
.loading { display: grid; place-items: center; padding: 6rem 0; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,42,38,.35); backdrop-filter: blur(3px); display: grid; place-items: center;
  padding: 1rem; z-index: 50; opacity: 0; transition: opacity .2s; }
.modal-backdrop.open { opacity: 1; }
.modal { background: var(--card); border-radius: 20px; width: min(620px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.3); transform: translateY(10px); transition: transform .2s; }
.modal-backdrop.open .modal { transform: none; }
.modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal header h3 { margin: 0; font-size: 1.6rem; }
.modal footer { display: flex; gap: .5rem; margin-top: 1.25rem; align-items: center; }
.spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--danger); font-size: .85rem; margin: .75rem 0 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .7rem 1.2rem;
  border-radius: 99px; font-size: .88rem; opacity: 0; transition: .25s; z-index: 80; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* ---------- Mesas ---------- */
.seating { display: grid; grid-template-columns: 270px 1fr; gap: 1rem; align-items: start; }
.unassigned { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; gap: .6rem; }
.unassigned h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.pool { overflow: auto; display: flex; flex-direction: column; gap: .35rem; }
.guest-chip { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); cursor: grab; font-size: .86rem; user-select: none; border-left: 3px solid var(--gold-soft); }
.guest-chip.confirmado { border-left-color: var(--sage); }
.guest-chip b { font-size: .72rem; background: var(--gold-soft); border-radius: 99px; padding: 0 .4rem; }
.guest-chip.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.floor { position: relative; padding: 0; min-height: 560px; overflow: hidden;
  background: radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--card); }
.floor-label { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); border: 1.5px dashed var(--gold-soft); color: var(--gold);
  font-family: var(--serif); font-style: italic; padding: 1.6rem 3rem; border-radius: 12px; font-size: 1.1rem; pointer-events: none; }
#plan { position: absolute; inset: 0; }
.table { position: absolute; width: 132px; height: 132px; transform: translate(-50%, -50%); touch-action: none; cursor: move; }
.table.rect { width: 156px; height: 92px; }
.table i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line); transform: translate(-50%, -50%); }
.table i.on { background: var(--sage); border-color: var(--sage); }
.table .top { position: absolute; inset: 22px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--card); border: 1.5px solid var(--gold-soft); box-shadow: var(--shadow); transition: .15s; }
.table.rect .top { inset: 18px 22px; border-radius: 10px; }
.table .top strong { font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; }
.table .top small { font-size: .72rem; color: var(--ink-2); }
.table.full .top { border-color: var(--sage); background: var(--sage-soft); }
.table.target .top { border-style: dashed; border-color: var(--ink); }
.table.over .top, .table.target:hover .top { background: var(--gold-soft); transform: scale(1.05); }
.seat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.seat-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.seat-list small { color: var(--ink-2); }

/* ---------- Invitación (editor) ---------- */
.inv-editor { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }
.inv-editor form h3 { margin: 1.25rem 0 .75rem; } .inv-editor form h3:first-child { margin-top: 0; }
.form-actions { margin-top: 1.25rem; display: flex; justify-content: flex-end; }
.preview { position: sticky; top: 1rem; }
.phone { border: 10px solid var(--ink); border-radius: 38px; overflow: hidden; height: 700px; box-shadow: var(--shadow); background: #000; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--paper); }

/* ---------- Finanzas ---------- */
.cat-block { margin-bottom: 1rem; }
.cat-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1rem .25rem; }
.cat-head h3 { margin: 0; } .cat-head strong { font-family: var(--serif); font-size: 1.4rem; }
.month-chart { display: flex; gap: .5rem; align-items: flex-end; height: 180px; padding-top: .5rem; overflow-x: auto; }
.mc { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; height: 100%; gap: .3rem; }
.mc-bar { width: 100%; max-width: 42px; margin-top: auto; background: var(--gold-soft); border-radius: 8px 8px 3px 3px; position: relative; overflow: hidden; min-height: 4px; }
.mc-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sage); }
.mc span { font-size: .7rem; color: var(--ink-2); text-transform: capitalize; }
.month-block { margin-top: 1rem; } .month-block h3 { text-transform: capitalize; }
.pay-list { list-style: none; padding: 0; margin: 0; }
.pay-list li { display: grid; grid-template-columns: 52px 1fr auto auto auto; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.pay-list li:last-child { border: 0; }
.pay-list .day { text-align: center; background: var(--paper); border-radius: 10px; padding: .3rem 0; }
.pay-list .day strong { font-family: var(--serif); font-size: 1.4rem; display: block; line-height: 1; }
.pay-list .day small { font-size: .65rem; text-transform: uppercase; color: var(--ink-2); }
.pay-list .what strong { display: block; font-weight: 500; } .pay-list .what small { color: var(--ink-2); font-size: .78rem; }
.pay-list li.pagado { opacity: .7; } .pay-list li.late .day { background: var(--rose-soft); } .pay-list li.late b { color: var(--danger); }

/* ---------- Proveedores ---------- */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.vendor { display: flex; flex-direction: column; gap: .25rem; }
.vendor header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.vendor h3 { margin: 0; font-size: 1.5rem; } .vendor .eyebrow { margin: 0; }
.vendor .notes { font-size: .86rem; color: var(--ink-2); margin: .3rem 0; }
.vendor footer { display: flex; align-items: center; gap: .1rem; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.money-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: .6rem; }
.money-row strong { font-family: var(--serif); font-size: 1.4rem; } .money-row small { color: var(--ink-2); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.pill { font-size: .72rem; padding: .2rem .7rem; border-radius: 99px; font-weight: 500; }
.pill.cotizando { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.pill.negociando { background: var(--gold-soft); color: #7a5a24; }
.pill.firmado { background: var(--sage-soft); color: var(--sage-d); }
.pill.pagado { background: var(--sage); color: #fff; }
.pill.cancelado { background: var(--rose-soft); color: #8c4a42; }

/* ---------- Playlist ---------- */
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.moment header { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.moment header > div { flex: 1; } .moment header small { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.moment header h3 { margin: 0; }
.m-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.moment ol { list-style: none; padding: 0; margin: 0; }
.moment li { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.moment .num { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; width: 18px; }
.song { flex: 1; min-width: 0; } .song strong { display: block; font-weight: 500; }
.song span { font-size: .82rem; color: var(--ink-2); } .song em { display: block; font-size: .78rem; color: var(--sage-d); margin-top: .1rem; }
.song-actions { display: flex; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > :last-child { grid-column: 1 / -1; }
  .inv-editor { grid-template-columns: 1fr; } .preview { position: static; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 860px) {
  body { font-size: 14.5px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; inset: auto 0 0 0; height: auto; flex-direction: row; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); }
  .brand, .side-foot { display: none; }
  nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  nav a { flex-direction: column; gap: .15rem; padding: .4rem .1rem; font-size: .62rem; justify-content: center; text-align: center; }
  nav a svg { width: 21px; height: 21px; }
  nav a.active { background: transparent; color: var(--gold); }
  main { padding: 1rem 1rem 6.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-3 > :last-child { grid-column: auto; }
  .kpi-value { font-size: 2.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .seating { grid-template-columns: 1fr; }
  .unassigned { position: static; max-height: 260px; }
  .floor { min-height: 640px; overflow-x: auto; }
  #plan { min-width: 620px; }
  .head-actions { width: 100%; } .head-actions .btn { flex: 1; justify-content: center; }
  /* tablas como tarjetas */
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
  table.data td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  table.data td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-size: .75rem; text-align: left; }
  table.data td:first-child { display: block; text-align: left; padding-bottom: .4rem; } table.data td:first-child::before { display: none; }
  table.data td.actions { justify-content: flex-end; padding-top: .5rem; }
  .pay-list li { grid-template-columns: 48px 1fr auto; }
  .pay-list li > .btn, .pay-list li > .badge { grid-column: 2; justify-self: start; }
  .moments { grid-template-columns: 1fr; }
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
}

@media print {
  .sidebar, .head-actions, .icon-btn, .toast, .tabs { display: none !important; }
  .shell { display: block; } main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
