:root{
  --bg:#0b0b0f;
  --card:#12121a;
  --text:#ffffff;
  --muted:#b7b7c8;
  --purple:#6A02B2;
  --purple2:#8c2be6;
  --border:#232338;
}

*{box-sizing:border-box}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg); color:var(--text);
}
a{color:inherit; text-decoration:none}
.wrap{max-width:980px; margin:0 auto; padding:18px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 0;
}
.brand{font-weight:800; letter-spacing:.3px}
.badge{font-size:12px; color:var(--muted)}
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:16px; padding:16px; box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
}
@media (min-width:820px){ .grid{grid-template-columns:repeat(3,1fr)} }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  padding:10px 14px; border-radius:12px;
  background:rgba(255,255,255,.06); color:var(--text);
  cursor:pointer; font-weight:700;
}
.btn.primary{
  background:linear-gradient(135deg,var(--purple),var(--purple2));
  border-color:transparent;
}
.btn.ghost{background:transparent}
.btn.full{width:100%}

.h1{font-size:24px; margin:0 0 6px}
.p{color:var(--muted); margin:0 0 10px; line-height:1.45}
.hr{height:1px; background:var(--border); margin:14px 0}

.form label{display:block; font-weight:700; margin:10px 0 6px}
.form input, .form textarea, .form select{
  width:100%; padding:12px; border-radius:12px;
  border:1px solid var(--border); background:#0f0f16; color:var(--text);
}
.form textarea{min-height:110px}

.ticket-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:8px;
}
@media (min-width:820px){ .ticket-grid{grid-template-columns:repeat(10,1fr)} }

.ticket{
  padding:10px 8px; border-radius:10px; text-align:center;
  border:1px solid var(--border); background:#0f0f16;
  font-size:12px; cursor:pointer; user-select:none;
}
.ticket.available:hover{border-color:rgba(106,2,178,.7)}
.ticket.selected{outline:2px solid var(--purple2)}
.ticket.held{opacity:.45; cursor:not-allowed}
.ticket.paid{opacity:.35; cursor:not-allowed; text-decoration:line-through}

.cartbar{
  position:sticky; bottom:10px; margin-top:14px;
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  padding:12px; border-radius:14px;
  background:rgba(18,18,26,.9); border:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.small{font-size:12px; color:var(--muted)}
/* ===== Header / Footer global en /eventos ===== */
.evt-header{
  position:sticky; top:0; z-index:50;
  background:#000;
  border-bottom:1px solid var(--border);
}
.evt-header-inner{
  max-width:980px; margin:0 auto;
  padding:10px 18px;
  display:grid;
  grid-template-columns: 60px 1fr 60px;
  align-items:center;
}
.evt-logo{ display:flex; justify-content:center; }
.evt-logo-img{
  height:28px; width:auto;
  display:block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}
.evt-back{ justify-self:start; }
.evt-back-spacer{ width:60px; height:1px; }

.evt-main{ padding-bottom:90px; } /* espacio para el botón WA */
.evt-footer{
  position:fixed; left:0; right:0; bottom:0;
  padding:12px;
  background:rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--border);
  z-index:60;
}
.evt-wa{
  width:min(980px, calc(100% - 24px));
  margin:0 auto;
  display:flex;
  justify-content:center;
  border-radius:14px;
}

