: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;
}

/* ================== TOP BAR ================== */
.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 ================== */
.page{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:14px 12px 24px;
}

.event-head{
  display:flex;
  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;
}
.event-lines .label{
  display:inline-block;
  width:74px;
  color:#475569;
}

.hint{
  font-size:12px;
  margin:8px 0;
}

/* ================== MAPA ================== */
.frame{
  border:1px solid #94a3b8;
  border-radius:2px;
  background:#fff;
  overflow:hidden;
}

.grid-desktop{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:10px;
}

.map-box{
  min-height:540px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.map-svg-wrap{
  width:100%;
  max-width:820px;
}
.map-box svg{
  width:100%;
  height:auto;
  display:block;
}

/* ================== PANEL ================== */
.side{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.box{
  border:1px solid var(--st-border);
  border-radius:2px;
  background:#fff;
}
.box-h{
  padding:10px 12px;
  border-bottom:1px solid #eef2f7;
  font-size:12px;
  font-weight:700;
}
.box-b{ padding:12px; }

.btn-continue{
  width:120px;
  height:28px;
  border-radius:3px;
  background:var(--st-blue);
  color:#fff;
  font-size:11px;
  font-weight:900;
  border:none;
  cursor:pointer;
}

/* ================== MOBILE ================== */
@media (max-width:900px){
  .search-wrap{ display:none; }
  .hamb{ display:flex; }
  .grid-desktop{ grid-template-columns:1fr; }
  .side{ display:none; }
  .map-box{ padding:10px; }
}

/* ================== ASIENTOS ================== */
.seat-map-wrap{
  position:relative;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  background:#fff;
}

.seat-svg-wrap svg{
  width:100%;
  height:auto;
  display:block;
}

.seat-is-selected rect{ fill:#16a34a !important; }
.seat-is-selected text{ fill:#ffffff !important; }

/* ================== ZONAS AGOTADAS ================== */
/* (El color real se fuerza desde JS dentro del SVG) */
.zona-agotada{
  pointer-events:none;
  cursor:not-allowed;
}

/* ================== LISTA PRECIOS AGOTADA ================== */
.price-item-agotado{
  opacity:.55;
}
.price-item-agotado button{
  background:#9ca3af !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}
.price-badge-agotado{
  display:inline-flex;
  font-size:10px;
  font-weight:900;
  padding:2px 8px;
  border-radius:999px;
  background:#e5e7eb;
  color:#334155;
}
/* Asiento vendido/lleno */
.seat-is-sold rect{ fill:#6b7280 !important; }   /* gris oscuro */
.seat-is-sold text{ fill:#111827 !important; }   /* texto oscuro */
.seat-is-sold{ pointer-events:none !important; cursor:not-allowed !important; }
/* ================== ASIENTOS OCUPADOS (GRIS) ================== */

/* Grupo completo ocupado */
.seat-is-sold {
  pointer-events: none;
  cursor: not-allowed;
}

/* Rectángulo del asiento */
.seat-is-sold rect {
  fill: #9ca3af !important;      /* gris claro */
  stroke: #4b5563 !important;   /* borde gris oscuro */
}

/* Texto del asiento */
.seat-is-sold text {
  fill: #1f2937 !important;     /* gris oscuro */
  font-weight: 700;
}
/* ===== ASIENTOS OCUPADOS (GRIS) - FUERZA TOTAL ===== */
.seat-svg-wrap g.seat-is-sold rect,
.seat-svg-wrap g.seat-is-sold polygon,
.seat-svg-wrap g.seat-is-sold path {
  fill: #4b5563 !important;     /* gris */
  stroke: #111827 !important;  /* borde oscuro */
}

.seat-svg-wrap g.seat-is-sold text {
  fill: #ffffff !important;     /* texto blanco */
  font-weight: 800;
}

.seat-svg-wrap g.seat-is-sold {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.95;
}
