/* "Pruébalo tú" (14/11/2026): una compra de entrada jugable. El visitante es el cliente: elige zona, manda la
   captura (buena o editada), ve la revisión, recibe su QR y pasa por la puerta. Ver pruebalo.js. */
.pz { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .pz { grid-template-columns: 1fr 400px; gap: 48px; align-items: center; } }
.pz-texto h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.pz-texto > p { color: #9ca3af; font-size: 17px; margin: 0 0 22px; max-width: 520px; }
.pz-pasos { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pz-pasos li { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: #6b7280; background: rgba(255,255,255,.02); transition: all .3s; }
.pz-pasos li.hecho { color: #86efac; border-color: rgba(52,211,153,.35); background: rgba(16,185,129,.08); }
.pz-pasos li.ahora { color: #fff; border-color: #7c3aed; background: rgba(124,58,237,.2); box-shadow: 0 0 0 1px #7c3aed inset; }

/* Panel del dueño: los números se mueven con la compra del visitante */
.pz-dueno { background: #111118; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; max-width: 520px; }
.pz-dueno-t { font-size: 13px; color: #9ca3af; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.pz-dueno-t i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.pz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pz-kpi { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px; }
.pz-kpi b { display: block; font-size: 20px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; transition: color .4s; }
.pz-kpi b.sube { color: #34d399; }
.pz-kpi small { font-size: 11.5px; color: #9ca3af; }
.pz-aviso { margin-top: 10px; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.3); color: #e9d5ff; opacity: 0; transform: translateY(6px); transition: all .35s; min-height: 20px; }
.pz-aviso.ver { opacity: 1; transform: none; }

/* Teléfono */
.pz-tel { width: 100%; max-width: 400px; justify-self: center; background: #0b141a; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(124,58,237,.4), 0 0 0 1px rgba(124,58,237,.1); display: flex; flex-direction: column; height: 600px; position: relative; }
.pz-cab { background: #202c33; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; flex: none; }
.pz-cab img { width: 34px; height: 34px; }
.pz-cab b { display: block; color: #e9edef; } .pz-cab small { color: #8696a0; font-size: 12px; }
.pz-chat[hidden] { display: none; }
.pz-chat > * { flex-shrink: 0; }   /* sin esto, con el chat lleno, la tarjeta de la entrada se aplastaba a 0 px */
.pz-chat { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; font-size: 14px; }
.pz-m { max-width: 86%; padding: 8px 11px; border-radius: 10px; color: #e9edef; line-height: 1.45; white-space: pre-line; animation: pz-entra .3s ease both; }
.pz-m.bot { background: #202c33; border-top-left-radius: 3px; align-self: flex-start; }
.pz-m.yo { background: #005c4b; border-top-right-radius: 3px; align-self: flex-end; }
.pz-m.escribiendo { color: #8696a0; font-style: italic; }
@keyframes pz-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Captura de Yape dentro del chat */
.pz-yape { align-self: flex-end; width: 80%; position: relative; overflow: hidden; border-radius: 14px; padding: 13px 15px; background: linear-gradient(160deg, #5b1f7a, #3b1352); color: #f5edff; border: 2px solid transparent; animation: pz-entra .3s ease both; transition: border-color .4s, box-shadow .4s; }
.pz-yape .t { font-size: 11.5px; opacity: .75; }
.pz-yape .monto { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.pz-yape dl { margin: 0; display: grid; gap: 3px; font-size: 12px; }
.pz-yape dl div { display: flex; justify-content: space-between; gap: 8px; }
.pz-yape dt { opacity: .7; } .pz-yape dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pz-yape .linea { position: absolute; left: 0; right: 0; top: -10%; height: 3px; opacity: 0; background: #a78bfa; box-shadow: 0 0 14px 4px rgba(167,139,250,.75), 0 0 40px 10px rgba(124,58,237,.45); }
.pz-yape .linea.corre { animation: pz-escanear 1.2s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes pz-escanear { 0% { top: -10%; opacity: 1; } 90% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
.pz-yape.ok { border-color: rgba(52,211,153,.7); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.pz-yape.mal { border-color: rgba(248,113,113,.8); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.pz-yape .sello { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; opacity: 0; transform: scale(.6); transition: all .35s cubic-bezier(.34,1.56,.64,1); }
.pz-yape.ok .sello { opacity: 1; transform: none; background: rgba(16,185,129,.2); color: #34d399; border: 1px solid rgba(52,211,153,.5); }
.pz-yape.mal .sello { opacity: 1; transform: none; background: rgba(239,68,68,.2); color: #fca5a5; border: 1px solid rgba(248,113,113,.5); }
.pz-revision { align-self: flex-end; width: 80%; list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 3px; font-size: 12.5px; color: #cbd5e1; }
.pz-revision li { animation: pz-entra .3s ease both; }
.pz-revision li.si::before { content: '✓'; color: #34d399; font-weight: 800; margin-right: 8px; }
.pz-revision li.no::before { content: '✗'; color: #f87171; font-weight: 800; margin-right: 8px; }
.pz-revision li.no { color: #fca5a5; }

/* Entrada con QR */
.pz-ticket { align-self: flex-start; width: 82%; background: #fff; color: #111118; border-radius: 14px; overflow: hidden; animation: pz-entra .35s ease both; }
.pz-ticket .cab { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pz-ticket .cue { padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.pz-ticket canvas { width: 92px; height: 92px; flex: none; }
.pz-ticket b { display: block; font-size: 15px; } .pz-ticket small { display: block; font-size: 12px; color: #4b5563; }

/* Pie: respuestas rápidas o campo de texto */
.pz-pie { flex: none; padding: 10px 12px 12px; background: #111b21; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 8px; min-height: 66px; align-items: center; }
.pz-pie button, .pz-pie a { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(83,189,235,.35); background: rgba(83,189,235,.08); color: #8fd3f4; flex: 1 1 auto; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pz-pie button:hover { background: rgba(83,189,235,.16); }
.pz-pie button.malo { border-color: rgba(248,113,113,.4); background: rgba(239,68,68,.08); color: #fca5a5; }
.pz-pie a.wa { background: #16a34a; border-color: transparent; color: #fff; }
.pz-pie button:focus-visible, .pz-pie a:focus-visible, .pz-pie input:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.pz-pie form { display: flex; gap: 8px; width: 100%; }
.pz-pie input { flex: 1; min-width: 0; min-height: 44px; border-radius: 22px; border: 0; background: #2a3942; color: #e9edef; padding: 0 16px; font: inherit; font-size: 16px; }
.pz-pie form button { flex: none; width: 44px; padding: 0; border-radius: 50%; background: #00a884; border: 0; color: #fff; }
.pz-pie .saltar { flex: none; border: 0; background: none; color: #8696a0; font-weight: 600; min-height: 32px; padding: 0 6px; }

/* Vista de la puerta */
.pz-puerta { flex: 1; min-height: 0; background: #050508; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px 18px 0; gap: 16px; animation: pz-entra .3s ease both; }
.pz-puerta .rot { font-size: 13px; color: #9ca3af; }
.pz-visor { position: relative; width: 210px; height: 210px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #0d0d14; }
.pz-visor::before, .pz-visor::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 3px solid transparent; border-image: linear-gradient(135deg, #a78bfa, #4f46e5) 1; clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 0, 100% 0, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 0 100%); }
.pz-visor canvas { width: 150px; height: 150px; border-radius: 8px; }
.pz-visor .linea { position: absolute; left: 8%; right: 8%; height: 2px; top: 10%; background: #a78bfa; box-shadow: 0 0 12px 3px rgba(167,139,250,.7); animation: pz-visor 1.1s ease-in-out infinite alternate; }
@keyframes pz-visor { to { top: 88%; } }
.pz-resultado { width: 100%; border-radius: 16px; padding: 16px; text-align: center; animation: pz-entra .3s ease both; }
.pz-resultado b { display: block; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.pz-resultado small { display: block; font-size: 13.5px; margin-top: 4px; opacity: .9; }
.pz-resultado.ok { background: rgba(16,185,129,.16); border: 1px solid rgba(52,211,153,.5); color: #a7f3d0; }
.pz-resultado.no { background: rgba(239,68,68,.16); border: 1px solid rgba(248,113,113,.5); color: #fecaca; }

@media (max-width: 520px) { .pz-tel { height: 560px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .pz-m, .pz-yape, .pz-ticket, .pz-revision li, .pz-puerta, .pz-resultado { animation: none; }
  .pz-visor .linea { animation: none; top: 50%; }
  .pz-chat { scroll-behavior: auto; }
}

/* Selector de rubro propio de la sección y botones que se marcan (carrito de tours) */
.pz-rubros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pz-rubros button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #d1d5db; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pz-rubros button[aria-checked="true"] { background: rgba(124,58,237,.22); border-color: #7c3aed; color: #fff; }
.pz-rubros button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.pz-pie button[aria-pressed="true"] { background: rgba(16,185,129,.18); border-color: rgba(52,211,153,.6); color: #a7f3d0; }
.pz-puerta { overflow-y: auto; padding-bottom: 18px; }
.pz-puerta .pz-ticket { width: 100%; }
.pz-kpi b { white-space: nowrap; }
@media (max-width: 899px) {
  /* En celular: título y rubros, después el teléfono y abajo el panel del dueño (se ve moverse mientras juegas) */
  .pz { gap: 14px; }
  .pz-texto { display: contents; }
  .pz-texto > * { order: 1; }
  .pz-tel { order: 2; }
  .pz-texto > .pz-dueno { order: 3; max-width: none; }
  .pz-pasos { display: none; }
  .pz-kpi b { font-size: 17px; }
}
