/* ===================== BUS CONTAINER ===================== */
.bus-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.piso {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.piso h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* ===================== BUS GRID ===================== */
.bus-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.fila {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===================== ASIENTOS ===================== */
.asiento {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #bdc3c7;
    position: relative;
    user-select: none;
}

.asiento span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Libre */
.asiento.libre {
    color: white;
    border-color: #229954;
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3);
}

.asiento.libre:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.5);
}

.asiento.libre:active {
    transform: scale(0.95);
}

/* Ocupado */
.asiento.ocupado {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #a93226;
    cursor: not-allowed;
    opacity: 0.7;
}

.asiento.ocupado::after {
    content: "✕";
    position: absolute;
    font-size: 20px;
    font-weight: bold;
}

/* Seleccionado */
.asiento.seleccionado {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #1f618d;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Premium */
.asiento.premium {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #333;
    border-color: #d68910;
    font-weight: 700;
}

/* TV / Espacios */
.asiento.tv {
    background: #95a5a6;
    color: white;
    cursor: default;
    border-color: #7f8c8d;
}

.asiento.vacio {
    background: transparent;
    border: none;
    cursor: default;
    box-shadow: none;
}

.asiento.pasillo {
    margin-left: 8px;
    margin-right: 8px;
    border-left: 3px solid #95a5a6;
    border-right: 3px solid #95a5a6;
}

/* ===================== SELECCIONADOS PANEL ===================== */
#seleccionados {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.asientos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.asiento-tag {
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.asiento-tag:hover {
    opacity: 0.8;
}

/* ===================== FORMULARIOS DINÁMICOS ===================== */
.ticket-card {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.ticket-card:hover {
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.2);
}

.ticket-card .card-header {
    background: linear-gradient(90deg, #3498db, #2980b9) !important;
    color: white;
}

#form_tickets {
    max-height: 600px;
    overflow-y: auto;
}

/* ===================== BOTONES ===================== */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#btnVender:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .asiento {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }
    
    .fila {
        gap: 8px;
    }
    
    .bus-container {
        padding: 15px;
    }
    
    .piso {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .asiento {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .fila {
        gap: 6px;
    }
}

/* ===================== ESTADOS ===================== */
.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }
.text-muted { color: #95a5a6; }

.bg-light { background: #ecf0f1 !important; }

.hl {
    color: red;
}