:root {
  --bg: oklch(0.16 0.012 60); --bg2: oklch(0.2 0.015 55); --bg3: oklch(0.25 0.018 55); --line: oklch(1 0 0 / .09);
  --tx: oklch(0.94 0.03 85); --muted: oklch(0.72 0.03 75); --oro: oklch(0.82 0.14 82); --oro2: oklch(0.7 0.14 70);
  --rojo: oklch(0.58 0.2 28); --verde: oklch(0.72 0.17 150); --azul: oklch(0.62 0.14 250);
  --f: "Fraunces", Georgia, serif; --ft: "Special Elite", monospace; --fs: "Yellowtail", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--f); font-size: 16px; line-height: 1.5; font-variation-settings: "opsz" 14; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--tx); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; font-weight: 850; font-variation-settings: "opsz" 144, "SOFT" 100; line-height: 1.05; }
h3 { margin: 0; font-weight: 750; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: .88rem; }
.eyebrow { margin: 0 0 6px; color: var(--oro); font-family: var(--ft); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

.b { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .2s, filter .2s, opacity .2s; white-space: nowrap; }
.b:hover { transform: translateY(-1px); }
.b:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.b--oro { background: linear-gradient(180deg, oklch(0.88 0.12 86), var(--oro) 50%, var(--oro2)); color: oklch(0.18 0.02 50); }
.b--ghost { background: var(--bg3); box-shadow: 0 0 0 1px var(--line) inset; }
.b--ghost:hover { box-shadow: 0 0 0 1px var(--oro) inset; }
.b--sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.b--block { width: 100%; }
.b--danger { background: oklch(0.58 0.2 28 / .15); color: oklch(0.78 0.14 28); }
.b--wa { background: oklch(0.62 0.16 150); color: #fff; }
.linkbtn { background: none; border: 0; color: var(--oro); text-decoration: underline; padding: 0; }
.linkbtn.danger { color: oklch(0.75 0.15 28); font-size: .9rem; align-self: flex-start; }
.err { color: oklch(0.75 0.17 28); min-height: 1.3em; margin: 4px 0 8px; font-weight: 600; }

.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: .8rem; font-family: var(--ft); letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.f input, .f select, .f textarea, .row input, .items__tools input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; outline: none; transition: border-color .2s; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--oro); }
.f textarea { resize: vertical; }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, oklch(0.25 0.04 40), var(--bg) 70%); }
.login__card { width: min(400px, 100%); background: var(--bg2); padding: 32px; border-radius: 20px; box-shadow: 0 0 0 1px oklch(0.82 0.14 82 / .3), 0 40px 80px #000; text-align: center; }
.login__card .f { text-align: left; }
.login__logo { width: 220px; margin: -8px auto 8px; }
.login h1 { font-family: var(--fs); font-weight: 400; color: var(--oro); font-size: 2.4rem; margin: 0 0 16px; }
.login__volver { display: inline-block; margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* top */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px clamp(16px, 3vw, 32px); background: oklch(0.16 0.012 60 / .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.top__brand img { width: 52px; }
.top__brand span { font-family: var(--fs); font-size: 1.6rem; color: var(--oro); line-height: 1; }
.top__brand small { font-family: var(--ft); font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.top__tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top__tabs button { background: none; border: 0; min-height: 40px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; position: relative; }
.top__tabs button[aria-selected="true"] { background: var(--bg3); color: var(--tx); box-shadow: 0 -2px 0 var(--oro) inset; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: .75rem; margin-left: 4px; }
.top__acc { display: flex; gap: 8px; }
.banner { background: oklch(0.58 0.2 28 / .18); color: oklch(0.88 0.08 40); padding: 10px clamp(16px, 3vw, 32px); font-weight: 600; }

.panel { padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 32px) 96px; max-width: 1400px; margin: 0 auto; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }

/* carta */
.carta-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.cats { background: var(--bg2); border-radius: 16px; padding: 16px; position: sticky; top: 84px; box-shadow: 0 0 0 1px var(--line); }
.cats__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cats li button.cat { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; min-height: 44px; }
.cats li button.cat:hover { background: var(--bg3); }
.cats li button.cat[aria-current="true"] { background: linear-gradient(180deg, var(--azul), oklch(0.48 0.14 255)); box-shadow: 0 0 0 1px var(--oro) inset; }
.cats li .n { font-family: var(--ft); font-size: .8rem; color: var(--muted); }
.cats li button.cat[aria-current="true"] .n { color: var(--tx); }
.cats li.oculta button.cat { opacity: .5; }
.cat-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; flex: 1; }
.cat-edit .f { margin: 0; flex: 1 1 200px; }
.items { min-width: 0; }
.items__head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; background: var(--bg2); padding: 16px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.items__tools { display: flex; gap: 8px; align-items: center; }
.items__tools input { min-width: 180px; }
.item-list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 76px 1fr 140px auto; gap: 14px; align-items: center; background: var(--bg2); padding: 10px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, opacity .2s; }
.item:hover { box-shadow: 0 0 0 1px oklch(0.82 0.14 82 / .4); }
.item.off { opacity: .6; }
.item__img { width: 76px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--bg3); display: block; }
.item__main { min-width: 0; }
.item__name { font-weight: 750; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item__desc { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-family: var(--ft); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--bg3); color: var(--muted); }
.pill--star { background: oklch(0.82 0.14 82 / .2); color: var(--oro); }
.pill--off { background: oklch(0.58 0.2 28 / .2); color: oklch(0.8 0.12 28); }
.precio-in { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-height: 44px; }
.precio-in:focus-within { border-color: var(--oro); }
.precio-in span { color: var(--oro); font-family: var(--ft); }
.precio-in input { background: none; border: 0; outline: none; width: 100%; padding: 8px 4px; font-family: var(--ft); font-size: 1.05rem; text-align: right; }
.item__acc { display: flex; gap: 4px; }
.ib { width: 38px; height: 38px; border-radius: 8px; border: 0; background: var(--bg3); display: grid; place-items: center; font-size: 1rem; }
.ib:hover { background: oklch(0.82 0.14 82 / .2); }
.ib.del:hover { background: oklch(0.58 0.2 28 / .35); }
.ib.on { background: oklch(0.72 0.17 150 / .25); }
.vacio { text-align: center; padding: 48px; color: var(--muted); font-family: var(--ft); background: var(--bg2); border-radius: 16px; }

/* reservas */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg2); border-radius: 14px; padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.kpi b { display: block; font-size: 2rem; font-weight: 900; color: var(--oro); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .88rem; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--bg3); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--oro); color: oklch(0.18 0.02 50); }
.res-list { display: grid; gap: 20px; }
.res-dia h3 { font-family: var(--ft); font-weight: 400; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oro); margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.res-dia h3 small { color: var(--muted); }
.res { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; background: var(--bg2); padding: 14px 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; border-left: 4px solid var(--oro); }
.res[data-estado="confirmada"] { border-left-color: var(--verde); }
.res[data-estado="cancelada"] { border-left-color: var(--rojo); opacity: .6; }
.res[data-estado="asistio"] { border-left-color: var(--azul); }
.res__hora { font-family: var(--ft); font-size: 1.3rem; text-align: center; }
.res__hora small { display: block; font-size: .75rem; color: var(--muted); }
.res__who { font-weight: 750; }
.res__meta { color: var(--muted); font-size: .9rem; }
.res__notas { font-size: .9rem; margin-top: 4px; background: var(--bg); padding: 6px 10px; border-radius: 8px; }
.res__acc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.estado { font-family: var(--ft); font-size: .72rem; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.estado--pendiente { background: oklch(0.82 0.14 82 / .2); color: var(--oro); }
.estado--confirmada { background: oklch(0.72 0.17 150 / .2); color: var(--verde); }
.estado--cancelada { background: oklch(0.58 0.2 28 / .2); color: oklch(0.8 0.12 28); }
.estado--asistio { background: oklch(0.62 0.14 250 / .2); color: oklch(0.8 0.1 250); }

/* local */
.grid-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg2); border-radius: 16px; padding: 20px; border: 0; margin: 0; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.card legend { font-weight: 800; font-size: 1.1rem; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.card legend + * { clear: both; }
.card--wide { grid-column: 1 / -1; }
.card--narrow { max-width: 440px; }
.menu-dia-form { display: grid; grid-template-columns: 170px minmax(260px, 620px); gap: 28px; align-items: center; max-width: 900px; padding: clamp(22px, 5vw, 48px); background: radial-gradient(circle at 16% 50%, oklch(0.4 0.12 28 / .32), transparent 32%), var(--bg2); }
.menu-dia-form__mark { display: grid; place-items: center; width: 132px; height: 132px; border: 2px solid var(--oro); border-radius: 50%; color: var(--oro); font-size: 4.2rem; font-family: var(--ft); transform: rotate(-12deg); box-shadow: 0 0 0 7px oklch(0.58 0.2 28 / .18), 0 12px 35px #0008; }
.menu-dia-form__fields { max-width: 520px; width: 100%; }
.menu-dia-form__fields .sw { margin: 0 0 14px; }
.promo-admin { margin-bottom: 52px; }
.promo-form { display: grid; grid-template-columns: minmax(220px, .75fr) 1.25fr; gap: 24px; max-width: 980px; background: linear-gradient(135deg, var(--bg2), oklch(0.22 0.035 32)); }
.promo-form__image { position: relative; min-height: 240px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed oklch(0.82 0.14 82 / .45); border-radius: 14px; background: radial-gradient(circle at center, oklch(0.82 0.14 82 / .09), transparent 62%), var(--bg); color: var(--oro); font-family: var(--ft); text-align: center; padding: 14px; }
.promo-form__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-form__image img[hidden] { display: none; }
.promo-form__image > span, .promo-form__image > button { z-index: 1; }
.promo-form__image > button { box-shadow: 0 4px 20px #0008; }
.promo-form__fields, .event-form__fields { min-width: 0; }
.promo-form__fields > .sw { margin: 0 0 14px; }
.shows-admin { padding-top: 28px; border-top: 1px solid var(--line); }
.events-admin__group { margin: 28px 0; }
.events-admin__group > h3 { font-family: var(--ft); color: var(--oro); font-size: 1rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.events-admin__list { display: grid; gap: 10px; }
.event-admin { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--bg2); box-shadow: 0 0 0 1px oklch(0.82 0.14 82 / .2); }
.event-admin__poster { display: grid; place-items: center; overflow: hidden; width: 86px; aspect-ratio: 2 / 3; border-radius: 8px; background: var(--bg3); }
.event-admin__poster img { width: 100%; height: 100%; object-fit: contain; }
.event-admin__copy { min-width: 0; }
.event-admin__copy strong { display: block; font-size: 1.05rem; }
.event-admin__copy p { color: var(--muted); font-size: .88rem; margin: 3px 0; }
.event-admin__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.event-admin__actions .b { min-height: 38px; }
.event-form { display: grid; grid-template-columns: minmax(200px, .7fr) 1.3fr; gap: 20px; }
.event-form__image { min-height: 300px; }
.top__tabs { scrollbar-width: thin; }
.horarios-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hdia { background: var(--bg); border-radius: 12px; padding: 12px; }
.hdia header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.hrango { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.hrango input { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-height: 38px; flex: 1; min-width: 0; }
.hdia .cerrado { color: var(--muted); font-family: var(--ft); font-size: .85rem; }
.turnos-ed { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.turnos-ed span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 4px 6px 4px 14px; font-family: var(--ft); }
.turnos-ed button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--bg3); }
.row { display: flex; gap: 8px; align-items: center; }
.row input { max-width: 160px; }

/* dialogs */
.dlg { border: 0; padding: 0; background: var(--bg2); color: var(--tx); border-radius: 20px; width: min(860px, calc(100% - 24px)); max-height: 94dvh; box-shadow: 0 0 0 1px oklch(0.82 0.14 82 / .3), 0 40px 100px #000; }
.dlg--sm { width: min(440px, calc(100% - 24px)); }
.dlg::backdrop { background: oklch(0 0 0 / .7); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg .35s cubic-bezier(.2, .7, .1, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.dlg__body { padding: 20px 24px 24px; }
.dlg header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dlg footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg3); }
.item-form { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.item-form__fields { display: flex; flex-direction: column; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foto-drop { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; border: 2px dashed oklch(0.82 0.14 82 / .35); cursor: pointer; display: grid; place-items: center; align-self: start; }
.foto-drop.drag { border-color: var(--oro); background: oklch(0.82 0.14 82 / .1); }
.foto-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-drop img:not([src]), .foto-drop img[src=""] { display: none; }
.foto-drop__hint { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; background: oklch(0 0 0 / .65); padding: 6px; border-radius: 8px; font-size: .85rem; }
.foto-drop__loading { position: absolute; inset: 0; display: grid; place-items: center; background: oklch(0 0 0 / .6); font-family: var(--ft); }
.switches { display: flex; gap: 20px; flex-wrap: wrap; margin: 4px 0 12px; }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 44px; }
.sw input { position: absolute; opacity: 0; }
.sw i { width: 44px; height: 26px; border-radius: 999px; background: var(--bg3); position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tx); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.sw input:checked + i { background: var(--verde); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--oro); outline-offset: 2px; }

.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; background: var(--tx); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .3s; pointer-events: none; z-index: 100; box-shadow: 0 16px 40px #000; }
.toast.show { opacity: 1; translate: -50% 0; }
.toast.error { background: var(--rojo); color: #fff; }

@media (max-width: 1000px) {
  .carta-layout { grid-template-columns: 1fr; }
  .cats { position: static; }
  .cats ul { display: flex; overflow-x: auto; gap: 6px; }
  .cats li { flex: none; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .menu-dia-form { grid-template-columns: 120px 1fr; }
  .menu-dia-form__mark { width: 100px; height: 100px; font-size: 3rem; }
}
@media (max-width: 680px) {
  .top__acc .b--ghost:first-child { display: none; }
  .top__tabs { order: 3; flex-basis: 100%; }
  .item { grid-template-columns: 60px 1fr; }
  .item__img { width: 60px; height: 52px; }
  .precio-in { grid-column: 1 / 2; }
  .item__acc { grid-column: 2; justify-content: flex-end; }
  .item-form { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .res { grid-template-columns: 56px 1fr; }
  .res__acc { grid-column: 1 / -1; justify-content: flex-start; }
  .items__tools { width: 100%; }
  .items__tools input { min-width: 0; flex: 1; }
  .top__tabs { overflow-x: auto; }
  .top__tabs button { flex: none; }
  .menu-dia-form, .promo-form, .event-form { grid-template-columns: 1fr; }
  .menu-dia-form__mark { width: 76px; height: 76px; font-size: 2.4rem; margin: 0 auto; }
  .event-admin { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .event-admin__poster { width: 58px; }
  .event-admin__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
