/* Eliminación total de marco */
#mapa-asientos {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Único marco visible, ajustado por JS */
.mapa-card {
    margin-top: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 14px 12px 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 24;
}

.mapa-titulo {
    text-align: center;
    color: #334155;
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0 0 7px;
    letter-spacing: -0.01em;
}

.referencia-escenario {
    width: min(38%, 150px) !important;
    margin: 0 auto 18px auto !important;
    padding: 6px 10px 7px !important;
    background: linear-gradient(180deg, #dbe4ee 0%, #cbd5e1 100%) !important;
    color: #3f4f64 !important;
    text-align: center;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    border-radius: 0 0 18px 18px !important;
    border: 1px solid #c6d1df !important;
    border-top: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mapa-centrar-btn {
    position: absolute;
    top: 45px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    box-shadow: none;
    cursor: pointer;
    z-index: 32;
    transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease, color .16s ease;
}

.mapa-centrar-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mapa-centrar-btn:hover,
.mapa-centrar-btn:focus-visible {
    color: #1d4ed8;
    outline: none;
}

.mapa-centrar-btn:active {
    transform: translateY(1px);
}

.mapa-ayuda {
    text-align: center;
    color: #8aa0ba;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 12px 0 0 !important;
    margin-bottom: 0 !important; /* Eliminamos el margen inferior del texto */
    padding-bottom: 0 !important;
}

.marco-panzoom {
    width: 100%;
    height: auto;
    /* min-height: 300px; <-- ELIMINADO */
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    touch-action: none;
    z-index: 26;
}

#lienzo-konva {
    width: 100%;
    height: 100%;
    cursor: default; /* Acá estaba el 'grab' que ponía la manito */
    position: relative;
    z-index: 28;
}

#lienzo-konva:active {
    cursor: default; /* Acá estaba el 'grabbing' */
}

/* Contenedor de datos sin tamaño fijo */
#contenedor-grid-mapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;  /* Ya no necesita tamano */
    height: 0; /* Ya no necesita tamano */
    visibility: hidden;
    pointer-events: none;
}

/* Las burbujas (Asientos) */
.asiento {
    position: absolute;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.88);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
}

/* Colores */
.asiento.disponible { background-color: #CBD5E1; color: #0f172a; }
.asiento.vip, .asiento.oro {
    background-color: #fbbf24 !important; /* Dorado VIP vibrante */
    border-color: #fef3c7 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3) !important;
}
.asiento.ocupado {
    background-color: #475569 !important;
    cursor: not-allowed;
    opacity: 0.72;
    color: #f8fafc !important;
    border-color: rgba(226,232,240,0.72);
    box-shadow: none;
}
.asiento.sin-precio {
    background-color: #d7dee8 !important;
    cursor: not-allowed;
    opacity: 0.78;
    color: #64748b !important;
    border-color: rgba(148,163,184,0.45);
    box-shadow: none;
}
.asiento.seleccionado { 
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.86), 0 6px 14px rgba(29, 78, 216, 0.28) !important;
    transform: scale(1.08);
    z-index: 4;
}
