/* Selector de asientos multi-recinto integrado al diseño original. */
#eventModal.venue-seat-modal{
  width:min(1380px,96vw);
  max-width:none;
  max-height:94dvh;
  border-radius:28px;
  overflow:hidden;
}
#eventModal.venue-seat-modal .modal-close{
  background:rgba(255,255,255,.95);
  color:#111827;
  box-shadow:0 10px 24px rgba(15,23,42,.14);
}
.venue-seat-shell{
  display:grid;
  grid-template-columns:365px minmax(0,1fr);
  min-height:min(850px,92dvh);
  background:#fff;
}
.venue-seat-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:28px;
  border-right:1px solid var(--line,#e5e8f0);
  background:#fff;
  overflow:auto;
  max-height:94dvh;
}
.venue-seat-eyebrow{
  display:inline-flex;
  width:fit-content;
  color:var(--gold,#c79a2b);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
}
.venue-seat-panel h2{
  margin:0;
  color:#111827;
  font-size:31px;
  line-height:1.04;
  letter-spacing:-.045em;
}
.venue-seat-meta{
  margin:0;
  color:#667085;
  font-size:13px;
  line-height:1.65;
}
.venue-seat-meta i{width:18px;color:#111827}
.venue-seat-mobile-map-btn{
  width:100%;
  min-height:66px;
  display:none;
  align-items:center;
  gap:13px;
  border:2px solid #111827;
  border-radius:18px;
  background:#111827;
  color:#ffffff;
  padding:14px 16px;
  text-align:left;
  box-shadow:0 10px 24px rgba(17,24,39,.22);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.venue-seat-mobile-map-btn:hover{
  background:#000000;
  box-shadow:0 14px 30px rgba(17,24,39,.3);
  transform:translateY(-1px);
}
.venue-seat-mobile-map-btn:active{transform:translateY(0) scale(.99)}
.venue-seat-mobile-map-btn:focus-visible{outline:3px solid rgba(17,24,39,.28);outline-offset:3px}
.venue-seat-mobile-map-btn i{
  width:40px;height:40px;border-radius:12px;background:#ffffff;color:#111827;display:grid;place-items:center;flex:0 0 40px;
}
.venue-seat-mobile-map-btn strong,.venue-seat-mobile-map-btn small{display:block}
.venue-seat-mobile-map-btn strong{font-size:15px;letter-spacing:.01em}
.venue-seat-mobile-map-btn small{margin-top:3px;color:rgba(255,255,255,.78);font-size:12px}
.venue-seat-guide{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.venue-seat-guide div{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#98a2b3;
  font-size:11px;
  font-weight:800;
}
.venue-seat-guide b{
  width:24px;height:24px;flex:none;border-radius:999px;background:#eef2f7;color:#667085;display:grid;place-items:center;
}
.venue-seat-guide div.active{color:#111827}
.venue-seat-guide div.active b{background:#111827;color:#fff}
.venue-seat-status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid var(--line,#e5e8f0);
  background:#f8fafc;
  border-radius:18px;
  padding:13px 14px;
}
.venue-seat-status strong{font-size:14px;color:#111827}
.venue-seat-status span{font-size:13px;color:#667085;font-weight:800;text-align:right}
.venue-seat-selected{
  display:grid;
  gap:9px;
  min-height:74px;
}
.venue-seat-empty{
  border:1px dashed #d6dbe4;
  border-radius:17px;
  padding:15px;
  color:#667085;
  font-size:13px;
  line-height:1.5;
  background:#fff;
}
.venue-seat-group{
  border:1px solid var(--line,#e5e8f0);
  border-radius:17px;
  padding:12px;
  background:#fff;
}
.venue-seat-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.venue-seat-group-head strong{font-size:14px;color:#111827}
.venue-seat-group-head span{font-size:12px;color:#667085;font-weight:800}
.venue-seat-chips{display:flex;flex-wrap:wrap;gap:6px}
.venue-seat-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#f1f5f9;
  padding:6px 9px;
  color:#334155;
  font-size:11px;
  font-weight:900;
}
.venue-seat-chip button{
  width:17px;height:17px;border:0;border-radius:999px;background:#fff;color:#111827;display:grid;place-items:center;padding:0;cursor:pointer;
}
.venue-seat-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--line,#e5e8f0);
  color:#111827;
  font-size:18px;
  font-weight:900;
}
.venue-seat-pay{margin-top:0;min-height:50px}
.venue-seat-map-area{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-width:0;
  background:radial-gradient(circle at center,rgba(255,255,255,.96),rgba(248,250,252,.98) 62%,#eef2f7 100%);
}
.venue-seat-map-top{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 24px;
  border-bottom:1px solid rgba(17,24,39,.08);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
}
.venue-seat-map-top strong,.venue-seat-map-top small{display:block}
.venue-seat-map-top strong{color:#111827;font-size:17px}
.venue-seat-map-top small{color:#667085;margin-top:3px;font-size:13px}
.venue-seat-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  color:#475467;
  font-size:12px;
  font-weight:800;
}
.venue-seat-legend span{display:inline-flex;align-items:center;gap:6px}
.venue-seat-legend i{width:13px;height:13px;border-radius:999px;display:inline-block}
.venue-seat-legend i.free{background:#fff;border:2px solid #111827}
.venue-seat-legend i.selected{background:#111827;border:2px solid #111827}
.venue-seat-legend i.occupied{background:#cbd1da;border:1px solid #cbd1da}
.venue-seat-stage{
  position:relative;
  min-height:0;
  padding:16px;
  overflow:hidden;
  touch-action:none;
}
.venue-seat-svg-wrap{
  width:100%;height:100%;min-height:760px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  border-radius:24px;
  background:#f8fafc;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 18px 38px rgba(15,23,42,.08);
  cursor:grab;
  touch-action:none;
}
.venue-seat-svg-wrap.dragging{cursor:grabbing}
.venue-seat-svg-wrap>svg{width:100%;height:100%;display:block;max-width:none;user-select:none}

.venue-seat-svg-wrap .vsm-overview{background:#f8fafc}
.venue-seat-svg-wrap .vsm-overview image{pointer-events:none}
.venue-seat-svg-wrap .vsm-overview-zone{cursor:pointer}
.venue-seat-svg-wrap .vsm-overview-zone rect{
  fill:rgba(255,255,255,.001);
  stroke:transparent;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  pointer-events:all;
  cursor:pointer;
}
.venue-seat-svg-wrap .vsm-overview-zone:hover rect{
  fill:rgba(255,255,255,.12);
  stroke:rgba(17,24,39,.62);
}

.venue-seat-svg-wrap .vsm-zone{cursor:pointer}
.venue-seat-svg-wrap .vsm-zone:hover{opacity:.9}
.venue-seat-svg-wrap .vsm-zone.vsm-active{opacity:1}
.venue-seat-svg-wrap .vsm-zone.vsm-active>path,
.venue-seat-svg-wrap .vsm-zone.vsm-active>polygon,
.venue-seat-svg-wrap .vsm-zone.vsm-active>rect{opacity:.12;pointer-events:none}
.venue-seat-svg-wrap .vsm-seat{
  pointer-events:auto!important;
  cursor:pointer;
  color:#fff!important;
  fill:#fff!important;
  stroke:#111827!important;
  stroke-width:1.65px!important;
  vector-effect:non-scaling-stroke;
  opacity:1!important;
}
.venue-seat-svg-wrap .vsm-seat:hover{
  color:#f6d47a!important;
  fill:#f6d47a!important;
  stroke:#111827!important;
  stroke-width:2.2px!important;
}
.venue-seat-svg-wrap .vsm-seat.vsm-selected{
  color:#111827!important;
  fill:#111827!important;
  stroke:#111827!important;
  stroke-width:2px!important;
}
.venue-seat-svg-wrap .vsm-seat.vsm-unavailable{
  color:#cbd1da!important;
  fill:#cbd1da!important;
  stroke:#cbd1da!important;
  stroke-width:1px!important;
  opacity:.72!important;
  cursor:not-allowed;
}

.venue-seat-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  color:#475467;
  font-size:13px;
}
.venue-seat-loading span{
  width:22px;
  height:22px;
  border:2px solid #d0d5dd;
  border-top-color:#111827;
  border-radius:50%;
  animation:vsm-spin .7s linear infinite;
}
@keyframes vsm-spin{to{transform:rotate(360deg)}}

.venue-seat-zone-card{
  position:absolute;
  left:30px;
  top:30px;
  z-index:8;
  max-width:min(340px,calc(100% - 130px));
  border:1px solid rgba(17,24,39,.1);
  border-radius:17px;
  background:rgba(255,255,255,.95);
  box-shadow:0 12px 28px rgba(15,23,42,.13);
  padding:12px 14px;
  backdrop-filter:blur(12px);
}
.venue-seat-zone-card strong{display:block;color:#111827;font-size:14px}
.venue-seat-zone-card span{display:block;color:#667085;font-size:12px;margin-top:4px;line-height:1.45}
.venue-seat-zone-card button{
  border:0;background:transparent;color:#111827;font-size:12px;font-weight:900;padding:8px 0 0;cursor:pointer;
}
.venue-seat-zoom-controls{
  position:absolute;top:30px;right:30px;display:grid;gap:8px;z-index:9;
}
.venue-seat-zoom-controls button{
  width:42px;height:42px;border:1px solid rgba(17,24,39,.12);border-radius:14px;background:rgba(255,255,255,.95);color:#111827;font-size:18px;font-weight:900;box-shadow:0 10px 24px rgba(15,23,42,.12);cursor:pointer;
}
.venue-seat-floating-pay{
  display:none;
  position:absolute;
  left:30px;
  right:30px;
  bottom:30px;
  z-index:10;
  width:auto;
  margin:0;
  box-shadow:0 16px 34px rgba(15,23,42,.24);
}
.venue-seat-floating-pay.is-visible{display:block}
.venue-seat-tooltip{
  position:fixed;
  z-index:2147483000;
  pointer-events:none;
  opacity:0;
  transform:translateY(5px);
  transition:.12s ease;
  background:#111827;
  color:#fff;
  border-radius:11px;
  padding:9px 11px;
  box-shadow:0 12px 26px rgba(15,23,42,.26);
  font-size:12px;
}
.venue-seat-tooltip.show{opacity:1;transform:translateY(0)}
.venue-seat-toast{
  position:fixed;left:50%;bottom:26px;z-index:2147483001;transform:translate(-50%,18px);opacity:0;pointer-events:none;transition:.2s ease;background:#111827;color:#fff;border-radius:12px;padding:11px 14px;font-size:12px;font-weight:800;box-shadow:0 15px 35px rgba(0,0,0,.22)
}
.venue-seat-toast.show{opacity:1;transform:translate(-50%,0)}
.cart-assigned-seats{display:block;margin-top:5px;color:#6b7280;line-height:1.45}
@media(max-width:1020px){
  #eventModal.venue-seat-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .venue-seat-shell{grid-template-columns:1fr;max-height:calc(100dvh - 16px);overflow:auto}
  .venue-seat-panel{max-height:none;border-right:0;border-bottom:1px solid var(--line,#e5e8f0)}
  .venue-seat-mobile-map-btn{display:flex}
  .venue-seat-map-area{min-height:760px}
  .venue-seat-svg-wrap{min-height:700px}
}
@media(max-width:720px){
  #eventModal.venue-seat-modal{width:100vw;max-height:100dvh;border-radius:0}
  #eventModal.venue-seat-modal .modal-close{top:10px;right:10px}
  .venue-seat-panel{padding:20px 16px}
  .venue-seat-panel h2{font-size:25px;padding-right:44px}
  .venue-seat-map-top{align-items:flex-start;flex-direction:column;padding:14px 16px}
  .venue-seat-legend{justify-content:flex-start}
  .venue-seat-stage{padding:10px}
  .venue-seat-map-area{min-height:640px}
  .venue-seat-svg-wrap{min-height:620px;border-radius:18px}
  .venue-seat-zone-card{left:20px;top:20px;max-width:calc(100% - 90px)}
  .venue-seat-zoom-controls{top:20px;right:20px}
  .venue-seat-zoom-controls button{width:40px;height:40px;border-radius:13px}
  .venue-seat-floating-pay{left:20px;right:20px;bottom:20px}
}
@media(max-width:430px){
  .venue-seat-guide{grid-template-columns:1fr}
  .venue-seat-map-area{min-height:580px}
  .venue-seat-svg-wrap{min-height:560px}
  .venue-seat-status,.venue-seat-total{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(min-width:1021px){
  #eventModal.venue-seat-modal .venue-seat-map-top{padding-right:82px}
}

/* Asientos circulares reales y nítidos en cualquier nivel de zoom. */
.venue-seat-svg-wrap circle.vsm-seat{
  shape-rendering:geometricPrecision;
  vector-effect:non-scaling-stroke;
  transform-box:fill-box;
  transform-origin:center;
}
.venue-seat-svg-wrap circle.vsm-seat:hover{transform:scale(1.12)}

/* UX móvil v10: asientos más fáciles de tocar y pago siempre accesible. */
@media (max-width:1020px){
  .venue-seat-stage{
    padding-bottom:104px;
  }

  .venue-seat-floating-pay{
    position:fixed;
    left:max(14px,env(safe-area-inset-left));
    right:max(14px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));
    z-index:2147482500;
    min-height:58px;
    border-radius:18px;
    font-size:16px;
    letter-spacing:.01em;
    box-shadow:0 16px 42px rgba(15,23,42,.34),0 0 0 1px rgba(255,255,255,.75);
  }

  .venue-seat-pay{
    display:none;
  }

  .venue-seat-svg-wrap circle.vsm-seat:not(.vsm-unavailable){
    transform:scale(1.38);
    stroke-width:2px!important;
  }

  .venue-seat-svg-wrap circle.vsm-seat.vsm-selected{
    transform:scale(1.42);
    stroke-width:2.4px!important;
  }

  .venue-seat-svg-wrap circle.vsm-seat.vsm-unavailable{
    transform:scale(1.08);
  }
}

@media (max-width:430px){
  .venue-seat-floating-pay{
    left:10px;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    min-height:60px;
  }

  .venue-seat-svg-wrap circle.vsm-seat:not(.vsm-unavailable){
    transform:scale(1.48);
  }

  .venue-seat-svg-wrap circle.vsm-seat.vsm-selected{
    transform:scale(1.52);
  }
}
