:root {
    --paper: #f3eee6;
    --paper-2: #faf7f2;
    --ink: #16130f;
    --muted: #6d655c;
    --line: rgba(22, 19, 15, 0.12);
    --copper: #b85c2c;
    --copper-deep: #8a3e18;
    --night: #10141c;
    --night-2: #1a2130;
    --cream: #e7d3b0;
    --good: #1d6b45;
    --bad: #8e2d2d;
    --warn: #8a5a12;
    --shadow: 0 24px 60px rgba(22, 19, 15, 0.12);
    --sans: "Outfit", "Avenir Next", sans-serif;
    --serif: "Fraunces", "Iowan Old Style", serif;
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    font-weight: 400;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.muted, .fine { color: var(--muted); }
.fine { font-size: 0.86rem; }
.lede { font-size: 1.08rem; max-width: 42rem; color: var(--muted); }

html.is-booting #app { visibility: hidden; }
html.is-booting .skel { display: block; }
.skel { display: none; position: fixed; inset: 0; background: var(--paper); z-index: 20; padding: 28px; }
.skel-line, .skel-input, .skel-btn, .skel-hero, .skel-card, .skel-bar, .skel-table, .skel-side, .skel-pass, .skel-stats i, .skel-auth-side {
    background: linear-gradient(100deg, rgba(22,19,15,0.06) 30%, rgba(22,19,15,0.12) 50%, rgba(22,19,15,0.06) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
    border-radius: 12px;
}
.skel-bar { height: 28px; width: 220px; }
.skel-hero { height: 180px; margin: 28px 0; }
.skel-grid, .skel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skel-card, .skel-stats i { height: 160px; display: block; }
.skel-auth { display: none; }
html.is-booting body.theme-auth .skel-auth { display: grid; grid-template-columns: 1.1fr 0.9fr; height: 100%; padding: 0; }
.skel-auth-side { border-radius: 0; background: #1a2130; }
.skel-auth-form { padding: 12vh 8vw; display: flex; flex-direction: column; gap: 16px; }
.skel-input { height: 52px; }
.skel-btn { height: 48px; width: 180px; }
.w30 { width: 30%; height: 28px; }
.w40 { width: 40%; height: 18px; }
.w70 { width: 70%; height: 42px; }
html.is-booting body.theme-admin .skel-admin { display: grid; grid-template-columns: 240px 1fr; padding: 0; }
.skel-side { border-radius: 0; }
.skel-main { padding: 32px; }
.skel-table { height: 280px; margin-top: 20px; }
.skel-pass { width: min(420px, 100%); height: 640px; margin: 40px auto; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
    .skel-line, .skel-input, .skel-btn, .skel-hero, .skel-card, .skel-bar, .skel-table, .skel-side, .skel-pass, .skel-stats i { animation: none; }
}

.btn {
    --btn-bg: var(--ink);
    --btn-fg: #f7f1e7;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 20px rgba(22, 19, 15, 0.12);
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35), transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn-primary { --btn-bg: linear-gradient(180deg, #c86a36, var(--copper-deep)); background: #b85c2c; }
.btn-ghost { --btn-bg: transparent; background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn-danger { background: var(--bad); }
.btn-light { color: var(--cream); border-color: rgba(231, 211, 176, 0.3); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading::before {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    animation: spin 0.7s linear infinite;
}
.btn-ghost.is-loading::before { border-color: rgba(22,19,15,0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.site-header, .site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 7vw;
}
.site-nav, .site-footer div { display: flex; gap: 18px; align-items: center; }
.site-nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; }
.brand-mark {
    width: 28px; height: 22px; border-radius: 6px;
    background: var(--ink);
    box-shadow: inset 0 0 0 2px var(--cream);
    position: relative;
}
.brand-mark::before, .brand-mark::after {
    content: ""; position: absolute; top: 6px; width: 7px; height: 10px; border-radius: 50%; background: var(--paper);
}
.brand-mark::before { left: -4px; }
.brand-mark::after { right: -4px; }
.brand-light { color: var(--cream); }
.brand-light .brand-mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cream); }
.brand-light .brand-mark::before, .brand-light .brand-mark::after { background: var(--night); }
.site-main { padding: 10px 7vw 64px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

.hero h2 { font-size: clamp(3rem, 6vw, 5.4rem); max-width: 12ch; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.event-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: var(--paper-2); border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.event-card:hover { transform: translateY(-4px); }
.event-photo { position: relative; aspect-ratio: 16/10; background: #2a241c; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; }
.event-logo { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 2px solid white; }
.event-body { padding: 16px 16px 18px; }
.event-date { color: var(--copper); font-size: 0.86rem; font-weight: 600; margin: 0; }
.event-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.photo-fallback { display: grid; place-items: center; height: 100%; color: var(--cream); font-family: var(--serif); font-size: 3rem; background: radial-gradient(circle at 70% 20%, #c86a36, #1a2130 55%); }
.photo-fallback.large { min-height: 320px; }

.event-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; margin-bottom: 28px; }
.event-hero-media { border-radius: 28px; overflow: hidden; min-height: 360px; background: #1a2130; }
.event-hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.hero-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.event-hero-copy h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.meta-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.meta-list span { display: block; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.buy-layout, .sale-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.sale-grid { grid-template-columns: 1.15fr 0.85fr; margin-top: 22px; }
.summary, .panel, .pay-card, .auth-form, .stack-form, .result {
    background: var(--paper-2);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.summary { position: sticky; top: 16px; }
.summary-total { font-family: var(--serif); font-size: 2.4rem; margin: 8px 0 16px; }
.section-head { margin: 28px 0 14px; }
.seat-hover { margin: 0 0 8px; color: var(--ink); font-weight: 560; min-height: 1.4em; }
.seat-tip {
    position: fixed; z-index: 30; pointer-events: none;
    min-width: 88px; padding: 8px 12px 10px; text-align: center;
    background: var(--night); color: #f7f1e8; border-radius: 12px;
    box-shadow: 0 14px 32px rgba(16, 20, 28, 0.32);
}
.seat-tip[hidden] { display: none; }
.seat-tip strong { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -0.03em; }
.seat-tip span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--cream); }
.seat-tip::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--night); border-bottom: 0;
}
.seat-tip.is-below::after { bottom: auto; top: -6px; border-top: 0; border-bottom: 6px solid var(--night); }
.buy-seats {
    display: block; width: 100%; margin: 0 0 12px; border: 0; border-radius: 999px;
    background: var(--copper); color: white; cursor: pointer;
    font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.95rem 1.3rem; box-shadow: 0 12px 28px rgba(184, 92, 44, 0.28);
}
.buy-seats:hover { background: var(--copper-deep); }
.buy-seats[hidden] { display: none; }
.map-fit {
    display: flex; align-items: center; justify-content: center;
    height: min(620px, calc(100vh - 260px));
    border-radius: 20px; background: #f7f4ef; overflow: hidden;
}
.vmap { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.vmap-inputs { display: none; }
.varc { fill: none; stroke: rgba(22, 19, 15, 0.08); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.vrow { font-family: var(--sans); font-size: 13px; font-weight: 620; fill: var(--ink); }
.vstage { fill: none; stroke: var(--night); stroke-width: 8; stroke-linecap: round; }
.vstage-label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--night); }
.vseat rect { fill: #e6e1d8; stroke: #d0cbc2; stroke-width: 0.6; }
.vseat text { font-family: var(--sans); font-size: 4.6px; fill: #4a453e; pointer-events: none; }
.vseat.is-pick { cursor: pointer; }
.vseat.is-pick:focus { outline: none; }
.vseat.is-pick:focus rect { stroke: var(--ink); stroke-width: 1.4; }
.vseat.is-pick:hover rect { fill: #d7c4ae; }
.vseat.is-on rect { fill: var(--copper); stroke: var(--copper-deep); }
.vseat.is-on text { fill: white; }
.vseat.is-reservado rect { fill: #e7d7a8; }
.vseat.is-vendido rect, .vseat.is-bloqueado rect { fill: #b7b1a8; }
.vseat.is-vendido text, .vseat.is-bloqueado text, .vseat.is-reservado text { fill: transparent; }
.seat-picks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.seat-picks li { display: flex; justify-content: space-between; gap: 8px; font-size: 0.92rem; }
.seat {
    width: 22px; height: 18px; border-radius: 5px 5px 3px 3px;
    display: inline-grid; place-items: center;
    font-size: 7px; position: relative; color: transparent;
}
.seat.is-free { background: #e6e1d8; }
.seat.is-picked { background: var(--copper); }
.seat.is-reservado { background: #e7d7a8; }
.seat.is-vendido, .seat.is-taken { background: #b7b1a8; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 0.86rem; margin-bottom: 10px; }
.legend .seat { position: relative; }
.tier, .tier-list { display: flex; flex-direction: column; gap: 10px; }
.tier {
    flex-direction: row; justify-content: space-between; align-items: center;
    background: white; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line);
}
.tier span, .tier strong { display: block; }
.tier input[type="number"] { width: 72px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid .span-2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--muted); }
input, select, textarea {
    border: 1px solid var(--line); background: white; border-radius: 12px;
    padding: 0.75rem 0.85rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(184, 92, 44, 0.15); }
.check { flex-direction: row; align-items: center; color: var(--ink); }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 48px; }
.eye-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: transparent; color: var(--muted); cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.eye-btn svg { width: 20px; height: 20px; display: block; }
.eye-btn .eye-off { display: none; }
.eye-btn.is-visible .eye-on { display: none; }
.eye-btn.is-visible .eye-off { display: block; }
.eye-btn:hover { color: var(--copper-deep); background: rgba(184, 92, 44, 0.08); }
.text-btn { background: none; border: 0; color: var(--copper-deep); cursor: pointer; padding: 0; }
.text-btn.danger { color: var(--bad); }
.buyer-chip { background: white; display: inline-block; border-radius: 999px; padding: 8px 12px; }

.pay-layout, .split, .validate-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.bill { list-style: none; padding: 0; margin: 0 0 16px; }
.bill li, .plain li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bill-total { font-size: 1.2rem; }
.note { background: #f6ecdf; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.hold { font-variant-numeric: tabular-nums; font-weight: 600; }
.hold.is-expired { color: var(--bad); }
.pay-option { flex-direction: row; align-items: center; font-size: 1rem; color: var(--ink); margin: 8px 0; }

.pass-stack, .ticket-page { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.ticket-tools { width: min(420px, 100%); display: flex; justify-content: space-between; }
.pass {
    width: min(420px, 100%);
    background: #16181d;
    color: #f4efe7;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.28);
}
.pass-hero { position: relative; min-height: 180px; background: radial-gradient(circle at 80% 20%, #e39a4a, #7a2e12 42%, #120e0c 75%); }
.pass-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.pass-hero-copy { position: relative; padding: 22px; }
.pass-kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: #f0d7b4; }
.pass h2 { font-size: 2.4rem; color: white; }
.pass-body, .pass-stub { padding: 18px 22px 8px; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pass-grid > div { min-width: 0; }
.pass-grid span, .pass-place, .pass-who { color: #b7b1a8; font-size: 0.86rem; }
.pass-grid strong { display: block; color: white; font-size: 1.05rem; }
.pass-seat { color: var(--cream); font-family: var(--serif); font-size: 1.25rem; margin: 16px 0 8px; }
.pass-stub {
    margin-top: 8px;
    background:
        radial-gradient(circle at 0 0, transparent 12px, #101114 13px),
        radial-gradient(circle at 100% 0, transparent 12px, #101114 13px);
    background-color: #101114;
    text-align: center;
    border-top: 1px dashed rgba(231, 211, 176, 0.35);
    padding-bottom: 22px;
}
.qr-frame { display: inline-block; background: white; border-radius: 16px; padding: 10px; margin-top: 12px; }
.stamp { display: inline-block; margin-top: 8px; color: #e7b6b6; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.pass.is-used { filter: saturate(0.4); }
.stamp-void { color: #e7b6b6; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.auth-visual {
    background:
        radial-gradient(circle at 80% 10%, rgba(232, 154, 74, 0.45), transparent 32%),
        linear-gradient(160deg, #1a2130, #0c0f15 70%);
    color: var(--cream);
    padding: 32px 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100vh;
}
.auth-visual h1 { font-size: clamp(2.8rem, 4vw, 4.4rem); max-width: 12ch; color: #f7f1e7; }
.auth-panel { display: grid; place-items: center; padding: 32px 8vw; background: var(--paper-2); }
.auth-form { width: min(420px, 100%); box-shadow: none; padding: 0; background: transparent; }
.auth-form h2 { font-size: 2.6rem; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar {
    background: var(--night); color: var(--cream);
    padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
    position: sticky; top: 0; height: 100vh;
}
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar a { text-decoration: none; color: rgba(231,211,176,0.78); padding: 10px 12px; border-radius: 12px; }
.sidebar a.is-active, .sidebar a:hover { background: rgba(231,211,176,0.08); color: white; }
.sidebar a.is-active { box-shadow: inset 3px 0 0 var(--copper); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.admin-main { padding: 28px 32px 64px; }
.admin-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-top h1 { font-size: 2rem; flex: 1; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: white; }
.nav-toggle span { display: block; height: 2px; margin: 5px 10px; background: var(--ink); }
.banner { background: #f6ecdf; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: white; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: 0.82rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; margin-top: 6px; }
.panel { margin-bottom: 16px; }
.panel-head, .toolbar, .form-actions, .row-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.toolbar { margin-bottom: 14px; }
.search { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; background: white; border-radius: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.95rem; }
th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cell-title { display: flex; gap: 10px; align-items: center; }
.cell-title img, .thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.thumb.wide { width: 120px; height: 72px; margin-top: 8px; }
.cell-title span, .ticket-row span { display: block; color: var(--muted); font-size: 0.85rem; }
.badge { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 0.75rem; background: #efe7dc; text-transform: lowercase; }
.badge-pagada, .badge-publicado, .badge-emitido, .badge-activo { background: #e5f4eb; color: var(--good); }
.badge-pendiente, .badge-borrador, .badge-reservado { background: #f8efd8; color: var(--warn); }
.badge-usado, .badge-cancelado, .badge-cancelada, .badge-anulado, .badge-expirada, .badge-finalizado { background: #f8e4e4; color: var(--bad); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form.narrow { max-width: 520px; }
.tiers { grid-template-columns: 1.4fr 0.8fr 0.6fr; margin-bottom: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: white; }
.chip.is-active { background: var(--ink); color: white; }
.pager { display: flex; gap: 6px; margin-top: 14px; }
.pager a { text-decoration: none; min-width: 32px; text-align: center; padding: 6px; border-radius: 8px; background: white; }
.pager a.is-active { background: var(--ink); color: white; }
.toast, .toast-fallback { border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; background: white; box-shadow: var(--shadow); }
.toast-fallback { display: none; border-left: 4px solid var(--copper); }
.toast-fallback p { margin: 0; }
.toast-fallback p + p { margin-top: 6px; }
.toast-fallback.is-ok { border-left-color: var(--good); }
.toast-fallback.is-err { border-left-color: var(--bad); }
.evt-swal {
    width: min(420px, calc(100vw - 32px));
    border-radius: 24px; padding: 1.5rem 1.35rem 1.25rem;
    background: var(--paper-2); color: var(--ink);
    box-shadow: 0 30px 70px rgba(16, 20, 28, 0.28);
    font-family: var(--sans);
}
.evt-swal-title { font-family: var(--serif); font-weight: 560; font-size: 1.85rem; color: var(--ink); letter-spacing: -0.03em; padding: 0; }
.evt-swal-text { color: var(--muted); font-size: 1rem; line-height: 1.5; white-space: pre-line; margin: 0.35rem 0 0; }
.evt-swal-confirm, .evt-swal-cancel {
    border: 0; border-radius: 999px; padding: 0.75rem 1.3rem; cursor: pointer;
    font-family: var(--sans); font-weight: 560; font-size: 0.95rem; margin: 0 4px;
}
.evt-swal-confirm { background: var(--copper); color: white; }
.evt-swal-confirm:hover { background: var(--copper-deep); }
.evt-swal-cancel { background: transparent; color: var(--muted); }
.evt-swal-show { animation: evt-swal-in 0.28s ease; }
@keyframes evt-swal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.empty { padding: 48px 0; max-width: 36rem; }
.result-emitido { box-shadow: inset 0 0 0 2px var(--good); }
.result-usado, .result-anulado { box-shadow: inset 0 0 0 2px var(--bad); }
.reader { margin-top: 12px; border-radius: 16px; overflow: hidden; background: #111; min-height: 40px; }
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; background: white; border-radius: 16px; padding: 14px 16px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { flex-direction: column; align-items: flex-start; }

@media (max-width: 980px) {
    .event-hero, .buy-layout, .pay-layout, .split, .validate-layout, .auth-shell, .admin-shell, .stat-grid, .form-grid, .form-grid.three, .sale-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .auth-visual { min-height: auto; }
    .sidebar { position: fixed; z-index: 5; transform: translateX(-105%); transition: transform 0.2s ease; }
    .admin-shell.nav-open .sidebar { transform: none; }
    .nav-toggle { display: inline-block; }
    .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
    .skel-grid, .skel-stats, html.is-booting body.theme-admin .skel-admin, html.is-booting body.theme-auth .skel-auth { grid-template-columns: 1fr; }
}
@media print {
    body { background: white; }
    .no-print, .site-header, .site-footer { display: none !important; }
    .pass { box-shadow: none; break-inside: avoid; }
}

.nav-ico, .nav-avatar { display: none; }
.admin-shell.is-box .admin-top h1,
.admin-shell.is-box .admin-top .text-link { display: none; }
.admin-shell.is-box .admin-top { margin: 0 0 8px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (min-width: 981px) {
    .admin-shell.is-box { grid-template-columns: 96px 1fr; }
    .admin-shell.is-box .admin-top { display: none; }
    .admin-shell.is-box .sidebar { padding: 14px 8px; align-items: stretch; }
    .admin-shell.is-box .brand { justify-content: center; }
    .admin-shell.is-box .brand > span:not(.brand-mark) { display: none; }
    .admin-shell.is-box .nav-ico { display: grid; place-items: center; }
    .admin-shell.is-box .nav-ico svg { width: 22px; height: 22px; }
    .admin-shell.is-box .sidebar nav a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        font-size: 0.68rem; text-align: center; padding: 8px 4px;
    }
    .admin-shell.is-box .nav-avatar {
        display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 6px;
        border-radius: 50%; background: rgba(231, 211, 176, 0.16); color: white; font-size: 0.75rem;
    }
    .admin-shell.is-box .sidebar nav { flex: 1; min-height: 0; overflow: auto; }
    .admin-shell.is-box .sidebar-foot { align-items: center; text-align: center; flex: none; }
    .admin-shell.is-box .nav-who { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
    .admin-shell.is-box .sidebar-foot .btn { font-size: 0.68rem; padding: 6px 4px; white-space: normal; line-height: 1.15; }
    .admin-shell.is-box .admin-main { padding: 16px 20px 28px; }
}
.box-head, .box-head-actions, .box-card-head, .box-order-head, .box-picks-head, .box-event, .box-meta {
    display: flex; align-items: center; gap: 12px;
}
.box-head, .box-card-head, .box-order-head, .box-picks-head { justify-content: space-between; }
.box-head { align-items: flex-end; margin-bottom: 8px; }
.box-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.box-meta { color: var(--muted); flex-wrap: wrap; margin: 0; }
.box-meta span:not(:last-child)::after { content: "·"; margin: 0 10px; }
.box-head-actions { flex-wrap: wrap; justify-content: flex-end; }
.box-demo {
    margin: 0; border-radius: 999px; padding: 6px 12px; background: #f6ecdf; color: var(--warn);
    font-size: 0.82rem; font-weight: 600;
}
.box-steps {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin: 0 0 10px; padding: 0;
}
.box-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.box-steps li span {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line); background: white; font-size: 0.85rem;
}
.box-steps li strong, .box-steps li small { display: block; }
.box-steps li small { font-size: 0.75rem; }
.box-steps[data-step="1"] li:nth-child(1),
.box-steps[data-step="2"] li:nth-child(-n+2),
.box-steps[data-step="3"] li { color: var(--ink); }
.box-steps[data-step="1"] li:nth-child(1) span,
.box-steps[data-step="2"] li:nth-child(-n+2) span,
.box-steps[data-step="3"] li span { background: var(--copper); color: white; border-color: var(--copper); }
.box-office { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr); gap: 16px; align-items: start; }
.box-map, .box-side .summary { background: white; border-radius: 22px; box-shadow: var(--shadow); }
.box-map { padding: 16px 16px 12px; min-width: 0; }
.box-card-head { align-items: flex-start; margin-bottom: 8px; }
.box-card-head h3, .box-order h3, .box-buyer h3 { font-size: 1.25rem; }
.box-card-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.box-map-tools { display: flex; gap: 6px; align-items: center; }
.box-search input { min-width: 180px; background: var(--paper); }
.icon-btn {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
    background: white; cursor: pointer; font-size: 1.1rem;
}
.icon-btn:focus-visible, .pay-card:focus-within, .seat-chip-x:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.box-search-msg { color: var(--bad); margin: 0 0 8px; }
.box-legend { margin-bottom: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.swatch.is-free { background: #e6e1d8; box-shadow: inset 0 0 0 1px #c8c2b8; }
.swatch.is-on { background: var(--copper); }
.swatch.is-hold { background: repeating-linear-gradient(135deg, #ead9a2, #ead9a2 3px, #f7efd4 3px, #f7efd4 6px); }
.swatch.is-sold { background: #cfc9c0; position: relative; }
.swatch.is-sold::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; border-top: 2px solid #6d655c; transform: rotate(-18deg); }
.box-office .map-fit { height: min(640px, calc(100vh - 300px)); background: #fbf8f4; overflow: hidden; }
.box-office .map-fit.is-zoomed { overflow: auto; display: block; }
.box-office .vseat.is-vendido rect, .box-office .vseat.is-bloqueado rect { stroke: #8d877e; stroke-width: 1; }
.box-office .vseat.is-reservado rect { stroke: #8a5a12; stroke-width: 1; }
.box-office .vseat.is-found rect { stroke: var(--ink); stroke-width: 1.8; fill: #f3d27a; }
.box-office .seat-hover { font-size: 0.86rem; }
.box-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.box-side .summary { position: static; padding: 14px 16px; }
.box-side .form-grid { gap: 8px; }
.box-buyer h3 { margin-bottom: 8px; }
.box-event img, .box-event-fallback { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.box-event-fallback { display: grid; place-items: center; background: #2a241c; color: var(--cream); font-family: var(--serif); }
.box-event { align-items: flex-start; }
.box-event strong, .box-event span { display: block; }
.box-event span { color: var(--muted); font-size: 0.82rem; }
.box-empty { color: var(--muted); margin: 8px 0; }
.seat-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.seat-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 999px; padding: 4px 4px 4px 10px; font-weight: 600; }
.seat-chip-x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px 6px; }
.box-totals { margin: 0; }
.box-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); }
.box-totals dd { margin: 0; color: var(--ink); }
.box-total { display: flex; justify-content: space-between; align-items: baseline; background: #f8efe6; border-radius: 14px; padding: 12px 14px; margin: 8px 0 0; }
.box-total strong { font-family: var(--serif); font-size: 1.8rem; }
.box-buyer h3 { margin-top: 4px; }
.req { color: var(--copper); }
.pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pay-card { position: relative; }
.pay-card input { position: absolute; opacity: 0; }
.pay-card span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: white; }
.pay-card small { color: var(--muted); }
.pay-card input:checked + span { border-color: var(--copper); background: #f8efe6; box-shadow: inset 0 0 0 1px var(--copper); }
.pay-card input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
button[data-charge]:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 1100px) {
    .box-office { grid-template-columns: 1fr; }
    .box-side { position: static; max-height: none; }
    .box-card-head, .box-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
    .box-office .map-fit { height: 68vh; touch-action: pan-x pan-y; }
    .pay-cards, .box-steps { grid-template-columns: 1fr; }
}
