/* Personalizador de eventos (cubo de anillos) */
.pz { max-width: 1120px; margin: 0 auto; padding: 28px 18px 40px; }
.pz-head { text-align: center; margin-bottom: 22px; }
.pz-head h1 { font-size: 32px; margin: 0 0 6px; color: var(--dark); }
.pz-head p { margin: 0; color: var(--muted); }
.pz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  grid-template-areas: "s1 sum" "s2 sum" "s3 sum";
  grid-template-rows: auto auto 1fr;
  gap: 18px 24px;
  align-items: start;
}
.pz-s1 { grid-area: s1; } .pz-s2 { grid-area: s2; } .pz-s3 { grid-area: s3; }
.pz-sum { grid-area: sum; position: sticky; top: 16px; }

.pz-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.pz-card h2 { font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.pz-step { width: 26px; height: 26px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

.pz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pz-field { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.pz-full { grid-column: 1 / 3; }
.pz-field input[type=text], .pz-field input[type=number], .pz-field input[type=date], .pz-field input[type=tel], .pz-field input[type=email], .pz-field select {
  margin-top: 6px; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 12px;
  font-size: 15px; font-family: inherit; font-weight: 400; background: #fbfdfd; width: 100%; box-sizing: border-box;
}
.pz-field input:focus, .pz-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }

.pz-seg { display: flex; margin-top: 6px; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.pz-seg label { flex: 1; cursor: pointer; }
.pz-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pz-seg span { display: block; text-align: center; padding: 11px 8px; font-size: 14px; font-weight: 600; color: var(--muted); background: #fbfdfd; }
.pz-seg input:checked + span { background: var(--teal); color: #fff; }
.pz-seg input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--teal-tint); }

/* ---------- Escenario ---------- */
.pz-stage {
  --w: 150px; --h: 86px; --r: 103px;
  background: radial-gradient(ellipse at 50% 0%, #0e4348 0%, #060606 68%);
  border-radius: 14px; padding: 16px 8px 14px;
}
.pz-ring-row { margin: 6px 0 18px; }
.pz-ring-top { display: flex; justify-content: space-between; padding: 0 52px 6px; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pz-ring-top .sel { color: var(--teal); font-weight: 700; }
.pz-ring-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; }
.pz-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a3a3a; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; justify-self: center; }
.pz-arrow:hover { background: var(--magenta); border-color: var(--magenta); }
.pz-scene {
  position: relative; height: calc(var(--h) + 22px); perspective: 780px;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
}
.pz-scene:active { cursor: grabbing; }
.pz-scene::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(var(--w) + 12px); height: calc(var(--h) + 12px);
  border: 2px solid var(--magenta); border-radius: 17px; pointer-events: none;
  box-shadow: 0 0 18px rgba(230,3,113,.55);
}
.pz-scene:focus-visible::after { border-color: var(--teal); box-shadow: 0 0 18px rgba(6,193,202,.7); }
.pz-ring { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)); }
.pz-ring.snap { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pz-face {
  position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(calc(var(--i) * 72deg)) translateZ(var(--r));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.pz-face-nivel { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.pz-face-precio { font-size: 13px; font-weight: 600; opacity: .92; }
.lvl-ninguno { background: #1b1b1b; color: #9aa; box-shadow: inset 0 0 0 1.5px #555; }
.lvl-basico { background: linear-gradient(135deg, #e6fbfc, #8fe6eb); color: #04464a; }
.lvl-intermedio { background: linear-gradient(135deg, #06c1ca, #04868c); color: #fff; }
.lvl-pro { background: linear-gradient(135deg, #e60371, #a30250); color: #fff; }
.lvl-full { background: linear-gradient(135deg, #2a2a2a, #000); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.pz-ring-desc { min-height: 18px; text-align: center; color: #cfe9ea; font-size: 12.5px; padding: 6px 12px 0; }
.pz-hint { text-align: center; color: #8aa; font-size: 12px; margin: 4px 0 0; }

/* ---------- Extras ---------- */
.pz-extras h3 { font-size: 14px; margin: 20px 0 10px; }
.pz-extras-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pz-toggle { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.pz-toggle:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.pz-toggle input { accent-color: var(--magenta); width: 18px; height: 18px; flex-shrink: 0; }
.pz-toggle-info { flex: 1; display: flex; flex-direction: column; }
.pz-toggle-info small { color: var(--muted); }
.pz-toggle em { font-style: normal; font-weight: 700; color: var(--magenta); white-space: nowrap; }

/* ---------- Resumen ---------- */
.pz-sum.loading .pz-total strong { opacity: .45; }
.pz-lines { margin-bottom: 8px; }
.pz-empty { color: var(--muted); font-size: 13px; }
.pz-line { border-bottom: 1px solid var(--border); padding: 8px 0; }
.pz-line summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.pz-line summary::-webkit-details-marker { display: none; }
.pz-line-name { display: flex; flex-direction: column; font-size: 14px; }
.pz-line-name small { color: var(--teal); font-weight: 700; }
.pz-line-price { font-weight: 700; }
.pz-line ul { list-style: none; margin: 8px 0 2px; padding: 0; }
.pz-line li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); padding: 2px 0; }
.pz-totals { margin-top: 10px; }
.pz-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.pz-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.pz-total strong { font-size: 30px; color: var(--magenta); transition: opacity .15s; }
.pz-totals small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.pz-fine { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }
.pz-actions { text-align: center; margin-top: 22px; }
.pz-actions .btn { border: none; cursor: pointer; font-size: 15px; }

.pz-bar { display: none; }

/* ---------- Celular / tablet ---------- */
@media (max-width: 860px) {
  .pz { padding: 18px 12px 100px; }
  .pz-head h1 { font-size: 25px; }
  .pz-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s1" "s2" "sum" "s3"; grid-template-rows: auto; }
  .pz-sum { position: static; }
  .pz-card { padding: 16px; border-radius: 12px; }
  .pz-grid { grid-template-columns: 1fr; }
  .pz-full { grid-column: auto; }
  .pz-stage { --w: 126px; --h: 76px; --r: 87px; padding: 14px 2px 10px; }
  .pz-ring-main { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .pz-ring-top { padding: 0 38px 6px; }
  .pz-arrow { width: 30px; height: 30px; font-size: 19px; }
  .pz-face-nivel { font-size: 16px; }
  .pz-face-precio { font-size: 12px; }
  .pz-extras-list { grid-template-columns: 1fr; }
  .pz-actions .btn { width: 100%; box-sizing: border-box; }
  .pz-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    align-items: center; justify-content: space-between; gap: 12px;
    background: #000; color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(0,0,0,.3);
  }
  .pz-bar small { display: block; color: #9cc; font-size: 11px; }
  .pz-bar strong { font-size: 22px; color: var(--teal); }
  .pz-bar .btn { padding: 10px 22px; font-size: 14px; }
}

/* el atributo hidden debe ganar sobre los display de arriba */
.pz [hidden], .pz-extras[hidden] { display: none !important; }
