/* Web de compra de entradas, dentro de aloong.app. Móvil primero. */
.compra { min-height: 100svh; background: var(--lime); display: flex; flex-direction: column; }
.compra-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.compra-top img { height: 32px; }
.compra-top .quien { font-size: 13px; color: var(--ink-muted); display: flex; gap: 10px; align-items: center; max-width: 60%; }
.compra-top .quien .quien-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--indigo); }
.avatar-inicial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.saludo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.saludo .avatar { width: 44px; height: 44px; font-size: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compra-top button, .link-btn { background: none; border: 0; color: var(--indigo); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.compra-main { flex: 1; padding: 0 16px 32px; max-width: 480px; width: 100%; margin: 0 auto; }
.tarjeta { background: var(--white); border-radius: 22px; padding: 22px 20px; box-shadow: 0 14px 40px rgba(26, 26, 46, 0.10); margin-bottom: 14px; }
.tarjeta h1 { font-size: clamp(1.45rem, 6vw, 1.8rem); line-height: 1.15; margin-bottom: 8px; }
.tarjeta h2 { font-size: 1.15rem; margin-bottom: 10px; }
.tarjeta p { margin: 0 0 10px; color: var(--ink-muted); font-size: 15px; }
.tarjeta .meta { display: grid; gap: 6px; margin: 12px 0 16px; font-size: 15px; }
.tarjeta .meta div { display: flex; gap: 8px; align-items: baseline; }
.precio { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--indigo); }
.precio small { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.cantidad { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.cantidad button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--indigo); background: var(--white); color: var(--indigo); font-size: 22px; font-weight: 700; cursor: pointer; }
.cantidad button:disabled { opacity: 0.35; cursor: default; }
.cantidad output { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; min-width: 32px; text-align: center; }
.btn-principal { display: block; width: 100%; padding: 16px; border-radius: 999px; border: 0; background: var(--indigo); color: var(--white); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-align: center; }
.btn-principal:hover { background: var(--indigo-dark); text-decoration: none; }
.btn-principal:disabled { opacity: 0.6; cursor: wait; }
.btn-secundario { display: block; width: 100%; padding: 14px; border-radius: 999px; border: 2px solid var(--indigo); background: var(--white); color: var(--indigo); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; margin-top: 10px; }
.aviso { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 12px 0; line-height: 1.5; }
.aviso-info { background: #EEF0FF; color: var(--indigo-dark); }
.aviso-ok { background: #E8FAD6; color: #2F5A12; }
.aviso-mal { background: #FFE9E3; color: #8A2A12; }
.aviso-espera { background: var(--warm); color: #7A5410; }
.aviso[hidden] { display: none; }
form.acceso { display: grid; gap: 12px; }
form.acceso label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
form.acceso label[hidden], form[hidden] { display: none; }
form.acceso input, form.acceso select, form.acceso textarea { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #FAFAFF; width: 100%; min-width: 0; }
/* El control de archivo nativo mide ~400px de mínimo y revienta la tarjeta en
   móvil (reventaba TODA la rejilla: inputs y botón se salían de la tarjeta). */
form.acceso input[type="file"] { width: 100%; min-width: 0; }
form.acceso input:focus { outline: 2px solid var(--indigo); border-color: transparent; }
.tabs[hidden] { display: none; }
.tabs { display: flex; gap: 6px; background: #EEF0FF; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px; font: inherit; font-weight: 700; color: var(--indigo-dark); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); box-shadow: 0 2px 8px rgba(26,26,46,0.08); }
.nota { font-size: 13px; color: var(--ink-muted); margin-top: 14px; }
.estado-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.estado-pill.ok { background: #E8FAD6; color: #2F5A12; }
.estado-pill.espera { background: var(--warm); color: #7A5410; }
.estado-pill.mal { background: #FFE9E3; color: #8A2A12; }
.entrada { background: var(--white); border-radius: 22px; padding: 20px; margin-bottom: 14px; box-shadow: 0 14px 40px rgba(26, 26, 46, 0.10); text-align: center; }
.entrada h3 { font-size: 1.1rem; margin-bottom: 4px; }
.entrada .qr { display: flex; justify-content: center; margin: 14px 0 8px; }
.entrada .qr svg { width: min(72vw, 240px); height: auto; }
.entrada.usada .qr, .entrada.devuelta .qr { opacity: 0.35; }
.entrada .codigo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink-muted); letter-spacing: 0.04em; }
.entrada .pista { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.vacio { text-align: center; padding: 30px 10px; color: var(--ink-muted); }
.sim-banda { background: #FFE08A; color: #4A3700; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 10px; }
.sim-banda a { color: inherit; text-decoration: underline; }
.cargando { text-align: center; padding: 40px 0; color: var(--ink-muted); }
/* Google / Apple */
.social { display: grid; gap: 10px; margin-bottom: 14px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--ink); }
.btn-social .logo { font-family: 'Sora', sans-serif; font-size: 18px; line-height: 1; }
.btn-social.apple { background: #000; color: #fff; border-color: #000; }
.btn-social:disabled { opacity: 0.45; cursor: default; }
.btn-social.no-disponible { border-style: dashed; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 13px; margin-top: 4px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social .nota { margin: 0; }
.decision { display: grid; gap: 10px; margin: 12px 0; }
.decision[hidden] { display: none; }
.decision .btn-secundario { margin-top: 0; }
.social[hidden] { display: none; }

/* Inicio: perfil básico y planes de la ciudad */
.perfil { display: flex; align-items: center; gap: 14px; }
.perfil .avatar { width: 56px; height: 56px; font-size: 22px; }
.perfil-nombre { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem; display: block; }
.perfil-ciudad { color: var(--ink-muted); font-size: 14px; }
.perfil-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.perfil-acciones a { flex: 1 1 140px; margin-top: 0; padding: 11px; font-size: 14px; }
.ciudad-selector { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ciudad-selector select { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid #d8d8e6; font: inherit; }
.plan { display: flex; gap: 12px; background: var(--white); border-radius: 18px; padding: 10px; margin-bottom: 12px; box-shadow: 0 10px 30px rgba(26, 26, 46, 0.08); text-decoration: none; color: var(--ink); }
.plan:hover { text-decoration: none; }
.plan-foto { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: #e6e6f0; }
.plan-cuerpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-cat { font-size: 12px; color: var(--ink-muted); }
.plan-titulo { font-size: 1rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.plan-meta { font-size: 13px; color: var(--ink-muted); }
.plan-pie { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin-top: auto; }
.plan-precio { font-weight: 700; color: var(--indigo); }
.plan-organiza { color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seccion-titulo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; margin: 18px 4px 10px; }

/* Perfil */
.quien-perfil { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: inherit; }
.quien-perfil:hover { text-decoration: none; }
.avatar-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 auto; }
.avatar-btn .avatar { width: 72px; height: 72px; font-size: 28px; display: inline-flex; }
.avatar-cambiar { position: absolute; left: 0; right: 0; bottom: -4px; font-size: 11px; font-weight: 700; color: var(--indigo); background: var(--white); border-radius: 999px; padding: 1px 0; box-shadow: 0 2px 8px rgba(26,26,46,0.15); }
.acceso h2 { font-size: 1rem; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1.5px solid #d8d8e6; background: var(--white); font-size: 14px; cursor: pointer; }
.chip input:checked + span { border-color: var(--indigo); background: #EEF0FF; color: var(--indigo-dark); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.detalle { margin: 8px 0 4px; }
.detalle-titulo { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }

/* Cartel del evento */
.evento-cartel { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 14px; margin-bottom: 12px; background: #e6e6f0; display: block; }
.cover-actual { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin: 6px 0; display: block; }

/* Listado de compradores en el panel de la empresa */
.compradores { margin: 4px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 6 columnas: en móvil la tabla se desliza dentro de la tarjeta en vez de salirse. */
.compradores .tabla { min-width: 560px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th, .tabla td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6e6f0; vertical-align: top; }
.tabla th { font-weight: 600; color: #5a5a70; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.tabla .num { text-align: right; }

.ciudades-estaticas { text-align: center; font-size: 14px; color: var(--ink-muted); margin: 8px 0 0; }
.ciudades-estaticas a { color: var(--indigo); font-weight: 600; }
