/* Mis boletas + verificación QR */

body.subpage {
  background: #050505;
}

body.subpage .site-header {
  position: sticky;
  top: 0;
  padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(3, 3, 2, 0.96) 0%, rgba(3, 3, 2, 0.88) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.subpage .mobile-menu a.active {
  color: var(--gold-light, #e4b548);
}

.page-shell {
  min-height: calc(100vh - 88px);
  padding: 1.25rem 1.1rem 3.5rem;
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(185, 133, 13, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(4, 92, 3, 0.12), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 45%, #070707 100%);
}

.page-card {
  max-width: 960px;
  margin: 0 auto;
}

.page-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-kicker {
  margin: 0 0 0.55rem;
  color: #42a63b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-mega, "Bebas Neue", sans-serif);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  letter-spacing: 0.06em;
  color: var(--gold-soft, #f3c45d);
  line-height: 0.95;
}

.page-hero p {
  margin: 0.65rem auto 0;
  max-width: 34ch;
  color: rgba(243, 241, 235, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
}

.lookup-panel {
  position: relative;
  display: grid;
  gap: 0.9rem;
  max-width: 440px;
  margin: 0 auto 1.75rem;
  padding: 1.35rem 1.2rem 1.15rem;
  border: 1px solid rgba(185, 133, 13, 0.38);
  background: linear-gradient(165deg, rgba(18, 14, 6, 0.95), rgba(8, 8, 8, 0.92));
  overflow: hidden;
}

.lookup-panel__glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 220px;
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(228, 181, 72, 0.22), transparent 70%);
  pointer-events: none;
}

.lookup-field {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.78);
}

.lookup-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(185, 133, 13, 0.42);
  background: rgba(5, 5, 5, 0.92);
  color: #fafaf9;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.lookup-field input::placeholder {
  color: rgba(168, 162, 154, 0.55);
  font-weight: 500;
  letter-spacing: 0;
}

.lookup-field input:focus {
  outline: 2px solid rgba(243, 196, 93, 0.5);
  outline-offset: 1px;
  border-color: rgba(228, 181, 72, 0.7);
}

.lookup-submit {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 48px;
}

.lookup-hint {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: rgba(168, 162, 154, 0.8);
  font-size: 0.78rem;
  line-height: 1.4;
}

.page-footer-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.cliente-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(185, 133, 13, 0.32);
  background: linear-gradient(120deg, rgba(185, 133, 13, 0.12), rgba(12, 12, 12, 0.85));
}

.cliente-bar strong {
  color: var(--gold-light, #f3c45d);
  font-size: 1.05rem;
}

.status-box {
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 0 auto 1rem;
  max-width: 440px;
  color: var(--muted, #a8a29a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 12, 0.55);
}

.status-box.is-error {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.18);
}

.rifa-block {
  margin-bottom: 2rem;
}

.rifa-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mega, "Bebas Neue", sans-serif);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: #fafaf9;
}

.rifa-meta {
  margin: 0 0 1rem;
  color: var(--muted, #a8a29a);
  font-size: 0.88rem;
}

.boletas-list {
  display: grid;
  gap: 1.25rem;
}

.boleta-item {
  display: grid;
  gap: 0.75rem;
}

.boleta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Ticket (mismo layout que el sistema) */
.boleta-ticket-scale {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.boleta-ticket {
  display: flex;
  overflow: hidden;
  background: linear-gradient(180deg, #0c0c0c 0%, #121212 100%);
  border: 1px solid #3a3220;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.12);
  color: #f5f5f5;
  font-family: Manrope, system-ui, sans-serif;
}

.boleta-ticket__left {
  flex-shrink: 0;
  padding: 9px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  border-right: 1px solid rgba(201, 162, 39, 0.22);
  text-align: center;
}

.boleta-ticket__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.boleta-ticket__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.boleta-ticket__label {
  margin-top: 2px;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a3a3a3;
}

.boleta-ticket__name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.2;
}

.boleta-ticket__id {
  font-size: 11px;
  color: #a3a3a3;
}

.boleta-ticket__deuda {
  font-size: 12px;
  color: #d4af37;
  font-weight: 600;
}

.boleta-ticket__badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boleta-ticket__badge--pagada {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.boleta-ticket__badge--reservada {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.boleta-ticket__badge--abonada {
  background: rgba(201, 162, 39, 0.14);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.boleta-ticket__badge--disponible {
  background: rgba(163, 163, 163, 0.1);
  color: #d4d4d4;
  border: 1px solid rgba(163, 163, 163, 0.25);
}

.boleta-ticket__badge--cancelada {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.boleta-ticket__qr-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2px 0;
}

.boleta-ticket__qr {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}

.boleta-ticket__footer {
  text-align: center;
  margin-top: 3px;
  width: 100%;
}

.boleta-ticket__numeros {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.boleta-ticket__numero-block {
  display: grid;
  justify-items: center;
  row-gap: 1px;
  width: 100%;
  padding: 5px 5px 6px;
  border-radius: 6px;
}

.boleta-ticket__numero-block--principal {
  border: 1px solid rgba(243, 196, 93, 0.5);
  background: rgba(212, 175, 55, 0.09);
}

.boleta-ticket__numero-block--regalo {
  border: 1px dashed rgba(110, 231, 183, 0.52);
  background: rgba(16, 185, 129, 0.08);
}

.boleta-ticket__numero-label {
  color: #e7e5e4;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.boleta-ticket__numero-value {
  color: #f3c45d;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  font-family: ui-monospace, Menlo, monospace;
}

.boleta-ticket__numero-block--regalo .boleta-ticket__numero-value {
  color: #6ee7b7;
}

.boleta-ticket__numero-separator {
  width: 20px;
  height: 20px;
  margin: -4px 0;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16120a;
  border: 1px solid rgba(243, 196, 93, 0.45);
  box-shadow: 0 0 0 3px #0e0e0e;
  color: #f3c45d;
  font-size: 12px;
  font-weight: 900;
}

.boleta-ticket__regalo-note {
  margin-top: 2px;
  color: #a7f3d0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.boleta-ticket__precio {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c9a227;
}

.boleta-ticket__right {
  flex-shrink: 0;
  height: 100%;
}

.boleta-ticket__right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.boleta-ticket__right-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a, #151515);
  text-align: center;
  padding: 1rem;
}

.boleta-ticket__right-fallback p:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d4af37;
  margin: 0;
}

.boleta-ticket__fallback-numbers {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-family: ui-monospace, Menlo, monospace;
}

.boleta-ticket__fallback-numbers strong {
  color: #f3c45d;
  font-size: 1.15rem;
}

.boleta-ticket__fallback-numbers span {
  color: #6ee7b7;
  font-size: 0.95rem;
}

/* Verificación */
.verify-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(185, 133, 13, 0.3);
  background: rgba(10, 10, 12, 0.88);
}

.verify-card--wide {
  max-width: 880px;
}

.verify-ticket {
  margin: 0.25rem auto 0;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 1.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.verify-estado {
  display: inline-flex;
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.verify-estado--pagada { background: linear-gradient(90deg, #10b981, #059669); color: #ecfdf5; }
.verify-estado--abonada { background: linear-gradient(90deg, #f59e0b, #d97706); color: #fffbeb; }
.verify-estado--reservada { background: linear-gradient(90deg, #3b82f6, #4f46e5); color: #eff6ff; }
.verify-estado--anulada { background: linear-gradient(90deg, #ef4444, #b91c1c); color: #fef2f2; }
.verify-estado--disponible { background: #475569; color: #f8fafc; }

.verify-nums {
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: #f3c45d;
  letter-spacing: 0.04em;
  margin: 0.25rem 0;
}

.verify-nums-labeled {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 430px;
  margin: 0 auto 0.8rem;
}

.verify-num-card {
  padding: 0.7rem 0.55rem;
  border: 1px solid rgba(243, 196, 93, 0.35);
  background: rgba(212, 175, 55, 0.07);
}

.verify-num-card--gift {
  border-style: dashed;
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(16, 185, 129, 0.07);
}

.verify-num-card span {
  display: block;
  color: #d6d3d1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-num-card strong {
  display: block;
  margin-top: 0.2rem;
  color: #f3c45d;
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(1.45rem, 6vw, 2rem);
  letter-spacing: 0.06em;
}

.verify-num-card--gift strong {
  color: #6ee7b7;
}

.verify-numbers-explanation {
  margin: 0 auto 0.35rem;
  color: #a8a29a;
  font-size: 0.75rem;
}

@media (max-width: 430px) {
  .verify-nums-labeled {
    grid-template-columns: 1fr;
  }
}

.verify-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.verify-row span { color: #a8a29a; }
.verify-row strong { color: #fafaf9; text-align: right; }

.back-home {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--gold-light, #f3c45d);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-home:hover {
  text-decoration: underline;
}
