:root{
  --st-border:#d9dee7;
  --st-gray:#f2f4f7;
  --st-blue:#0e7490;
  --st-blue2:#334155;
  --st-red:#a11f1f;
  --st-text:#0f172a;
}

body{
  background:#fff;
  color:var(--st-text);
  margin:0;
  font-family: Arial, sans-serif;
}

/* Barra tipo Soluticket */
.topbar{
  height:54px;
  border-bottom:1px solid #e5e7eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
}
.topbar-inner{
  width:100%;
  max-width:1200px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{ height:28px; }

.search-wrap{
  flex:1;
  max-width:540px;
  display:flex;
  align-items:center;
  gap:8px;
  padding-left:8px;
}
.search{
  width:100%;
  height:32px;
  background:#eef2f7;
  border:1px solid #e5e7eb;
  border-radius:2px;
  padding:0 10px;
  font-size:12px;
  outline:none;
}
.top-actions{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
}
.icon-btn{
  width:28px;height:28px;
  border:1px solid #e5e7eb;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
}
.hamb{
  width:34px;height:28px;
  display:none;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:4px;
  background:#fff;
}

/* Layout principal */
.page{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:14px 12px 24px;
}

.event-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:6px 4px 10px;
}
.event-lines{
  font-size:12px;
  line-height:1.35;
}
.event-lines b{
  font-size:13px;
  letter-spacing:.2px;
}
.event-lines .label{
  display:inline-block;
  width:74px;
  color:#475569;
}

.info-link{
  font-size:12px;
  color:#0f172a;
  text-decoration:underline;
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.info-dot{
  width:16px;height:16px;
  border:1px solid #94a3b8;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  color:#475569;
}

.hint{
  font-size:12px;
  color:#0f172a;
  margin:8px 0 8px;
}

/* Contenedor con borde */
.frame{
  border:1px solid #94a3b8;
  border-radius:2px;
  background:#fff;
  overflow:hidden;
}

/* Desktop grid */
.grid-desktop{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:10px;
  align-items:start;
}

/* MAPA */
.map-box{
  min-height:540px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:#fff;
}

.map-svg-wrap{
  width:100%;
  max-width:820px;
}

/* Para que el SVG embebido sea responsivo */
.map-box svg{
  width:100%;
  height:auto;
  display:block;
}

/* Panel derecho */
.side{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.box{
  border:1px solid var(--st-border);
  border-radius:2px;
  background:#fff;
  overflow:hidden;
}
.box-h{
  background:#fff;
  padding:10px 12px;
  border-bottom:1px solid #eef2f7;
  font-size:12px;
  font-weight:700;
}
.box-b{ padding:12px; }

.qty-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.qty-row span{
  font-size:11px;
  font-weight:700;
  color:#334155;
}
select{
  height:28px;
  border:1px solid #cbd5e1;
  border-radius:4px;
  font-size:12px;
  padding:0 8px;
  background:#fff;
  outline:none;
}

.selected{
  min-height:150px;
  font-size:12px;
  color:#0f172a;
}
.selected .empty{
  color:#64748b;
  font-size:12px;
}

.total-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
  font-size:12px;
}
.total-row b{ font-weight:800; }

.btn-continue{
  width:120px;
  height:28px;
  border-radius:3px;
  background:var(--st-blue);
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  margin-left:auto;
  display:block;
  border:none;
  cursor:pointer;
}

/* MOBILE */
.mobile-price-toggle{
  display:none;
  width:100%;
  height:34px;
  border-radius:3px;
  background:var(--st-red);
  color:#fff;
  font-weight:900;
  font-size:12px;
  letter-spacing:.2px;
  text-transform:none;
  margin:10px 0 10px;
  border:none;
  cursor:pointer;
}
.mobile-panel{
  display:none;
  border:1px solid #94a3b8;
  border-radius:2px;
  overflow:hidden;
  margin-top:10px;
}
.mobile-panel .box{ border:none; border-radius:0; }
.mobile-panel.open{ display:block; }

/* Responsive breakpoints */
@media (max-width: 900px){
  .search-wrap{ display:none; }
  .hamb{ display:flex; }
  .grid-desktop{ grid-template-columns: 1fr; }
  .side{ display:none; }
  .mobile-price-toggle{ display:block; }
  .mobile-panel{ display:none; }
  .map-box{ min-height:auto; padding:10px; }
}

/* Footer mini */
.note{
  font-size:11px;
  color:#64748b;
  margin-top:10px;
}

/* ===== ASIENTOS (INLINE) ===== */
.seat-map-wrap{
  position:relative;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  background:#fff;
  overflow:hidden;
}

/* ZOOM CONTROLS */
.seat-zoom-controls{
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:10;
}
.seat-zoom-controls button{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.seat-zoom-controls button img{
  width:18px;
  height:18px;
  display:block;
}
.seat-zoom-controls button:hover{
  background:#f1f5f9;
}

/* PAN VIEWPORT */
.seat-pan-viewport{
  width:100%;
  min-height:360px;
  overflow:hidden;
  touch-action:none; /* importante para pointer pan */
  cursor:grab;
}
.seat-pan-viewport.panning{ cursor:grabbing; }

/* SVG seats */
.seat-svg-wrap svg{
  width:100%;
  height:auto;
  display:block;
  will-change:transform;
  user-select:none;
  -webkit-user-select:none;
  -ms-user-select:none;
}

/* Seleccionado en verde */
.seat-is-selected rect{ fill:#16a34a !important; }
.seat-is-selected text{ fill:#ffffff !important; }

/* Asegura clicks */
.seat-svg-wrap g.cursor-pointer,
.seat-svg-wrap g[class*="cursor-pointer"]{
  pointer-events:auto;
}
