:root {
  --bg: #0d0a1c;
  --bg2: #151033;
  --surface: #1b1440;
  --surface-2: #241a55;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ff;
  --muted: #a49bd0;
  --magenta: #ff3d8a;
  --magenta-soft: #ff6aa6;
  --gold: #ffc24b;
  --green: #3ddc9a;
  --danger: #ff5c7a;
  --radius: 20px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Unbounded', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 20% -5%, rgba(255, 61, 138, 0.18), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(120, 80, 255, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

/* ---- estructura de página ---- */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 60px;
  min-height: 100vh;
}

.page-ancha {
  max-width: 900px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--magenta);
}

.kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.topbar-botones {
  display: flex;
  gap: 8px;
}

.backbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 6px;
}

.back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  text-decoration: none;
  line-height: 1;
}

.backbar .t {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.scroll {
  padding: 6px 18px 30px;
}

/* ---- hero ---- */
.h-hero {
  padding: 2px 18px 14px;
}

.h-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.h-hero p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

/* ---- listas en tarjetas ---- */
.cards {
  display: grid;
  gap: 14px;
}

.page-ancha .cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

a.card:active {
  transform: scale(0.985);
}

.card .club {
  font-weight: 700;
  font-size: 16px;
}

.card .zone {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.card .incl {
  color: var(--magenta-soft);
  font-size: 12px;
  margin-top: 9px;
  font-weight: 500;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.price-now {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 8px;
  font-weight: 500;
}

.drop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-top: 6px;
}

.closes {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

.closes b {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
}

.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 61, 138, 0.15);
  color: var(--magenta-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.vacio {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  padding: 4px 18px 20px;
}

/* ---- detalle de mesa ---- */
.photo {
  height: 170px;
  border-radius: 18px;
  margin: 2px 18px 16px;
  background-color: #3a1d6b;
  background-image: linear-gradient(135deg, #3a1d6b, #7a2b8f 55%, #ff3d8a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
}

.card-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 4px;
}

.photo .club-d {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.photo .live {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dotlive {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.d-zone {
  color: var(--muted);
  font-size: 13px;
  padding: 0 18px;
}

.d-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 4px 0 16px;
  padding: 0 18px;
}

.incl-list {
  list-style: none;
  margin: 6px 18px 20px;
}

.incl-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.incl-list li .ic {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 61, 138, 0.16);
  color: var(--magenta-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.pricebox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 0 18px 14px;
}

.pricebox .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.pricebox .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  margin-top: 6px;
}

.split {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.split .box {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 11px;
}

.split .box small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.split .box b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-top: 3px;
}

.split .box.hi {
  background: rgba(255, 61, 138, 0.13);
  border: 1px solid rgba(255, 61, 138, 0.35);
}

.split .box.hi b {
  color: var(--magenta-soft);
}

/* ---- aviso muy visible ---- */
.warn-box {
  margin: 0 18px 18px;
  background: rgba(255, 194, 75, 0.1);
  border: 1px solid rgba(255, 194, 75, 0.4);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.warn-box strong {
  color: var(--gold);
}

/* ---- pago ---- */
.pay-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 4px 18px 18px;
}

.pay-info .club {
  font-weight: 600;
  margin-bottom: 4px;
}

.pay-info .zone {
  color: var(--muted);
  font-size: 12.5px;
}

.pay-lines {
  margin: 0 18px;
}

.pay-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.pay-line span:first-child {
  color: var(--muted);
}

.pay-line.total {
  border-bottom: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.pay-line.total .v {
  color: var(--gold);
}

.metodo-lbl {
  margin: 22px 18px 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.fakefield {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fakefield .dots {
  letter-spacing: 3px;
  color: var(--text);
}

.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 18px 0;
}

.hint.centro {
  text-align: center;
}

/* ---- confirmación ---- */
.conf {
  text-align: center;
  padding: 34px 24px 20px;
}

.check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(61, 220, 154, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 18px;
  font-size: 36px;
  color: var(--green);
}

.conf-titulo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.conf p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 8px auto 0;
  max-width: 300px;
}

.conf p b {
  color: var(--text);
}

.qr {
  width: 160px;
  height: 160px;
  margin: 18px auto;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.code {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 22px;
  margin-top: 4px;
}

.conf-desglose {
  max-width: 280px;
  margin: 20px auto 0;
  text-align: left;
}

/* ---- botones ---- */
.acciones {
  padding: 18px 18px 6px;
}

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--magenta), #c026d3);
  box-shadow: 0 10px 30px -8px rgba(255, 61, 138, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
  margin-top: 9px;
}

.btn.pequeno {
  width: auto;
  display: inline-block;
  padding: 9px 14px;
  font-size: 12.5px;
  border-radius: 11px;
  box-shadow: none;
}

/* ---- panel discoteca ---- */
.seg {
  display: flex;
  background: var(--surface);
  border-radius: 12px;
  padding: 4px;
  margin: 0 18px 16px;
}

.seg a {
  flex: 1;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.seg a.on {
  background: var(--magenta);
  color: #fff;
}

.club-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 11px;
}

.club-row-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.club-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.club-row-info {
  flex: 1;
  min-width: 0;
}

.club-row .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.club-row .z {
  font-weight: 600;
  font-size: 14px;
}

.status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.status.on {
  background: rgba(61, 220, 154, 0.15);
  color: var(--green);
}

.status.sold {
  background: rgba(164, 155, 208, 0.15);
  color: var(--muted);
}

.club-row .meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

.club-row .codeline {
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}

.club-row .codeline b {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 2px;
}

.club-row form {
  margin-top: 10px;
}

.form {
  margin: 0 18px;
}

.form label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin: 14px 0 6px;
}

.form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
}

.form input:focus {
  outline: none;
  border-color: var(--magenta-soft);
}

.form input[type='file'] {
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.form .two {
  display: flex;
  gap: 10px;
}

.form .two > div {
  flex: 1;
}

.form select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ff6aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 38px 13px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form select:hover {
  border-color: var(--magenta-soft);
}

.form select:focus {
  outline: none;
  border-color: var(--magenta-soft);
  box-shadow: 0 0 0 3px rgba(255, 61, 138, 0.18);
}

.form select option {
  background: var(--surface-2);
  color: var(--text);
}

.form select option:checked,
.form select option:hover {
  background: var(--magenta-soft);
  color: #fff;
}

.error {
  margin: 0 18px 14px;
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- landing (página de inicio) ---- */
.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 18px 8px;
  max-width: 440px;
}

.landing-cta .btn {
  flex: 1 1 180px;
  width: auto;
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), #c026d3);
  box-shadow: 0 6px 18px -6px rgba(255, 61, 138, 0.7);
}

.step-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.step-txt {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
